/**
 * Origin Interactive Experience - Stylesheet (Production Version)
 * 
 * LAYOUT MODES:
 * - Desktop (width > 768px): Sidebar with nav + content on left, visual on right
 * - Mobile Portrait (width ≤ 768px, portrait): Top nav bar, visual below, content strip at bottom
 * - Mobile Landscape (width ≤ 1024px, landscape): Narrow sidebar, content strip, visual on right
 * 
 * KEY CUSTOMIZATION POINTS:
 * - Colors: Modify CSS variables in :root
 * - Utility menu: Change .utility-menu { display: none; } to enable audio controls
 * - Breakpoints: 768px mobile threshold, 1024px tablet threshold
 * 
 * NOTE: Uses backdrop-filter for glass morphism effects. Requires Safari 9+, Chrome 76+
 */

/* CSS Variables v13 - Modern Elegant Design with Glass Morphism */
:root {
    --secondary-bg: #0F282D;
    --main-bg: #183948;
    --menu-bar: #09181F;
    --secondary: #166470;
    --accent: #3EC1C9;
    --text-overlay-bg: rgba(15, 40, 45, 0.8);
    --menu-gradient: linear-gradient(90deg, #0F282D 0%, rgba(15, 40, 45, 0.8) 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(62, 193, 201, 0.1);
    --glass-hover: rgba(62, 193, 201, 0.08);
    --glass-active: linear-gradient(135deg, rgba(62, 193, 201, 0.2), rgba(22, 100, 112, 0.15));
    /* Header height variables for proper spacing */
    --header-height: 52px;
    --header-height-mobile: 56px;
}

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

html, body {
    height: 100%;
    font-family: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    background: var(--menu-bar);
    /* Optimize touch responsiveness */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Full Screen Background Container */
.background-container {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-height));
    z-index: 1;
    overflow: hidden;
}

.state-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

.state-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.1s ease;
    z-index: 2;
    will-change: opacity;
    /* Force consistent scaling regardless of video dimensions */
    transform: scale(1);
    transform-origin: center center;
    /* Ensure consistent pixel alignment */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.state-animation.playing {
    opacity: 1;
}

/* Make background elements completely non-interactive, EXCEPT the click capture layer */
.background-container {
    touch-action: none;
}

.state-visual,
.state-animation {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Desktop Layout - Default */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 30vw;
    height: calc(100vh - var(--header-height));
    background: rgba(15, 40, 45, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(62, 193, 201, 0.15);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* Desktop Navigation Menu */
.nav-menu {
    background: rgba(9, 24, 31, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(62, 193, 201, 0.1);
    border-radius: 0 0 24px 24px;
    margin: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    margin: 0.3rem 0;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    transform: scale(1);
    border: 1px solid rgba(62, 193, 201, 0.1);
}

/* Immediate press feedback */
.nav-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Ripple animation for touch feedback */
.nav-item.ripple {
    animation: ripple-effect 0.4s ease-out;
}

@keyframes ripple-effect {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Modern hover effect with pill expansion */
.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(62, 193, 201, 0.15), rgba(22, 100, 112, 0.15));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-item:hover {
    background: rgba(62, 193, 201, 0.08);
    border-color: rgba(62, 193, 201, 0.3);
    color: white;
    transform: translateX(8px) scale(1.02);
    box-shadow: 
        0 4px 20px rgba(62, 193, 201, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(62, 193, 201, 0.2), rgba(22, 100, 112, 0.15));
    border-color: rgba(62, 193, 201, 0.4);
    color: white;
    box-shadow: 
        0 6px 25px rgba(62, 193, 201, 0.15),
        0 3px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
    animation: subtle-glow 3s ease-in-out infinite;
}

/* Subtle glow animation for active state */
@keyframes subtle-glow {
    0%, 100% { box-shadow: 0 6px 25px rgba(62, 193, 201, 0.15), 0 3px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 6px 30px rgba(62, 193, 201, 0.2), 0 3px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
}

.nav-icon {
    width: 22px;
    height: 22px;
    margin-right: 1rem;
    fill: currentColor;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-icon[src$=".svg"] {
    filter: brightness(0) invert(1);
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(62, 193, 201, 0.6));
}

.nav-text {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

/* Desktop Content Area */
.content-area {
    flex: 1;
    padding: 3rem 2rem;
    background: rgba(15, 40, 45, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow-y: auto;
    transition: opacity 0.3s ease;
    margin: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(62, 193, 201, 0.1);
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(62, 193, 201, 0.6) rgba(255, 255, 255, 0.1);
}

/* Webkit scrollbar styling for desktop content area */
.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 8px 0;
}

.content-area::-webkit-scrollbar-thumb {
    background: rgba(62, 193, 201, 0.6);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(62, 193, 201, 0.8);
}

.content-area::-webkit-scrollbar-corner {
    background: transparent;
}

.content-area.fade-out {
    opacity: 0;
}

.main-title {
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: white !important;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.description {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.description:last-child {
    margin-bottom: 0;
}

/* SVG Container Styles */
.svg-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    width: 100%;
}

.svg-container svg {
    width: 100% !important;
    height: auto !important;
    max-height: 300px;
    min-height: 200px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    display: block;
    margin: 0 auto;
}

/* Third description appears after SVG */
#description3,
#mobileDescription3 {
    margin-top: 1rem;
    display: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Mobile SVG adjustments */
@media (max-width: 768px) {
    .svg-container {
        margin-top: 1.5rem;
    }
    
    .svg-container svg {
        width: 100% !important;
        max-height: 220px;
        min-height: 150px;
    }
}

/* Landscape mode SVG adjustments */
@media (max-width: 1024px) and (orientation: landscape) {
    .svg-container svg {
        width: 100% !important;
        max-height: 180px;
        min-height: 120px;
    }
}

.highlight {
    color: var(--accent) !important;
    font-weight: 600;
}

/* Video Button Styles */
.video-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, rgba(62, 193, 201, 0.15), rgba(22, 100, 112, 0.1));
    border: 1px solid rgba(62, 193, 201, 0.3);
    border-radius: 16px;
    color: white;
    font-family: 'Overpass', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(62, 193, 201, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-button:hover {
    background: linear-gradient(135deg, rgba(62, 193, 201, 0.25), rgba(22, 100, 112, 0.2));
    border-color: rgba(62, 193, 201, 0.5);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(62, 193, 201, 0.2);
}

.video-button:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

.video-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.video-button:hover .video-icon {
    transform: scale(1.1);
}

/* Mobile elements - hidden on desktop */
.mobile-nav-bar {
    display: none;
}

.mobile-content-strip {
    display: none;
}

.utility-menu {
    display: none;
}

/* Tablet Layout */
@media (max-width: 1024px) {
    .sidebar {
        width: 42vw;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .nav-item {
        padding: 0.75rem 1.5rem;
    }
    
    .nav-item:hover {
        padding-left: 2rem;
    }
}

/* MOBILE LAYOUTS - General mobile styles first */
@media (max-width: 768px) {
    /* Hide desktop sidebar on all mobile */
    .sidebar {
        display: none;
    }
    
    /* Mobile nav bar styling - positioned below header with generous spacing */
    .mobile-nav-bar {
        display: flex;
        position: fixed;
        top: calc(var(--header-height-mobile) + 16px);
        left: 0;
        width: 100vw;
        height: 85px;
        background: rgba(9, 24, 31, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 20;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid rgba(62, 193, 201, 0.15);
        padding: 0.8rem 0.5rem;
        gap: 0.5rem;
    }
    
    .mobile-nav-bar .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.8rem 1rem;
        color: rgba(255, 255, 255, 0.8);
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(62, 193, 201, 0.1);
        border-radius: 18px;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        flex: 1;
        gap: 0.4rem;
        height: 65px;
        justify-content: center;
    }
    
    .mobile-nav-bar .nav-item:active {
        transform: scale(0.95);
    }
    
    .mobile-nav-bar .nav-item:hover {
        background: rgba(62, 193, 201, 0.08);
        border-color: rgba(62, 193, 201, 0.25);
        color: white;
        transform: scale(1.05);
    }
    
    .mobile-nav-bar .nav-item.active {
        background: linear-gradient(135deg, rgba(62, 193, 201, 0.15), rgba(22, 100, 112, 0.1));
        border-color: rgba(62, 193, 201, 0.3);
        color: white;
        box-shadow: 
            0 4px 15px rgba(62, 193, 201, 0.1),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: scale(1.02);
    }
    
    .mobile-nav-bar .nav-icon {
        width: 22px;
        height: 22px;
        fill: currentColor;
        margin-right: 0;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    
    .mobile-nav-bar .nav-icon[src$=".svg"] {
        filter: brightness(0) invert(1);
    }
    
    .mobile-nav-bar .nav-item:hover .nav-icon {
        transform: scale(1.1);
    }
    
    .mobile-nav-bar .nav-item.active .nav-icon {
        filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(62, 193, 201, 0.5));
    }
    
    .mobile-nav-bar .nav-text {
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.2px;
        flex-shrink: 0;
        text-align: center;
    }
    
    /* Mobile content strip styling */
    .mobile-content-strip {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        background: rgba(15, 40, 45, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 15;
        padding: 2rem 1.5rem 4.5rem 1.5rem;
        overflow-y: auto;
        transition: opacity 0.3s ease;
        box-shadow: 
            0 -4px 25px rgba(0, 0, 0, 0.3),
            0 -1px 0 rgba(62, 193, 201, 0.1);
        border-radius: 0 0 28px 28px;
        border-top: 1px solid rgba(62, 193, 201, 0.15);
        min-height: 200px;
    }
    
    .mobile-content-strip.fade-out {
        opacity: 0;
    }
    
    .mobile-content-strip .main-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        color: white !important;
        font-weight: 700;
    }
    
    .mobile-content-strip .description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .mobile-content-strip .description:last-child {
        margin-bottom: 1rem;
    }
}

/* MOBILE PORTRAIT Mode - for taller screens */
@media (max-width: 768px) and (orientation: portrait) {
    /* Background container fills viewport below header and mobile nav (with spacing) */
    .background-container {
        position: fixed;
        top: calc(var(--header-height-mobile) + 16px + 85px);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: calc(100vh - var(--header-height-mobile) - 16px - 85px);
        z-index: 1;
    }
    
    /* Image anchored to top of container */
    .state-visual,
    .state-animation {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 65vh;
        object-fit: contain;
        object-position: top center;
    }
    
    /* Content strip - positioned by JavaScript */
    .mobile-content-strip {
        position: fixed;
        left: 0;
        right: 0;
        width: 100vw;
        background: var(--text-overlay-bg);
        z-index: 15;
        padding: 1.25rem 1.25rem 2.5rem 1.25rem;
        overflow-y: auto;
        transition: top 0.3s ease;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.4);
    }
}

/* LANDSCAPE Mode - When height < 740px */
@media (max-width: 1024px) and (orientation: landscape) {
    /* Hide portrait mobile elements */
    .mobile-nav-bar {
        display: none !important;
    }
    
    .mobile-content-strip {
        display: none !important;
    }
    
    /* Show landscape sidebar - account for header */
    .sidebar {
        display: flex !important;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 17vw;
        min-width: 108px;
        height: calc(100vh - var(--header-height));
        background: rgba(9, 24, 31, 0.6);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 10;
        flex-direction: column;
        border-right: 1px solid rgba(62, 193, 201, 0.15);
        padding: 1rem 0.5rem;
    }
    
    .sidebar .nav-menu {
        padding: 1rem 0;
        border-bottom: none;
        background: transparent;
        border-radius: 16px;
        margin: 0;
    }
    
    .sidebar .nav-item {
        flex-direction: column;
        padding: 0.8rem 0.5rem;
        text-align: center;
        margin: 0.3rem 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(62, 193, 201, 0.08);
    }
    
    .sidebar .nav-item:hover {
        padding: 0.8rem 0.5rem;
        transform: scale(1.05);
        background: rgba(62, 193, 201, 0.08);
        border-color: rgba(62, 193, 201, 0.2);
    }
    
    .sidebar .nav-item.active {
        border: 1px solid rgba(62, 193, 201, 0.3);
        background: linear-gradient(135deg, rgba(62, 193, 201, 0.15), rgba(22, 100, 112, 0.1));
        box-shadow: 
            0 4px 15px rgba(62, 193, 201, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .sidebar .nav-icon {
        margin-right: 0;
        margin-bottom: 0.25rem;
        width: 20px;
        height: 20px;
    }
    
    .sidebar .nav-text {
        font-size: 0.65rem;
        line-height: 1;
    }
    
    /* Hide sidebar's content area */
    .sidebar .content-area {
        display: none;
    }
    
    /* Show desktop content area in middle - account for header */
    .content-area {
        display: block !important;
        position: fixed;
        top: var(--header-height);
        left: 17vw;
        width: 33vw;
        height: calc(100vh - var(--header-height));
        padding: 2rem 1.5rem;
        overflow-y: auto;
        background: rgba(15, 40, 45, 0.6);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 5;
        margin: 1rem;
        border-radius: 24px;
        border: 1px solid rgba(62, 193, 201, 0.1);
    }
    
    .content-area .main-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .content-area .description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Background on right side for landscape - account for header */
    .background-container {
        position: fixed;
        left: 52vw;
        right: 0;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        width: 48vw;
        z-index: 1;
        display: block;
    }
    
    /* Reset visual positioning for landscape */
    .state-visual,
    .state-animation {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        max-height: none;
    }
}

/* Small devices portrait adjustments - account for header */
@media (max-width: 480px) and (min-height: 740px) {
    .mobile-nav-bar {
        height: 80px;
        padding: 0.6rem 0.8rem;
    }
    
    .mobile-nav-bar .nav-item {
        height: 60px;
        padding: 0.7rem 0.5rem;
        max-width: 70px;
    }
    
    .mobile-nav-bar .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .mobile-nav-bar .nav-text {
        font-size: 0.7rem;
    }
    
    .background-container {
        top: calc(var(--header-height-mobile) + 16px + 80px);
        height: calc(100vh - var(--header-height-mobile) - 16px - 80px);
    }
    
    .state-visual,
    .state-animation {
        max-height: calc(100vh - var(--header-height-mobile) - 16px - 80px - 200px); /* Adjusted for header + spacing + nav */
    }
    
    .mobile-content-strip {
        max-height: 45vh;
        padding: 1.5rem 1.2rem 2.5rem 1.2rem;
        min-height: 180px;
    }
    
    .mobile-content-strip .main-title {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
    }
    
    .mobile-content-strip .description {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }
}

/* Text transition effects */
.text-transition-wrapper {
    transition: opacity 0.2s ease-in-out;
}

.click-capture-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Above videos but below UI elements */
    cursor: pointer; /* Shows a hand cursor to indicate clickability */
    pointer-events: auto; /* Allows clicks to pass through */

    -webkit-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    outline: none !important;
}

/* Force alignment between static images and animations regardless of media queries */
.state-visual,
.state-animation {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-height: none !important;
}

/* Keep other properties for animations */
.state-animation {
    opacity: 0;
    transition: opacity 0.1s ease;
    z-index: 2;
}

/* Keep videos and images protected from direct interaction */
.state-visual,
.state-animation {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* FINAL OVERRIDE FOR ALL MEDIA QUERIES - ADD AT END OF FILE */
.state-visual,
.state-animation {
    position: absolute !important;
    left: 0 !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* Desktop and landscape mode */
@media (min-width: 769px), (max-width: 768px) and (orientation: landscape) {
    .state-visual,
    .state-animation {
        top: 0 !important;
        height: 100% !important; 
        max-height: none !important;
        object-position: center !important;
    }
}

/* Portrait mode - show full visuals without cropping */
@media (max-width: 768px) and (orientation: portrait) {
    .state-visual,
    .state-animation {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important; /* Let height adjust based on aspect ratio */
        max-height: 60vh !important;
        object-fit: contain !important; /* Show entire image without cropping */
        object-position: center top !important;
    }
    
    /* Optional: Add a background color to fill empty space */
    .background-container {
        background-color: #09181F;
        touch-action: none;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -ms-user-select: none !important;
        outline: none !important;
    }
}

/* Make sure click capture works */
.click-capture-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Performance optimizations */
.nav-item,
.state-visual,
.state-animation,
.content-area {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}