/* Google Fonts Import - Space Grotesk */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Font Face Declaration */
@font-face {
    font-family: 'DotMatrix';
    src: url('dot_matrix/DOTMATRI.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DotMatrix';
    src: url('dot_matrix/DOTMBold.TTF') format('truetype');
    font-weight: bold;
    font-style: normal;
}

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

body, html {
    height: 100%;
    font-family: 'Space Grotesk', 'Helvetica Neue', Helvetica, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    background: #1a1a1a;
}

body.sidebar-layout {
    overflow: visible !important;
    height: auto !important;
    min-height: 100vh;
    position: relative;
    background: radial-gradient(circle at top, #1a1a1f 0%, #0b0b0e 70%, #070709 100%) !important;
}

html.sidebar-layout {
    overflow: visible !important;
    height: auto !important;
}

/* Film Production Background Elements */
body.sidebar-layout::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image: 
        /* Film strip edges */
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 0px,
            rgba(255, 255, 255, 0.08) 8px,
            transparent 8px,
            transparent 16px
        ),
        /* Vertical film sprocket holes */
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 48px,
            rgba(255, 255, 255, 0.06) 48px,
            rgba(255, 255, 255, 0.06) 52px,
            transparent 52px,
            transparent 100px
        );
    background-size: 100% 100%, 60px 100%;
    background-position: 0 0, 20px 0;
    opacity: 0.6;
}

/* Director's cut corner marks + Film Grain Overlay */
body.sidebar-layout::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: 
        /* Film grain overlay - CSS generated since image may not exist */
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.02) 0px,
            transparent 1px,
            rgba(255, 255, 255, 0.03) 2px,
            transparent 3px,
            rgba(255, 255, 255, 0.01) 4px,
            transparent 5px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.02) 0px,
            transparent 1px,
            rgba(255, 255, 255, 0.03) 2px,
            transparent 3px,
            rgba(255, 255, 255, 0.01) 4px,
            transparent 5px
        ),
        /* Top-left corner cut mark */
        linear-gradient(135deg, transparent 8px, rgba(255, 255, 255, 0.15) 8px, rgba(255, 255, 255, 0.15) 10px, transparent 10px),
        linear-gradient(135deg, transparent 12px, rgba(255, 255, 255, 0.15) 12px, rgba(255, 255, 255, 0.15) 14px, transparent 14px),
        /* Top-right corner cut mark */
        linear-gradient(45deg, transparent 8px, rgba(255, 255, 255, 0.15) 8px, rgba(255, 255, 255, 0.15) 10px, transparent 10px),
        linear-gradient(45deg, transparent 12px, rgba(255, 255, 255, 0.15) 12px, rgba(255, 255, 255, 0.15) 14px, transparent 14px),
        /* Bottom-left corner cut mark */
        linear-gradient(45deg, transparent 8px, rgba(255, 255, 255, 0.15) 8px, rgba(255, 255, 255, 0.15) 10px, transparent 10px),
        linear-gradient(45deg, transparent 12px, rgba(255, 255, 255, 0.15) 12px, rgba(255, 255, 255, 0.15) 14px, transparent 14px),
        /* Bottom-right corner cut mark */
        linear-gradient(135deg, transparent 8px, rgba(255, 255, 255, 0.15) 8px, rgba(255, 255, 255, 0.15) 10px, transparent 10px),
        linear-gradient(135deg, transparent 12px, rgba(255, 255, 255, 0.15) 12px, rgba(255, 255, 255, 0.15) 14px, transparent 14px);
    background-size: 
        100% 100%, 100% 100%,
        40px 40px, 40px 40px,
        40px 40px, 40px 40px,
        40px 40px, 40px 40px,
        40px 40px, 40px 40px;
    background-position: 
        0 0, 0 0,
        20px 20px, 20px 20px,
        calc(100% - 20px) 20px, calc(100% - 20px) 20px,
        20px calc(100% - 20px), 20px calc(100% - 20px),
        calc(100% - 20px) calc(100% - 20px), calc(100% - 20px) calc(100% - 20px);
    background-repeat: 
        repeat, repeat,
        no-repeat, no-repeat,
        no-repeat, no-repeat,
        no-repeat, no-repeat,
        no-repeat, no-repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* Film Grain Overlay - CSS generated grain (works without image file) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.02) 0px,
            transparent 1px,
            rgba(255, 255, 255, 0.03) 2px,
            transparent 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.02) 0px,
            transparent 1px,
            rgba(255, 255, 255, 0.03) 2px,
            transparent 3px
        );
    background-size: 100% 100%, 100% 100%;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
    animation: grainMove 8s steps(10) infinite;
}

/* Grain animation keyframes - shared by all grain effects */
@keyframes grainMove {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* Video Background Container */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 1;
    visibility: visible;
}

/* Desktop video - fill width well */
.desktop-video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* Light overlay for better text readability */
/* Full page overlay */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    padding: 15px 0 5px; /* Minimal padding */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.logo {
    max-height: 180px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default padding */
}

/* Ensure video logos display properly */
.logo video,
video.logo {
    max-height: 300px;
    width: auto;
    object-fit: contain;
    display: block;
}

.sidebar-logo video,
video.sidebar-logo {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4) 25%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.4) 75%, 
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.8)) 
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.4))
            drop-shadow(0 0 60px rgba(255, 255, 255, 0.3))
            brightness(1.15);
}

.logo:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.copyright {
    color: rgba(0, 0, 0, 0.4);
    font-size: 11px;
    font-weight: 300;
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.instagram-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.instagram-icon svg {
    width: 14px;
    height: 14px;
    transition: all 0.3s ease;
}

.instagram-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.instagram-icon:hover {
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.instagram-icon:hover::before {
    left: 0;
    opacity: 0.6;
}

.instagram-icon:hover svg {
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    height: calc(100vh - 255px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #eeeeeb;
    padding: 0 20px;
}

.hero-text {
    margin-top: 0; /* Removed offset since layout is now properly sized */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    opacity: 0.9;
}

.cta-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #eeeeeb;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: 0 auto;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    color: #eeeeeb;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .logo {
        max-height: 150px;
    }
    
    .logo:hover {
        transform: scale(1.08);
    }
    
    .header {
        padding: 5px 0 8px; /* Reduced padding on medium screens */
    }
    
    .instagram-icon {
        width: 25px;
        height: 25px;
    }
    
    .instagram-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .footer {
        padding: 12px;
    }
    
    .copyright {
        font-size: 10px;
    }
    
    .footer-content {
        gap: 6px;
    }
    
    .main-content {
        height: calc(100vh - 215px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 24px;
        font-size: 0.9rem;
        font-weight: 400;
        letter-spacing: 0.8px;
    }
    
    .instagram-icon {
        width: 23px;
        height: 23px;
    }
    
    .instagram-icon svg {
        width: 11px;
        height: 11px;
    }
    
    .footer {
        padding: 10px;
    }
    
    .copyright {
        font-size: 9px;
    }
    
    .footer-content {
        gap: 5px;
    }
    
    .main-content {
        height: calc(100vh - 175px);
    }
    
    .logo {
        max-height: 120px;
    }
    
    .logo:hover {
        transform: scale(1.05);
    }
}

/* Hide mobile video on desktop */
.mobile-video {
    display: none;
}

/* Show mobile video on mobile devices */
@media (max-width: 768px) {
    .desktop-video {
        display: none;
    }
    
    .mobile-video {
        display: block;
    }
}


/* Sidebar Layout Styles */
.sidebar-layout {
    display: block;
    min-height: 100vh;
    overflow: visible;
    background: #1a1a1a;
    position: relative;
}





@keyframes staticDots1 {
    0% { background-position: 0px 0px; }
    6.67% { background-position: 1px 1px; }
    13.33% { background-position: 2px 0px; }
    20% { background-position: 0px 2px; }
    26.67% { background-position: 3px 1px; }
    33.33% { background-position: 1px 3px; }
    40% { background-position: 2px 2px; }
    46.67% { background-position: 3px 0px; }
    53.33% { background-position: 0px 3px; }
    60% { background-position: 2px 1px; }
    66.67% { background-position: 1px 2px; }
    73.33% { background-position: 3px 3px; }
    80% { background-position: 0px 1px; }
    86.67% { background-position: 2px 3px; }
    93.33% { background-position: 1px 0px; }
    100% { background-position: 0px 0px; }
}

@keyframes staticDots2 {
    0% { background-position: 1px 1px; }
    8.33% { background-position: 3px 2px; }
    16.67% { background-position: 0px 3px; }
    25% { background-position: 2px 0px; }
    33.33% { background-position: 1px 2px; }
    41.67% { background-position: 3px 1px; }
    50% { background-position: 0px 0px; }
    58.33% { background-position: 2px 3px; }
    66.67% { background-position: 1px 0px; }
    75% { background-position: 3px 3px; }
    83.33% { background-position: 0px 2px; }
    91.67% { background-position: 2px 1px; }
    100% { background-position: 1px 1px; }
}

@keyframes staticDots3 {
    0% { background-position: 2px 1px; }
    5.56% { background-position: 0px 2px; }
    11.11% { background-position: 1px 0px; }
    16.67% { background-position: 2px 2px; }
    22.22% { background-position: 0px 1px; }
    27.78% { background-position: 1px 2px; }
    33.33% { background-position: 2px 0px; }
    38.89% { background-position: 0px 0px; }
    44.44% { background-position: 1px 1px; }
    50% { background-position: 2px 2px; }
    55.56% { background-position: 0px 2px; }
    61.11% { background-position: 1px 0px; }
    66.67% { background-position: 2px 1px; }
    72.22% { background-position: 0px 1px; }
    77.78% { background-position: 1px 2px; }
    83.33% { background-position: 2px 0px; }
    88.89% { background-position: 0px 0px; }
    94.44% { background-position: 1px 1px; }
    100% { background-position: 2px 1px; }
}

@keyframes staticDots4 {
    0% { background-position: 0px 0px; }
    10% { background-position: 2px 1px; }
    20% { background-position: 1px 2px; }
    30% { background-position: 0px 1px; }
    40% { background-position: 2px 0px; }
    50% { background-position: 1px 1px; }
    60% { background-position: 0px 2px; }
    70% { background-position: 2px 2px; }
    80% { background-position: 1px 0px; }
    90% { background-position: 0px 1px; }
    100% { background-position: 0px 0px; }
}

@keyframes staticDots5 {
    0% { background-position: 1px 0px; }
    5% { background-position: 3px 2px; }
    10% { background-position: 0px 1px; }
    15% { background-position: 2px 3px; }
    20% { background-position: 1px 1px; }
    25% { background-position: 3px 0px; }
    30% { background-position: 0px 2px; }
    35% { background-position: 2px 1px; }
    40% { background-position: 1px 3px; }
    45% { background-position: 3px 1px; }
    50% { background-position: 0px 0px; }
    55% { background-position: 2px 2px; }
    60% { background-position: 1px 2px; }
    65% { background-position: 3px 3px; }
    70% { background-position: 0px 3px; }
    75% { background-position: 2px 0px; }
    80% { background-position: 1px 1px; }
    85% { background-position: 3px 2px; }
    90% { background-position: 0px 1px; }
    95% { background-position: 2px 3px; }
    100% { background-position: 1px 0px; }
}

@keyframes staticDots6 {
    0% { background-position: 2px 2px; }
    7.14% { background-position: 0px 1px; }
    14.29% { background-position: 3px 0px; }
    21.43% { background-position: 1px 3px; }
    28.57% { background-position: 2px 1px; }
    35.71% { background-position: 0px 2px; }
    42.86% { background-position: 3px 3px; }
    50% { background-position: 1px 0px; }
    57.14% { background-position: 2px 2px; }
    64.29% { background-position: 0px 3px; }
    71.43% { background-position: 3px 1px; }
    78.57% { background-position: 1px 2px; }
    85.71% { background-position: 2px 0px; }
    92.86% { background-position: 0px 0px; }
    100% { background-position: 2px 2px; }
}

@keyframes staticDots7 {
    0% { background-position: 1px 1px; }
    12.5% { background-position: 0px 0px; }
    25% { background-position: 1px 0px; }
    37.5% { background-position: 0px 1px; }
    50% { background-position: 1px 1px; }
    62.5% { background-position: 0px 0px; }
    75% { background-position: 1px 0px; }
    87.5% { background-position: 0px 1px; }
    100% { background-position: 1px 1px; }
}

@keyframes staticDots8 {
    0% { background-position: 3px 1px; }
    6.25% { background-position: 1px 3px; }
    12.5% { background-position: 0px 2px; }
    18.75% { background-position: 2px 0px; }
    25% { background-position: 3px 3px; }
    31.25% { background-position: 1px 1px; }
    37.5% { background-position: 0px 0px; }
    43.75% { background-position: 2px 2px; }
    50% { background-position: 3px 0px; }
    56.25% { background-position: 1px 2px; }
    62.5% { background-position: 0px 1px; }
    68.75% { background-position: 2px 3px; }
    75% { background-position: 3px 2px; }
    81.25% { background-position: 1px 0px; }
    87.5% { background-position: 0px 3px; }
    93.75% { background-position: 2px 1px; }
    100% { background-position: 3px 1px; }
}



@keyframes rain1 {
    0% { background-position: 0 -100px; }
    100% { background-position: 0 100vh; }
}

@keyframes rain2 {
    0% { background-position: 0 -120px; }
    100% { background-position: 0 100vh; }
}

@keyframes rain3 {
    0% { background-position: 0 -80px; }
    100% { background-position: 0 100vh; }
}

@keyframes rain4 {
    0% { background-position: 0 -110px; }
    100% { background-position: 0 100vh; }
}

@keyframes rain5 {
    0% { background-position: 0 -90px; }
    100% { background-position: 0 100vh; }
}

@keyframes rain6 {
    0% { background-position: 0 -140px; }
    100% { background-position: 0 100vh; }
}

@keyframes rain7 {
    0% { background-position: 0 -70px; }
    100% { background-position: 0 100vh; }
}

@keyframes rain8 {
    0% { background-position: 0 -130px; }
    100% { background-position: 0 100vh; }
}

@keyframes tvStatic {
    0% { 
        background-position:
            0 0, 1px 1px, 2px 0px, 0px 2px,
            3px 1px, 1px 3px, 4px 2px, 2px 4px;
    }
    5% { 
        background-position:
            -1px 1px, 2px 0px, 1px 2px, 1px 0px,
            0px 2px, 3px 1px, 2px 3px, 4px 1px;
    }
    10% { 
        background-position:
            2px -1px, 0px 3px, 3px 1px, -1px 1px,
            4px 0px, 2px 4px, 1px 2px, 3px 3px;
    }
    15% { 
        background-position:
            1px 2px, 3px -1px, 0px 4px, 2px 1px,
            1px 3px, 4px 2px, 0px 0px, 2px 2px;
    }
    20% { 
        background-position:
            -2px 0px, 4px 1px, 2px 3px, 3px 0px,
            0px 4px, 1px 1px, 3px 2px, 1px 4px;
    }
    25% { 
        background-position:
            3px 2px, 1px 4px, 4px 0px, 0px 1px,
            2px 2px, 4px 3px, 1px 0px, 3px 1px;
    }
    30% { 
        background-position:
            0px 3px, 2px 1px, 1px 4px, 4px 2px,
            3px 0px, 0px 2px, 2px 3px, 4px 4px;
    }
    35% { 
        background-position:
            4px 1px, 0px 0px, 3px 2px, 1px 3px,
            2px 4px, 4px 0px, 0px 1px, 1px 2px;
    }
    40% { 
        background-position:
            1px 0px, 3px 3px, 0px 2px, 2px 0px,
            4px 1px, 1px 4px, 3px 1px, 0px 3px;
    }
    45% { 
        background-position:
            2px 3px, 4px 2px, 1px 1px, 3px 4px,
            0px 0px, 2px 1px, 4px 3px, 1px 3px;
    }
    50% { 
        background-position:
            3px 0px, 1px 2px, 4px 4px, 0px 1px,
            2px 3px, 3px 2px, 1px 0px, 4px 1px;
    }
    55% { 
        background-position:
            0px 4px, 2px 2px, 3px 1px, 1px 4px,
            4px 3px, 0px 1px, 2px 0px, 3px 3px;
    }
    60% { 
        background-position:
            4px 0px, 3px 1px, 1px 3px, 2px 2px,
            0px 3px, 1px 1px, 4px 2px, 2px 4px;
    }
    65% { 
        background-position:
            1px 1px, 0px 2px, 2px 4px, 4px 3px,
            3px 0px, 2px 1px, 0px 4px, 1px 2px;
    }
    70% { 
        background-position:
            2px 0px, 4px 4px, 0px 1px, 3px 2px,
            1px 4px, 4px 1px, 2px 3px, 0px 0px;
    }
    75% { 
        background-position:
            3px 3px, 1px 0px, 4px 2px, 0px 4px,
            2px 1px, 3px 4px, 1px 2px, 4px 0px;
    }
    80% { 
        background-position:
            0px 1px, 2px 3px, 3px 0px, 1px 1px,
            4px 4px, 0px 2px, 3px 1px, 2px 2px;
    }
    85% { 
        background-position:
            4px 3px, 0px 0px, 1px 4px, 2px 0px,
            3px 2px, 1px 3px, 4px 1px, 0px 3px;
    }
    90% { 
        background-position:
            1px 3px, 3px 4px, 2px 1px, 4px 0px,
            0px 2px, 2px 4px, 1px 0px, 3px 1px;
    }
    95% { 
        background-position:
            2px 2px, 4px 1px, 0px 3px, 1px 2px,
            3px 0px, 4px 4px, 0px 1px, 2px 3px;
    }
    100% { 
        background-position:
            0 0, 1px 1px, 2px 0px, 0px 2px,
            3px 1px, 1px 3px, 4px 2px, 2px 4px;
    }
}

.sidebar {
    width: 150px; /* reduced by half */
    background: transparent; /* Transparent on desktop - shows page background */
    backdrop-filter: none; /* Remove blur on desktop */
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 40px 0 30px 0;
    justify-content: flex-start; /* Start from top */
}


/* Logo wrapper – controls centering */
.sidebar-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;
    padding: 24px 0 16px; /* spacing from top + nav */
}

/* Logo link */
.sidebar-logo-wrap a {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.sidebar-logo-wrap a:hover {
    opacity: 0.8;
}

/* Logo image */
.sidebar-logo {
    width: 140px; /* scaled down to fit narrower sidebar */
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    animation: fadeInScale 0.6s ease-out forwards;
    object-fit: contain;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo Link Styles */
.header a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.header a:hover {
    text-decoration: none;
}

.sidebar-tagline {
    color: rgba(238, 238, 235, 0.5);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
    text-transform: lowercase;
    text-align: left;
    padding-left: 30px;
}

.sidebar-nav {
    flex: 1;
    text-align: left;
    padding-left: 30px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-bottom: 8px;
}

.nav-link {
    color: #eeeeeb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
    position: relative;
}

.nav-link:hover {
    color: rgba(238, 238, 235, 0.7);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #eeeeeb;
    font-weight: 500;
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    display: none;
}

.dropdown-menu {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-left: 15px;
}

.nav-item-dropdown.open .dropdown-menu {
    max-height: 300px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.dropdown-link {
    color: #eeeeeb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: block;
    padding: 6px 0;
    text-align: left;
}

.dropdown-link:hover {
    color: rgba(238, 238, 235, 0.7);
}

/* Category filter list in sidebar (under recents) */
.category-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 15px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.category-filter-list li {
    margin-bottom: 6px;
}

.category-filter-link {
    color: rgba(238, 238, 235, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    text-transform: lowercase;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
    position: relative;
}

.category-filter-link:hover {
    color: rgba(238, 238, 235, 0.9);
}

.category-filter-link.active {
    color: #eeeeeb;
    font-weight: 500;
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-social {
    margin-top: auto;
    padding-top: 30px;
    padding-left: 30px;
    text-align: left;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #eeeeeb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.page-content {
    margin-left: 150px; /* updated to match new sidebar width */
    width: calc(100% - 150px) !important; /* updated to match new sidebar width */
    max-width: none !important;
    background: transparent; /* Transparent to show HUD background */
    overflow-y: auto !important;
    height: 100vh;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

/* Subtle film grain texture overlay for page content (kept but HUD grain takes precedence) */
.page-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 150px; /* updated to match new sidebar width */
    width: calc(100% - 150px); /* updated to match new sidebar width */
    height: 100%;
    z-index: 0; /* Behind HUD */
    pointer-events: none;
    background: 
        /* Film grain noise */
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.015) 0px,
            transparent 1px,
            rgba(255, 255, 255, 0.02) 2px,
            transparent 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.015) 0px,
            transparent 1px,
            rgba(255, 255, 255, 0.02) 2px,
            transparent 3px
        );
    background-size: 100% 100%, 100% 100%;
    opacity: 0.3; /* Reduced since HUD has its own grain */
    animation: grainMove 8s steps(10) infinite;
    mix-blend-mode: overlay;
}

.page-content.video-playing {
    overflow: hidden;
    height: 100vh;
}


.content-section {
    padding: 10px 15px 10px 15px;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative;
    z-index: 15; /* Above background elements */
    width: 100% !important;
    box-sizing: border-box;
}

/* When video is playing, reduce content-section vertical padding to maximize player space */
.page-content.video-playing .content-section {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 15px; /* Keep horizontal padding */
    padding-right: 15px;
}

/* Camera HUD Overlay - Only for sidebar-layout pages */

/* HUD overlay - covers entire viewport including sidebar */
.bg-hud {
    position: fixed;
    inset: 0;
    z-index: 999; /* Above body background but below sidebar content */
    pointer-events: none;
    opacity: 0.5; /* Reduced overall intensity for more subtle feel */
    mix-blend-mode: normal;
}

/* Ensure video items sit above HUD - video is the hero */
.video-item {
    position: relative;
    z-index: 11; /* Above HUD */
}

.video-gallery {
    position: relative;
    z-index: 11; /* Above HUD */
}

.inline-video-player {
    position: relative;
    z-index: 12; /* Above everything when playing */
}

/* Common HUD typography - subtle but readable */
.hud-mono, .hud-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.12); /* Slightly more readable while still subtle */
    text-transform: uppercase;
    font-weight: 400;
}

.hud-top, .hud-bottom {
    position: absolute;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.hud-top { top: 16px; }
.hud-bottom { bottom: 16px; }

.hud-top .hud-left,
.hud-bottom .hud-left,
.hud-top .hud-right,
.hud-bottom .hud-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rec-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 70, 70, 0.35); /* Slightly more visible */
    box-shadow: 0 0 10px rgba(255, 70, 70, 0.2);
    animation: recPulse 2s ease-in-out infinite;
}

@keyframes recPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Vertical SCENE text - subtle but readable */
.hud-scene {
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.11);
    opacity: 0.85;
    filter: blur(0.3px);
    font-weight: 300;
}

/* Safe frame / guides with depth variation */
.hud-guides {
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    /* Add grid lines with depth variation */
    background-image: 
        /* Thicker horizontal lines every ~6 rows (depth variation) */
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 143px,
            rgba(255, 255, 255, 0.02) 143px,
            rgba(255, 255, 255, 0.02) 144px,
            transparent 144px,
            transparent 287px
        ),
        /* Regular grid lines */
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 47px,
            rgba(255, 255, 255, 0.015) 47px,
            rgba(255, 255, 255, 0.015) 48px,
            transparent 48px,
            transparent 95px
        ),
        /* Vertical lines */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 47px,
            rgba(255, 255, 255, 0.015) 47px,
            rgba(255, 255, 255, 0.015) 48px,
            transparent 48px,
            transparent 95px
        );
    background-size: 100% 100%, 100% 100%, 100% 100%;
    opacity: 0.7;
    animation: gridPulse 12s ease-in-out infinite;
}

.hud-guides::before,
.hud-guides::after {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hud-guides::after {
    inset: 32%;
    border-color: rgba(255, 255, 255, 0.025);
}

/* Subtle grid opacity pulsing */
@keyframes gridPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 0.75; }
}

/* Grain layer with slow drift (micro motion) */
.hud-grain {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0 1px, transparent 1px 3px),
        repeating-radial-gradient(circle at 70% 60%, rgba(255,255,255,0.035) 0 1px, transparent 1px 4px);
    filter: contrast(110%) brightness(92%);
    animation: hudGrainMove 10s ease-in-out infinite; /* Slower, smoother drift */
}

/* Slow grain drift - micro motion for expensive feel */
@keyframes hudGrainMove {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-1px, 2px); }
    50%  { transform: translate(2px, -1px); }
    75%  { transform: translate(-2px, -2px); }
    100% { transform: translate(0, 0); }
}

/* Subtle vignette for depth */
.hud-vignette {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.55) 85%);
    opacity: 0.55;
}

/* Ensure content sits above HUD */
body.sidebar-layout .page-content,
body.sidebar-layout .content-section {
    position: relative;
    z-index: 10;
}

/* Make sidebar content appear above HUD */
body.sidebar-layout .sidebar-content,
body.sidebar-layout .sidebar-nav,
body.sidebar-layout .sidebar-logo-wrap {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: #eeeeeb;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    text-align: left;
}

.content-text {
    color: #eeeeeb;
    line-height: 1.6;
    font-size: 16px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.content-text p {
    margin-bottom: 20px;
}

/* Clients Page Styles - Grid Layout */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 15px;
    row-gap: 0px;
    margin-top: 15px;
    padding: 0;
    max-width: 1000px;
    margin-left: 0;
    margin-right: auto;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.client-item:hover {
    transform: translateY(-5px);
}

.client-logo {
    max-width: 100%;
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* ================================ */
/* INDIVIDUAL LOGO SIZE CONTROLS   */
/* ================================ */
/* 
   Adjust each logo's height to achieve visual consistency
   Recommended range: 40px - 80px for desktop
   
   Guidelines:
   - Thick/bold logos: Use smaller heights (40-55px)
   - Thin/detailed logos: Use larger heights (60-80px)
   - Text-based logos: Usually need more height (65-80px)
   - Icon-based logos: Usually need less height (40-60px)
*/

/* Row 1 */
.logo-ajay-experience    { height: 80px; }
.logo-icy               { height: 80px; }
.logo-homicide          { height: 80px; }
.logo-black-excellence  { height: 80px; }

/* Row 2 */
.logo-first-sunday      { height: 80px; }
.logo-free-youth        { height: 80px; }
.logo-ajay-dj           { height: 80px; }
.logo-tukutane          { height: 80px; }

/* Row 3 */
.logo-studio18          { height: 80px; }
.logo-desta             { height: 80px; }
.logo-donlyf            { height: 80px; }
.logo-game7             { height: 80px; }

/* Row 4 */
.logo-east-west         { height: 80px; }
.logo-aziaz             { height: 80px; }

/* Row 5 - New additions */
.logo-asset1            { height: 140px; } /* Asset 1 logo */
.logo-asset2            { height: 140px; } /* Asset 2 logo */
.logo-white-ipoe        { height: 135px; } /* White IPOE logo */
.logo-who-said          { height: 145px; } /* Who Said logo */


.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #eeeeeb;
    padding: 10px 35px 10px 15px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23eeeeeb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.filter-select option {
    background: #1a1a1a;
    color: #eeeeeb;
}

.filter-link.active {
    color: #eeeeeb;
    font-weight: 500;
}

/* Category Filter Navbar */
.category-filter-nav {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(238, 238, 235, 0.1);
}

.filter-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.filter-nav-link {
    color: rgba(238, 238, 235, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    text-transform: lowercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.filter-nav-link:hover {
    color: rgba(238, 238, 235, 0.9);
}

.filter-nav-link.active {
    color: #eeeeeb;
    font-weight: 500;
}

.filter-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eeeeeb;
}

.video-item.hidden {
    display: none;
}

/* === Masonry grid with equal gaps === */
.video-gallery {
    --gap: 15px;
    display: grid;
    gap: var(--gap);
    width: 100%;
    margin-top: 20px;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    
    /* Desktop: 4 columns - default for screens > 992px */
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
}

/* Large desktop: 5 columns (optional, for very wide screens) */
@media (min-width: 1600px) {
    .video-gallery {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* Desktop (992px - 1600px): 4 columns - explicitly set */
@media (min-width: 993px) and (max-width: 1599px) {
    .video-gallery {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Tablet: 3 columns */
@media (min-width: 769px) and (max-width: 992px) {
    .video-gallery {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* If browser supports masonry */
@supports (grid-template-rows: masonry) {
    .video-gallery {
        grid-template-rows: masonry;
    }
}

.video-item {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    margin: 0;
    background: transparent;
    transition: all 0.3s ease;
    z-index: 1;
    padding: 0;
    display: block;
    width: 100%;
    grid-row-end: span 30; /* default row span for masonry */
    align-self: start;
}

/* Taller videos for jigsaw effect */
.video-item[data-tall="true"] {
    grid-row-end: span 45;
}

/* Shorter videos for jigsaw effect */
.video-item[data-short="true"] {
    grid-row-end: span 22;
}

.video-item:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-thumbnail {
    width: 100%;
    display: block;
    background: #1a1a1a;
    object-fit: cover;
    pointer-events: none; /* Prevent video controls from interfering */
    transition: all 0.3s ease;
    opacity: 1;
}

/* Specifically for <video> thumbnails */
.video-thumbnail[playsinline],
video.video-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    
    /* Kill tap highlight / odd overlays on some browsers */
    -webkit-tap-highlight-color: transparent;
    
    /* Prevents some "controls/shadow" behavior */
    appearance: none;
    -webkit-appearance: none;
    
    /* Remove browser UI artifacts */
    filter: none !important;
    outline: none;
}

.video-item:hover .video-thumbnail {
    transform: scale(1.02);
}

/* Thumbnail hover overlay (ONLY for hover UI) */
.video-item .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent !important;
    opacity: 0 !important;
    display: none !important;
    backdrop-filter: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
    z-index: 1100;
    pointer-events: none;
}

.video-item:hover .video-overlay {
    opacity: 0 !important;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #eeeeeb;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.video-description {
    font-size: 0.9rem;
    color: rgba(238, 238, 235, 0.9);
    line-height: 1.4;
    margin-bottom: 20px;
    opacity: 1;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
}

.play-button {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1110;
    position: relative;
}

.play-button:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid rgba(255, 255, 255, 0.9);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

/* Video Modal */
/* ================================ */
/* INLINE VIDEO PLAYER             */
/* ================================ */

.inline-video-player {
    display: none;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 40px);
    background: transparent;
    justify-content: center;
    padding: 40px 60px;
}

.inline-video-player.active {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Use full viewport height since content-section padding is removed */
    max-height: 100vh;
    overflow: hidden;
    justify-content: flex-start; /* Start from top instead of center */
    padding-top: 20px; /* Top padding */
    padding-bottom: 20px; /* Bottom padding */
    box-sizing: border-box; /* Include padding in height calculation */
    margin: 0; /* Remove any margins */
}

.inline-video-player.active.with-gallery {
    min-height: auto;
    padding-bottom: 0;
}

.video-gallery.hidden {
    display: none;
}

.video-gallery.show-below-player {
    display: block !important;
    margin-top: 0;
    padding-top: 60px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(238, 238, 235, 0.1);
}

.inline-video-player.active.with-gallery {
    padding-bottom: 20px;
    min-height: auto;
}

.video-player-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    flex-shrink: 1; /* Allow it to shrink if needed */
    flex-grow: 1;
    flex-basis: 0;
    min-height: 0; /* Important for flex shrinking */
    max-height: calc(100vh - 100px); /* Reserve space: 20px top padding + 60px controls (min-height) + 20px bottom padding */
}

.inline-video-player.active.with-gallery .video-player-container {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.inline-video-player.active.with-gallery .video-player-container video {
    max-height: 70vh;
}

.video-player-container video {
    max-width: 100%;
    max-height: 100%; /* Take full height of container, which is already constrained */
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Video player controls in sidebar */
.sidebar-video-controls {
    display: none !important; /* Hidden by default */
    flex-direction: column;
    gap: 16px;
    padding: 24px 12px;
    margin-top: auto; /* Push to bottom of sidebar */
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    color: #eeeeeb;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

/* Show controls when video is playing - using body class or inline player active */
body.video-playing .sidebar-video-controls,
.inline-video-player.active ~ .page-content ~ .sidebar .sidebar-video-controls,
body:has(.inline-video-player.active) .sidebar-video-controls {
    display: flex !important;
}

.video-player-title {
    font-weight: 500;
    text-transform: lowercase;
    line-height: 1.4;
    word-wrap: break-word;
}

.sidebar-video-controls .video-nav-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.sidebar-video-controls .video-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.nav-control {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    font-size: 10px;
}

.nav-control:hover {
    opacity: 1;
}

.nav-divider {
    opacity: 0.4;
}

/* Legacy styles for controls in main content (if still used elsewhere) */
.video-player-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0 0 0; /* Only top padding, no bottom */
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: #eeeeeb;
    letter-spacing: 1px;
    flex-shrink: 0; /* Don't shrink controls */
    min-height: 60px; /* Ensure minimum space for controls */
    box-sizing: border-box;
}

/* Mobile adjustments for inline player */
@media (max-width: 768px) {
    .inline-video-player {
        height: auto;
        min-height: 50vh;
        padding: 20px;
    }
    
    .inline-video-player.active {
        padding-top: 20px;
        padding-bottom: 20px;
        justify-content: flex-start;
    }
    
    .inline-video-player.active.with-gallery {
        padding-bottom: 15px;
    }
    
    .video-player-container {
        min-height: 300px;
        max-height: calc(100vh - 200px); /* Reserve space for controls on mobile */
    }
    
    .video-player-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 0 0 0; /* Only top padding */
    }
    
    .video-player-title {
        order: 1;
    }
    
    /* Sidebar video controls on mobile */
    .sidebar-video-controls {
        padding: 20px 16px;
        font-size: 9px;
        gap: 12px;
    }
    
    .sidebar-video-controls .video-nav-wrapper {
        gap: 10px;
    }
    
    .video-nav-controls {
        order: 2;
    }

    #showThumbnails {
        order: 3;
    }
    
    .video-gallery.show-below-player {
        padding-top: 40px;
        padding-bottom: 20px;
    }
}


/* Mobile Video Gallery Styles */
@media (max-width: 768px) {
    .video-gallery {
        --gap: 8px;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .video-item {
        margin-bottom: 0;
    }
    
    .video-item .video-overlay {
        padding: 15px;
    }
    
    .video-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .video-description {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-icon {
        border-left: 16px solid rgba(255, 255, 255, 0.9);
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }
    
}

/* Contact Page Styles */
.contact-main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #eeeeeb;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.contact-description {
    font-size: 18px;
    color: #eeeeeb;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-info {
    margin-bottom: 60px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 0;
}

.contact-label {
    font-size: 14px;
    font-weight: 500;
    color: #eeeeeb;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link {
    color: #eeeeeb;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: block;
    font-weight: 400;
}

.contact-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.contact-text {
    color: #eeeeeb;
    font-size: 16px;
    font-weight: 400;
    display: block;
}

.contact-section-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #eeeeeb;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.contact-form-section {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #eeeeeb;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(238, 238, 235, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    color: #eeeeeb;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.form-submit:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:active {
    transform: translateY(0);
}

/* Contact Form Enhancements */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: #eeeeeb;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-text {
    color: rgba(26, 26, 26, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

/* Mobile Menu Toggle */
/* Clapperboard icon base */
.mobile-menu-toggle.clapper {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    z-index: 3000; /* Higher than sidebar (2000) to stay visible when menu is open */
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(238, 238, 235, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.clapper .menu-icon {
    width: 28px;
    height: 28px;
    color: #1a1a1a;
}

/* Show on mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle.clapper {
        display: flex !important;
    }
}

/* Default: CLAPPER OPEN */
.mobile-menu-toggle.clapper .clapper-top {
    transform-origin: 12px 24px;         /* hinge point */
    transform: rotate(-25deg) translateY(-2px);
    transition: transform 0.2s ease;
}

/* SNAP animation when active */
.mobile-menu-toggle.clapper.active .clapper-top {
    animation: clapperSnap 180ms cubic-bezier(.2, .9, .2, 1) forwards;
}

@keyframes clapperSnap {
    0% {
        transform: rotate(-25deg) translateY(-2px);
    }
    70% {
        transform: rotate(8deg) translateY(0px);   /* little overshoot */
    }
    100% {
        transform: rotate(0deg) translateY(0px);   /* shut */
    }
}

/* Optional: active state button feedback */
.mobile-menu-toggle.clapper.active {
    transform: scale(0.98);
}

/* Responsive for sidebar layout */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease, width 0.3s ease;
    }
    
    .sidebar.open {
        width: 100vw;
        transform: translateX(0);
    }
    
    .page-content {
        margin-left: 0;
    }
    
    /* Adjust film production elements for mobile */
    .page-content::before {
        left: 0;
        width: 100%;
    }
    
    .content-section::before,
    .content-section::after {
        display: none; /* Hide scene numbers on mobile for cleaner look */
    }
    
    body.sidebar-layout::before,
    body.sidebar-layout::after {
        opacity: 0.2; /* Reduce opacity on mobile */
    }
    
    
    .content-section {
        padding: 10px 10px;
    }
    
    .page-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: relative;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding-left: 15px;
    }
    
    .nav-item-dropdown.open .dropdown-menu {
        max-height: 300px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .dropdown-link {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Clients Page Mobile Styles */
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 10px;
        row-gap: 10px;
        margin-top: 10px;
        padding: 0;
    }
    
    .client-item {
        padding: 10px;
    }
    
    .client-logo {
        height: 45px;
    }
    
    /* ================================ */
    /* MOBILE LOGO SIZE CONTROLS       */
    /* ================================ */
    
    /* Row 1 */
    .logo-ajay-experience    { height: 60px; }
    .logo-icy               { height: 60px; }
    .logo-homicide          { height: 60px; }
    .logo-black-excellence  { height: 60px; }
    
    /* Row 2 */
    .logo-first-sunday      { height: 60px; }
    .logo-free-youth        { height: 60px; }
    .logo-ajay-dj           { height: 60px; }
    .logo-tukutane          { height: 60px; }
    
    /* Row 3 */
    .logo-studio18          { height: 60px; }
    .logo-desta             { height: 60px; }
    .logo-donlyf            { height: 60px; }
    .logo-game7             { height: 60px; }
    
    /* Row 4 */
    .logo-east-west         { height: 60px; }
    .logo-aziaz             { height: 60px; }
    
    /* Row 5 - New additions */
    .logo-asset1            { height: 60px; }
    .logo-asset2            { height: 60px; }
    .logo-white-ipoe        { height: 60px; }
    .logo-who-said          { height: 60px; }

    /* Contact Page Mobile Styles */
    .contact-main-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .contact-description {
        font-size: 16px;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .contact-section-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .form-submit {
        width: 100%;
        padding: 15px 20px;
    }
    
    .checkbox-text {
        font-size: 13px;
    }

    /* About Page Mobile Styles */
    .about-page {
        padding: 20px 15px !important;
    }

    .about-intro {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .who-we-serve {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .about-credibility {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-top: 15px;
    }

    .recognition-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .cta-subtext {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 40px 0;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-number::after {
        font-size: 1.5rem;
    }

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

    .about-section {
        margin: 50px 0;
    }

    .section-title {
        font-size: 1.7rem;
        letter-spacing: 1px;
        margin-bottom: 30px;
    }

    .section-title::after {
        width: 80px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-title {
        font-size: 1.15rem;
    }

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

    .story-content p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .value-item {
        padding: 20px 10px;
    }

    .value-icon {
        font-size: 2.5rem;
    }

    .value-title {
        font-size: 1.1rem;
    }

    .value-text {
        font-size: 0.9rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .process-step {
        padding: 30px 20px;
    }

    .process-number {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .process-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

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

    .social-proof-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .social-proof-attribution {
        font-size: 0.9rem;
    }

    .about-cta {
        margin: 50px 0 30px;
        padding: 40px 25px;
    }

    .cta-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .cta-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .cta-button-large {
        padding: 15px 40px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .cta-main {
        font-size: 1rem;
    }

    .cta-subtitle {
        font-size: 0.7rem;
    }
}

/* =============================== */
/* MOBILE FIXES (drop at bottom)   */
/* =============================== */

/* 1) Fix mobile "100vh" issues (Safari/Chrome address bar) */
:root {
  --vh: 1vh;
}

/* Optional JS sets --vh; without JS this still works fine */
.page-content,
.inline-video-player.active,
.video-gallery,
.sidebar-layout {
  height: auto !important;
  min-height: 100dvh; /* modern mobile-safe viewport */
}

/* 2) Let the BODY scroll on mobile (avoid scroll container jank) */
/* BUT lock it when sidebar is open */
@media (max-width: 768px) {
  html, body {
    overflow: auto !important;
    height: auto !important;
  }
  
  /* Lock body scroll when sidebar is open */
  body.sidebar-layout.has-sidebar-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  body.sidebar-layout.has-sidebar-open .page-content {
    overflow: hidden !important;
  }

  /* Fix 1: Override .page-content width on mobile */
  .page-content {
    margin-left: 0 !important;
    width: 100% !important;     /* key fix - prevents skinny column */
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
  }

  /* 3) Sidebar should overlay + fill whole screen when active */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: min(85vw, 320px);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease, width 0.3s ease;
    background: rgba(26, 26, 26, 0.95) !important; /* Dark background on mobile */
    backdrop-filter: blur(10px) !important; /* Blur on mobile */
  }

  .sidebar.open {
    width: 100vw;
    transform: translateX(0);
  }

  /* Center content perfectly in the middle when sidebar is open */
  .sidebar.open .sidebar-content {
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
  }


  .sidebar.open .sidebar-nav {
    text-align: center !important;
    padding-left: 0 !important;
    flex: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  /* Category filters in sidebar on mobile */
  .sidebar.open .category-filter-list {
    padding-left: 0 !important;
    text-align: center;
  }
  
  .sidebar.open .category-filter-link {
    text-align: center;
  }
  }

  .sidebar.open .nav-list {
    align-items: center;
    width: 100%;
  }

  .sidebar.open .nav-link {
    text-align: center;
  }

  .sidebar.open .sidebar-social {
    padding-left: 0 !important;
    text-align: center !important;
    margin-top: auto;
    width: 100%;
  }

  /* 4) Give content breathing room under your hamburger */
  .content-section {
    padding-top: 35px !important;
  }

  /* Fix 4: Make filter links not feel cramped - centered */
  /* Category filters are now in sidebar, no separate mobile styles needed */

  /* 5) Video player sizing for mobile */
  .inline-video-player {
    padding: 16px !important;
  }

  .video-player-container {
    min-height: 0 !important;
  }

  .video-player-container video {
    width: 100% !important;
    height: auto !important;
    max-height: 60dvh !important;
  }

  /* Fix 3: Make gallery 2-column masonry/jigsaw on mobile */
  @media (max-width: 768px) {
    .video-gallery {
      grid-template-columns: repeat(2, 1fr) !important;
      grid-auto-rows: 8px;          /* key to masonry illusion */
      gap: 10px;
      --gap: 10px;
    }
  }

  .video-item {
    align-self: start;
  }

  .video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: auto; /* allow natural aspect ratios for jigsaw effect */
  }
}

/* 7) For very small phones */
@media (max-width: 420px) {
  .page-title {
    font-size: 2rem !important;
  }
}

/* Super small screens - single column gallery (no jigsaw possible) */
@media (max-width: 380px) {
  .video-gallery { 
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
  }
  
  .video-item {
    grid-row-end: span 1 !important;
  }
}

/* About Page Specific Styles */
.about-page {
    padding: 40px 50px !important;
    max-width: 1200px !important;
}

.about-hero {
    margin: 40px 0 60px;
    text-align: center;
}

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #eeeeeb;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.who-we-serve {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(238, 238, 235, 0.8);
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto 20px;
    font-style: italic;
    animation: fadeInUp 1s ease forwards;
}

.about-credibility {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(238, 238, 235, 0.9);
    font-weight: 400;
    max-width: 900px;
    margin: 20px auto 0;
    text-align: center;
    animation: fadeInUp 1.1s ease forwards;
}

.about-credibility strong {
    color: #eeeeeb;
    font-weight: 600;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 60px 0;
    animation: fadeInUp 1s ease forwards;
}

.stat-card {
    background: rgba(238, 238, 235, 0.05);
    border: 1px solid rgba(238, 238, 235, 0.15);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(238, 238, 235, 0.1);
    border-color: rgba(238, 238, 235, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #eeeeeb;
    margin-bottom: 10px;
}

/* Stat suffix is now handled dynamically via JavaScript */

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}

/* About Sections */
.about-section {
    margin: 80px 0;
    animation: fadeInUp 1s ease forwards;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: #eeeeeb;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #eeeeeb, transparent);
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #eeeeeb, rgba(238, 238, 235, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(238, 238, 235, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(238, 238, 235, 0.2));
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.3rem;
    color: #eeeeeb;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    color: #eeeeeb;
}

.service-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    font-weight: 300;
    transition: all 0.3s ease;
}

.service-card:hover .service-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Story Content */
.story-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.value-item {
    text-align: center;
    padding: 25px 15px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 6px 15px rgba(255, 255, 255, 0.3));
}

.value-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.value-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-weight: 300;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.process-step {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: rgba(238, 238, 235, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.process-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(238, 238, 235, 0.3);
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.process-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: #eeeeeb;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.process-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-weight: 300;
}

/* Social Proof Section */
.social-proof-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(238, 238, 235, 0.9);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 15px;
    text-align: center;
    font-weight: 300;
}

.social-proof-attribution {
    font-size: 1rem;
    color: rgba(238, 238, 235, 0.6);
    text-align: center;
    font-weight: 400;
}

/* Recognition Text */
.recognition-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(238, 238, 235, 0.9);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-weight: 300;
}

.recognition-text strong {
    color: #eeeeeb;
    font-weight: 600;
}

/* CTA Section */
.about-cta {
    text-align: center;
    margin: 80px 0 40px;
    padding: 60px 40px;
    background: rgba(238, 238, 235, 0.05);
    border: 1px solid rgba(238, 238, 235, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    animation: fadeInUp 1.2s ease forwards;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(238, 238, 235, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: #eeeeeb;
    margin-bottom: 15px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.cta-subtext {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 35px;
    font-weight: 300;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.cta-button-large {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 50px;
    background: #eeeeeb;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(238, 238, 235, 0.3);
    overflow: hidden;
    gap: 5px;
}

.cta-main {
    font-size: 1.1rem;
    font-weight: 600;
}

.cta-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.cta-button-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.cta-button-large:hover {
    transform: translateY(-3px) scale(1.05);
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(238, 238, 235, 0.5);
}

.cta-button-large:hover::before {
    left: 100%;
}

.cta-button-large:active {
    transform: translateY(-1px) scale(1.02);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================== */
/* PERFECT CENTER MOBILE MENU      */
/* =============================== */
@media (max-width: 768px) {

  /* Make the open sidebar a full-screen center stage */
  .sidebar.open {
    display: flex;              /* ensure flex context */
    align-items: center;        /* vertical center container */
    justify-content: center;    /* horizontal center container */
  }

  /* Center the entire menu block */
  .sidebar.open .sidebar-content {
    height: 100%;
    width: 100%;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;  /* THIS fixes the "shifted up" */
    gap: 18px;
  }


  .sidebar.open .sidebar-nav {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    text-align: center !important;
    display: flex;
    justify-content: center;
  }

  .sidebar.open .nav-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Keep socials centered, but don't force them to bottom */
  .sidebar.open .sidebar-social {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }
}
