:root {
    --bg: #07111f;
    --bg-soft: #0b1727;
    --surface: #0f1d2f;
    --surface-2: #132338;
    --text: #f3f7fa;
    --muted: #9aabbb;
    --subtle: #708397;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #79e7c4;
    --accent-dark: #071c18;
    --max-width: 1180px;
    --heading: 'Space Grotesk', sans-serif;
    --body: 'DM Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
    animation: grid-drift 24s linear infinite;
    pointer-events: none;
}

main,
footer {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-dark);
    font-weight: 700;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
}

.page-glow {
    position: fixed;
    top: -25vw;
    right: -20vw;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(48, 200, 159, 0.1), transparent 66%);
    pointer-events: none;
    z-index: 0;
    animation: glow-drift 13s ease-in-out infinite alternate;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 20px 24px;
    transition: padding 0.25s ease;
    animation: header-enter 0.65s 0.05s both ease-out;
}

.site-header.scrolled {
    padding-top: 12px;
}

.nav-shell {
    width: min(100%, var(--max-width));
    min-height: 62px;
    margin: 0 auto;
    padding: 8px 10px 8px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(7, 17, 31, 0.82);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.nav-logo {
    font-family: var(--heading);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.8px;
    text-decoration: none;
}

.nav-logo span,
.contact-section em {
    color: var(--accent);
}

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

.nav-links a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links .nav-contact {
    padding-inline: 18px;
    background: var(--accent);
    color: var(--accent-dark);
}

.nav-links .nav-contact:hover,
.nav-links .nav-contact.active {
    background: #a0f4da;
    color: var(--accent-dark);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero,
.section,
.contact-section {
    width: min(calc(100% - 48px), var(--max-width));
    margin-inline: auto;
}

.hero {
    min-height: 100vh;
    padding: 150px 0 100px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.65fr);
    align-items: center;
    gap: clamp(48px, 8vw, 110px);
}

.eyebrow,
.section-kicker,
.panel-label,
.feature-label,
.project-type,
.education-year {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.eyebrow span,
.availability > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(121, 231, 196, 0.1);
}

.hero h1,
.section-heading h2,
.contact-section h2 {
    font-family: var(--heading);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(58px, 7.2vw, 96px);
}

.hero h1 em {
    color: transparent;
    font-style: normal;
    -webkit-text-stroke: 1.5px rgba(243, 247, 250, 0.48);
    background: linear-gradient(110deg, transparent 15%, rgba(121, 231, 196, 0.9) 48%, transparent 78%);
    background-size: 240% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: name-sheen 5.5s 1.4s ease-in-out infinite;
}

.hero-intro {
    margin-bottom: 4px;
    color: var(--muted);
    font-family: var(--heading);
    font-size: clamp(17px, 2vw, 23px);
    font-weight: 500;
}

.hero-statement {
    max-width: 720px;
    margin-top: 26px;
    color: var(--text);
    font-family: var(--heading);
    font-size: clamp(21px, 2.5vw, 30px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.hero-summary {
    max-width: 720px;
    margin-top: 18px;
    color: var(--muted);
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.65;
}

.hero-summary strong {
    color: var(--text);
    font-weight: 600;
}

.hero-actions {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 52px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button span {
    transition: transform 0.2s ease;
}

.button:hover span {
    transform: translate(3px, -3px);
}

.button-primary {
    background: var(--accent);
    color: var(--accent-dark);
}

.button-primary:hover {
    background: #a0f4da;
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
}

.button-secondary:hover {
    border-color: rgba(121, 231, 196, 0.45);
}

.hero-links {
    margin-top: 28px;
    display: flex;
    gap: 24px;
}

.hero-links a,
.contact-actions > a:not(.button) {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.hero-links a:hover,
.contact-actions > a:not(.button):hover {
    color: var(--accent);
}

.hero-panel {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(19, 35, 56, 0.92), rgba(11, 23, 39, 0.8));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: panel-enter 0.8s 0.55s both cubic-bezier(0.22, 1, 0.36, 1),
        panel-float 6s 1.5s ease-in-out infinite;
}

.panel-label {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.identity-mark {
    width: 82px;
    height: 82px;
    margin: 24px 0 4px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(121, 231, 196, 0.36);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(121, 231, 196, 0.18), rgba(121, 231, 196, 0.035));
    box-shadow: 0 0 0 8px rgba(121, 231, 196, 0.025);
    color: var(--accent);
    font-family: var(--heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.06em;
    animation: identity-pulse 3.8s ease-in-out infinite;
}

.metric {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metric strong {
    font-family: var(--heading);
    font-size: 28px;
    letter-spacing: -0.04em;
}

.metric span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-block: 1px solid var(--line);
}

.metric.compact + .metric.compact {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.metric.compact strong {
    color: var(--accent);
    font-size: clamp(18px, 2vw, 28px);
}

.availability {
    padding-top: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.availability > span {
    animation: status-pulse 2s ease-in-out infinite;
}

.section {
    padding: 120px 0;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(180px, 0.6fr) 1.4fr;
    align-items: start;
    gap: 40px;
    margin-bottom: 72px;
}

.section-heading h2 {
    max-width: 760px;
    font-size: clamp(44px, 6vw, 72px);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 110px);
}

.profile-lead {
    font-family: var(--heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.profile-copy {
    display: grid;
    gap: 20px;
    color: var(--muted);
    font-size: 17px;
}

.timeline {
    border-top: 1px solid var(--line);
}

.experience-card {
    padding: 44px 0;
    display: grid;
    grid-template-columns: minmax(190px, 0.6fr) 1.4fr;
    gap: 40px;
    border-bottom: 1px solid var(--line);
}

.experience-period {
    color: var(--text);
    font-weight: 600;
}

.experience-type {
    margin-top: 5px;
    color: var(--subtle);
    font-size: 14px;
}

.experience-company {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.experience-content h3,
.project-main h3,
.education-list h3,
.feature-card h3 {
    font-family: var(--heading);
    letter-spacing: -0.03em;
}

.experience-content h3 {
    margin: 4px 0 20px;
    font-size: 30px;
}

.experience-content ul {
    padding-left: 20px;
    color: var(--muted);
}

.experience-content li + li {
    margin-top: 10px;
}

.tags,
.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags {
    margin-top: 24px;
}

.tags span,
.stack-list span {
    padding: 7px 11px;
    border: 1px solid rgba(121, 231, 196, 0.16);
    border-radius: 8px;
    background: rgba(121, 231, 196, 0.06);
    color: #b9f5e2;
    font-size: 12px;
    font-weight: 600;
}

.stack-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stack-group {
    min-height: 180px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.018);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.stack-group:hover {
    transform: translateY(-4px);
    border-color: rgba(121, 231, 196, 0.32);
    background: rgba(121, 231, 196, 0.03);
}

.stack-group > p {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.projects-list {
    display: grid;
    gap: 16px;
}

.project-card {
    position: relative;
    padding: 32px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 250px;
    align-items: start;
    gap: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.018);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 -40%;
    width: 24%;
    background: linear-gradient(90deg, transparent, rgba(121, 231, 196, 0.075), transparent);
    transform: skewX(-14deg);
    transition: left 0.65s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(121, 231, 196, 0.35);
    background: rgba(121, 231, 196, 0.035);
}

.project-card:hover::after {
    left: 120%;
}

.project-index {
    color: var(--subtle);
    font-family: var(--heading);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.25s ease, transform 0.25s ease;
}

.project-card:hover .project-index {
    color: var(--accent);
    transform: translateX(4px);
}

.project-type {
    margin-bottom: 5px;
    font-size: 10px;
}

.project-main h3 {
    margin-bottom: 12px;
    font-size: 31px;
}

.project-main > p:last-child {
    max-width: 670px;
    color: var(--muted);
}

.project-card > .tags {
    justify-content: flex-end;
    margin-top: 0;
}

.education-list {
    border-top: 1px solid var(--line);
}

.education-list article {
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid var(--line);
}

.education-year {
    margin-bottom: 4px;
    font-size: 10px;
}

.education-list h3 {
    font-size: 22px;
}

.education-list article p:last-child {
    color: var(--muted);
}

.education-list strong {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 14px;
}

.recognition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-card {
    min-height: 290px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.feature-card:first-child {
    grid-row: span 2;
    min-height: 596px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(160deg, rgba(121, 231, 196, 0.11), var(--surface) 48%);
}

.feature-card h3 {
    margin: 18px 0 14px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.feature-card > p:last-child {
    color: var(--muted);
}

.contact-section {
    padding: 120px 0;
    border-top: 1px solid var(--line);
}

.contact-layout {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    align-items: end;
    gap: 70px;
}

.contact-section h2 {
    font-size: clamp(54px, 8vw, 96px);
}

.contact-section h2 em {
    font-style: normal;
}

.contact-section h2 + p {
    max-width: 560px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 18px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.contact-actions .button {
    width: 100%;
    margin-bottom: 8px;
}

footer {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 13px;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.projects-list .reveal:nth-child(2),
.recognition-grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.projects-list .reveal:nth-child(3),
.recognition-grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.projects-list .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.hero-copy > * {
    animation: hero-enter 0.7s both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-copy > :nth-child(1) { animation-delay: 0.18s; }
.hero-copy > :nth-child(2) { animation-delay: 0.26s; }
.hero-copy > :nth-child(3) { animation-delay: 0.34s; }
.hero-copy > :nth-child(4) { animation-delay: 0.42s; }
.hero-copy > :nth-child(5) { animation-delay: 0.5s; }
.hero-copy > :nth-child(6) { animation-delay: 0.58s; }
.hero-copy > :nth-child(7) { animation-delay: 0.66s; }

@keyframes header-enter {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-enter {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes panel-enter {
    from { opacity: 0; transform: translate(24px, 16px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

@keyframes panel-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@keyframes grid-drift {
    to { background-position: 64px 64px; }
}

@keyframes glow-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-7vw, 8vw, 0) scale(1.12); }
}

@keyframes name-sheen {
    0%, 62%, 100% { background-position: 180% 0; }
    82% { background-position: -40% 0; }
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 5px rgba(121, 231, 196, 0.1); }
    50% { opacity: 0.55; box-shadow: 0 0 0 9px rgba(121, 231, 196, 0); }
}

@keyframes identity-pulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(121, 231, 196, 0.025); }
    50% { box-shadow: 0 0 0 13px rgba(121, 231, 196, 0.01); }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 560px;
    }

    .project-card {
        grid-template-columns: 50px 1fr;
    }

    .project-card > .tags {
        grid-column: 2;
        justify-content: flex-start;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .contact-actions {
        max-width: 420px;
    }
}

@media (max-width: 700px) {
    .site-header {
        padding: 12px;
    }

    .nav-shell {
        min-height: 58px;
        padding-left: 18px;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: 78px;
        left: 12px;
        right: 12px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(7, 17, 31, 0.98);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links a {
        padding: 12px 14px;
    }

    .hero,
    .section,
    .contact-section,
    footer {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .hero {
        padding: 124px 0 78px;
        gap: 52px;
    }

    .hero h1 {
        font-size: clamp(48px, 14vw, 68px);
    }

    .section,
    .contact-section {
        padding: 80px 0;
    }

    .section-heading,
    .profile-grid,
    .experience-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-heading {
        margin-bottom: 48px;
    }

    .section-heading h2 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .experience-card {
        padding: 34px 0;
    }

    .stack-groups,
    .recognition-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:first-child {
        grid-row: auto;
        min-height: 360px;
    }

    .education-list article {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .hero-links {
        flex-wrap: wrap;
    }

    .hero-panel,
    .stack-group,
    .feature-card {
        padding: 22px;
        border-radius: 16px;
    }

    .project-card {
        padding: 24px 20px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card > .tags {
        grid-column: 1;
    }

    .contact-section h2 {
        font-size: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
