/* ==========================================
   Cinematic Staggered Multi-Column Curtain Preloader
========================================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    overflow: hidden;
    background: transparent;
}

.preloader-overlay.finished {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Curtain Tiers */
.curtain-tier {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: none;
}

.curtain-tier-back {
    z-index: 1;
}

.curtain-tier-front {
    z-index: 2;
}

/* 5 Vertical Slices */
.curtain-col {
    flex: 1;
    height: 100%;
    transform: translateY(0);
    transition: transform 1.15s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
}

.curtain-tier-back .curtain-col {
    background: #18181b;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.curtain-tier-front .curtain-col {
    background: #09090b;
    border-right: 1px solid rgba(255, 255, 255, 0.035);
}

/* Staggered Wave Reveal - Front Tier */
.preloader-overlay.reveal .curtain-tier-front .curtain-col:nth-child(1) {
    transform: translateY(-100%);
    transition-delay: 0.04s;
}
.preloader-overlay.reveal .curtain-tier-front .curtain-col:nth-child(2) {
    transform: translateY(-100%);
    transition-delay: 0.11s;
}
.preloader-overlay.reveal .curtain-tier-front .curtain-col:nth-child(3) {
    transform: translateY(-100%);
    transition-delay: 0.18s;
}
.preloader-overlay.reveal .curtain-tier-front .curtain-col:nth-child(4) {
    transform: translateY(-100%);
    transition-delay: 0.25s;
}
.preloader-overlay.reveal .curtain-tier-front .curtain-col:nth-child(5) {
    transform: translateY(-100%);
    transition-delay: 0.32s;
}

/* Staggered Wave Reveal - Back Tier (Deeper Layer Parallax) */
.preloader-overlay.reveal .curtain-tier-back .curtain-col:nth-child(1) {
    transform: translateY(-100%);
    transition-delay: 0.16s;
}
.preloader-overlay.reveal .curtain-tier-back .curtain-col:nth-child(2) {
    transform: translateY(-100%);
    transition-delay: 0.23s;
}
.preloader-overlay.reveal .curtain-tier-back .curtain-col:nth-child(3) {
    transform: translateY(-100%);
    transition-delay: 0.30s;
}
.preloader-overlay.reveal .curtain-tier-back .curtain-col:nth-child(4) {
    transform: translateY(-100%);
    transition-delay: 0.37s;
}
.preloader-overlay.reveal .curtain-tier-back .curtain-col:nth-child(5) {
    transform: translateY(-100%);
    transition-delay: 0.44s;
}


/* ==========================================
   CSS Custom Properties & Reset
========================================== */
:root {
    /* Colors - Pure White & Black Theme with Pink Accents */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e5e5e5;
    --border-light: #eeeeee;
    --success: #22c55e;
    
    /* Pink Accents */
    --accent: #f8e1f0;
    --accent-dark: #f0c9e4;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1400px;
    --container-padding: 0 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
}

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

html {
    /* scroll-behavior: smooth; REMOVED for Lenis compatibility */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #d1d1d1 var(--bg-primary);
    /* Firefox */
}

/* Lenis Recommended CSS */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ==========================================
   Global Polish (Scrollbar, Selection, Grain)
========================================== */
/* Custom Scrollbar - Webkit */
::-webkit-scrollbar {
    width: 6px;
    /* Made slightly thinner for 'sleek' look */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a1a1a;
    /* Darker on hover for better contrast */
}

/* Custom Text Selection */
::selection {
    background: var(--accent-dark);
    color: var(--text-primary);
    text-shadow: none;
}

::-moz-selection {
    background: var(--accent-dark);
    color: var(--text-primary);
    text-shadow: none;
}

/* Grain Overlay - Texture */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    /* Below cursor, above content */
    background-image: url('noise.png');
    background-repeat: repeat;
    opacity: 0.85;
}

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

/* ==========================================
   Cursor Follower
========================================== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-dark);
    /* Will invert with difference mode */
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    /* mix-blend-mode: difference; Optional: makes it visible on dark/light */
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.2s;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}


/* ==========================================
   Staggered Text Hover Effect (Lando Norris Style)
========================================== */
.nav-link {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    text-decoration: none;
    line-height: 1.2;
    /* Ensure height for overflow */
}

.letter {
    display: inline-block;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
    transform-style: preserve-3d;
}

/* The duplicate letter that slides up */
.letter::after {
    content: attr(data-letter);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--text-primary);
    /* Or inherit */
}

/* Hover state */
.nav-link:hover .letter {
    transform: translateY(-100%);
}

/* Active state handling - keep it simple or animate */
.nav-link.active {
    color: var(--text-primary);
}

/* ==========================================
   Navigation - Floating Architectural Capsule
   (Modern 2026 Developer Portfolio Aesthetic)
========================================== */
.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1320px, calc(100% - 40px));
    z-index: 1000;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    top: 12px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.03);
}

.navbar.menu-active {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    z-index: 2500;
}

.navbar.menu-active .logo-name {
    color: #ffffff !important;
}

.navbar.menu-active .nav-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.navbar.menu-active .hamburger,
.navbar.menu-active .hamburger::before,
.navbar.menu-active .hamburger::after {
    background: #ffffff !important;
}

.navbar.menu-active .nav-center,
.navbar.menu-active .nav-left .nav-status-beacon,
.navbar.menu-active .nav-resume-btn,
.navbar.menu-active .nav-talk-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Zone 1: Left Brand & Status */
.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    z-index: 1001;
}

.logo-name {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logo-role {
    font-family: var(--font-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.04);
}

/* Status Beacon */
.nav-status-beacon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
    cursor: default;
}

.status-pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    flex-shrink: 0;
}

.status-pulse-dot::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.4);
    animation: beaconPulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes beaconPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.status-label {
    font-family: var(--font-secondary);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Zone 2: Center Links with Sliding Pill */
.nav-center {
    display: none;
}

.nav-links-desktop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 3px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-full);
}

.nav-indicator-pill {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 0;
    background: #ffffff;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    z-index: 1;
}

.nav-indicator-pill.active {
    opacity: 1;
}

.nav-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    font-family: var(--font-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: color 0.25s ease;
    line-height: 1.2;
    overflow: visible;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

/* Ensure no ghost duplicate letters appear in desktop navbar */
.nav-links-desktop .nav-link .letter,
.nav-links-desktop .nav-link .letter::after {
    display: inline !important;
    position: static !important;
    transform: none !important;
    transition: none !important;
}

.nav-links-desktop .nav-link .letter::after {
    display: none !important;
}

/* Zone 3: Right Actions */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-family: var(--font-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
}

.nav-resume-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

.nav-btn-icon {
    transition: transform 0.25s ease;
}

.nav-resume-btn:hover .nav-btn-icon {
    transform: translate(2px, -2px);
}

.nav-talk-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    font-family: var(--font-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-talk-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.nav-toggle {
    display: flex;
    height: 38px;
    width: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}

.hamburger {
    position: relative;
    width: 18px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1), background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1), top 0.3s ease;
}

.hamburger::before {
    top: -5px;
}

.hamburger::after {
    top: 5px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Breakpoint for Desktop Navigation */
@media (min-width: 1025px) {
    .nav-center {
        display: block;
    }

    .nav-toggle {
        display: none;
    }
}

/* Tablet & Mobile Adjustments */
@media (max-width: 1024px) {
    .navbar {
        width: calc(100% - 24px);
        top: 12px;
        padding: 6px 10px;
    }

    .nav-container {
        padding: 2px 6px;
    }

    .status-label {
        display: none;
    }

    .status-label::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .navbar {
        width: calc(100% - 20px);
        top: 10px;
    }

    .nav-status-beacon {
        display: none;
    }

    .nav-talk-btn {
        display: none;
    }
}

/* Active State for Hamburger (Global or Mobile) */
/* Full-screen Mobile Overlay Menu (Modern Dark Glass) */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    clip-path: circle(0% at calc(100% - 38px) 38px);
    transition: clip-path 0.75s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-menu.active {
    clip-path: circle(150% at calc(100% - 38px) 38px);
    opacity: 1;
    pointer-events: all;
}

.menu-overlay-content {
    position: relative;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 24px 40px 24px;
    box-sizing: border-box;
}

.menu-nav-body {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

/* Links List */
.menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.menu-link-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu.active .menu-link-item:nth-child(1) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.nav-menu.active .menu-link-item:nth-child(2) { transition-delay: 0.21s; opacity: 1; transform: translateY(0); }
.nav-menu.active .menu-link-item:nth-child(3) { transition-delay: 0.27s; opacity: 1; transform: translateY(0); }
.nav-menu.active .menu-link-item:nth-child(4) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
.nav-menu.active .menu-link-item:nth-child(5) { transition-delay: 0.39s; opacity: 1; transform: translateY(0); }
.nav-menu.active .menu-link-item:nth-child(6) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }

.mobile-nav-link {
    display: inline-flex;
    align-items: baseline;
    gap: 16px;
    text-decoration: none;
    padding: 4px 0;
    transition: transform 0.25s ease;
}

.menu-link-num {
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.08em;
    min-width: 22px;
}

.menu-link-text {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5.8vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #ffffff;
    line-height: 1.15;
    transition: color 0.25s ease, transform 0.25s ease;
}

.mobile-nav-link:hover .menu-link-text,
.mobile-nav-link:active .menu-link-text {
    color: #ffffff;
    transform: translateX(6px);
}

.mobile-nav-link:hover .menu-link-num {
    color: #22c55e;
}

/* Action Buttons */
.menu-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.48s;
}

.nav-menu.active .menu-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-menu-talk {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #09090b;
    padding: 13px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-menu-talk:hover {
    background: #f4f4f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.btn-menu-resume {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-menu-resume:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Footer Section */
.menu-footer {
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.54s;
}

.nav-menu.active .menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.menu-status-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.menu-status-text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.menu-social-icons {
    display: flex;
    gap: 10px;
}

.social-circle {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-circle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ==========================================
   Hero Section
========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Subtle dot grid pattern */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.065) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 55% 50%, black 45%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 55% 50%, black 45%, transparent 78%);
    z-index: 0;
}

/* Vertical text on left */
.hero-vertical-text {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left center;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

.hero-year {
    position: absolute;
    left: 30px;
    bottom: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 2;
}

/* Hero Location & Time */
.hero-location-time {
    position: absolute;
    right: 30px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 2;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    gap: 10px;
}

.location-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

#hero-clock {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 90px);
    position: relative;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Stats row - clean minimal typography like before, no boxes */
.hero-stats {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.stat-text {
    font-size: 0.75rem;
    font-family: var(--font-secondary);
    color: var(--text-secondary);
    text-transform: capitalize;
    margin-top: -3px;
}

/* Main title - Dynamic Multi-lingual Rolling Greeting */
.hero-title {
    font-size: clamp(4.6rem, 13.5vw, 11rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: baseline;
    cursor: default;
    position: relative;
    user-select: none;
}

.hero-greeting-reel {
    display: inline-block;
    position: relative;
    overflow: hidden;
    height: 1.22em;
    line-height: 1.22;
    vertical-align: bottom;
}

.greeting-text {
    display: inline-block;
    white-space: nowrap;
    transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.65s ease, filter 0.65s ease;
    will-change: transform, opacity;
}

.greeting-text.english {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.04em;
    font-weight: 300;
}

.greeting-text.hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    letter-spacing: 0em;
    font-weight: 600;
}

.greeting-text.tamil {
    font-family: 'Noto Sans Tamil', sans-serif;
    letter-spacing: 0em;
    font-weight: 600;
}

/* Subtitle */
.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 50px;
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--text-primary);
}

.scroll-indicator svg {
    animation: bounce 2s infinite;
}

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

/* Hero Portrait & Frame */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding-bottom: 20px;
}

.hero-image-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-portrait {
    width: 100%;
    max-width: 540px;
    height: auto;
    object-fit: contain;
    transform: translateY(-12px);
    /* Initial state: Black and white */
    filter: grayscale(100%) contrast(1.06) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
    mask-image: linear-gradient(to bottom, black 84%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 84%, transparent 100%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
    will-change: filter, transform;
}

.hero-portrait:hover {
    transform: translateY(-18px) scale(1.01);
    filter: grayscale(0%) contrast(1.06) saturate(1.08) drop-shadow(0 20px 35px rgba(0, 0, 0, 0.12));
}

@media (max-width: 1024px) {
    .hero {
        align-items: flex-start;
        padding-top: 100px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        padding: 0 30px;
        text-align: center;
        gap: 30px;
    }
    
    .hero-vertical-text,
    .hero-year,
    .hero-location-time {
        display: none;
    }
    
    .hero-content {
        padding-left: 0;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-portrait {
        max-width: 380px;
        transform: translateY(0);
    }

    .scroll-indicator {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: clamp(4.2rem, 18vw, 6.5rem);
        letter-spacing: -3px;
    }

    .hero-portrait {
        max-width: 300px;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 16px;
        gap: 20px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stat-card {
        padding: 10px 14px;
        min-width: 90px;
    }

    .hero-stat-card .stat-num {
        font-size: 1.4rem;
    }

    .hero-portrait {
        max-width: 250px;
    }
}

/* ==========================================
   Buttons
========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-primary);
}

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

/* ==========================================
   Section Styles
========================================== */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--accent);
    border: 1px solid var(--accent-dark);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    color: var(--text-primary);
    cursor: default;
    letter-spacing: -0.03em;
}

/* ==========================================
   About Section - Clean & Minimal
========================================== */
/* About Section - Editorial Redesign */
.about-section {
    padding: 7rem 0;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.about-editorial-content {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-lead-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.55;
    color: var(--text-primary);
    max-width: 950px;
    letter-spacing: 0.01em;
}

.about-story-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 920px;
}

.about-paragraph {
    font-family: 'Inter', sans-serif;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 400;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.about-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.about-stat-item:hover {
    transform: translateY(-2px);
}

.stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================
   Education Section - Editorial Minimalist
   (Pure Typography, Zero Box Containers)
========================================== */
.education-editorial {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.education-section-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--text-primary);
}

.education-heading {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.edu-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 36px 0;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.edu-row:hover {
    border-color: var(--text-primary);
}

.edu-row-main {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    flex: 1;
}

.edu-num {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 32px;
    padding-top: 4px;
    transition: color 0.3s ease;
}

.edu-row:hover .edu-num {
    color: var(--text-primary);
}

.edu-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edu-degree-name {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 0;
    transition: transform 0.3s ease;
}

.edu-row:hover .edu-degree-name {
    transform: translateX(4px);
}

.edu-institution {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.edu-meta-sub {
    font-family: var(--font-secondary);
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.edu-row-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 220px;
    text-align: right;
    padding-top: 4px;
}

.edu-year-label {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.edu-status-tag {
    font-family: var(--font-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Responsive Design for About */
@media (max-width: 1024px) {
    .about-lead-text {
        font-size: 1.8rem;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }

    .about-container {
        padding: 0 1.5rem;
    }

    .about-lead-text {
        font-size: 1.4rem;
    }

    .about-editorial-content {
        gap: 3rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-sub {
        font-size: 0.85rem;
    }

    .edu-row {
        flex-direction: column;
        gap: 1.25rem;
        padding: 26px 0;
    }

    .edu-row-main {
        gap: 1.25rem;
    }

    .edu-row-side {
        align-items: flex-start;
        text-align: left;
        padding-left: calc(32px + 1.25rem);
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 3rem 0;
    }

    .about-container {
        padding: 0 1.25rem;
    }

    .about-lead-text {
        font-size: 1.2rem;
    }

    .about-stats-grid {
        gap: 2rem;
    }

    .edu-row-side {
        padding-left: 0;
    }
}

/* ==========================================
   Skills Section - NEW
========================================== */
.skills-section {
    background: var(--bg-secondary);
    padding: var(--section-padding);
}

.skills-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-category {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    transition: var(--transition-normal);
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--text-primary);
}

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background: var(--bg-tertiary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.skill-category:hover .skill-item {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ==========================================
   Projects Section
========================================== */
.projects {
    background: var(--bg-primary);
}

.projects-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    position: relative;
    overflow: hidden;
}

.project-image-2 {
    background: linear-gradient(135deg, #d0d0d0 0%, #b0b0b0 100%);
}

.project-image-3 {
    background: linear-gradient(135deg, #c5c5c5 0%, #a5a5a5 100%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-info {
    padding: 24px;
}

.project-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

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

.project-tags span {
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================
   CTA Section
========================================== */
.cta-section {
    background: var(--bg-tertiary);
    padding: 100px 0;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.7;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    padding-bottom: 3px;
    border-bottom: 1px solid var(--text-primary);
    transition: var(--transition-fast);
}

.cta-btn:hover {
    opacity: 0.7;
}

/* ==========================================
   Footer - Dark Style
========================================== */
.footer-new {
    background: #1a1a1a;
    padding: 50px 0;
}

.footer-new-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-socials {
    display: flex;
    gap: 2rem;
}

.footer-social-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    text-decoration: none;
    line-height: 1.2;
}

.footer-social-link:hover .letter {
    transform: translateY(-100%);
}

.footer-social-link .letter::after {
    color: #ffffff;
}

.footer-social-link:hover {
    color: #fff;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px #ffffff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    letter-spacing: -0.02em;
    text-align: center;
}

.footer-brand:hover {
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.footer-email a {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    transition: opacity 0.3s ease;
}

.footer-email a:hover {
    opacity: 0.8;
}

.footer-copyright {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: 40px;
    font-family: var(--font-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================
   Responsive Styles
========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 40px;
    }

    .hero-content {
        order: 1;
        padding-left: 0;
    }

    .hero-image-container {
        order: 0;
        justify-content: center;
        margin-bottom: 40px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-vertical-text,
    .hero-year,
    .hero-location-time {
        display: none;
    }

    .hero-title {
        letter-spacing: -4px;
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-intro {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .bento-stat-main {
        grid-column: 1;
    }

    .bento-arrow-card {
        grid-column: 2;
    }

    .bento-feature:nth-of-type(4) {
        grid-column: 1;
        grid-row: auto;
    }

    .bento-feature:nth-of-type(5) {
        grid-column: 2;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    /* Media queries adjustments - removing redundant menu overrides */
    .nav-toggle {
        display: flex;
    }

    /* Staggered Delays */
    .nav-toggle {
        display: flex;
    }

    .btn-book {
        display: none;
    }

    /* CTA responsive */
    .cta-section {
        padding: 60px 0;
    }

    .cta-container {
        padding: 0 20px;
    }

    .btn-book {
        display: none;
    }

    /* Hamburger active states are now handled globally for better animation consistency */

    .hero-portrait {
        max-width: 350px;
    }

    .hero-title {
        font-size: clamp(3.6rem, 12.5vw, 5.5rem);
    }

    .about-bento-container {
        padding: 0 30px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-intro,
    .bento-stat-main,
    .bento-arrow-card,
    .bento-feature:nth-of-type(4),
    .bento-feature:nth-of-type(5) {
        grid-column: 1;
    }

    .bento-arrow-card {
        display: none;
    }

    .curved-arrow {
        display: none;
    }

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

    .footer-new-container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding: 0 20px;
    }

    .footer-socials {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-email a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .hero-title {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }

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

    .menu-overlay-content {
        padding: 85px 20px 30px 20px;
    }

    .menu-links {
        gap: 12px;
    }

    .menu-link-text {
        font-size: 1.85rem;
    }

    .menu-actions {
        flex-direction: column;
    }

    .btn-menu-talk,
    .btn-menu-resume {
        width: 100%;
    }

    /* CTA smaller */
    .cta-section {
        padding: 40px 0;
    }

    .cta-container {
        padding: 0 16px;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-description {
        font-size: 0.9rem;
    }

    /* Footer compact */
    .footer-new {
        padding: 35px 0;
    }

    .footer-new-container {
        padding: 0 16px;
        gap: 20px;
    }

    .footer-brand {
        font-size: 1.8rem;
    }

    .footer-email a {
        font-size: 0.85rem;
    }

    .footer-copyright {
        margin-top: 25px;
        font-size: 0.7rem;
    }

    /* Skills section tighter on mobile */
    .skills-container {
        padding: 0 16px;
    }

    .skill-name {
        font-size: 1.8rem;
    }

    .projects-container {
        padding: 0 16px;
    }

    .project-number-large {
        font-size: 3rem;
    }

    .project-title-large {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .project-desc-large {
        font-size: 0.95rem;
    }

    .arrow-circle-btn {
        width: 40px;
        height: 40px;
    }

    .arrow-circle-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================
   Enhanced Skills Section - Hero Style Match
========================================== */
.skills-section {
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

/* Vertical text decoration like hero */
.skills-section::before {
    content: 'Technologies';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: rotate(90deg) translateX(-50%);
    transform-origin: right center;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
}

.skills-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 60px;
}

/* ==========================================
   Generic Section Headers (Applied Everywhere)
========================================== */
.section-header {
    text-align: left;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    margin: 20px 0 0 0;
    width: 60px;
    height: 2px;
    background: var(--text-primary);
}

.section-tag {
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ==========================================
   Skills Section - Editorial Kinetic List
========================================== */
.skills-editorial {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--text-primary);
}

.skill-row {
    display: grid;
    grid-template-columns: 0.1fr 0.4fr 1fr;
    /* Number, Title, Skills */
    padding: 50px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: center;
    cursor: default;
}

/* Hover State - High Contrast */
.skill-row:hover {
    background-color: var(--text-primary);
}

.skill-row:hover .skill-num,
.skill-row:hover .skill-name {
    color: var(--bg-primary);
}

.skill-header {
    display: contents;
    /* Allows children to participate in the parent grid */
}

.skill-num {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.skill-name {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -1px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.skill-row:hover .skill-name {
    transform: translateX(10px);
}

.skill-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.skill-pill {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    /* Sharp edges for editorial feel */
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.skill-row:hover .skill-pill {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.skill-row:hover .skill-pill:hover {
    background: var(--bg-primary);
    color: var(--text-primary) !important;
    border-color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .skill-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }

    .skill-header {
        display: flex;
        align-items: baseline;
        gap: 20px;
    }

    .skill-list-inline {
        justify-content: flex-start;
    }

    .skill-row:hover {
        background: transparent;
    }

    .skill-row:hover .skill-num {
        color: var(--text-muted);
    }

    .skill-row:hover .skill-name {
        color: var(--text-primary);
        transform: none;
    }

    .skill-row:hover .skill-pill {
        color: var(--text-secondary);
        border-color: var(--border-color);
    }
}

/* ==========================================
   Projects Section - Editorial Stack
========================================== */
.projects-section {
    background: var(--bg-primary);
    padding: 120px 0;
}

@media (max-width: 768px) {
    .projects-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 40px 0;
    }
}

/* ==========================================
   Projects Section - Editorial Kinetic List
   (Pure Typography, Zero Box Containers)
========================================== */
.projects-section {
    background: var(--bg-primary);
    padding: 7rem 0;
    position: relative;
}

.projects-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 4rem;
}

.projects-editorial {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--text-primary);
    margin-top: 2rem;
}

.project-row {
    display: grid;
    grid-template-columns: 1.15fr 1.55fr 0.55fr;
    gap: 3.5rem;
    align-items: center;
    padding: 46px 0;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.project-row:hover {
    border-color: var(--text-primary);
}

/* Left Column: Number & Title */
.project-left-col {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.project-num {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 34px;
    padding-top: 3px;
    transition: color 0.3s ease;
}

.project-row:hover .project-num {
    color: var(--text-primary);
}

.project-title-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-category {
    font-family: var(--font-secondary);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.project-row:hover .project-category {
    color: var(--text-secondary);
}

.project-title {
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row:hover .project-title {
    transform: translateX(8px);
}

/* Center Column: Description & Pills */
.project-mid-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-desc {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

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

.tech-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: var(--font-secondary);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.25s ease;
}

.project-row:hover .tech-pill {
    border-color: rgba(0, 0, 0, 0.22);
    color: var(--text-primary);
}

/* Right Column: Interactive CTA */
.project-right-col {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.project-action-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-label {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    transition: opacity 0.25s ease;
}

.action-circle-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.project-action-link:hover .action-circle-icon,
.project-row:hover .project-action-link:not(.disabled) .action-circle-icon {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
    transform: translate(2px, -2px) rotate(-45deg);
}

.project-action-link.disabled {
    cursor: default;
    opacity: 0.5;
}

.project-action-link.disabled .action-label {
    color: var(--text-muted);
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 1024px) {
    .projects-container {
        padding: 0 2rem;
    }

    .project-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 38px 0;
    }

    .project-right-col {
        grid-column: span 2;
        justify-content: flex-start;
        padding-left: calc(34px + 2rem);
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 4rem 0;
    }

    .projects-container {
        padding: 0 1.5rem;
    }

    .project-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 32px 0;
    }

    .project-left-col {
        gap: 1.25rem;
    }

    .project-right-col {
        padding-left: calc(34px + 1.25rem);
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 3rem 0;
    }

    .projects-container {
        padding: 0 1.25rem;
    }

    .project-right-col {
        padding-left: 0;
    }
}

.project-link-disabled .arrow-circle-btn {
    border-color: var(--text-muted);
}

.project-link-disabled:hover .arrow-circle-btn {
    background: transparent;
    transform: none;
}

/* Responsive Projects */
@media (max-width: 1024px) {
    .projects-sticky-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .projects-visuals {
        width: 100%;
        height: 50vh;
        position: relative;
        top: 0;
    }

    .projects-info {
        width: 100%;
        padding-bottom: 0;
    }

    .project-info-item {
        min-height: auto;
        padding: 40px 0;
        opacity: 1;
        /* Always visible on mobile */
        border-bottom: 1px solid var(--border-light);
    }

    .project-info-item:last-child {
        border-bottom: none;
    }
}

.project-link {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(20px);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-card:hover .project-link {
    transform: translateY(0);
}

/* Hero Image Sizing is handled in main hero block */

/* ==========================================
   Responsive - Hide vertical text on mobile
========================================== */
@media (max-width: 1024px) {

    .skills-section::before,
    .projects::before,
    .projects::after {
        display: none;
    }

    .skills-container,
    .projects-container {
        padding: 0 30px;
    }

    .skills-section .section-title,
    .projects .section-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

@media (max-width: 768px) {

    .skills-section,
    .projects {
        padding: 50px 0;
    }

    .skills-section .section-header,
    .projects .section-header {
        margin-bottom: 30px;
    }

    .skills-container,
    .projects-container {
        padding: 0 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .skill-category {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Infinite Marquee
========================================== */
.marquee-section {
    background: var(--text-primary);
    padding: 25px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    width: max-content;
    /* Ensure width fits content */
}

.marquee-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 0;
    /* No margin, we use padding in the text string or just rely on the dash */
    padding-right: 20px;
    /* Add some spacing between repeats */
    opacity: 0.9;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move by half the total width (assuming 2 sets of text cover the loop) */
    }
}

/* Hover to pause */
.marquee-section:hover .marquee-track {
    animation-play-state: paused;
}

/* ==========================================
   Mobile Responsiveness Fixes
========================================== */
@media (max-width: 768px) {

    /* Hide custom cursor on mobile/touch devices */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    /* Adjust Marquee size */
    .marquee-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .marquee-section {
        padding: 15px 0;
    }

    /* Tactile Touch Feedback (App-like feel) */
    a:active,
    button:active,
    .project-row:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* ==========================================
   Scroll Progress Bar
========================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px; /* Thinner */
    background: var(--accent-dark); /* Pink tab color */
    z-index: 3000;
    transition: width 0.1s ease-out;
}

/* ==========================================
   Back to Top Button
========================================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #000;
    /* Ensure it stays dark */
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}