/* ── Variables ─────────────────────────────── */
        :root {
            --ink: #111827;
            --muted: #5b6474;
            --paper: #f7f2ea;
            --sand: #efe4d4;
            --copper: #c76b3a;
            --teal: #0f766e;
            --teal-light: #14b8a6;
            --teal-dark: #0b4f4a;
            --stone: #1f2937;
            --white: #ffffff;
            --radius-lg: 28px;
            --radius-md: 18px;
            --shadow-soft: 0 20px 60px rgba(17,24,39,.12);
            --shadow-card: 0 12px 24px rgba(17,24,39,.08);
            --ease-spring: cubic-bezier(.34,1.56,.64,1);
            --nav-height: 68px;
        }

        /* ── Reset ──────────────────────────────────── */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        a { color: inherit; text-decoration: none; }
        html { scroll-behavior: smooth; }

        /* ── Scroll progress bar ───────────────────── */
        #progress-bar {
            position: fixed;
            top: 0; left: 0;
            height: 3px;
            width: 0%;
            background: linear-gradient(90deg, var(--teal), var(--copper));
            z-index: 9999;
            transition: width .1s linear;
        }

        /* ── Body & background ─────────────────────── */
        body {
            font-family: "Space Grotesk", sans-serif;
            color: var(--ink);
            background: radial-gradient(circle at top right, #f3ebdd 0%, #f8f4ee 42%, #fbf9f5 100%);
            min-height: 100vh;
            line-height: 1.7;
            overflow-x: hidden;
        }

        body::before {
            content: "";
            position: fixed;
            inset: -20% -20% auto;
            height: 65vh;
            background: radial-gradient(circle at 20% 20%, rgba(15,118,110,.12), transparent 45%),
                        radial-gradient(circle at 75% 15%, rgba(199,107,58,.12), transparent 40%);
            filter: blur(10px);
            z-index: 0;
            pointer-events: none;
            animation: ambientDrift 14s ease-in-out infinite alternate;
        }

        @keyframes ambientDrift {
            0% {
                transform: translate3d(0, 0, 0) scale(1);
            }
            100% {
                transform: translate3d(0, 20px, 0) scale(1.05);
            }
        }

        /* Minimal background */
        .blobs {
            display: none;
        }

        /* ── Navigation ────────────────────────────── */
        .site-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--nav-height);
            background: rgba(251,249,245,.86);
            border-bottom: 1px solid rgba(17,24,39,.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 1200;
            transition: background .2s ease, box-shadow .2s ease;
            animation: navDrop .45s ease both;
        }

        .site-nav.is-scrolled {
            background: rgba(255,255,255,.95);
            box-shadow: 0 8px 24px rgba(17,24,39,.12);
        }

        .site-nav-inner {
            max-width: 1100px;
            margin: 0 auto;
            height: 100%;
            padding: 0 20px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .brand {
            font-family: "DM Serif Display", serif;
            font-size: 1.22rem;
            color: var(--stone);
            letter-spacing: .02em;
            white-space: nowrap;
            transition: color .2s ease;
        }

        .brand:hover {
            color: var(--teal-dark);
        }

        .nav-links {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 2px;
        }

        .nav-links a {
            position: relative;
            padding: 10px 12px;
            border-radius: 10px;
            font-weight: 600;
            font-size: .92rem;
            color: var(--muted);
            transition: color .2s ease, background .2s ease;
            opacity: 1;
            transform: translateY(0);
            animation: navItemIn .35s ease forwards;
        }

        .nav-links a:nth-child(1) { animation-delay: .08s; }
        .nav-links a:nth-child(2) { animation-delay: .12s; }
        .nav-links a:nth-child(3) { animation-delay: .16s; }
        .nav-links a:nth-child(4) { animation-delay: .2s; }
        .nav-links a:nth-child(5) { animation-delay: .24s; }
        .nav-links a:nth-child(6) { animation-delay: .28s; }

        @keyframes navItemIn {
            from {
                opacity: 0;
                transform: translateY(-6px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: 6px;
            height: 2px;
            border-radius: 2px;
            background: var(--teal);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform .2s ease;
        }

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

        .nav-links a:hover::after,
        .nav-links a.active::after {
            transform: scaleX(1);
        }

        .nav-links a.active {
            color: var(--teal-dark);
            background: rgba(15,118,110,.08);
        }

        .nav-toggle {
            display: none;
            width: 42px;
            height: 42px;
            margin-left: auto;
            border: 1px solid rgba(17,24,39,.14);
            border-radius: 12px;
            background: rgba(255,255,255,.7);
            color: var(--stone);
            cursor: pointer;
            align-items: center;
            justify-items: center;
            gap: 5px;
            padding: 8px;
        }

        .nav-toggle span {
            display: block;
            width: 18px;
            height: 2px;
            background: currentColor;
            border-radius: 2px;
            transition: transform .2s ease, opacity .2s ease;
        }

        .site-nav.open .nav-toggle span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .site-nav.open .nav-toggle span:nth-child(2) {
            opacity: 0;
        }

        .site-nav.open .nav-toggle span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        @keyframes navDrop {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ── Page wrapper ──────────────────────────── */
        .page {
            max-width: 1100px;
            margin: 0 auto;
            padding: calc(var(--nav-height) + 24px) 20px 90px;
            position: relative;
            z-index: 1;
        }

        /* ── Scroll-reveal base ────────────────────── */
        .reveal {
            opacity: 0;
            transform: translate3d(0, 34px, 0) scale(.985);
            transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1);
        }
        .reveal.visible {
            opacity: 1;
            transform: translate3d(0, 0, 0) scale(1);
        }

        /* stagger helper applied via JS */
        .reveal-delay-1 { transition-delay: .1s; }
        .reveal-delay-2 { transition-delay: .2s; }
        .reveal-delay-3 { transition-delay: .3s; }
        .reveal-delay-4 { transition-delay: .4s; }
        .reveal-delay-5 { transition-delay: .5s; }

        .animate-on-scroll {
            opacity: 0;
            transform: translateY(18px) scale(.98);
            transition: opacity .55s ease, transform .55s var(--ease-spring);
            transition-delay: calc(var(--stagger, 0) * 45ms);
        }

        .animate-on-scroll.animated-in {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        /* ── Header ────────────────────────────────── */
        header {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 24px;
            align-items: center;
            padding: 52px 44px;
            background: var(--white);
            border-radius: var(--radius-lg);
            box-shadow: 0 18px 40px rgba(17,24,39,.08);
            border: 1px solid rgba(17,24,39,.06);
            position: relative;
            overflow: hidden;
        }

        .hero-intro {
            display: grid;
            align-items: start;
            gap: 10px;
            animation: heroLift .55s ease both;
        }

        .eyebrow {
            font-size: .78rem;
            font-weight: 700;
            letter-spacing: .11em;
            text-transform: uppercase;
            color: var(--teal-dark);
        }

        /* ── Headline ──────────────────────────────── */
        .headline {
            font-family: "DM Serif Display", serif;
            font-size: clamp(2.2rem, 5.6vw, 3.8rem);
            color: var(--stone);
            line-height: 1.08;
            letter-spacing: .01em;
        }

        .typing-headline {
            display: inline-flex;
            align-items: baseline;
            min-height: 1.1em;
        }

        .typing-text {
            white-space: nowrap;
        }

        .typing-headline::after {
            content: "";
            width: 2px;
            height: .92em;
            margin-left: 8px;
            border-radius: 2px;
            background: var(--copper);
            opacity: 0;
            transform: translateY(2px);
        }

        .typing-headline.is-typing::after,
        .typing-headline.typed::after {
            opacity: 1;
            animation: blinkCaret .75s step-end infinite;
        }

        @keyframes blinkCaret {
            0%, 45% { opacity: 1; }
            46%, 100% { opacity: 0; }
        }

        .tagline {
            margin-top: 6px;
            max-width: 54ch;
            font-size: clamp(.95rem, 2.1vw, 1.18rem);
            color: var(--muted);
        }
        .hero-actions {
            margin-top: 16px;
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
        }

        /* ── Buttons ───────────────────────────────── */
        .btn {
            padding: 12px 26px;
            border-radius: 999px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: transform .2s ease, box-shadow .2s ease;
            position: relative;
            overflow: hidden;
            will-change: transform;
        }
        .btn::after {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(255,255,255,.18);
            opacity: 0;
            transition: opacity .2s;
        }
        .btn:hover::after { opacity: 1; }
        .btn-primary {
            background: var(--teal);
            color: var(--white);
            box-shadow: 0 8px 16px rgba(15,118,110,.24);
            animation: btnGlow 3s ease-in-out infinite;
        }
        .btn-secondary {
            background: var(--sand);
            color: var(--stone);
            border: 1px solid rgba(17,24,39,.1);
        }
        .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 24px rgba(17,24,39,.14);
        }
        .btn:active { transform: translateY(0) scale(.98); }

        @keyframes btnGlow {
            0%, 100% { box-shadow: 0 8px 16px rgba(15,118,110,.24); }
            50% { box-shadow: 0 10px 22px rgba(15,118,110,.32); }
        }

        /* ── Hero highlight card ───────────────────── */
        .hero-card {
            background: #fcfaf7;
            border-radius: var(--radius-md);
            padding: 24px;
            border: 1px solid rgba(17,24,39,.1);
            border-left: 4px solid var(--teal);
            box-shadow: 0 10px 22px rgba(17,24,39,.06);
            will-change: transform;
            animation: heroLift .6s ease .16s both;
        }

        .hero-card-animated {
            animation: heroLift .6s ease .16s both, cardFloat 6s ease-in-out 1s infinite;
        }

        @keyframes heroLift {
            from {
                opacity: 0;
                transform: translateY(16px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes cardFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        .hero-card h3 { font-size: 1.15rem; color: var(--copper); margin-bottom: 14px; }
        .hero-card ul { list-style: none; display: grid; gap: 8px; }
        .hero-card li {
            display: flex; align-items: center; gap: 10px;
            color: var(--stone); font-weight: 500; font-size: .95rem;
        }
        .hero-card i { color: var(--teal); }

        /* ── Main grid ─────────────────────────────── */
        main { margin-top: 48px; display: grid; gap: 28px; }

        /* ── Sections ──────────────────────────────── */
        section {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 32px 36px;
            box-shadow: 0 8px 20px rgba(17,24,39,.06);
            border: 1px solid rgba(17,24,39,.05);
            transition: box-shadow .3s ease, transform .3s ease;
            position: relative;
            overflow: hidden;
        }
        section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, rgba(20,184,166,.9), rgba(199,107,58,.9), rgba(15,118,110,.9));
            background-size: 220% 100%;
            opacity: .35;
            transform: scaleX(.22);
            transform-origin: left;
            transition: transform .35s ease, opacity .35s ease;
        }
        section:hover {
            box-shadow: 0 12px 24px rgba(17,24,39,.08);
            transform: translateY(-2px);
        }
        section:hover::before {
            opacity: .95;
            transform: scaleX(1);
            animation: sectionSweep 2.4s linear infinite;
        }

        @keyframes sectionSweep {
            from { background-position: 0 0; }
            to { background-position: 220% 0; }
        }
        section h2 {
            font-family: "DM Serif Display", serif;
            font-size: clamp(1.6rem, 3vw, 2.1rem);
            color: var(--teal-dark);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        section h2::after {
            content: "";
            flex: 1;
            height: 2px;
            background: linear-gradient(90deg, var(--teal-light), transparent);
            border-radius: 2px;
        }

        section h2 i {
            animation: iconPulse 2.8s ease-in-out infinite;
            transform-origin: center;
        }

        @keyframes iconPulse {
            0%, 100% { transform: translateY(0) scale(1); }
            50% { transform: translateY(-2px) scale(1.08); }
        }

        /* ── Skills section ────────────────────────── */
        .skill-categories { display: grid; gap: 22px; }

        .skill-group-title {
            font-size: .75rem;
            font-weight: 700;
            letter-spacing: .1em;
            text-transform: uppercase;
            color: var(--copper);
            margin-bottom: 10px;
        }

        .pill-list { display: flex; flex-wrap: wrap; gap: 10px; }

        .pill {
            padding: 7px 16px;
            background: var(--paper);
            border-radius: 999px;
            border: 1px solid rgba(17,24,39,.08);
            font-weight: 500;
            font-size: .88rem;
            cursor: default;
            transition: background .2s ease, color .2s ease, transform .2s var(--ease-spring), box-shadow .2s ease;
            opacity: 0;
            transform: scale(.8);
        }
        .pill.popped {
            opacity: 1;
            transform: scale(1);
            transition: background .2s ease, color .2s ease,
                        transform .2s var(--ease-spring),
                        box-shadow .2s ease,
                        opacity .35s ease,
                        transform .35s var(--ease-spring);
        }
        .pill:hover {
            background: var(--teal);
            color: var(--white);
            transform: scale(1.08) translateY(-2px);
            box-shadow: 0 8px 20px rgba(15,118,110,.3);
            border-color: transparent;
        }

        /* ── Grid two ──────────────────────────────── */
        .grid-two {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 18px;
        }

        /* ── Info cards ────────────────────────────── */
        .info-card {
            padding: 20px;
            border-radius: var(--radius-md);
            background: #f9f7f3;
            border: 1px solid rgba(17,24,39,.08);
            transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
            will-change: transform;
        }
        .info-card:hover {
            background: #fff;
            box-shadow: 0 8px 24px rgba(17,24,39,.1);
            transform: translateY(-2px);
        }
        .info-card strong { display: block; margin-bottom: 6px; color: var(--stone); }

        /* ── List ──────────────────────────────────── */
        .list { list-style: none; display: grid; gap: 10px; }
        .list li {
            padding-left: 22px;
            position: relative;
            color: var(--muted);
            transition: color .2s ease, transform .2s ease;
        }
        .list li::before { content: "▸"; position: absolute; left: 0; color: var(--copper); }
        .list li:hover { color: var(--teal-dark); }

        /* ── PDF frame ─────────────────────────────── */
        .pdf-frame {
            margin-top: 16px;
            border-radius: var(--radius-md);
            overflow: hidden;
            border: 1px solid rgba(17,24,39,.1);
            height: min(70vh, 720px);
        }
        .pdf-frame iframe,
        .pdf-frame object {
            width: 100%;
            height: 100%;
            border: 0;
            display: block;
        }

        .pdf-fallback {
            padding: 18px;
            color: var(--muted);
        }

        .pdf-fallback a {
            color: var(--teal-dark);
            text-decoration: underline;
        }

        /* ── Contact ───────────────────────────────── */
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
        }
        .contact-item {
            padding: 22px;
            border-radius: var(--radius-md);
            background: #f7f2ea;
            border: 1px solid rgba(17,24,39,.08);
            display: grid;
            gap: 6px;
            transition: background .25s ease, box-shadow .25s ease, transform .25s var(--ease-spring);
            will-change: transform;
        }
        .contact-item:hover {
            background: var(--white);
            box-shadow: 0 10px 24px rgba(15,118,110,.12);
        }
        .contact-item i { color: var(--teal); font-size: 1.4rem; transition: transform .3s var(--ease-spring); }
        .contact-item:hover i { transform: scale(1.08); }

        .platform-links {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 14px;
        }

        .platform-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
            border-radius: var(--radius-md);
            background: #f7f2ea;
            border: 1px solid rgba(17,24,39,.08);
            transition: background .25s ease, box-shadow .25s ease, transform .25s var(--ease-spring), border-color .25s ease;
            will-change: transform;
        }

        .platform-link i {
            color: var(--teal);
            font-size: 1.5rem;
            min-width: 24px;
            text-align: center;
        }

        .platform-link span {
            display: grid;
            gap: 3px;
            line-height: 1.25;
        }

        .platform-link strong {
            color: var(--stone);
            font-size: .96rem;
        }

        .platform-link small {
            color: var(--muted);
            font-size: .82rem;
        }

        .platform-link:hover {
            background: var(--white);
            border-color: rgba(15,118,110,.28);
            box-shadow: 0 10px 24px rgba(15,118,110,.12);
            transform: translateY(-2px);
        }

        .platform-link[href*="github.com"]:hover i { color: #171515; }
        .platform-link[href*="linkedin.com"]:hover i { color: #0a66c2; }
        .platform-link[href*="x.com"]:hover i { color: #111827; }
        .platform-link[href*="instagram.com"]:hover i { color: #e1306c; }
        .platform-link[href*="researchgate.net"]:hover i { color: #00ccbb; }

        /* ── Footer ────────────────────────────────── */
        footer { margin-top: 48px; text-align: center; color: var(--muted); }

        .socials { margin-top: 14px; display: flex; justify-content: center; gap: 14px; }
        .socials a {
            width: 46px; height: 46px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--teal);
            color: var(--white);
            font-size: 1.1rem;
            transition: transform .25s var(--ease-spring), box-shadow .25s ease, background .2s ease;
            will-change: transform;
        }
        .socials a:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(15,118,110,.24);
            background: var(--teal-dark);
        }

        .socials a {
            animation: socialFloat 4.2s ease-in-out infinite;
        }

        .socials a:nth-child(2) { animation-delay: .2s; }
        .socials a:nth-child(3) { animation-delay: .4s; }
        .socials a:nth-child(4) { animation-delay: .6s; }
        .socials a:nth-child(5) { animation-delay: .8s; }

        @keyframes socialFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-3px); }
        }

        /* ── Floating back-to-top ──────────────────── */
        #top-btn {
            position: fixed;
            bottom: 28px; right: 28px;
            width: 48px; height: 48px;
            border-radius: 50%;
            background: var(--teal);
            color: var(--white);
            border: none;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem;
            box-shadow: 0 8px 24px rgba(15,118,110,.4);
            opacity: 0;
            transform: translateY(20px);
            transition: opacity .3s ease, transform .3s ease, background .2s ease;
            z-index: 999;
        }
        #top-btn.show { opacity: 1; transform: translateY(0); }
        #top-btn:hover { background: var(--teal-dark); transform: translateY(-3px); }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: .001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .001ms !important;
            }

            .blobs {
                display: none;
            }

            .hero-card-animated,
            .btn-primary,
            .hero-intro,
            .hero-card,
            .site-nav,
            .nav-links a,
            section h2 i,
            .socials a,
            body::before {
                animation: none !important;
            }

            .animate-on-scroll {
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
            }

            .reveal {
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
            }

            .typing-headline::after {
                animation: none !important;
                opacity: 0 !important;
            }

            .nav-links a {
                opacity: 1 !important;
                transform: none !important;
            }
        }

        /* ── Responsive ────────────────────────────── */
        @media (max-width: 900px) {
            .site-nav-inner {
                padding: 0 14px;
            }

            .nav-toggle {
                display: grid;
            }

            .nav-links {
                position: fixed;
                top: var(--nav-height);
                left: 0;
                right: 0;
                display: grid;
                gap: 2px;
                padding: 10px 14px 14px;
                background: rgba(255,255,255,.98);
                border-bottom: 1px solid rgba(17,24,39,.1);
                box-shadow: 0 10px 20px rgba(17,24,39,.08);
                opacity: 0;
                transform: translateY(-110%);
                pointer-events: none;
                transition: opacity .22s ease, transform .22s ease;
            }

            .site-nav.open .nav-links {
                opacity: 1;
                transform: translateY(0);
                pointer-events: auto;
            }

            .nav-links a {
                text-align: left;
                padding: 12px 12px;
                border-radius: 10px;
                opacity: 1;
                transform: none;
                animation: none;
            }

            .nav-links a::after {
                left: 12px;
                right: 12px;
                bottom: 8px;
            }
        }

        @media (max-width: 720px) {
            .page {
                padding-top: calc(var(--nav-height) + 18px);
            }

            header { padding: 34px 22px; grid-template-columns: 1fr; }
            section { padding: 24px 20px; }
            .hero-actions { flex-direction: column; align-items: flex-start; }

            .typing-text {
                white-space: normal;
            }

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

            #top-btn {
                right: 18px;
                bottom: 22px;
            }
        }

        /* ════════════════════════════════════════════════════════════
           ── ANIMATION ENHANCEMENTS ───────────────────────────────
           ════════════════════════════════════════════════════════════ */

        /* ── Hero intro: cancel group animation, reveal immediately ── */
        .hero-intro {
            animation: none;
            opacity: 1;
            transform: none;
        }

        /* Eyebrow and headline animate in individually */
        .eyebrow {
            opacity: 0;
            animation: fadeSlideUp 0.7s cubic-bezier(.22,1,.36,1) 0.2s both;
        }

        .typing-headline {
            opacity: 0;
            animation: fadeSlideUp 0.75s cubic-bezier(.22,1,.36,1) 0.45s both;
        }

        /* Tagline & hero-actions: revealed from JS after typing completes */
        .tagline {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.7s cubic-bezier(.22,1,.36,1),
                        transform 0.7s cubic-bezier(.22,1,.36,1);
        }
        .tagline.hero-revealed {
            opacity: 1;
            transform: translateY(0);
        }

        .hero-actions {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.65s cubic-bezier(.22,1,.36,1) 0.13s,
                        transform 0.65s cubic-bezier(.22,1,.36,1) 0.13s;
        }
        .hero-actions.hero-revealed {
            opacity: 1;
            transform: translateY(0);
        }

        /* ── Gradient shimmer on typed name (safe cross-browser) ── */
        .typing-text {
            display: inline;
        }

        @supports (-webkit-background-clip: text) or (background-clip: text) {
            .typing-text {
                background: linear-gradient(
                    110deg,
                    var(--stone) 0%,
                    var(--teal-dark) 35%,
                    var(--copper) 60%,
                    var(--stone) 100%
                );
                background-size: 260% auto;
                -webkit-background-clip: text;
                background-clip: text;
                -webkit-text-fill-color: transparent;
                animation: nameShimmer 5.5s linear 2s infinite;
            }
        }

        @keyframes fadeSlideUp {
            from { opacity: 0; transform: translateY(28px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0)    scale(1);    }
        }

        @keyframes nameShimmer {
            0%   { background-position: 0%   center; }
            100% { background-position: 260% center; }
        }
        /* ── Particle canvas inside header ── */
        #hero-canvas {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            border-radius: inherit;
            opacity: 0.55;
        }

        /* Keep hero content above canvas/orbs */
        header .hero-intro,
        header .hero-card {
            position: relative;
            z-index: 1;
        }

        /* ── Floating ambient orbs ── */
        .hero-orb {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            z-index: 0;
            filter: blur(52px);
        }

        .hero-orb-1 {
            width: 230px;
            height: 230px;
            background: radial-gradient(circle, rgba(15,118,110,0.24), transparent 70%);
            top: -70px;
            right: 50px;
            animation: orbFloat1 9s ease-in-out infinite;
        }

        .hero-orb-2 {
            width: 170px;
            height: 170px;
            background: radial-gradient(circle, rgba(199,107,58,0.22), transparent 70%);
            bottom: -40px;
            left: 8%;
            animation: orbFloat2 11s ease-in-out 1.2s infinite;
        }

        @keyframes orbFloat1 {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33%       { transform: translate(-20px, 14px) scale(1.07); }
            66%       { transform: translate(14px, -10px) scale(0.93); }
        }

        @keyframes orbFloat2 {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50%       { transform: translate(16px, -20px) scale(1.1); }
        }

        /* ── Cursor glow (desktop only, JS-driven) ── */
        .cursor-glow {
            position: fixed;
            width: 400px;
            height: 400px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(15,118,110,0.075) 0%, transparent 70%);
            pointer-events: none;
            z-index: 9997;
            transform: translate(-50%, -50%);
            mix-blend-mode: multiply;
            will-change: left, top;
        }

        /* ── Scroll indicator ── */
        .scroll-indicator {
            position: absolute;
            bottom: 18px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            opacity: 0;
            animation: fadeSlideUp 0.6s ease 3s forwards;
            z-index: 2;
            cursor: pointer;
            color: var(--muted);
            font-size: 0.7rem;
            letter-spacing: 0.09em;
            text-transform: uppercase;
            font-weight: 700;
            transition: opacity 0.3s ease;
        }

        .scroll-indicator i {
            animation: scrollBounce 1.6s ease-in-out infinite;
            color: var(--teal);
            font-size: 0.85rem;
        }

        @keyframes scrollBounce {
            0%, 100% { transform: translateY(0); opacity: 0.65; }
            50%       { transform: translateY(7px); opacity: 1; }
        }

        /* ── Info card: springy hover ── */
        .info-card {
            transition: background .25s ease, box-shadow .4s ease,
                        transform .4s cubic-bezier(.34,1.56,.64,1) !important;
        }

        .info-card:hover {
            transform: translateY(-6px) scale(1.02) !important;
            box-shadow: 0 20px 44px rgba(17,24,39,.13) !important;
        }

        /* ── Platform link icon bounce ── */
        .platform-link i {
            transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), color 0.25s ease;
        }

        .platform-link:hover i {
            transform: scale(1.28) rotate(-8deg);
        }

        /* ── Achievement cards ambient glow ── */
        #achievements .info-card:first-child {
            animation: warmGlow 3.5s ease-in-out infinite;
        }

        #achievements .info-card:last-child {
            animation: coolGlow 3.5s ease-in-out 0.9s infinite;
        }

        @keyframes warmGlow {
            0%, 100% { box-shadow: 0 4px 14px rgba(199,107,58,0.08); }
            50%       { box-shadow: 0 10px 30px rgba(199,107,58,0.24); }
        }

        @keyframes coolGlow {
            0%, 100% { box-shadow: 0 4px 14px rgba(15,118,110,0.08); }
            50%       { box-shadow: 0 10px 30px rgba(15,118,110,0.24); }
        }

        /* ── Hero card 3D tilt (JS-driven) ── */
        .hero-card {
            transition: transform 0.18s ease !important;
            will-change: transform;
        }

        /* ── Nav underline spring ── */
        .nav-links a::after {
            transition: transform .28s cubic-bezier(.34,1.56,.64,1) !important;
        }

        /* ── Contact item icon bounce ── */
        .contact-item i {
            transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), color 0.2s ease;
        }
        .contact-item:hover i {
            transform: scale(1.18) translateY(-2px);
        }

        /* ── Social icon entrance cascade ── */
        .socials a {
            will-change: transform;
        }

        /* ── Progress bar gradient animation ── */
        #progress-bar {
            background: linear-gradient(90deg, var(--teal), var(--copper), var(--teal));
            background-size: 200% 100%;
            animation: progressGradient 2s linear infinite;
        }

        @keyframes progressGradient {
            0%   { background-position: 0% 0%; }
            100% { background-position: 200% 0%; }
        }

        /* ── Pill hover: extra spring ── */
        .pill:hover {
            transform: scale(1.1) translateY(-3px) !important;
        }

        /* ── Section h2 icon animation ── */
        section:hover h2 i {
            animation: iconBounce 0.5s cubic-bezier(.34,1.56,.64,1) forwards;
        }

        @keyframes iconBounce {
            0%   { transform: translateY(0) scale(1); }
            50%  { transform: translateY(-4px) scale(1.15); }
            100% { transform: translateY(0) scale(1.05); }
        }

        /* ── Click ripple on buttons ── */
        .ripple-wave {
            position: absolute;
            border-radius: 50%;
            background: rgba(255,255,255,0.35);
            transform: scale(0);
            animation: rippleAnim 0.65s linear forwards;
            pointer-events: none;
        }

        @keyframes rippleAnim {
            to { transform: scale(4); opacity: 0; }
        }

        /* ── 3D card tilt transition ── */
        .info-card,
        .contact-item,
        .platform-link {
            transition: background .25s ease, box-shadow .4s ease,
                        transform .25s cubic-bezier(.34,1.56,.64,1) !important;
        }

        /* ── Section side-nav dots ── */
        .section-dots {
            position: fixed;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 1100;
        }

        .section-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(15,118,110,0.18);
            border: 2px solid rgba(15,118,110,0.35);
            cursor: pointer;
            transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
            position: relative;
            padding: 0;
        }

        .section-dot::before {
            content: attr(data-label);
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%) translateX(6px);
            background: var(--stone);
            color: var(--white);
            font-size: 0.68rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            padding: 3px 8px;
            border-radius: 20px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
            font-family: "Space Grotesk", sans-serif;
        }

        .section-dot:hover::before {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }

        .section-dot.active {
            background: var(--teal);
            border-color: var(--teal);
            transform: scale(1.5);
            box-shadow: 0 0 0 4px rgba(15,118,110,0.18);
        }

        .section-dot:hover:not(.active) {
            background: var(--teal-light);
            border-color: var(--teal-light);
            transform: scale(1.25);
        }

        @media (max-width: 900px) {
            .section-dots { display: none; }
        }

        /* ── Hero header glow pulse ── */
        header {
            animation: headerGlow 7s ease-in-out infinite;
        }

        @keyframes headerGlow {
            0%, 100% { box-shadow: 0 18px 40px rgba(17,24,39,.08); }
            50%       { box-shadow: 0 18px 50px rgba(15,118,110,.11), 0 0 0 1px rgba(20,184,166,.14); }
        }

        /* ── Back-to-top icon spin on hover ── */
        #top-btn:hover i {
            animation: spinUp 0.4s cubic-bezier(.34,1.56,.64,1) forwards;
        }

        @keyframes spinUp {
            0%   { transform: rotate(0deg) scale(1); }
            50%  { transform: rotate(-20deg) scale(1.25); }
            100% { transform: rotate(0deg) scale(1.15); }
        }

        /* ── prefers-reduced-motion: disable all new animations ── */
        @media (prefers-reduced-motion: reduce) {
            .eyebrow,
            .typing-headline,
            .typing-text,
            .hero-orb,
            .scroll-indicator,
            #progress-bar {
                animation: none !important;
                opacity: 1 !important;
                transform: none !important;
                -webkit-text-fill-color: unset !important;
                color: var(--stone) !important;
                background: none !important;
            }

            .tagline,
            .hero-actions {
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
            }

            .hero-card {
                transition: none !important;
            }

            .cursor-glow { display: none !important; }

            .info-card {
                transition: background .2s ease, box-shadow .2s ease !important;
            }
            .info-card:hover {
                transform: translateY(-2px) !important;
            }

            #achievements .info-card:first-child,
            #achievements .info-card:last-child {
                animation: none !important;
            }
        }