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

:root {
    --bg: #0a0a0a;
    --bg2: #111111;
    --bg3: #181818;
    --border: #222222;
    --muted: #444444;
    --text: #e8e8e8;
    --sub: #888888;
    --accent: #7fff6e;
    --accent2: #4ade80;
    --red: #ff5c5c;
    --font-h: "Syne", sans-serif;
    --font-m: "DM Mono", monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-m);
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ─── NAVBAR ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 60px;
    border-bottom: 1px solid transparent;
    transition:
        border-color 0.3s,
        background 0.3s;
}
nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-color: var(--border);
}
.nav-logo {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    color: var(--text);
    text-decoration: none;
}
.nav-logo span {
    color: var(--accent);
}
.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    color: var(--sub);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--accent);
}

/* ─── SECTIONS ─── */
section {
    padding: 120px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ─── HERO ─── */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    max-width: 100%;
    padding-left: 60px;
    padding-right: 60px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
}
.hero-tag::before {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}
.hero-name {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: clamp(52px, 8vw, 110px);
    line-height: 0.92;
    letter-spacing: -3px;
    color: var(--text);
    opacity: 0;
    animation: fadeUp 0.7s 0.35s forwards;
}
.hero-name .dim {
    color: var(--muted);
}
.hero-desc {
    margin-top: 36px;
    max-width: 520px;
    color: var(--sub);
    font-size: 14px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s forwards;
}
.hero-cta {
    margin-top: 48px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s 0.65s forwards;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 4px;
    font-family: var(--font-m);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--accent);
    color: #0a0a0a;
    font-weight: 500;
}
.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--sub);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    color: var(--text);
    border-color: var(--muted);
}

.hero-status {
    position: absolute;
    bottom: 48px;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--sub);
    letter-spacing: 0.08em;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(127, 255, 110, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(127, 255, 110, 0);
    }
}

/* ─── SECTION LABEL ─── */
.sec-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 56px;
}
.sec-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ─── ABOUT / SKILLS ─── */
#about {
    border-top: 1px solid var(--border);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.about-text h2 {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.15;
}
.about-text p {
    color: var(--sub);
    margin-bottom: 14px;
    line-height: 1.85;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
    transition:
        border-color 0.2s,
        transform 0.2s;
}
.skill-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}
.skill-icon {
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}

/* ─── EXPERIENCE ─── */
#experience {
    border-top: 1px solid var(--border);
}
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tl-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.tl-item:last-child {
    border-bottom: none;
}
.tl-date {
    font-size: 11px;
    color: var(--sub);
    letter-spacing: 0.08em;
    padding-top: 4px;
}
.tl-dot {
    position: absolute;
    left: 176px;
    top: 44px;
    width: 8px;
    height: 8px;
    background: var(--border);
    border-radius: 50%;
    border: 2px solid var(--bg);
}
.tl-content h3 {
    font-family: var(--font-h);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.tl-content .company {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.tl-content p {
    color: var(--sub);
    font-size: 13px;
    line-height: 1.75;
}

/* ─── EDUCATION ─── */
#education {
    border-top: 1px solid var(--border);
}

/* ─── CONTACT ─── */
#contact {
    border-top: 1px solid var(--border);
    max-width: 100%;
    padding-left: 60px;
    padding-right: 60px;
}
.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-left h2 {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 20px;
}
.contact-left h2 span {
    color: var(--accent);
}
.contact-left p {
    color: var(--sub);
    line-height: 1.8;
    max-width: 360px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}
.contact-link:hover {
    border-color: var(--accent);
    background: var(--bg3);
    transform: translateX(4px);
}
.contact-link .cl-icon {
    width: 38px;
    height: 38px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.contact-link:hover .cl-icon {
    border-color: var(--accent);
    color: var(--accent);
}
.cl-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cl-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sub);
}
.cl-val {
    font-size: 14px;
    color: var(--text);
}

/* ─── FOOTER ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--sub);
    font-size: 11px;
    letter-spacing: 0.08em;
}
footer span {
    color: var(--accent);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    nav {
        padding: 18px 24px;
    }
    .nav-links {
        display: none;
    }
    #hero,
    section,
    #contact,
    footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .tl-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .tl-dot {
        display: none;
    }
    .hero-status {
        right: 24px;
    }
}
