:root {
    --bg: #030303;
    --fg: #fdfdfd;
    --fg-muted: rgba(255, 255, 255, 0.6);
    --accent: #00e5ff;
    --accent-muted: rgba(0, 229, 255, 0.1);
    --surface: #0a0a0a;
    --border: rgba(255, 255, 255, 0.06);

    --sans: 'Syne', sans-serif;
    --heading: 'Syne', sans-serif;
    --serif: 'Syne', sans-serif;

    --max-w: 1400px;
    --px: clamp(24px, 5vw, 60px);
    --section-py: clamp(40px, 6vw, 80px);

    /* Light Theme */
    --bg-light: #f5f4ef;
    --fg-light: #050505;
    --fg-muted-light: rgba(0, 0, 0, 0.6);
    --surface-light: #ffffff;
    --border-light: rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    line-height: 1.5;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

body.nav-open .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border-bottom-color: transparent !important;
    transition: 
        padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
        backdrop-filter 0s 0s, 
        -webkit-backdrop-filter 0s 0s;
}

/* ── Themes ── */
.theme--dark {
    --current-bg: var(--bg);
    --current-fg: var(--fg);
    --current-fg-muted: var(--fg-muted);
    --current-surface: var(--surface);
    --current-border: var(--border);
    background: var(--current-bg);
    color: var(--current-fg);
}

.theme--light {
    --current-bg: var(--bg-light);
    --current-fg: var(--fg-light);
    --current-fg-muted: var(--fg-muted-light);
    --current-surface: var(--surface-light);
    --current-border: var(--border-light);
    background: var(--current-bg);
    color: var(--current-fg);
}

.theme--light .section-label {
    color: var(--fg-muted-light);
}

.theme--light .section-heading {
    color: var(--fg-light);
}

.theme--light .btn-premium {
    background: var(--fg-light);
    color: var(--bg-light);
}

.theme--light .btn-premium:hover {
    background: var(--accent);
    color: #000;
}

.theme--light .skill-group-title {
    color: var(--fg-muted-light);
    border-bottom-color: var(--border-light);
}

.theme--light .achievement-list li {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--border-light);
}

.theme--light .cert-list li {
    background: #ffffff;
    border-color: var(--border-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.theme--light .achievement-list li strong,
.theme--light .cert-list .cert-name {
    color: var(--fg-light);
}

.theme--light .achievement-list li p {
    color: var(--fg-muted-light);
}

.theme--light .about-lead,
.theme--light .about-body {
    color: var(--fg-light);
}

.theme--light .about-lead strong {
    color: var(--accent);
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
}

/* ── Cursor ── */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

#custom-cursor.visible {
    opacity: 1;
}

#custom-cursor.hovering {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

/* ── Flashlight ── */
#flashlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

@media (max-width: 768px) {
    #custom-cursor, #flashlight {
        display: none !important;
    }
}

/* ── Scroll Progress ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent);
    z-index: 10000;
    transition: none;
}

/* ── Typography ── */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
}

.section-heading {
    font-family: var(--heading);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border: none;
    cursor: pointer;
}

.btn--white {
    background: var(--fg);
    color: var(--bg);
}

.btn--white:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 30px var(--accent-muted);
}

.btn--outline {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    color: var(--fg);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    text-decoration: none;
    will-change: transform, box-shadow, background;
}

.btn-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
    border-radius: 100px;
}

.btn-premium:hover {
    color: #000;
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2);
}

.btn-premium:hover::after {
    opacity: 1;
}

.btn-premium--outline {
    background: transparent;
    border: 1px solid var(--border);
}

.social-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    overflow: visible !important;
}

.btn-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.social-wrapper:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.btn-premium::before,
.btn-glow {
    display: none !important;
}

.btn--full {
    width: 100%;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 28px 0;
    z-index: 10005;
    transition: 
        padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
        backdrop-filter 0s 0.4s, 
        -webkit-backdrop-filter 0s 0.4s;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 0;
    }
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(5, 5, 5, 0.85);
}

.navbar--light {
    background: rgba(249, 247, 242, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar--light.scrolled {
    background: rgba(249, 247, 242, 0.9);
}

.navbar--light .logo,
.navbar--light .nav-links a {
    color: var(--fg-light);
}

.navbar--light .btn--white {
    background: var(--fg-light);
    color: var(--bg-light);
}

.navbar--light .btn--white:hover {
    background: var(--accent);
    color: #000;
}

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

.logo {
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1000;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 48px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-muted);
    letter-spacing: 0.04em;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--fg);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    position: relative;
    z-index: 1000;
}

.menu-toggle .bar {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--fg);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
    transform-origin: center;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 768px) {

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.5); /* Safe fallback */
        background: color-mix(in srgb, var(--bg) 40%, transparent);
        backdrop-filter: saturate(180%) blur(40px);
        -webkit-backdrop-filter: saturate(180%) blur(40px);
        align-items: center;
        justify-content: center;
        gap: 40px;
        z-index: 999;
        
        /* Smooth animation state */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                    visibility 0s 0.5s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                    visibility 0s 0s;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.open li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.open li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.16s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.22s; }
    .nav-links.open li:nth-child(4) { transition-delay: 0.28s; }

    .nav-links.open a {
        font-size: 28px;
        font-family: var(--heading);
        font-weight: 800;
        color: var(--fg);
    }

    /* Light Theme Mobile Styles */
    .navbar--light .menu-toggle .bar {
        background: var(--fg-light);
    }

    .navbar--light .nav-links {
        background: rgba(249, 247, 242, 0.5); /* Safe fallback */
        background: color-mix(in srgb, var(--bg-light) 40%, transparent);
    }

    .navbar--light .nav-links.open a {
        color: var(--fg-light);
    }

    .navbar--light .nav-links.open a:hover,
    .navbar--light .nav-links.open a.active {
        color: var(--fg-light);
    }
}

/* ═══════════════════════════════════════════ */
/*  HERO                                       */
/* ═══════════════════════════════════════════ */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
}

/* Subgrid background for hero, contact, and footer */
.hero::before,
.contact::before,
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.hero, .contact, .footer {
    position: relative;
    overflow: hidden;
}

.grid-highlight {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.4) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 200px);
    -webkit-mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 200px);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero:hover .grid-highlight {
    opacity: 1;
}

/* Radar Scan Effect */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: conic-gradient(from 0deg, transparent 0%, var(--accent-muted) 5%, transparent 15%);
    transform: translate(-50%, -50%);
    animation: radar-rotate 12s linear infinite;
    pointer-events: none;
    opacity: 0.15;
    z-index: 1;
}

@keyframes radar-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Film grain overlay for cinematic depth */
.hero-film-grain {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}



.hero-name {
    font-family: var(--heading);
    font-size: clamp(32px, 8vw, 110px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
    position: relative;
    z-index: 1; /* Base z-index */
}

/* When hovering, bring the whole title area up */
body.is-hovering-name .hero-name {
    z-index: 10001;
}

.hero-name .line {
    display: block;
    overflow: hidden;
    pointer-events: none;
    position: relative;
}

.hero-name .word {
    display: inline-block;
    pointer-events: none;
    position: relative;
}

.name-trigger {
    display: inline;
    pointer-events: auto;
}

.hero-name .accent {
    color: var(--accent);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
}

.hero-meta {
    display: flex;
    gap: clamp(40px, 6vw, 80px);
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-role {
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 500;
    line-height: 1.3;
    max-width: 400px;
}

.hero-desc {
    font-size: clamp(16px, 1.2vw, 18px);
    color: var(--fg-muted);
    max-width: 460px;
    line-height: 1.6;
}

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

.social-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    right: var(--px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-hint span {
    writing-mode: vertical-rl;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--fg-muted);
}

.scroll-hint .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.4;
        transform: scaleY(0.6);
    }
}

.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

/* ═══════════════════════════════════════════ */
/*  ABOUT                                      */
/* ═══════════════════════════════════════════ */
.about {
    padding: var(--section-py) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: var(--max-w);
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dots-lottie {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 300px;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-visual {
        order: 1;
        margin-bottom: 10px;
    }

    .dots-lottie {
        max-width: 280px;
        min-height: 200px;
    }
}

.about-lead {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    color: var(--fg-light);
}

.about-body {
    font-size: clamp(18px, 1.5vw, 22px);
    color: var(--fg-muted-light);
    line-height: 1.6;
    max-width: 700px;
}

/* Removed CGPA stats block */

/* ═══════════════════════════════════════════ */
/*  PROJECTS                                   */
/* ═══════════════════════════════════════════ */
.projects {
    padding: var(--section-py) 0;
    background: var(--current-bg);
}

.projects-header {
    margin-bottom: 64px;
}

.featured-case-study {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

@media (min-width: 1024px) {
    .featured-case-study {
        flex-direction: row;
        align-items: center;
        gap: 80px;
    }

    .case-study-visual {
        flex: 1.2;
        position: relative;
    }

    .case-study-content {
        flex: 1;
    }
}

.case-study-visual {
    width: 100%;
}

.case-study-header {
    margin-bottom: 32px;
}

.project-num {
    font-family: var(--heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: inline-block;
}

.project-title {
    font-family: var(--heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.case-study-block {
    margin-bottom: 32px;
}

.case-study-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg);
    margin-bottom: 12px;
    opacity: 0.9;
}

.project-desc {
    font-size: 16px;
    color: var(--fg-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.project-problem {
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    padding-left: 16px;
    font-style: italic;
}

.case-study-meta {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-features span {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid var(--accent-muted);
    border-radius: 100px;
    color: var(--accent);
    letter-spacing: 0.03em;
    background: rgba(0, 229, 255, 0.04);
    transition: all 0.3s ease;
}

.project-features span:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--accent);
}

.project-tech {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tech-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
    flex-shrink: 0;
}

.tech-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-pills span {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--fg);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.tech-pills span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.project-actions {
    display: flex;
    gap: 24px;
}

.other-projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .other-projects {
        grid-template-columns: 1fr 1fr;
    }
}

.other-card {
    padding: 48px;
    background: var(--surface);
    transition: background 0.4s;
    display: flex;
    flex-direction: column;
}

.other-card:hover {
    background: rgba(0, 229, 255, 0.03);
}

.other-card .project-title {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 16px;
}

.other-card .project-desc {
    margin-bottom: 32px;
    flex-grow: 1;
}

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

.tags span {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--fg-muted);
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════ */
/*  SKILLS                                     */
/* ═══════════════════════════════════════════ */
.skills {
    padding: var(--section-py) 0;
    background: var(--current-bg);
}

.skills-layout {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.skills-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.skill-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.skill-group li {
    font-size: 18px;
    font-family: var(--heading);
    font-weight: 700;
    padding: 8px 0;
    padding-left: 0;
    border-left: 2px solid transparent;
    transition: color 0.3s, transform 0.3s, padding-left 0.3s, border-color 0.3s;
    cursor: default;
}

.skill-group li:hover {
    color: var(--accent);
    transform: translateX(8px);
    padding-left: 12px;
    border-left-color: var(--accent);
}

/* ═══════════════════════════════════════════ */
/*  ACHIEVEMENTS & CERTIFICATIONS              */
/* ═══════════════════════════════════════════ */
.achievements {
    padding: var(--section-py) 0;
    background: var(--current-bg);
    border-top: 1px solid var(--current-border);
    border-bottom: 1px solid var(--current-border);
}

.achievements-header {
    margin-bottom: 48px;
}

/* Achievement Cards */
.achievement-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.achievement-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.achievement-list li:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
}

/* Certification List */
.cert-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cert-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cert-list li:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.theme--light .cert-list li:hover {
    background: #fafafa;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.achievement-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.achievement-list strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--fg);
}

.achievement-list p {
    font-size: 14px;
    color: var(--fg-muted);
    line-height: 1.6;
}

.cert-list li::after {
    content: 'View Certificate';
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.cert-list li:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.cert-issuer {
    font-weight: 800;
    font-size: 20px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-list li:hover .cert-issuer {
    transform: scale(1.1) rotate(5deg);
}

.theme--light .cert-issuer {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cert-name {
    font-size: 15px;
    font-weight: 500;
    flex-grow: 1;
}

.cert-name em {
    color: var(--current-fg-muted);
    font-style: normal;
    font-size: 13px;
    margin-left: 8px;
}

@media (max-width: 900px) {
    .achievements-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .cert-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 0;
    }
    
    .cert-name {
        margin: 0;
    }
}

/* ═══════════════════════════════════════════ */
/*  CONTACT                                    */
/* ═══════════════════════════════════════════ */
.contact {
    padding: var(--section-py) 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.contact-heading {
    font-family: var(--heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.contact-heading .italic {
    color: var(--accent);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
}

.contact-sub {
    font-size: 16px;
    color: var(--fg-muted);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 380px;
}

.milestones-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.milestones li {
    font-size: 16px;
    color: var(--fg);
    padding: 10px 0 10px 18px;
    position: relative;
    line-height: 1.5;
}

.milestones li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
    margin-bottom: 8px;
}

.field input,
.field textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px;
    color: var(--fg);
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 15px;
    transition: border-color 0.3s, background 0.3s;
    outline: none;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}

.field textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-meta {
    display: flex;
    gap: 48px;
    margin-top: 32px;
}

.meta-item .meta-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
    margin-bottom: 6px;
}

.meta-item p,
.meta-item a {
    font-size: 16px;
    font-weight: 500;
}

.meta-item a:hover {
    color: var(--accent);
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-tagline-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.footer-tagline {
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 800;
    font-family: var(--heading);
    letter-spacing: -0.03em;
    color: var(--fg);
    opacity: 0.15;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
}

.footer-tagline-link:hover .footer-tagline {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-10px);
}

.footer-bottom {
    font-size: 12px;
    color: var(--fg-muted);
    text-align: center;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════ */
/*  REVEAL ANIMATION                           */
/* ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
}

/* ═══════════════════════════════════════════ */
/*  RESPONSIVE                                 */
/* ═══════════════════════════════════════════ */

/* ── Tablet (max-width: 900px) ── */
@media (max-width: 900px) {

    .about-grid,
    .featured-card,
    .skills-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        padding: 0; /* Ensure no internal padding conflicts */
    }

    .about-text {
        order: 2;
    }

    .about-visual {
        order: 1;
        margin-bottom: 30px;
    }

    .other-projects {
        grid-template-columns: 1fr;
    }

    .other-card:first-child {
        border-right: none;
    }

    .stats {
        flex-direction: row;
        gap: 40px;
    }

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

    .achievement-list {
        grid-template-columns: 1fr 1fr;
    }

    .cert-list {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        flex-direction: column;
        gap: 24px;
    }

    .scroll-hint {
        display: none;
    }

    .contact-meta {
        flex-direction: column;
        gap: 24px;
    }

    .footer-content {
        margin-bottom: 40px;
    }
}

/* ── Mobile (max-width: 768px) ── */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 48px;
    }

    .hero-name {
        font-size: clamp(28px, 8vw, 48px);
        margin-bottom: 32px;
    }



    .hero-subtitle {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn,
    .hero-actions .btn-premium {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-glow {
        width: 80vw;
        height: 80vw;
    }

    /* About */
    .about-lead {
        font-size: clamp(18px, 5vw, 24px);
    }

    .about-body {
        font-size: 15px;
    }

    .stats {
        flex-direction: column;
        gap: 24px;
    }

    /* Projects */
    .featured-case-study {
        gap: 32px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .project-info {
        padding: 0;
        margin-top: 24px;
    }

    .project-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .project-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .project-tech {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tech-pills {
        gap: 6px;
    }

    .project-features {
        gap: 6px;
        margin-bottom: 20px;
    }

    .project-features span {
        padding: 4px 10px;
        font-size: 10px;
    }

    .project-slider {
        border-radius: 12px;
    }

    .slider-nav {
        bottom: 16px;
        right: 16px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .slider-dots {
        bottom: 16px;
        left: 16px;
    }

    /* Skills */
    .skills-cols {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 20px;
    }

    .skill-group li {
        font-size: 16px;
        padding: 8px 0;
    }

    /* Achievements & Certificates */
    .achievements-header {
        margin-bottom: 32px;
    }

    .achievement-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .achievement-list li {
        padding: 20px;
    }

    .cert-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cert-list li {
        padding: 16px 20px;
    }

    .cert-issuer {
        font-size: 9px;
        padding: 5px 10px;
    }

    .cert-name {
        font-size: 14px;
    }

    /* Contact */
    .contact-layout {
        gap: 40px;
    }

    .contact-heading {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 16px;
    }

    .contact-sub {
        font-size: 15px;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .contact-details {
        margin-top: 24px;
        gap: 16px;
    }

    .contact-item {
        padding: 14px;
        gap: 14px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
        border-radius: 10px;
    }

    .detail-label {
        font-size: 9px;
    }

    .detail-value {
        font-size: 13px;
        word-break: break-all;
    }

    /* Form */
    .form {
        gap: 18px;
    }

    .field input,
    .field textarea {
        padding: 14px;
        font-size: 16px; /* prevents iOS zoom on focus */
        border-radius: 8px;
    }

    .field label {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .btn--full {
        padding: 16px;
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 48px 0 32px;
    }

    .footer-tagline {
        font-size: clamp(28px, 8vw, 48px);
    }

    .footer-content {
        gap: 24px;
        margin-bottom: 32px;
    }

    .arrow-up {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* Modal */
    .modal-container {
        width: 95%;
        height: 85%;
        border-radius: 12px;
    }

    /* Hide popup on touch devices */
    .info-popup,
    .blur-overlay {
        display: none !important;
    }

    .name-hover {
        cursor: default;
    }

    /* Section sizing */
    .section-heading {
        font-size: clamp(24px, 6vw, 40px);
    }
}

/* ── Small Mobile (max-width: 480px) ── */
@media (max-width: 480px) {

    .hero-name {
        font-size: 28px;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn-premium {
        padding: 14px 20px;
        font-size: 13px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .stat-number {
        font-size: 32px;
    }

    .section-heading {
        font-size: 24px;
    }

    .project-slider {
        aspect-ratio: 4/3;
    }

    .cert-list li::after {
        display: none;
    }
}

/* ═══════════════════════════════════════════ */
/*  INFO POPUP (Hover)                         */
/* ═══════════════════════════════════════════ */
.info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 16px;
    z-index: 10002;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(20px, 20px) scale(0.8);
    transition: 
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
        opacity 0.4s ease, 
        visibility 0.4s;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    will-change: transform, opacity;
}

.info-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0) scale(1);
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity 0.35s ease, 
        visibility 0.35s;
    pointer-events: none;
    will-change: opacity;
}

.blur-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-info h3 {
    font-family: var(--heading);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.popup-info p {
    font-size: 13px;
    color: var(--fg-muted);
    margin-bottom: 12px;
}

.popup-tags {
    display: flex;
    gap: 8px;
}

.popup-tags span {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    background: var(--accent-muted);
    color: var(--accent);
    border-radius: 100px;
    text-transform: uppercase;
}

.name-hover {
    cursor: help;
    color: var(--accent);
    position: relative;
    z-index: 10001;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.name-hover:hover {
    color: var(--fg);
}

/* ═══════════════════════════════════════════ */
/*  RESUME MODAL                               */
/* ═══════════════════════════════════════════ */
.resume-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.modal-container {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1000px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9) translateY(40px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.resume-modal.visible .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    width: 100%;
    height: 100%;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
}

/* Disable body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ═══════════════════════════════════════════ */
/*  PROJECT SLIDER                             */
/* ═══════════════════════════════════════════ */
.project-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    max-height: 70vh;
    border-radius: 20px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid var(--border);
    transition: aspect-ratio 0.5s ease;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    object-position: center;
}

.slider-img.active {
    opacity: 1;
    visibility: visible;
}

/* Vertical Panning */
.slider-img.active.vertical {
    animation: panVertical 10s linear infinite alternate;
}

@keyframes panVertical {
    from { object-position: top; }
    to { object-position: bottom; }
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 0 8px;
}

.slider-nav {
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 10px;
}

.project-slider .tag {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

/* ═══════════════════════════════════════════ */
/*  SLIDER ENHANCEMENTS                        */
/* ═══════════════════════════════════════════ */
.slider-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.slider-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width linear;
}

/* Vertical Panning Effect (Removed, slider now resizes dynamically) */
.slider-img.vertical {
    object-position: center;
}

/* ═══════════════════════════════════════════ */
/*  CONTACT DETAILS                            */
/* ═══════════════════════════════════════════ */
.contact-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.detail-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 2px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover .detail-value {
    color: var(--accent);
}
/* ═══════════════════════════════════════════ */
/*  MARQUEE                                    */
/* ═══════════════════════════════════════════ */
.marquee-container {
    background: var(--accent);
    color: #000;
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    user-select: none;
    transform: rotate(-1deg) scale(1.05);
    z-index: 10;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 800;
    text-transform: uppercase;
    font-family: var(--heading);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 20px;
}

.marquee-item::after {
    content: '✦';
    font-size: 0.7em;
    opacity: 0.5;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.theme--light + .marquee-container {
    transform: rotate(1deg) scale(1.05);
}

/* Fix for light theme backgrounds */
.theme--light {
    position: relative;
    z-index: 1;
}

.theme--light .container {
    position: relative;
    z-index: 2;
}
