/* ==========================================================================
   POLISH LAYER — final pass: aurora hero, noise grain, serif accents,
   magnetic CTAs, card tilt, custom cursor. Loaded LAST.
   ========================================================================== */

:root {
    --font-serif: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
    --grain-opacity: 0.06;
}

/* --------------------------------------------------------------------------
   00. SAFETY NET — content must be visible even if JS fails
   -------------------------------------------------------------------------- */
/* If reveal observer never flips .is-visible within 1.5s, show everything */
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
.reveal { animation: reveal-failsafe 0.01s linear 1.5s forwards; }
.reveal.is-visible { animation: none; opacity: 1; transform: none; }
/* Belt-and-suspenders: if JS removed entirely (noscript / blocked) */
.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------------------
   0. LAYOUT GUARDS — kill horizontal overflow + consistent gutters
   -------------------------------------------------------------------------- */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}
*, *::before, *::after { box-sizing: border-box; }

/* Every section snaps to the same gutter system */
section,
.section,
.hero,
.tech-marquee,
.expertise-pillars-section,
.about-section,
.education-section,
.work-experience-section,
.projects-section,
.skills-section,
.contact-section,
footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

/* Unify inner container padding so nothing kisses the viewport edge */
.container,
.nav-container,
.hero-content-container,
.section-content,
.section-header,
.about-content,
.education-grid,
.experience-grid,
.timeline,
.projects-grid,
.skills-grid,
.contact-content,
.footer-content,
.expertise-grid {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
}

/* Hero content shouldn't double-pad */
.hero-content-container {
    padding-top: clamp(96px, 12vh, 132px);
    padding-bottom: clamp(64px, 10vh, 110px);
}

/* Section dot nav out of the safe zone */
.section-dots {
    right: clamp(16px, 2.5vw, 32px) !important;
}

/* Img / svg / video never overflow their container */
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
.flip-card, .hero-image-wrapper { max-width: 100%; }

/* --------------------------------------------------------------------------
   1. CURSOR BLOB (desktop only)
   -------------------------------------------------------------------------- */
.cursor-blob {
    position: fixed;
    top: 0; left: 0;
    width: 360px; height: 360px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate3d(-9999px, -9999px, 0);
    background: radial-gradient(circle at center,
        rgba(99, 102, 241, 0.18) 0%,
        rgba(6, 182, 212, 0.10) 40%,
        transparent 70%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.5s var(--ease, ease);
    mix-blend-mode: screen;
    will-change: transform;
}
.cursor-blob.is-active { opacity: 1; }

@media (max-width: 900px) { .cursor-blob { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-blob { display: none; } }

/* --------------------------------------------------------------------------
   2. HERO — AURORA BLOBS + NOISE
   -------------------------------------------------------------------------- */
.hero {
    background:
        radial-gradient(1200px 800px at 80% 10%, rgba(79, 70, 229, 0.18), transparent 60%),
        radial-gradient(900px 700px at 10% 90%, rgba(6, 182, 212, 0.14), transparent 60%),
        linear-gradient(180deg, #05060A 0%, #0A0B12 50%, #07080D 100%) !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-background { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    mix-blend-mode: screen;
    will-change: transform;
}
.hero-aurora--a {
    width: 520px; height: 520px;
    top: -120px; left: -80px;
    background: radial-gradient(circle, #6366F1 0%, #4F46E5 35%, transparent 70%);
    animation: aurora-drift-a 22s ease-in-out infinite alternate;
}
.hero-aurora--b {
    width: 600px; height: 600px;
    bottom: -160px; right: -120px;
    background: radial-gradient(circle, #06B6D4 0%, #0891B2 40%, transparent 70%);
    animation: aurora-drift-b 28s ease-in-out infinite alternate;
}
.hero-aurora--c {
    width: 420px; height: 420px;
    top: 30%; left: 40%;
    background: radial-gradient(circle, #A855F7 0%, transparent 70%);
    opacity: 0.30;
    animation: aurora-drift-c 32s ease-in-out infinite alternate;
}

@keyframes aurora-drift-a {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(180px, 120px) scale(1.15); }
}
@keyframes aurora-drift-b {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-160px, -100px) scale(1.1); }
}
@keyframes aurora-drift-c {
    0%   { transform: translate(0, 0) scale(0.9); opacity: 0.18; }
    100% { transform: translate(-120px, 80px) scale(1.2); opacity: 0.32; }
}

/* SVG noise grain — pure CSS, no asset needed */
.hero-noise {
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: var(--grain-opacity);
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
}

/* Grain on the page body too, very subtle */
body::after {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: reduce) {
    .hero-aurora { animation: none !important; }
}

/* --------------------------------------------------------------------------
   3. HERO TYPOGRAPHY — display serif emphasis
   -------------------------------------------------------------------------- */
.hero-eyebrow {
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.55) !important;
    margin: 1.25rem 0 0.5rem !important;
    display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0;
    text-transform: none;
}
.hero-eyebrow span {
    color: rgba(255,255,255,0.4);
}

.hero-title {
    font-family: var(--font-sans) !important;
    font-size: clamp(3.2rem, 9vw, 6.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em !important;
    color: #FFFFFF !important;
    margin: 0.5rem 0 1rem !important;
    padding-bottom: 0.18em;
}
.hero-title .serif-em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-variation-settings: "SOFT" 60, "opsz" 144;
    background: linear-gradient(180deg, #E0E7FF 0%, #A5B4FC 50%, #67E8F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.035em;
    padding-right: 0.08em;
    padding-bottom: 0.12em;
    display: inline-block;
    line-height: 1.15;
}

.hero-subtitle {
    font-family: var(--font-mono) !important;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem) !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.78) !important;
    letter-spacing: 0 !important;
}
.hero-description {
    color: rgba(255,255,255,0.62) !important;
    max-width: 560px;
    font-size: 1.06rem !important;
    line-height: 1.7 !important;
}

/* Status pill — refined */
.hero-status {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.85rem !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    color: rgba(255,255,255,0.8) !important;
    letter-spacing: 0.04em !important;
    text-transform: none !important;
}
.hero-status .status-dot {
    width: 6px; height: 6px;
    background: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
    animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
    50%      { box-shadow: 0 0 0 8px rgba(34,197,94,0.0); }
}

/* --------------------------------------------------------------------------
   4. PREMIUM CTAs (magnetic + shimmer)
   -------------------------------------------------------------------------- */
.hero-cta { margin-top: 2.25rem !important; gap: 0.75rem !important; }

.btn {
    position: relative;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.4s var(--ease, ease), box-shadow 0.4s var(--ease, ease), background 0.3s ease, color 0.3s ease !important;
}

.btn-primary {
    background: #FFFFFF !important;
    color: #0A0A0F !important;
    border: 1px solid rgba(255,255,255,0.85) !important;
    padding: 0.95rem 1.6rem !important;
    border-radius: 999px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(99,102,241,0.18);
}
.btn-primary::after {
    content: "\2192";
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s var(--ease, ease);
}
.btn-primary:hover {
    background: #F4F4F7 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 16px 48px rgba(99,102,241,0.28);
}
.btn-primary:hover::after { transform: translateX(4px); }

.btn-secondary {
    background: rgba(255,255,255,0.05) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    padding: 0.95rem 1.6rem !important;
    border-radius: 999px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(255,255,255,0.32) !important;
}

/* Shimmer on primary */
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(99,102,241,0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s var(--ease, ease);
    pointer-events: none;
}
.btn-primary:hover::before { transform: translateX(100%); }

/* --------------------------------------------------------------------------
   5. SOCIAL ICONS in hero — minimal outlined
   -------------------------------------------------------------------------- */
.hero-social {
    margin-top: 2.5rem !important;
    gap: 0.5rem !important;
}
.hero-social .social-link {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.7) !important;
    border-radius: 50% !important;
    transition: all 0.3s var(--ease, ease) !important;
}
.hero-social .social-link:hover {
    background: rgba(255,255,255,0.10) !important;
    border-color: rgba(255,255,255,0.30) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. HERO LOGO — SDP monogram (HTML/CSS, flex-centered)
   -------------------------------------------------------------------------- */
.hero-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 0;
}

.sdp-logo {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sdp-float 9s ease-in-out infinite;
    filter: drop-shadow(0 24px 60px rgba(99,102,241,0.20));
}

/* Disc holds the centered monogram + glow + ring */
.sdp-disc {
    position: relative;
    width: 78%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid transparent;
    background:
        radial-gradient(circle at center, rgba(99,102,241,0.10), transparent 70%) padding-box,
        linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.06) 55%, rgba(255,255,255,0.30)) border-box;
}

/* Soft indigo halo behind the letters */
.sdp-glow {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, rgba(6,182,212,0.10) 50%, transparent 75%);
    filter: blur(20px);
    pointer-events: none;
    animation: halo-pulse 6s ease-in-out infinite;
}

/* The actual SDP mark — perfectly centered by flexbox parent */
.sdp-mark {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(4rem, 14vw, 8rem);
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(160deg, #FFFFFF 0%, #C7D2FE 50%, #67E8F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
    z-index: 2;
    /* optical adjustment: italic letters lean right, nudge left to compensate */
    transform: translateX(-0.04em);
    transition: transform 0.6s var(--ease, ease);
    /* prevent clipping of slanted italic "P" */
    padding-right: 0.15em !important;
    margin-right: -0.11em !important;
}
.hero-logo-wrapper:hover .sdp-mark { transform: translateX(-0.04em) scale(1.03); }

/* Orbit SVG sits absolutely behind the disc */
.sdp-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: sdp-spin 60s linear infinite;
    transform-origin: 50% 50%;
}
.sdp-orbit svg {
    width: 100%; height: 100%;
    display: block;
    overflow: visible;
}

/* Status line below */
.sdp-status {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.7rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.sdp-status__dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.20);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes sdp-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes sdp-spin     { to { transform: rotate(360deg); } }
@keyframes halo-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 0.85; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .sdp-logo, .sdp-orbit, .sdp-glow { animation: none !important; }
}

/* Hide the legacy flip-card residue if any other rule re-shows it */
.flip-card, .hero-image-wrapper { display: none !important; }

@media (max-width: 900px) {
    .sdp-logo { width: min(100%, 320px); }
}

/* ==========================================================================
   RESPONSIVE SYSTEM — compact, fluid, 13" MBP → mobile
   ========================================================================== */

/* ---------- HERO LAYOUT: proper grid with controlled ratio ---------- */
.hero-content-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
    align-items: center;
    gap: clamp(32px, 5vw, 72px) !important;
    max-width: 1180px !important;
    padding-left: clamp(20px, 4vw, 48px) !important;
    padding-right: clamp(20px, 4vw, 48px) !important;
}

.hero-text-content {
    min-width: 0;
}

.hero-text-content .hero-description {
    max-width: 52ch;
}

/* ---------- COMPACT HERO TYPE ON MID SCREENS (13" MBP) ---------- */
@media (max-width: 1440px) {
    .hero-content-container {
        padding-top: clamp(88px, 11vh, 116px) !important;
        padding-bottom: clamp(48px, 8vh, 88px) !important;
        gap: clamp(28px, 4vw, 56px) !important;
    }
    .hero-title { font-size: clamp(2.8rem, 7.5vw, 5.2rem) !important; }
    .hero-description { font-size: 1rem !important; line-height: 1.65 !important; }
    .sdp-logo { width: min(100%, 380px); }
    .section { padding: clamp(64px, 9vw, 110px) 0 !important; }
}

/* ---------- TABLET / 11" LAPTOPS ---------- */
@media (max-width: 1100px) {
    .hero-content-container {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important;
        gap: 32px !important;
    }
    .sdp-logo { width: min(100%, 320px); }
    .hero-title { font-size: clamp(2.6rem, 7vw, 4.4rem) !important; }
    .section-title, .section-header h2 { font-size: clamp(1.8rem, 4vw, 2.5rem) !important; }
}

/* ---------- COLLAPSE TO SINGLE COLUMN ---------- */
@media (max-width: 880px) {
    .hero-content-container {
        grid-template-columns: 1fr !important;
        text-align: left;
        padding-top: clamp(96px, 14vh, 128px) !important;
        padding-bottom: 48px !important;
        gap: 40px !important;
    }
    .hero-text-content { order: 1; }
    .hero-logo-wrapper { order: 2; max-width: 320px; margin: 0; }
    .sdp-logo { width: 100%; max-width: 300px; }
    .hero-title { font-size: clamp(2.4rem, 10vw, 3.8rem) !important; }
    .hero-description { font-size: 0.98rem !important; }
    .hero-cta { flex-wrap: wrap; }

    /* hide chrome that crowds mobile */
    .section-dots { display: none !important; }
    .cursor-blob { display: none !important; }
    .floating-doc, .floating-resume, .resume-download-float,
    .print-resume-btn, .download-resume-float { display: none !important; }

    /* nav menu becomes a slide-down panel */
    .nav-menu {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 16px clamp(20px, 4vw, 32px) 24px;
        background: rgba(10,10,15,0.92);
        backdrop-filter: saturate(180%) blur(18px);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--ease, ease), transform 0.3s var(--ease, ease);
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu .nav-item { width: 100%; }
    .nav-menu .nav-link {
        display: block !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        color: rgba(255,255,255,0.85) !important;
    }
    .mobile-menu-toggle { display: inline-flex !important; }

    /* section spacing tightens */
    .section { padding: 56px 0 !important; }
}

/* ---------- PHONES ---------- */
@media (max-width: 560px) {
    :root { --gutter: 16px; }
    .container, .nav-container, .hero-content-container,
    .section-content, .section-header, .about-content,
    .education-grid, .experience-grid, .timeline,
    .projects-grid, .skills-grid, .contact-content,
    .footer-content, .expertise-grid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hero-content-container {
        padding-top: 96px !important;
        padding-bottom: 32px !important;
        gap: 28px !important;
    }
    .hero-title { font-size: clamp(2rem, 11vw, 2.8rem) !important; line-height: 1.05 !important; }
    .hero-eyebrow { font-size: 0.65rem !important; margin: 1rem 0 0.4rem !important; }
    .hero-eyebrow em { font-size: 0.9rem; }
    .hero-status { font-size: 0.65rem !important; padding: 0.35rem 0.7rem !important; }
    .hero-description { font-size: 0.95rem !important; max-width: 100%; }
    .hero-cta { gap: 0.5rem !important; }
    .hero-cta .btn { padding: 0.8rem 1.2rem !important; font-size: 0.88rem !important; flex: 1; text-align: center; }
    .hero-social { margin-top: 1.6rem !important; }

    /* grids collapse */
    .projects-grid, .skills-grid, .education-grid,
    .experience-grid, .expertise-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .project-card { padding: 1.25rem !important; }

    /* sections tighter */
    .section { padding: 44px 0 !important; }
    .section-kicker { font-size: 0.65rem !important; margin-bottom: 0.6rem !important; }
    .section-title, .section-header h2 { font-size: clamp(1.6rem, 6vw, 2.1rem) !important; }

    /* tech marquee item spacing */
    .tech-marquee { padding: 1rem 0 !important; }
    .tech-marquee__item { font-size: 0.78rem !important; padding: 0 1rem !important; }

    /* navbar logo + actions tighter */
    .nav-container { padding: 10px 16px !important; gap: 12px !important; }
    .language-switcher { padding: 2px !important; }
    .lang-btn { padding: 4px 7px !important; font-size: 0.62rem !important; }
    .lang-btn .flag { font-size: 0.75rem !important; }
    .theme-toggle { width: 30px !important; height: 30px !important; }
    .theme-toggle svg { width: 14px !important; height: 14px !important; }

    /* contact page tighter */
    .contact-content { gap: 1.5rem !important; }

    /* scroll progress thinner */
    .scroll-progress { height: 2px !important; }

    /* logo */
    .sdp-logo { max-width: 260px; }
    .sdp-mark { font-size: clamp(3.2rem, 18vw, 4.8rem) !important; }
}

/* ---------- VERY NARROW ---------- */
@media (max-width: 380px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .hero-title { font-size: clamp(1.8rem, 11vw, 2.4rem) !important; }
    .sdp-logo { max-width: 220px; }
}

/* ---------- TOUCH DEVICES — disable hover-only effects ---------- */
@media (hover: none) {
    .cursor-blob { display: none !important; }
    .project-card:hover { transform: none !important; }
    .btn-primary:hover, .btn-secondary:hover { transform: none !important; }
}

/* ---------- LARGE DESKTOPS — bigger container ---------- */
@media (min-width: 1600px) {
    .container, .nav-container, .hero-content-container,
    .section-content, .section-header {
        max-width: 1280px !important;
    }
}

/* ==========================================================================
   SECTION-SPECIFIC LAYOUTS — each section reads differently
   ========================================================================== */

/* ---------- ABOUT — editorial split, no glass card ---------- */
.about-section .glass-card,
.about-section .about-text {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
}
.about-section .about-content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
.about-section .about-intro {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
    line-height: 1.4 !important;
    color: var(--ink, #0A0A0F) !important;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem !important;
    border-left: 2px solid var(--sec-about, #B45309);
    padding-left: 1.2rem;
}
.about-section .about-intro strong { font-weight: 500; color: var(--sec-about, #B45309); }
.about-section .about-text p {
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
    color: var(--muted, #5F6168) !important;
    margin-bottom: 1.15rem !important;
}
.about-section .about-text strong { color: var(--ink) !important; font-weight: 600; }

/* Stats: horizontal strip with hairline rules between */
.about-section .about-stats {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 !important;
    margin-top: 2.5rem !important;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0 !important;
}
.about-section .stat-item {
    text-align: left;
    padding: 0 1rem;
    border-right: 1px solid var(--line);
    background: transparent !important;
}
.about-section .stat-item:last-child { border-right: none; }
.about-section .stat-number {
    font-family: var(--font-serif) !important;
    font-style: italic;
    font-weight: 400 !important;
    font-size: clamp(2.2rem, 3.5vw, 3rem) !important;
    line-height: 1 !important;
    color: var(--ink) !important;
    margin-bottom: 0.4rem !important;
}
.about-section .stat-label {
    font-family: var(--font-mono) !important;
    font-size: 0.68rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted) !important;
}

/* Location panel: simple, no card */
.about-section .about-location {
    background: transparent !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    padding: 1.5rem !important;
    box-shadow: none !important;
}
.about-section .about-location h3 {
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted) !important;
    margin-bottom: 1rem !important;
    font-weight: 500 !important;
}

@media (max-width: 880px) {
    .about-section .about-content-wrapper { grid-template-columns: 1fr; }
    .about-section .about-stats { grid-template-columns: repeat(2, 1fr); }
    .about-section .stat-item:nth-child(2) { border-right: none; }
}

/* ---------- EXPERIENCE / EDUCATION TIMELINE — left rail year ---------- */
.work-experience-section .container,
.education-section .container {
    max-width: 100vw !important;
    width: 100% !important;
    padding-left: clamp(16px, 6vw, 48px) !important;
    padding-right: clamp(16px, 6vw, 48px) !important;
    box-sizing: border-box;
}
.work-experience-section .timeline,
.education-section .timeline {
    position: relative;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    /* Reset legacy padding & vertical line from styles.css / refined-styles.css */
    padding-left: 0 !important;
}
/* Kill the legacy vertical line */
.work-experience-section .timeline::before,
.education-section .timeline::before {
    display: none !important;
}
/* Grid items with left date rail */
.work-experience-section .timeline-item,
.education-section .timeline-item {
    display: grid !important;
    grid-template-columns: 180px 1fr !important;
    gap: clamp(14px, 2vw, 32px);
    padding: 1.1rem 0 !important;
    margin-bottom: 0 !important; /* Reset refined-styles.css margin-bottom: 28px */
    border-top: 1px solid var(--line);
    position: relative;
}
.work-experience-section .timeline-item:last-child,
.education-section .timeline-item:last-child {
    border-bottom: 1px solid var(--line);
}
.work-experience-section .timeline-item::before,
.education-section .timeline-item::before {
    content: "" !important;
    position: absolute;
    left: 0; top: 2.4rem;
    width: 0 !important; height: 0 !important;
    border: none !important;
    background: none !important;
}
.work-experience-section .timeline-marker,
.education-section .timeline-marker { display: none !important; }

/* Year/date on the left as mono label — fully reset legacy pill styling */
.work-experience-section .timeline-date,
.education-section .timeline-date {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--sec-accent, var(--muted)) !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    font-family: var(--font-mono) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    border-radius: 0 !important;
    align-self: start;
    position: sticky;
    top: 100px;
}

/* Content right side: strip card chrome + reset legacy margin-left/border-left */
.work-experience-section .timeline-content,
.education-section .timeline-content {
    grid-column: 2;
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
/* Kill hover border-left color from styles.css */
.work-experience-section .timeline-content:hover,
.education-section .timeline-content:hover {
    border-left-color: transparent !important;
    border: none !important;
}
/* Reset featured-timeline card chrome from refined-styles.css */
.work-experience-section .featured-timeline,
.education-section .featured-timeline {
    border-color: transparent !important;
    box-shadow: none !important;
}
.work-experience-section .timeline-content h3,
.education-section .timeline-content h3 {
    font-family: var(--font-sans) !important;
    font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    margin: 0 0 0.4rem !important;
    letter-spacing: -0.02em;
}
.work-experience-section .timeline-content h4,
.education-section .timeline-content h4 {
    font-family: var(--font-mono) !important;
    font-size: 0.85rem !important;
    color: var(--sec-exp, #1D4ED8) !important;
    font-weight: 500 !important;
    margin: 0 0 0.8rem !important;
    letter-spacing: 0;
}
.education-section .timeline-content h4 { color: var(--sec-edu, #0F766E) !important; }
.work-experience-section .timeline-location,
.education-section .timeline-location {
    font-size: 0.85rem !important;
    color: var(--muted) !important;
    margin-bottom: 1rem !important;
}
.work-experience-section .timeline-pill,
.education-section .timeline-pill {
    display: inline-block;
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.7rem !important;
    background: rgba(15,15,20,0.04) !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    color: var(--muted) !important;
    margin-bottom: 0.8rem !important;
}
.work-experience-section .timeline-highlights,
.education-section .timeline-highlights {
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem 0 0 !important;
}
.work-experience-section .timeline-highlights li,
.education-section .timeline-highlights li {
    position: relative;
    padding-left: 1.3rem !important;
    margin-bottom: 0.6rem !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--muted) !important;
}
.work-experience-section .timeline-highlights li::before,
.education-section .timeline-highlights li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--sec-exp, #1D4ED8);
    font-weight: 500;
}
.education-section .timeline-highlights li::before { color: var(--sec-edu, #0F766E); }

@media (max-width: 880px) {
    .work-experience-section .timeline-item,
    .education-section .timeline-item {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }
    .work-experience-section .timeline-date,
    .education-section .timeline-date {
        position: static !important;
        margin-bottom: 0.8rem;
    }
    .work-experience-section .timeline-content,
    .education-section .timeline-content {
        grid-row: auto;
        grid-column: 1;
    }
}

/* ---------- PROJECTS — bento grid (featured spans 2) ---------- */
.projects-section .projects-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: clamp(14px, 1.6vw, 22px) !important;
}
.projects-section .project-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}
/* Prevent the project description and highlights from stretching and creating massive gaps in Sentinel */
.projects-section .project-content {
    justify-content: flex-start !important;
    height: 100% !important;
}
.projects-section .project-description {
    flex-grow: 0 !important;
    margin-bottom: 16px !important;
}
.projects-section .project-highlights {
    flex-grow: 0 !important;
    margin-bottom: 24px !important;
}
/* Resolve double bullet marker overlap issue on project card highlights */
.projects-section .project-highlights li::before {
    content: "→" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.18em !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: var(--accent, #4F46E5) !important;
    font-weight: 600 !important;
}
.tech-tags {
    margin-top: 16px !important;
}
.projects-section .project-card:first-child {
    grid-column: span 4;
    grid-row: span 2;
}
.projects-section .project-card:nth-child(4) {
    grid-column: span 3;
}
.projects-section .project-card:nth-child(5) {
    grid-column: span 3;
}
.projects-section .project-card:first-child .project-title,
.projects-section .project-card:first-child h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    letter-spacing: -0.02em;
}
.projects-section .project-card:first-child .project-description,
.projects-section .project-card:first-child p {
    font-size: 1rem !important;
}
.projects-section .project-card:first-child::after {
    width: 40px; height: 40px;
    background: var(--ink, #0A0A0F) !important;
    color: #FFFFFF !important;
    opacity: 1;
    transform: none;
}

@media (max-width: 1100px) {
    .projects-section .projects-grid { grid-template-columns: repeat(4, 1fr) !important; }
    .projects-section .project-card { grid-column: span 2; }
    .projects-section .project-card:first-child { grid-column: span 4; grid-row: auto; }
    .projects-section .project-card:nth-child(4),
    .projects-section .project-card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 700px) {
    .projects-section .projects-grid { grid-template-columns: 1fr !important; }
    .projects-section .project-card,
    .projects-section .project-card:first-child,
    .projects-section .project-card:nth-child(4),
    .projects-section .project-card:nth-child(5) { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- SKILLS — categorized inline list, no cards ---------- */
.skills-section .skills-grid {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    border-top: 1px solid var(--line);
}
.skills-section .skill-category {
    display: grid !important;
    grid-template-columns: minmax(180px, 0.4fr) 1fr;
    gap: clamp(20px, 3vw, 48px);
    padding: 1.75rem 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    align-items: start;
}
.skills-section .skill-category h3 {
    font-family: var(--font-mono) !important;
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted) !important;
    font-weight: 500 !important;
    margin: 0.3rem 0 0 !important;
    padding: 0 !important;
}
.skills-section .skill-category h3::before {
    content: "—";
    margin-right: 0.5rem;
    color: var(--sec-skill, #6D28D9);
}
.skills-section .skills-list,
.skills-section .skill-tags {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}
.skills-section .skill-tag,
.skills-section .skill-item,
.skills-section .skills-list li {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem !important;
    background: var(--surface, #FFFFFF) !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    font-family: var(--font-mono) !important;
    font-size: 0.78rem !important;
    color: var(--ink) !important;
    transition: all 0.25s var(--ease, ease) !important;
}
.skills-section .skill-tag:hover,
.skills-section .skill-item:hover,
.skills-section .skills-list li:hover {
    border-color: var(--sec-skill, #6D28D9) !important;
    color: var(--sec-skill, #6D28D9) !important;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .skills-section .skill-category {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

/* ---------- EXPERTISE PILLARS — strip cards, inline grid ---------- */
.expertise-pillars-section .expertise-grid {
    gap: clamp(16px, 2vw, 28px) !important;
}
.expertise-pillars-section .expertise-pillar,
.expertise-pillars-section .glass-card {
    background: var(--surface, #FFFFFF) !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 1.5rem !important;
    transition: all 0.3s var(--ease, ease) !important;
}
.expertise-pillars-section .expertise-pillar:hover {
    border-color: var(--line-2) !important;
    box-shadow: var(--sh-2) !important;
}
.expertise-pillars-section .pillar-icon {
    color: var(--accent, #4F46E5) !important;
    margin-bottom: 1rem !important;
}
.expertise-pillars-section h3 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.5rem !important;
    letter-spacing: -0.01em;
}
.expertise-pillars-section .pillar-badge {
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted) !important;
    background: transparent !important;
    border-top: 1px solid var(--line) !important;
    padding: 0.8rem 0 0 !important;
    margin-top: 1rem !important;
    border-radius: 0 !important;
}

/* --------------------------------------------------------------------------
   7. SECTION HEADERS — serif accent on titles
   -------------------------------------------------------------------------- */
.section-title,
.section-header h2 {
    font-family: var(--font-sans) !important;
    font-weight: 600 !important;
    letter-spacing: -0.035em !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-bottom: 0 !important;
}
/* Hide the conflicting centered bottom rule */
.section-title::after,
.section-header h2::after {
    display: none !important;
}
/* Left-align subtitles */
.section-subtitle {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}
/* Ensure the italic serif words do not overlap previous words and align on the baseline */
.section-title em,
.section-header h2 em {
    font-family: var(--font-serif) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-variation-settings: "SOFT" 80, "opsz" 144 !important;
    color: var(--accent, #4F46E5) !important;
    display: inline-block !important;
    vertical-align: baseline !important;
    margin-left: 0.22em !important;
}

/* Left-align project filter chips and give vertical breathing room to prevent subtitle overlaps */
.projects-section .project-filters {
    display: flex !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-top: 1.5rem !important;
    margin-bottom: 2.5rem !important;
    width: fit-content !important;
}

/* Hide redundant skill icons to resolve grid mismatch squishing the skill-tags */
.skills-section .skill-icon {
    display: none !important;
}

/* Section kicker — sharper */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted, #5F6168) !important;
    padding: 0.3rem 0 !important;
    margin-bottom: 0.85rem !important;
}
.section-kicker::before {
    content: "";
    width: 24px; height: 1px;
    background: currentColor;
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   8. CARDS — TILT 3D + RICHER HOVER
   -------------------------------------------------------------------------- */
.project-card,
.education-card,
.skill-category,
.expertise-card {
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease, ease), box-shadow 0.4s var(--ease, ease), border-color 0.3s ease !important;
    will-change: transform;
}

.project-card {
    background: var(--surface, #FFFFFF) !important;
    border: 1px solid var(--line, rgba(15,15,20,0.10)) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}
.project-card::after {
    content: "\2197";
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(15,15,20,0.04);
    color: var(--muted);
    font-size: 1rem;
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: all 0.3s var(--ease, ease);
    pointer-events: none;
}
.project-card:hover::after {
    opacity: 1;
    transform: translate(0, 0);
    background: var(--ink, #0A0A0F);
    color: #FFFFFF;
}
.project-card:hover {
    border-color: var(--line-2, rgba(15,15,20,0.18)) !important;
    box-shadow: 0 8px 24px rgba(10,10,15,0.06), 0 24px 60px rgba(10,10,15,0.10) !important;
}

/* --------------------------------------------------------------------------
   9. NAVBAR — pill-shape, floating
   -------------------------------------------------------------------------- */
.navbar {
    transition: all 0.4s var(--ease, ease) !important;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.72) !important;
    backdrop-filter: saturate(180%) blur(24px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(24px) !important;
    border-bottom: 1px solid var(--line, rgba(15,15,20,0.08)) !important;
    box-shadow: 0 1px 0 rgba(15,15,20,0.04), 0 8px 24px rgba(15,15,20,0.04) !important;
}

.nav-logo {
    font-family: var(--font-serif) !important;
    font-style: italic;
    font-weight: 500 !important;
    font-size: 1.4rem !important;
    letter-spacing: -0.02em !important;
    display: inline-block !important;
    padding-right: 8px !important;
    margin-right: 2px !important;
    overflow: visible !important;
}

/* --------------------------------------------------------------------------
   9b. LANGUAGE SWITCHER + THEME TOGGLE — minimal pill chrome
   -------------------------------------------------------------------------- */
.language-switcher {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3px !important;
    box-shadow: none !important;
    gap: 2px !important;
}
.lang-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 5px 10px !important;
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    color: rgba(255,255,255,0.65) !important;
    box-shadow: none !important;
    transition: all 0.25s var(--ease, ease) !important;
}
.lang-btn:hover {
    background: rgba(255,255,255,0.06) !important;
    color: #FFFFFF !important;
}
.lang-btn.active {
    background: rgba(255,255,255,0.92) !important;
    color: #0A0A0F !important;
}
.lang-btn .flag { font-size: 0.85rem !important; }
.lang-btn .lang-text { font-weight: 500 !important; letter-spacing: 0.06em; }

/* Navbar light state — language switcher inverts */
.navbar.scrolled .language-switcher {
    background: rgba(15,15,20,0.04) !important;
    border-color: rgba(15,15,20,0.08) !important;
}
.navbar.scrolled .lang-btn { color: rgba(15,15,20,0.55) !important; }
.navbar.scrolled .lang-btn:hover { background: rgba(15,15,20,0.04) !important; color: #0A0A0F !important; }
.navbar.scrolled .lang-btn.active { background: #0A0A0F !important; color: #FFFFFF !important; }

/* Theme toggle — minimal circular */
.theme-toggle {
    width: 34px !important; height: 34px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 50% !important;
    color: rgba(255,255,255,0.75) !important;
    box-shadow: none !important;
    transition: all 0.25s var(--ease, ease) !important;
    display: inline-flex !important; align-items: center; justify-content: center;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.10) !important;
    color: #FFFFFF !important;
    transform: none !important;
}
.theme-toggle svg { width: 16px !important; height: 16px !important; }
.navbar.scrolled .theme-toggle {
    background: rgba(15,15,20,0.04) !important;
    border-color: rgba(15,15,20,0.08) !important;
    color: var(--ink, #0A0A0F) !important;
}

/* --------------------------------------------------------------------------
   9c. KILL LEGACY CLUTTER on the hero
   -------------------------------------------------------------------------- */
/* Hide the floating particle canvas — auroras carry the atmosphere now */
#particles-canvas { display: none !important; }

/* Hide any floating shapes / decorative diamonds from legacy script */
.floating-shape, .floating-shapes, .shape, .geometric-shape,
.hero-shapes, .hero-decoration, .decoration-shape,
.hero-shape-1, .hero-shape-2, .hero-shape-3, .hero-shape-4 { display: none !important; }

/* Floating "download resume" doc icon at bottom-right — kept but refined */
.floating-doc, .floating-resume, .resume-download-float,
.print-resume-btn, .download-resume-float {
    background: rgba(255,255,255,0.92) !important;
    color: #0A0A0F !important;
    border: 1px solid var(--line, rgba(15,15,20,0.10)) !important;
    box-shadow: var(--sh-2, 0 4px 20px rgba(0,0,0,0.10)) !important;
    width: 44px !important; height: 44px !important;
    border-radius: 50% !important;
}

.nav-link {
    font-family: var(--font-sans) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: var(--ink-2, #16171C) !important;
    position: relative;
    padding: 0.4rem 0.6rem !important;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0.6rem; right: 0.6rem; bottom: 0.15rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s var(--ease, ease);
}
.nav-link:hover::after { transform: scaleX(1); }

/* Navbar over the dark hero (when not scrolled) */
.navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.78) !important; }
.navbar:not(.scrolled) .nav-link:hover { color: #FFFFFF !important; }
.navbar:not(.scrolled) .nav-logo { color: #FFFFFF !important; }
.navbar:not(.scrolled) { background: transparent !important; border-bottom: 1px solid transparent !important; }

/* --------------------------------------------------------------------------
   10. SECTION DOTS — refined
   -------------------------------------------------------------------------- */
.section-dots .section-dot {
    width: 8px; height: 8px;
    background: rgba(15,15,20,0.18);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--ease, ease);
    padding: 0;
}
.section-dots .section-dot.active {
    background: var(--accent, #4F46E5);
    transform: scale(1.5);
    box-shadow: 0 0 0 6px rgba(79,70,229,0.12);
}
.section-dots.over-dark .section-dot { background: rgba(255,255,255,0.30); }
.section-dots.over-dark .section-dot.active {
    background: #FFFFFF;
    box-shadow: 0 0 0 6px rgba(255,255,255,0.15);
}

/* --------------------------------------------------------------------------
   11. TECH MARQUEE — refined
   -------------------------------------------------------------------------- */
.tech-marquee {
    background: var(--surface-2, #F7F7F9) !important;
    border-top: 1px solid var(--line, rgba(15,15,20,0.08));
    border-bottom: 1px solid var(--line, rgba(15,15,20,0.08));
    padding: 1.6rem 0 !important;
}
.tech-marquee__item {
    font-family: var(--font-mono) !important;
    font-size: 0.85rem !important;
    color: var(--muted, #5F6168) !important;
    letter-spacing: 0 !important;
    padding: 0 1.5rem !important;
    border-right: 1px solid var(--line, rgba(15,15,20,0.08));
    transition: color 0.3s ease;
}
.tech-marquee__item:hover { color: var(--ink, #0A0A0F) !important; }

/* --------------------------------------------------------------------------
   12. SCROLL PROGRESS — slimmer, gradient
   -------------------------------------------------------------------------- */
.scroll-progress {
    height: 2px !important;
    background: linear-gradient(90deg, #6366F1 0%, #06B6D4 50%, #A855F7 100%) !important;
    box-shadow: 0 0 12px rgba(99,102,241,0.6);
}

/* --------------------------------------------------------------------------
   13. SCROLL INDICATOR (mouse) — minimal
   -------------------------------------------------------------------------- */
.scroll-indicator { opacity: 0.5; }
.scroll-indicator .mouse {
    border-color: rgba(255,255,255,0.4) !important;
}
.scroll-indicator .wheel {
    background: rgba(255,255,255,0.8) !important;
}

/* --------------------------------------------------------------------------
   14. CONTACT FINALE — extra polish
   -------------------------------------------------------------------------- */
#contact .section-title em {
    color: #67E8F9 !important;
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero-aurora--c { display: none; }
    .hero-title { font-size: clamp(2.6rem, 11vw, 4rem) !important; }
    .hero-image-wrapper::before { inset: -20px; }
}
