:root {
    /* Color Palette */
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --accent-primary: #00e5ff;
    --accent-secondary: #7000ff;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

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

/* Glassmorphism utility */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(10, 10, 12, 0.075);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
}



.logo .collapsible-char {
    max-width: 0;
    opacity: 0;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-12px);
    vertical-align: bottom;
}

.logo .logo-space {
    max-width: 0;
    opacity: 0;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo.expanded .collapsible-char {
    max-width: 25px;
    opacity: 1;
    transform: translateX(0);
}

.logo.expanded .logo-space {
    max-width: 12px;
    opacity: 1;
}

/* Stagger Delays - COLLAPSING (reverse order) */
.logo .char-1 { transition-delay: 0.50s; }
.logo .char-2 { transition-delay: 0.45s; }
.logo .char-3 { transition-delay: 0.40s; }
.logo .char-4 { transition-delay: 0.35s; }
.logo .logo-space { transition-delay: 0.30s; }
.logo .char-5 { transition-delay: 0.25s; }
.logo .char-6 { transition-delay: 0.20s; }
.logo .char-7 { transition-delay: 0.15s; }
.logo .char-8 { transition-delay: 0.10s; }
.logo .char-9 { transition-delay: 0.05s; }
.logo .char-10 { transition-delay: 0s; }

/* Stagger Delays - EXPANDING (forward order) */
.logo.expanded .char-1 { transition-delay: 0.05s; }
.logo.expanded .char-2 { transition-delay: 0.10s; }
.logo.expanded .char-3 { transition-delay: 0.15s; }
.logo.expanded .char-4 { transition-delay: 0.20s; }
.logo.expanded .logo-space { transition-delay: 0.25s; }
.logo.expanded .char-5 { transition-delay: 0.30s; }
.logo.expanded .char-6 { transition-delay: 0.35s; }
.logo.expanded .char-7 { transition-delay: 0.40s; }
.logo.expanded .char-8 { transition-delay: 0.45s; }
.logo.expanded .char-9 { transition-delay: 0.50s; }
.logo.expanded .char-10 { transition-delay: 0.55s; }

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

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

.nav-resume-btn {
    border: 1px solid var(--accent-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: var(--transition-fast) !important;
}

.nav-resume-btn:hover {
    background: var(--accent-primary);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto; /* Fallback to natural layout height for short viewports (mobile landscape) */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 5% 40px 5%; /* Pushes content below the fixed navbar */
    overflow: visible; /* Prevents vertical clipping on short screens */
}

@media (min-height: 650px) {
    .hero {
        height: 100vh;
        padding: 0 5%;
        overflow: hidden; /* Restores standard full-screen crop on tall screens */
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.subtitle {
    font-size: clamp(0.85rem, 2.5vw, 1.2rem);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.5vw, 2.5px);
    margin-bottom: 1rem;
    font-weight: 600;
}

.title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #a0a0a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

/* Background Effects */
.hero-background {
    display: none; /* Hide background glow shade to keep canvas background clean */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}


.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Sections General */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 5%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-align: left;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
    transform: none;
}

.text-center {
    text-align: center;
}
.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: scale(0.96);
    opacity: 0.6;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-content.active-scroll {
    z-index: 5;
    border-color: rgba(0, 229, 255, 0.35) !important;
    box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.6), 
                0 0 25px 0 rgba(0, 229, 255, 0.15), 
                inset 0 1px 2px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Force override of glass-card defaults on timeline-content so it is transparent and has no filter */
.timeline-content.glass-card {
    background: linear-gradient(135deg, rgba(25, 25, 30, 0.75) 0%, rgba(10, 10, 12, 0.9) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
}

.timeline-content:hover {
    z-index: 5;
    transform: translateX(10px) scale(1.04);
    border-color: rgba(0, 229, 255, 0.35) !important;
    box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.6), 
                0 0 25px 0 rgba(0, 229, 255, 0.15), 
                inset 0 1px 2px 0 rgba(255, 255, 255, 0.2) !important;
    transition: transform 0.12s cubic-bezier(0.215, 0.61, 0.355, 1), 
                border-color 0.12s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-weight: 600;
    opacity: 0.95;
}

.timeline-content .date {
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content .project {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Showreel */
.showreel .section-container {
    padding-bottom: 2rem;
}

/* Theater Mode Backdrop */
.theater-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 6, 0.25); /* Very subtle dimming to keep scroll canvas background visible */
    /* Removed backdrop-filter blur to keep canvas background sharp and clear */
    z-index: 990; /* Positioned over standard elements, under video card */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

body.theater-active .theater-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.video-container {
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 8rem auto;
    display: block;
    position: relative;
    overflow: hidden;
    background: #000; /* Solid dark background to prevent flashing during iframe resize */
    z-index: 1; /* Default stack index */
    
    /* Disable expensive backdrop blur for smooth scaling transitions */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    
    /* Promotes the element to a composite layer for hardware-accelerated rendering */
    will-change: max-width, transform, opacity, box-shadow;
    
    transition: max-width 0.7s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.7s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.7s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-container.playing {
    z-index: 1000; /* Float above the theater backdrop overlay */
    max-width: min(94vw, calc(100vh - 200px) * 1.7778);
    box-shadow: 0 25px 60px rgba(0, 229, 255, 0.3);
    border-color: rgba(0, 229, 255, 0.5);
    
    /* Centering offset calculated dynamically via JS - override scroll reveal transforms */
    transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) !important;
}

.video-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    outline: none;
    background: #000;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 5%;
    text-align: center;
    background: #050506;
}

.footer-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.social-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--accent-primary);
}

.copyright {
    color: #555;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 12, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 2.5rem 2rem;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
        animation: slideDownMenu 0.3s ease forwards;
    }

    @keyframes slideDownMenu {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .menu-btn {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        padding: 0;
        margin: 0;
        border: none;
        background: none;
        outline: none;
        cursor: pointer;
        z-index: 1001;
    }
    
    .menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        position: absolute;
        transition: 0.3s ease;
    }
    
    .menu-btn span:nth-child(1) { top: 0; }
    .menu-btn span:nth-child(2) { top: 9px; }
    .menu-btn span:nth-child(3) { top: 18px; }

    /* Transform to 'X' */
    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    
    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 45px;
    }
    
    .timeline-dot {
        left: 9px;
    }
    
    .timeline-content {
        transform: scale(0.96);
        opacity: 0.6;
        transform-style: flat !important;
        transition: border-color 0.4s ease, box-shadow 0.4s ease !important;
    }

    .timeline-content.active-scroll {
        z-index: 5;
        border-color: rgba(0, 229, 255, 0.35) !important;
        box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.6), 
                    0 0 25px 0 rgba(0, 229, 255, 0.15), 
                    inset 0 1px 2px 0 rgba(255, 255, 255, 0.2) !important;
    }

    /* Prevent mobile hover stickiness issues */
    .timeline-content:hover {
        transform: scale(0.96);
        opacity: 0.6;
        border-color: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1) !important;
    }

    .timeline-content.active-scroll:hover {
        border-color: rgba(0, 229, 255, 0.35) !important;
        box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.6), 
                    0 0 25px 0 rgba(0, 229, 255, 0.15), 
                    inset 0 1px 2px 0 rgba(255, 255, 255, 0.2) !important;
    }
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    animation: scrollWheel 1.6s ease-in-out infinite;
}

.scroll-indicator .arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

.scroll-indicator .arrow span {
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--text-secondary);
    border-right: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin: -2px 0;
    animation: arrowScroll 1.6s ease-in-out infinite;
}

.scroll-indicator .arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes arrowScroll {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

/* ==========================================================================
   Canvas Scroll Background & Preloader HUD
   ========================================================================== */

/* Fixed Background Canvas */
#scrub-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; /* Under everything */
    display: block;
    background-color: var(--bg-dark);
    opacity: 0.55; /* Native video experiment opacity */
    transition: opacity 0.5s ease;
    transform: translate3d(0, 0, 0); /* Force GPU composite layer */
    will-change: transform;
}

/* Ambient glow overlay */
#canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Under content, over canvas */
    pointer-events: none;
    background: radial-gradient(circle at 80% 20%, rgba(112, 0, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(0, 229, 255, 0.06) 0%, transparent 50%);
}

/* Full Screen Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    max-width: 400px;
    width: 80%;
}

.loader-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    border-radius: 2px;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent-primary);
}

.loader-percentage {
    margin-top: 0.8rem;
    font-family: monospace;
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: bold;
}

/* Ensure glassmorphism cards look beautiful over moving canvas */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%) !important;
    background-color: rgba(10, 10, 12, 0.22) !important; /* frosted base */
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Liquid Glass Buttons */
.liquid-glass-btn {
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.liquid-glass-btn:not(:hover) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.liquid-glass-btn:hover {
    transform: scale(1.05) translateY(-2px);
}

.liquid-glass-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -2;
    backdrop-filter: url("#container-glass");
    -webkit-backdrop-filter: url("#container-glass");
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.liquid-glass-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
    box-shadow: 
        0 0 8px rgba(0, 0, 0, 0.03), 
        0 2px 6px rgba(0, 0, 0, 0.08), 
        inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.09), 
        inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85), 
        inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.6), 
        inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.6), 
        inset 0 0 6px 6px rgba(255, 255, 255, 0.12), 
        inset 0 0 2px 2px rgba(255, 255, 255, 0.06), 
        0 0 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-resume-btn.liquid-glass-btn:hover::before,
.nav-resume-btn.liquid-glass-btn:hover::after {
    opacity: 0;
}

.btn-secondary.liquid-glass-btn:hover {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.btn-secondary.liquid-glass-btn:hover::after {
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.1), 
        0 4px 12px rgba(0, 0, 0, 0.12), 
        inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.15), 
        inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.95), 
        inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.75), 
        inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.75), 
        inset 0 0 8px 8px rgba(255, 255, 255, 0.18), 
        inset 0 0 3px 3px rgba(255, 255, 255, 0.08), 
        0 0 16px rgba(255, 255, 255, 0.25);
}

@keyframes moveBackground {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 0% -1000%;
  }
}

/* Software Skills Marquee */
.software-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 650px;
    margin: 5.5rem auto 1.5rem auto;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    position: relative;
    left: calc(50% - 584px); /* Shift track left to center the 5th element (Maya), pre-populating the left side */
    gap: 3.5rem; /* Gap between the two content lists */
    animation: scrollMarquee 35s linear infinite;
    
    /* Hardware acceleration & anti-flicker rendering overrides */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.marquee-content {
    display: flex;
    gap: 3.5rem;
    padding: 0.5rem 0;
}

.software-marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1.75rem)); /* Translate track by exactly half its width (W + G/2) plus half a gap (G/2) */
    }
}

.software-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: default;
    width: 80px;
}

.badge-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.badge-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    opacity: 0.75;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.software-badge:hover .badge-icon img {
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4));
}

.software-badge:hover {
    color: var(--accent-primary);
    transform: translateY(-4px);
}

.software-badge:hover .badge-icon {
    color: var(--accent-primary);
}

.badge-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.software-badge:hover .badge-label {
    opacity: 1;
    transform: translateY(0);
}

/* 404 Error Page Styles */
.error-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.error-container {
    text-align: center;
    z-index: 2;
    max-width: 600px;
    padding: 4rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
}

.error-code {
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 900;
    line-height: 1;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: glowText 4s infinite alternate ease-in-out;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-heading);
}

.error-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.error-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.error-bg .glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: floatOrb 12s infinite ease-in-out alternate;
}

.error-bg .orb-1 {
    width: 450px;
    height: 450px;
    background: var(--accent-secondary);
    top: -150px;
    left: -150px;
}

.error-bg .orb-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-primary);
    bottom: -100px;
    right: -100px;
    animation-delay: -6s;
}

@keyframes glowText {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.25));
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(112, 0, 255, 0.5));
    }
}

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

