/* ========== RESET ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fafafa;
    --bg-alt: #f0f0f0;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --border: #e0e0e0;
    --accent: #1a1a1a;
    --radius: 8px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    padding: 8px 16px !important;
    background: var(--text) !important;
    color: #fff !important;
    border-radius: 6px;
}

.nav-cta:hover {
    opacity: 0.85;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: var(--transition);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-dark {
    background: var(--text);
    color: #fff;
}

.btn-dark:hover {
    background: #333;
}

.btn-text {
    background: none;
    color: var(--text);
    padding: 12px 0;
}

.btn-text:hover {
    opacity: 0.6;
}

.btn-full { width: 100%; justify-content: center; }

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 56px;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.hero-name {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero-name span {
    color: var(--text-muted);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.about-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.label-tag {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text);
    background: var(--border);
    padding: 2px 8px;
    border-radius: 4px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.5px;
    max-width: 700px;
}

.text-accent { color: var(--text-muted); }

.about-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 20px;
    max-width: 560px;
}

/* ========== STATS ========== */
.stats-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ========== TIMELINE ========== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-item:first-child {
    border-top: 1px solid var(--border);
}

.timeline-marker {
    width: 8px;
    height: 8px;
    background: var(--text);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========== PROJECTS ========== */
.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.project-item:first-child {
    border-top: 1px solid var(--border);
}

.project-item:hover {
    padding-left: 8px;
}

.project-num {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 32px;
}

.project-info {
    flex: 1;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.project-tags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.tag {
    padding: 4px 10px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: monospace;
}

.project-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.project-item:hover .project-arrow {
    color: var(--text);
    transform: translateX(4px);
}

/* ========== SKILLS ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.skill-item {
    padding: 28px 24px;
    background: var(--bg-alt);
    transition: var(--transition);
}

.skill-item:hover {
    background: #e6e6e6;
}

.skill-num {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.skill-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.skill-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* ========== CONTACT ========== */
.contact-wrapper {
    max-width: 640px;
}

.contact-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row input,
.contact-form textarea {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.form-row input:focus,
.contact-form textarea:focus {
    border-color: var(--text);
}

.contact-form textarea {
    width: 100%;
    margin: 16px 0;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-link {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-link:first-child {
    border-top: 1px solid var(--border);
}

.contact-link:hover .contact-link-value {
    color: var(--text);
}

.contact-link-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-link-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

/* ========== FOOTER ========== */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.back-top {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.back-top:hover { color: var(--text); }

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }
    .hamburger { display: flex; }

    .hamburger.active span:first-child {
        transform: rotate(45deg) translate(3px, 3px);
    }

    .hamburger.active span:last-child {
        transform: rotate(-45deg) translate(3px, -3px);
    }

    .hero-name { letter-spacing: -1px; }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .project-item {
        flex-wrap: wrap;
    }

    .project-tags {
        flex-basis: 100%;
        margin-left: 56px;
    }

    .project-arrow { display: none; }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
