:root {
    --bg-black: #050505;
    --text-white: #ffffff;
    --text-dim: #a0a0a0;

    /* Default Theme Variables (Blue) */
    --neon-primary: #00d2ff;
    /* Main glow/active color */
    --neon-secondary: #2b5aff;
    /* Secondary accent color */
    --neon-glow: rgba(0, 210, 255, 0.6);

    /* Layout Logic */
    --reveal-duration: 1.5s;
    --fade-duration: 0.8s;
    --bottom-nav-height: 80px;
    --stage-height: 230px;
}

.hidden {
    display: none !important;
}

/* --- THEME DEFINITIONS --- */
body.theme-blue {
    --neon-primary: #00d2ff;
    --neon-secondary: #2b5aff;
    --neon-glow: rgba(0, 210, 255, 0.6);
}

body.theme-pink {
    --neon-primary: #ff00ff;
    --neon-secondary: #ff2b85;
    --neon-glow: rgba(255, 0, 255, 0.6);
}

body.theme-green {
    --neon-primary: #00ff85;
    --neon-secondary: #00ff00;
    --neon-glow: rgba(0, 255, 133, 0.6);
}

/* --- RESPONSIVE SCALING LOGIC --- */
html {
    font-size: 16px;
}

@media (min-width: 1600px) {
    html {
        font-size: 18px;
    }
}

@media (max-width: 1366px) {
    html {
        font-size: 14px;
    }
}

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

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

#youtube-player-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    background: #000;
}

#youtube-iframe-player {
    width: 100%;
    height: 100%;
}

#youtube-player-container iframe,
#vimeo-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#vimeo-player-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    background: #000;
}

#vimeo-iframe-player {
    width: 100%;
    height: 100%;
}

.hidden-player {
    display: none !important;
}

/* --- VIDEO LAYER --- */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}


#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.8s ease;
}

.video-container.above-player {
    z-index: 55;
    /* Above Player (50), Below UI (60) */
}


.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removed dimming overlay to restore full brightness */
    background: transparent;
    z-index: 1;
}

/* --- HERO AUDIO TOGGLE --- */
.hero-audio-toggle {
    position: fixed;
    bottom: 120px;
    left: 40px;
    z-index: 2100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 1;
}

.hero-audio-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-primary);
    box-shadow: 0 0 15px var(--neon-glow);
    transform: scale(1.1);
}

.hero-audio-toggle.ui-hidden {
    opacity: 0;
    pointer-events: none;
}

/* FULLSCREEN OVERRIDE: Hide all UI when player is fullscreen */
.fullscreen-active .top-header,
.fullscreen-active .upper-right-zone,
.fullscreen-active .restore-tab {
    opacity: 0 !important;
    pointer-events: none !important;
}

.fullscreen-active #inline-player-container {
    background: #000;
}

/* IDLE DIM: Fade out header/text overlays after inactivity during playback */
.idle-dim .upper-right-zone,
.idle-dim .top-header {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* IDLE FADE: Deep fade for all landing UI and controls after longer inactivity */
.idle-fade .ui-container,
.idle-fade .custom-video-controls,
.idle-fade .hero-audio-toggle,
.idle-fade .restore-tab {
    opacity: 0 !important;
    pointer-events: none !important;
}

.hero-audio-toggle.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* --- MOBILE UI DEFAULTS (HIDDEN ON DESKTOP) --- */
.mobile-unlock-container,
.mobile-menu-toggle,
.mobile-nav-overlay,
.mobile-portfolio-item,
.mobile-filter-bar,
.mobile-portfolio-container {
    display: none;
}

/* --- UI CONTAINER --- */
.ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 60;
    /* Above Player (50) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Top content vs Bottom zone */
    transition: opacity var(--reveal-duration) ease-out;
    pointer-events: none;
    /* Let clicks pass through to Player/Hero */
}

.ui-hidden {
    opacity: 0;
}

/* Interactive Zones within UI */
.upper-right-zone,
.bottom-zone {
    pointer-events: auto;
    /* Capture clicks for specific UI elements */
}

/* --- UPPER RIGHT ZONE --- */
.upper-right-zone {
    align-self: flex-end;
    /* Push to right */
    width: 50%;
    /* Occupy right half */
    padding: 4rem 4rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align internall items to right */
    text-align: right;
    height: 85%;
    /* Reserve more space for content */

    /* Reveal Logic */
    opacity: 0;
    transition: opacity 1.5s ease, width 0.8s cubic-bezier(0.4, 0, 0.2, 1), padding 0.8s ease;
}

.upper-right-zone.full-width {
    width: 100%;
    padding-left: 4rem;
    align-items: flex-start;
    text-align: left;
}

.upper-right-zone.zone-visible {
    opacity: 1;
}

/* Playback UI Refinement (Minimalist Right Aligned) */
.upper-right-zone.playback-mode {
    width: 100% !important;
    align-items: flex-end !important;
    text-align: right !important;
    padding-left: 0 !important;
    padding-right: 4rem;
}

.upper-right-zone.playback-mode .top-header {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.upper-right-zone.playback-mode .content-text {
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

/* Hide everything except H3 titles during Playing */
.upper-right-zone.playback-mode .content-text *:not(h3) {
    display: none !important;
}

.upper-right-zone.playback-mode .discovery-links {
    display: none !important;
}

/* HEADER */
.top-header {
    margin-bottom: 2rem;
    width: 100%;
}

.name {
    font-weight: 100;
    font-size: 4rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--text-dim);
    font-weight: 300;
    text-transform: uppercase;
}

.divider {
    color: var(--neon-primary);
    margin: 0 8px;
}


/* CONTENT DISPLAY AREA */
.content-display {
    position: relative;
    width: 100%;
    flex: 1;
    /* Fill remaining height of upper zone */
    overflow: hidden;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    color: var(--neon-primary);
    font-size: 1.2rem;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    animation: bounce 2s infinite;
    text-shadow: 0 0 10px var(--neon-glow);

    /* Boxed Border & Click Area */
    border: 1px solid var(--neon-primary);
    padding: 10px 15px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.scroll-hint:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--text-white);
    box-shadow: 0 0 15px var(--neon-glow);
}

/* --- PORTFOLIO CTA PULSE --- */
@keyframes cta-pulse {
    0% {
        box-shadow: 0 0 5px var(--neon-glow);
        border-color: rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 25px var(--neon-primary), inset 0 0 10px var(--neon-primary);
        border-color: var(--neon-primary);
    }

    100% {
        box-shadow: 0 0 5px var(--neon-glow);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.creative-stage.cta-active {
    position: relative;
    animation: cta-pulse 1.5s infinite ease-in-out;
    border-top: 1px solid var(--neon-primary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    overflow: visible !important;
    /* Fix: Allow the hint text to overflow above the stage */
}

.cta-hint {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--neon-primary);
    text-shadow: 0 0 8px var(--neon-glow);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 100;
    /* Ensure it stays above other elements */
}

.creative-stage.cta-active .cta-hint {
    opacity: 1;
}

.scroll-hint.visible {
    opacity: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.content-section {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow-y: auto;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-section::-webkit-scrollbar {
    display: none;
}

.content-section.active-section {
    opacity: 1;
    pointer-events: auto;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    max-width: 800px;
    margin-left: auto;
    /* Push to right */
    margin-bottom: 2rem;
    text-align: left;
    /* Internal text alignment left */
    transition: margin 0.8s ease, max-width 0.8s ease;
}

.upper-right-zone.full-width .content-text {
    margin-left: 0;
    max-width: 1200px;
}

.discovery-links a {
    color: var(--neon-primary);
    text-decoration: none;
    transition: text-shadow 0.3s;
}

.discovery-links a:hover {
    text-shadow: 0 0 8px var(--neon-primary);
}

.content-text h3,
.content-text h4 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-text p {
    margin-bottom: 1.2rem;
    font-weight: 300;
}

/* --- CONTACT DIALOG --- */
#section-contact {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-dialog {
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--neon-primary);
    border-radius: 12px;
    padding: 2rem;
    max-width: 550px;
    width: 90%;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--neon-glow);
    text-align: center;
    animation: dialogReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes dialogReveal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.contact-dialog h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-shadow: 0 0 10px var(--neon-glow);
}

.contact-dialog p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.contact-email {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--neon-primary);
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--neon-primary);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(0, 210, 255, 0.05);
    position: relative;
    z-index: 10;
}

@keyframes badge-audio-pulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 133, 0.4);
        text-shadow: 0 0 5px rgba(0, 255, 133, 0.4);
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 255, 133, 0.8);
        text-shadow: 0 0 10px rgba(0, 255, 133, 0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 255, 133, 0.4);
        text-shadow: 0 0 5px rgba(0, 255, 133, 0.4);
    }
}

.play-radio-audio.audio-playing {
    background: rgba(0, 255, 133, 0.15) !important;
    border-color: #00ff85 !important;
    color: #00ff85 !important;
    animation: badge-audio-pulse 2s infinite ease-in-out;
}

.contact-email:hover {
    background: var(--neon-primary);
    color: #000;
    box-shadow: 0 0 20px var(--neon-glow);
    transform: translateY(-3px);
}

/* REVEAL EMAIL SYSTEM */
.email-reveal-container {
    margin: 1.5rem 0;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reveal-email-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--neon-primary);
    color: var(--neon-primary);
    padding: 0.8rem 1.8rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.reveal-email-btn i {
    font-size: 1rem;
    opacity: 0.8;
}

.reveal-email-btn:hover {
    background: rgba(0, 210, 255, 0.08);
    box-shadow: 0 0 20px var(--neon-glow);
    transform: translateY(-2px);
    letter-spacing: 0.2em;
}

.reveal-email-btn:active {
    transform: translateY(0) scale(0.98);
}

.revealed-email-row {
    display: flex;
    align-items: stretch;
    /* Force shared height */
    justify-content: center;
    gap: 0.6rem;
    /* Tighter gap */
    margin: 1.5rem 0;
}

.copy-email-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 0 1rem;
    /* Use padding instead of fixed height */
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.copy-email-btn i {
    font-size: 0.9rem;
}

.copy-email-btn:hover {
    border-color: var(--neon-primary);
    color: var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-glow);
    transform: translateY(-2px);
}

.copy-email-btn.copy-success {
    border-color: #00ff85;
    color: #00ff85;
    box-shadow: 0 0 15px rgba(0, 255, 133, 0.4);
}

.contact-dialog:hover {
    border-color: var(--text-white);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--neon-glow);
}

@media (max-width: 768px) {
    .contact-dialog {
        padding: 2.5rem 1.5rem;
        width: 100%;
        /* Fill available space */
        max-width: 100%;
        /* Remove desktop constraint */
        margin: 0;
    }

    .contact-dialog h3 {
        font-size: 1.5rem;
    }

    .contact-email {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
        word-break: break-all;
    }

    /* --- ACHIEVEMENT BADGE EXPANSION (MOBILE ONLY) --- */
    .achievement-badge.expanded-media {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(0, 243, 255, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        transform: scale(1.01);
    }

    .inline-media-container {
        width: 100%;
        margin-top: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease, margin 0.5s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
    }

    .achievement-badge.expanded-media .inline-media-container {
        max-height: 1200px;
        opacity: 1;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

/* DESKTOP SHIELD: Explicitly hide inline expansion on larger viewports */
@media (min-width: 769px) {
    .inline-media-container {
        display: none !important;
    }
}

.contact-resume-hint {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- ACADEMIC SHOWCASE --- */
.academic-showcase {
    width: 100%;
    margin-top: 1rem;
}

.academics-intro {
    font-style: italic;
    color: var(--neon-primary);
    border-left: 2px solid var(--neon-primary);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem !important;
    font-size: 1.15rem;
}

.badge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), max-height 0.8s ease;
    opacity: 0;
    transform: translateY(20px);
    flex-wrap: wrap;
    /* Allow inline media to wrap below header */
}

/* (Moved to mobile media query for 'Desktop Shield' protection) */

.inline-media-container .mobile-portfolio-item {
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* NEON INLINE LOADER */
.neon-inline-loader {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.loader-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader-ring::before,
.loader-ring::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--neon-primary);
    filter: drop-shadow(0 0 8px var(--neon-glow));
    animation: loader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring::after {
    animation-delay: -0.45s;
    border-top-color: var(--neon-secondary, var(--neon-primary));
}

.loader-text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-white);
    text-transform: uppercase;
    animation: loader-pulse 1.5s infinite alternate ease-in-out;
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader-pulse {
    from {
        opacity: 0.4;
        transform: scale(0.98);
    }

    to {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.achievement-badge.revealed {
    opacity: 1;
    transform: translateY(0);
}

.achievement-badge:hover {
    background: rgba(0, 243, 255, 0.05);
    border-color: rgba(0, 243, 255, 0.3);
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.badge-icon {
    font-size: 2rem;
    color: var(--neon-primary);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.achievement-badge:hover .badge-icon {
    transform: rotate(10deg) scale(1.1);
}

.badge-content {
    flex: 1;
}

.badge-content h4 {
    margin: 0 0 0.4rem 0 !important;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--text-white);
}

.badge-content p {
    margin: 0 0 1rem 0 !important;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #bbb;
}

.badge-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.badge-action-btn,
.badge-action-link {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-white);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-action-btn:hover,
.badge-action-link:hover {
    background: var(--neon-primary);
    color: #000;
    border-color: var(--neon-primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.badge-action-btn i,
.badge-action-link i {
    font-size: 0.7rem;
}

/* MODAL INTERACTIVE ART STYLES */
.modal-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-transformation-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: var(--neon-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: normal;
    /* Allow wrapping */
    text-align: center;
    max-width: 260px;
    /* Force wrap on mobile */
    line-height: 1.3;
    backdrop-filter: blur(15px);
    border: 2px solid var(--neon-primary);
    box-shadow: 0 0 25px var(--neon-glow);
    animation: hintPulse 2s infinite ease-in-out;
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 10;
}

@keyframes hintPulse {

    0%,
    100% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

.transformation-glow {
    animation: borderNeonPulse 2s infinite alternate ease-in-out;
    transition: transform 0.3s ease;
    border: 4px solid var(--neon-primary) !important;
}

/* ART LOADING & PRELOADER STYLES */
.image-container {
    position: relative;
}

.image-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--neon-primary);
    border-radius: 50%;
    animation: preloaderSpin 1s linear infinite;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 15px var(--neon-glow);
}

.floating-image {
    transition: opacity 0.6s ease-in-out, filter 0.6s ease-in-out;
}

.floating-image.loading {
    filter: blur(5px);
    opacity: 0.7;
}

.floating-image.loaded {
    filter: blur(0);
    opacity: 1;
}

@keyframes preloaderSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes borderNeonPulse {
    from {
        filter: drop-shadow(0 0 5px var(--neon-glow));
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    }

    to {
        filter: drop-shadow(0 0 30px var(--neon-glow));
        box-shadow: 0 0 50px rgba(0, 243, 255, 1);
    }
}

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


/* --- BOTTOM ZONE --- */
.bottom-zone {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
    padding-bottom: 0;
    z-index: 60;
    /* Explicitly high */

    /* Reveal Logic */
    opacity: 0;
    /* Only transition opacity here so we don't conflict with the transform transition for collapsing */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.5s ease;
}

.bottom-zone.zone-visible {
    opacity: 1;
}

/* CREATIVE STAGE (Carousel) */
.creative-stage {
    width: 100%;
    height: 0;
    /* Hidden by default */
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.creative-stage:not(.hidden-stage) {
    height: 45px;
    /* Minimized height (approx 2 lines of text) */
    opacity: 1;
    padding: 0 4rem;
    cursor: pointer;
    border-top: 1px solid rgba(0, 210, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.creative-stage:not(.hidden-stage):hover,
.creative-stage.keyboard-mode {
    height: var(--stage-height);
    background: rgba(0, 0, 0, 0.8);
    border-top-color: var(--neon-primary);
    padding-top: 1rem;
}

/* Logic for content visibility */
.creative-stage .stage-filters {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    pointer-events: none;
}

.creative-stage:hover .stage-filters {
    opacity: 1;
    height: auto;
    margin-bottom: 1rem;
    pointer-events: auto;
}

.creative-stage .stage-scroll-container {
    opacity: 1;
    /* Always show thumbnails */
    transition: opacity 0.3s ease;
}

/* Hide labels in minimized state */
.carousel-label {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.creative-stage:hover .carousel-label {
    opacity: 1;
}


.stage-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.filter-item {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s;
    letter-spacing: 0.1em;
}

.filter-item:hover,
.filter-item.active {
    color: var(--neon-primary);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.stage-scroll-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: visible;
    /* Allow glow to expand upward/downward */
    scroll-behavior: smooth;
    padding: 20px 50%;
    /* Tightened padding while allowing scale */
    position: relative;
    z-index: 2;
    /* Lift above background/filters */

    /* Hide Scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stage-scroll-container::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    height: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    overflow: visible;
    /* Allow neon glow to overflow */
    transition: transform 0.3s, border-color 0.3s;
}

.carousel-item:hover,
.carousel-item.active {
    transform: scale(1.1);
    border-color: var(--neon-primary);
    box-shadow: 0 0 25px var(--neon-primary), inset 0 0 10px var(--neon-primary);
    z-index: 10;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Changed from contain for better fill */
}

.carousel-item .image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.carousel-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    padding: 8px 10px;
    font-size: 0.7rem;
    color: white;
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4em;
}


/* BOTTOM NAV */
.bottom-nav {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.9);
}

.nav-list-row {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 1.5rem 0;
}

.nav-item {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    transition: all 0.5s ease;
    padding: 0.5rem 1rem;
}

.nav-item:hover {
    color: var(--text-white);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.nav#btn-stop:hover {
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
}

#btn-fullscreen:hover {
    color: var(--neon-primary);
}

.nav-item.active {
    color: var(--text-white);
    font-weight: 600;
    text-shadow: 0 0 8px var(--neon-primary), 0 0 20px var(--neon-primary);
}

/* Active Indicator (Top Line) - Base State */
.nav-item::before {
    content: '';
    position: absolute;
    top: -1.6rem;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary), 0 0 40px var(--neon-primary);
    border-radius: 2px;

    /* Hidden by default, ready to fade in */
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Reveal Indicator on Active */
.nav-item.active::before {
    opacity: 1;
}



/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1010;
}

.modal-nav-btn:hover {
    background: rgba(0, 210, 255, 0.2);
    border-color: var(--neon-primary);
    color: var(--neon-primary);
    box-shadow: 0 0 20px var(--neon-glow);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}


/* --- INLINE VIDEO PLAYER --- */
#inline-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* Above hero (0), below UI (10) */
    background: black;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#inline-player-container.active-player {
    opacity: 1;
    pointer-events: auto;
    z-index: 50;
    /* Critical: Above UI Layer (z-10) so buttons work */
}

@media (max-width: 768px) {
    #inline-player-container.active-player {
        z-index: 5000;
        /* Ensure it's above the scrollable UI layer on mobile */
    }

    .academics-intro {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 1.2rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 4px solid var(--neon-primary);
        margin-bottom: 2rem !important;
        line-height: 1.6;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .achievement-badge {
        background: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    }
}

#inline-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#inline-video::-webkit-media-controls {
    display: none !important;
}

/* Custom Controls */
.custom-video-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--neon-primary);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    transition: opacity 0.3s;
}

.custom-video-controls.hidden-controls {
    opacity: 0;
    pointer-events: none;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    transition: color 0.2s;
}

.control-btn:hover {
    color: var(--neon-primary);
}

.scrub-container {
    flex: 1;
    position: relative;
    height: 5px;
    background: #333;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

#video-scrubber {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.scrub-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--neon-primary);
    width: 0%;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--neon-primary);
}

#video-time {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--neon-primary);
}


/* --- UI COLLAPSING LOGIC --- */
.bottom-zone {
    /* Combined transition: Transform (Collapse) + Opacity (Reveal) */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.5s ease;
}

.bottom-zone.collapsed {
    transform: translateY(110%);
}

.ui-restore-tab {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 30px;
    z-index: 70;
    /* Highest */

    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--neon-primary);
    border-bottom: none;
    border-radius: 10px 10px 0 0;

    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--neon-primary);
    font-size: 1rem;

    opacity: 0;
    /* Hidden by default, shown when collapsed */
    transition: opacity 0.3s, box-shadow 0.3s;
    pointer-events: none;
    cursor: pointer;
}

.ui-restore-tab.active {
    opacity: 0.6;
    /* Visible hint */
    pointer-events: auto;
}

.ui-restore-tab.active:hover {
    opacity: 1;
    box-shadow: 0 0 15px var(--neon-glow);
}

/* --- INACTIVE FADE-OUT --- */
/* (Scoped above for more precision) */

/* Ensure smooth transition for elements that will fade */
.ui-container,
.custom-video-controls {
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* GLOBAL MOBILE HIDE (Prevent Flash) */
.mobile-menu-toggle,
.mobile-nav-overlay,
.mobile-filter-cta,
.mobile-portfolio-container {
    display: none;
}

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 1024px) {

    /* Hide desktop bottom nav on mobile */
    .bottom-nav {
        display: none !important;
    }

    /* HAMBURGER TOGGLE (Sequestered until unlock) */
    .mobile-menu-toggle {
        position: fixed;
        top: 25px;
        right: 25px;
        width: 35px;
        height: 24px;
        z-index: 1000;
        cursor: pointer;
        display: flex !important;
        /* Force show on mobile */
        flex-direction: column;
        justify-content: space-between;
        background: transparent;
        border: none;
        padding: 0;
        transition: transform 0.3s ease, opacity 0.8s ease-in-out;
        opacity: 0;
        pointer-events: none;
    }

    body.is-unlocked .mobile-menu-toggle {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-toggle .bar {
        width: 100%;
        height: 3px;
        background: var(--neon-primary);
        box-shadow: 0 0 8px var(--neon-glow);
        border-radius: 4px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-toggle.active .bar-top {
        transform: translateY(10.5px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar-mid {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle.active .bar-bot {
        transform: translateY(-10.5px) rotate(-45deg);
    }

    /* MOBILE SCROLLING FIX */
    .ui-container {
        overflow-y: auto !important;
        height: 100vh !important;
        pointer-events: auto !important;
        /* Allow scroll events */
    }

    .badge-grid {
        gap: 1.75rem;
    }

    .upper-right-zone {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 3rem;
        overflow-y: auto;
        /* transition: all var(--reveal-duration) ease-out; */
        transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease-in-out;
        pointer-events: all;
        /* Reactivate for text scrolling */
    }

    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        z-index: 999;
        display: flex !important;
        /* Force show on mobile */
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    /* MOBILE WHITE TEXT OVERRIDES (Excluding Menu) */
    .name,
    .tagline,
    .divider,
    .content-text,
    .contact-dialog p,
    .badge-content p,
    .contact-resume-hint {
        color: #fff !important;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        text-align: center;
    }

    .mobile-nav-item {
        font-size: 1.8rem;
        font-weight: 300;
        color: #fff;
        margin: 2rem 0;
        letter-spacing: 0.2rem;
        cursor: pointer;
        transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
        opacity: 0;
        transform: translateY(20px);
    }

    .mobile-nav-overlay.active .mobile-nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered text reveal in menu */
    .mobile-nav-overlay.active .mobile-nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-nav-overlay.active .mobile-nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .mobile-nav-overlay.active .mobile-nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .mobile-nav-overlay.active .mobile-nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .mobile-nav-overlay.active .mobile-nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .mobile-nav-item.active {
        color: var(--neon-primary);
        text-shadow: 0 0 10px var(--neon-glow);
        font-weight: 500;
    }

    /* MOBILE FILTERS */
    .mobile-filter-bar {
        display: none !important;
        /* Managed by JS visibility */
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.5rem 0 1.2rem 0;
        display: flex !important;
        justify-content: space-between;
        gap: 0.8rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 1.5rem;
    }

    .mobile-filter-cta {
        display: none;
        /* Managed by JS/Visibility */
        font-size: 0.75rem;
        color: var(--neon-primary);
        text-align: center;
        letter-spacing: 0.2rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
        text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
        opacity: 0.8;
    }

    .mobile-filter-bar.visible,
    .mobile-filter-bar.visible+.mobile-portfolio-container,
    .mobile-filter-cta.visible {
        display: block !important;
    }

    .mobile-filter-bar.visible {
        display: flex !important;
    }

    .mobile-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .mobile-filter-pill {
        flex: 1;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.8rem 0.5rem;
        background: rgba(10, 10, 10, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        color: #fff;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.05rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-width: 0;
    }

    .mobile-filter-pill i {
        font-size: 1.4rem;
        opacity: 0.8;
    }

    .mobile-filter-pill span {
        display: none;
    }

    .mobile-filter-pill.active {
        background: rgba(0, 210, 255, 0.1);
        border-color: var(--neon-primary);
        color: var(--neon-primary);
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
        transform: translateY(-2px);
    }

    .mobile-filter-pill.active i {
        opacity: 1;
        transform: scale(1.1);
    }

    /* MOBILE PORTFOLIO GRID */
    .mobile-portfolio-container {
        width: 100%;
        padding: 1rem 0 5rem 0;
        /* Added bottom padding for better scroll end */
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.25rem;
        margin-top: 1rem;
    }

    .mobile-portfolio-container.hidden {
        display: none !important;
    }

    .mobile-portfolio-container.visible {
        display: grid !important;
    }

    /* ... (content-section/display styles remain) ... */

    .mobile-portfolio-item {
        position: relative;
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(10, 10, 10, 0.5);
        /* Subtle card background */
        transition: transform 0.3s ease, border-color 0.3s;
        display: flex;
        flex-direction: column;
        margin-bottom: 1.75rem;
        /* Ensure space even if grid gap is ignored */
    }

    .mobile-portfolio-item:active {
        transform: scale(0.98);
        border-color: var(--neon-primary);
    }

    .mobile-iframe-wrapper,
    .mobile-thumb-video {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
        background: #000;
    }

    .mobile-iframe-wrapper iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    .mobile-thumb-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
    }

    .mobile-item-info {
        position: relative;
        width: 100%;
        padding: 1.2rem;
        background: rgba(255, 255, 255, 0.03);
        /* Slight header differentiation */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        pointer-events: auto;
    }

    .mobile-media-container {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: #000;
        transition: aspect-ratio 0.4s ease, height 0.4s ease;
    }

    .info-mode .mobile-media-container {
        aspect-ratio: auto !important;
        height: auto;
        overflow: visible;
    }

    /* Hide media during info expansion to give text full priority */
    .info-mode .mobile-iframe-wrapper,
    .info-mode .mobile-thumb-video,
    .info-mode .mobile-thumb-img {
        display: none !important;
    }


    .mobile-item-title {
        font-size: 1.0rem;
        color: #fff;
        margin-bottom: 0.2rem;
        font-weight: 500;
        text-transform: uppercase;
    }

    .mobile-item-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-item-category {
        font-size: 0.7rem;
        color: var(--neon-primary);
        text-transform: uppercase;
        letter-spacing: 0.1rem;
    }

    .mobile-info-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.05rem;
        text-transform: uppercase;
    }

    .mobile-item-actions {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .mobile-fullscreen-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(0, 210, 255, 0.3);
        color: var(--neon-primary);
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.05rem;
        text-transform: uppercase;
    }

    .mobile-fullscreen-btn:active,
    .mobile-info-btn:active {
        background: var(--neon-primary);
        color: #000;
        border-color: var(--neon-primary);
    }

    /* Adjust main layout for hamburger */
    .upper-right-zone {
        width: 100% !important;
        padding: 2.5rem 2rem 4rem 2rem !important;
        /* Aligned with hamburger */
        align-self: flex-start !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .top-header {
        text-align: left !important;
        margin-bottom: 1.5rem !important;
    }

    .name {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        padding-right: 70px;
        /* Gap for hamburger */
        white-space: nowrap;
        color: #fff !important;
    }

    .tagline {
        font-size: 0.65rem !important;
        letter-spacing: 0.12em !important;
        white-space: nowrap;
        width: 100%;
        display: block;
        color: #fff !important;
    }

    .divider {
        color: #fff !important;
    }

    .content-text {
        max-width: 100% !important;
        margin-left: 0 !important;
        text-align: left !important;
    }

    .hero-audio-toggle {
        position: fixed;
        bottom: 30px;
        /* Pulled down to bottom as requested */
        right: 25px;
        /* Standard bottom-right placement */
        left: auto;
        z-index: 2200;
        /* Highest priority to ensure clickability */
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
        border: 1px solid var(--neon-primary);
        box-shadow: 0 0 15px var(--neon-glow);
    }

    /* UNLOCK ORB CTA (Shielded from desktop resize leaks) */
    .mobile-unlock-container {
        display: none;
    }

    body.is-mobile-session .mobile-unlock-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        /* Fallback */
        height: 100dvh;
        /* Dynamic viewport height for perfect mobile centering */
        z-index: 2000;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #000;
        /* Solid black to hide secondary playback overlays */
        backdrop-filter: blur(5px);
        transition: opacity 1s ease, visibility 1s ease;
        padding-bottom: 5dvh;
        /* Visual lift to account for perceived center vs math center */
    }

    .mobile-unlock-container.orb-fade-out {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        position: fixed;
        top: 30px;
        right: 20px;
        z-index: 2200;
        cursor: pointer;
        padding: 0;
    }

    .unlock-visual-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .unlock-orb {
        position: relative;
        width: 120px;
        height: 120px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .orb-core {
        position: absolute;
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--neon-primary);
        border-radius: 50%;
        backdrop-filter: blur(15px);
        box-shadow:
            0 0 20px var(--neon-glow),
            inset 0 0 15px var(--neon-glow);
        z-index: 2;
        animation: orb-float 3s infinite ease-in-out;
    }

    .orb-waves {
        position: absolute;
        width: 100%;
        height: 100%;
        border: 2px solid var(--neon-primary);
        border-radius: 50%;
        opacity: 0;
        animation: orb-waves 2s infinite linear;
    }

    .unlock-label {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--text-white);
        letter-spacing: 0.2em;
        text-shadow: 0 0 10px var(--neon-glow);
        animation: orb-text-glow 2s infinite alternate ease-in-out;
        text-align: center;
    }

    @keyframes orb-float {

        0%,
        100% {
            transform: translateY(0) scale(1);
        }

        50% {
            transform: translateY(-10px) scale(1.05);
        }
    }

    @keyframes orb-waves {
        0% {
            transform: scale(0.6);
            opacity: 0.8;
        }

        100% {
            transform: scale(1.3);
            opacity: 0;
        }
    }

    @keyframes orb-text-glow {
        from {
            opacity: 0.6;
            text-shadow: 0 0 5px var(--neon-glow);
        }

        to {
            opacity: 1;
            text-shadow: 0 0 15px var(--neon-primary);
        }
    }

    /* MOBILE FULLSCREEN MODAL FOR ARTWORK */
    .modal-overlay {
        background: rgba(0, 0, 0, 0.98);
        user-select: none;
        -webkit-user-select: none;
    }

    .modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        pointer-events: none;
        /* Let swipes hit the overlay */
    }

    /* RE-ENABLE FOR INTERACTIVE ART */
    .modal-image-container,
    .modal-image-container img,
    .modal-image-container video {
        pointer-events: auto !important;
    }

    .modal-content img,
    .modal-content video {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        object-fit: contain;
        border: none;
        box-shadow: none;
        pointer-events: none;
    }

    .modal-nav-btn {
        display: none !important;
        /* Use swipes on mobile */
    }

    .modal-close {
        top: 25px;
        right: 20px;
        z-index: 1100;
        background: rgba(0, 0, 0, 0.4);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        pointer-events: auto;
        /* Re-enable for close button */
    }

    /* Target hamburger for hiding during art modal */
    body.modal-active .mobile-menu-toggle {
        display: none !important;
    }
}