/* VARIABLES & RESET */
:root { 
    --bg-color: #050505; 
    --text-color: #ffffff; 
    --accent: #FF9900; 
    --header-height: 120px; 
}

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

@keyframes fadeInBlur {
    0% { opacity: 0; filter: blur(20px); }
    90% { opacity: 1; filter: blur(0px); }
    100% { opacity: 1; filter: none; }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    animation: fadeInBlur 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body.menu-open { overflow: hidden; height: 100dvh; }

/* FORCE REGULAR CURSOR */
html, body, a, button, input, textarea, .card, .menu-toggle, 
.swiper, .swiper-wrapper, .swiper-slide, video {
    cursor: auto !important;
}

.custom-cursor { display: none !important; }

/* --- HEADER --- */
header {
    height: var(--header-height);
    position: fixed; top: 0; width: 100%; z-index: 2000;
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 25px 30px 0 30px;
    pointer-events: none; 
}

header::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}

.header-left, .header-center, .header-right, .menu-toggle { pointer-events: auto; }

.header-left {
    color: var(--accent); font-weight: 800; font-size: 1.5rem; text-transform: uppercase;
    letter-spacing: -1px; text-decoration: none; cursor: pointer; transition: color 0.3s;
}
.header-left:hover { color: #fff; }

.header-center {
    color: var(--accent); font-weight: 400; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; margin-top: 5px; 
}

.header-right { display: flex; gap: 25px; align-items: center; margin-top: 2px; }

.icon-link svg { width: 24px; height: 24px; fill: var(--accent); transition: transform 0.2s, fill 0.2s; }
.icon-link:hover svg { transform: scale(1.1); fill: #fff; }

.nav-text {
    color: var(--accent); font-weight: 800; font-size: 1.1rem; letter-spacing: 1px;
    text-decoration: none; text-transform: uppercase; cursor: pointer; transition: color 0.3s;
}
.nav-text:hover { color: #fff; }

.menu-toggle {
    display: none; color: var(--accent); font-weight: 800; font-size: 1.2rem;
    text-transform: uppercase; cursor: pointer; z-index: 2001; margin-top: 5px;
}

.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
    background-color: #000;
    display: flex; flex-direction: column; justify-content: center; padding-left: 40px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 1500;
    pointer-events: none; 
}
.mobile-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-link {
    font-size: 3rem; font-weight: 800; color: var(--accent); text-decoration: none;
    margin-bottom: 20px; text-transform: uppercase; letter-spacing: -1px; transition: color 0.3s;
}
.mobile-link:hover { color: #fff; }

.mobile-icons { display: flex; gap: 30px; margin-top: 40px; }
.mobile-icons svg { width: 40px; height: 40px; fill: var(--accent); }

/* --- GRID LAYOUT --- */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
    grid-template-rows: repeat(2, 50vh); 
    width: 100vw;
}

.card { position: relative; width: 100%; height: 100%; background: #111; overflow: hidden; }
.card a { display: block; width: 100%; height: 100%; }
.card img, .grid-video { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    filter: brightness(0.8); 
    pointer-events: none;
}

@media (hover: hover) {
    .card:hover img, .card:hover .grid-video { transform: scale(1.1); filter: brightness(0.3); }
    .card:hover .overlay { opacity: 1; }
    .card:hover .project-title { transform: translateY(0); }
}

.card.mobile-active img, .card.mobile-active .grid-video { transform: scale(1.1); filter: brightness(0.3); }
.card.mobile-active .overlay { opacity: 1; }
.card.mobile-active .project-title { transform: translateY(0); }

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.4s ease; padding: 20px; text-align: center; pointer-events: none;
}

.project-title {
    color: #fff; font-size: 3rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: -1px; margin-bottom: 10px; line-height: 1;
    transform: translateY(20px); transition: transform 0.4s ease;
}
.project-cat { color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; }

/* --- SOCIAL ACCORDION HEADER --- */
.social-toggle {
    position: relative;
    width: 100vw;
    height: 300px; /* Fixed height as requested */
    margin-left: calc(-50vw + 50%); /* Force full viewport width */
    margin-bottom: 30px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px; /* Padding for the text */
    
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    border-bottom: 1px solid #333;
}

/* The Background Video */
.social-toggle video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5; /* Dim it so text is readable */
    pointer-events: none;
    filter: grayscale(100%); /* Optional: makes it look classy behind text */
    transition: opacity 0.3s;
}

.social-toggle:hover video {
    opacity: 0.7; /* Brighten on hover */
}

/* Ensure Text is on top */
.social-toggle span {
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0,0,0,1); /* Strong shadow for contrast */
}

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

.social-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.social-content.active {
    display: block;
    opacity: 1;
}

/* --- REELS STRIP --- */
.reel-section-title {
    font-size: 1.5rem; font-weight: 800; color: #FF9900;
    text-transform: uppercase; margin-bottom: 15px; margin-top: 60px;
}

.reels-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Increased height and padding to allow expansion without clipping */
    height: 70vh; 
    max-height: 700px;
    min-height: 450px;
    overflow: hidden; /* Controls horizontal */
    
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    background: #000;
    
    /* Padding handles the vertical expansion space */
    padding: 40px 0; 
    margin-bottom: 20px;
}

.swiper { 
    width: 100%; 
    height: 100%; 
    overflow: visible !important; /* ALLOWS SLIDES TO GROW OUT OF BOUNDS */
}

.swiper-slide {
    width: auto; 
    height: 100%;
    aspect-ratio: 9 / 16;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), z-index 0s;
    transform-origin: center center;
    border: 1px solid transparent;
}

/* EXPANDED STATE (Replaces Popup) */
.swiper-slide.expanded {
    transform: scale(1.15); /* Grow 15% */
    z-index: 100; /* Float above others */
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.swiper-slide video {
    width: 100%; height: 100%; 
    object-fit: cover; 
    pointer-events: none;
}

/* OVERLAY TEXT (Hidden when expanded) */
.reel-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #fff; font-weight: 800; font-size: 0.9rem;
    background: rgba(0,0,0,0.5); padding: 5px 10px; border: 1px solid #fff;
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.swiper-slide:not(.expanded):hover .reel-overlay { opacity: 1; }

/* --- INLINE CONTROLS (Only visible when expanded) --- */
.inline-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 200;
}

.swiper-slide.expanded .inline-controls {
    opacity: 1;
    pointer-events: auto;
}

.slide-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s;
}

.slide-btn svg {
    width: 30px; height: 30px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.slide-btn:hover { transform: scale(1.2); }

/* CLOSE BUTTON (Top Right of Card) */
.slide-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 30px; height: 30px;
    display: flex; justify-content: center; align-items: center;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 200;
}

.swiper-slide.expanded .slide-close {
    opacity: 1;
    pointer-events: auto;
}

.slide-close svg {
    width: 20px; height: 20px; fill: #fff;
}
.slide-close:hover { background: rgba(0,0,0,0.6); }

@media (max-width: 768px) {
    .header-center, .header-right { display: none; }
    .menu-toggle { display: block; }
    .grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 50vh); }
    
    /* On mobile, expand slightly less to fit screen */
    .swiper-slide.expanded { transform: scale(1.1); }
}

/* --- FINAL VIDEO CONTROLS (FLEX LAYOUT) --- */

.slide-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Tall enough for gradient */
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: space-between;
    padding: 0 20px 20px 20px; /* Padding from bottom */
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 200;
}

/* Show controls when expanded */
.swiper-slide.expanded .slide-controls {
    opacity: 1;
    pointer-events: auto;
}

/* BUTTONS (Play & Volume) */
.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: #fff;
}

.control-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
    transition: transform 0.2s;
}

.control-btn:hover svg { transform: scale(1.1); fill: var(--accent); }

/* PROGRESS BAR (The line in the middle) */
.progress-wrapper {
    flex-grow: 1; /* Takes up all available space */
    height: 20px; /* Hit area for easier clicking */
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    position: relative;
}

.progress-filled {
    height: 100%;
    background: #fff;
    width: 0%;
    border-radius: 3px;
    position: relative;
}

/* The dot at the end of the line */
.progress-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0); /* Hidden by default */
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.progress-wrapper:hover .progress-thumb { transform: translateY(-50%) scale(1); }
.progress-wrapper:hover .progress-track { height: 5px; } /* Slightly thicker on hover */

/* VOLUME CONTAINER (For the popup) */
.volume-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* VERTICAL SLIDER POPUP */
.volume-popup {
    position: absolute;
    bottom: 40px; /* Sit above the button */
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 100px;
    background: rgba(0,0,0,0.8);
    border-radius: 15px;
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.volume-wrapper.active .volume-popup {
    display: flex;
}

/* The vertical range input */
.volume-slider {
    -webkit-appearance: none;
    width: 80px; /* Width becomes height when rotated */
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
    transform: rotate(-90deg); /* Rotate to make vertical */
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* --- SWIPER NAVIGATION ARROWS --- */
.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0,0,0,0.5); /* Dark background for visibility */
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px !important; /* Smaller arrow icon */
    font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: var(--accent) !important;
    background: #fff;
}

/* Hide arrows if they aren't needed (e.g., end of list) */
.swiper-button-disabled {
    opacity: 0.3;
    cursor: auto;
    pointer-events: none;
}

/* --- ADJUSTMENTS FOR FLUSH LEFT LAYOUT --- */
.swiper {
    padding-left: 4vw !important; /* Adds margin on the left side */
    padding-right: 4vw !important;
}

/* Ensure overlay is clickable and clearly defined */
.reel-overlay {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #fff;
    padding: 8px 16px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.3s;
    /* Ensure it sits on top */
    z-index: 20; 
}

.reel-overlay:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Hide arrows (cleanup) */
.swiper-button-next, .swiper-button-prev {
    display: none !important;
}

/* Ensure the overlay is always clickable and not interpreted as a swipe */
.swiper-no-swiping {
    pointer-events: auto !important;
}

/* EXPANDED STATE - Make sure it pops out */
.swiper-slide {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), z-index 0s;
    transform-origin: center center;
}

.swiper-slide.expanded {
    transform: scale(1.1); /* Grow 10% */
    z-index: 1000 !important; /* Force on top */
    box-shadow: 0 20px 50px rgba(0,0,0,0.9); /* Strong shadow */
    border: 1px solid var(--accent);
}

/* Ensure video controls are clickable */
.slide-controls {
    cursor: default;
}

/* --- NEW MAIN PAGE ACCORDION STYLES --- */

/* The Container for the whole stack */
.accordion-stack {
    display: flex;
    flex-direction: column;
    width: 100vw;
    overflow-x: hidden;
}

/* The Header/Toggle Bar */
.section-toggle {
    position: relative;
    width: 100vw;
    height: 300px; /* Fixed height for uniformity */
    margin-bottom: 0; /* Stack them flush or with small gap */
    border-bottom: 1px solid #111;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw; 
    
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden; /* Critical for zoom effect */
    background: #000;
    transition: color 0.3s;
}

.section-toggle:hover {
    color: var(--accent);
}

/* Background Video with Zoom Effect */
.section-toggle video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.0); /* Default scale */
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5; 
    pointer-events: none;
    filter: grayscale(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
}

/* THE HOVER ZOOM EFFECT */
.section-toggle:hover video {
    transform: translate(-50%, -50%) scale(1.1); /* Zoom in 10% */
    opacity: 0.7;
}

/* Text on top */
.section-toggle span {
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 30px rgba(0,0,0,1);
    pointer-events: none;
}

/* The Hidden Content Area */
.section-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: var(--bg-color);
    padding-bottom: 40px;
}

.section-content.active {
    display: block;
    opacity: 1;
}

/* Sub-headers inside the open section */
.inner-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    margin: 40px 0 20px 4vw; /* Align with slider padding */
}

/* --- NEW MAIN PAGE ACCORDION STYLES --- */
.accordion-stack { display: flex; flex-direction: column; width: 100vw; overflow-x: hidden; }

.section-toggle {
    position: relative;
    width: 100vw;
    height: 300px;
    margin-bottom: 0;
    border-bottom: 1px solid #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw; 
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    transition: color 0.3s;
}
.section-toggle:hover { color: var(--accent); }

.header-bg-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(1.0);
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5; 
    pointer-events: none;
    filter: grayscale(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
}
.section-toggle:hover .header-bg-video {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.7;
}

.section-toggle span { position: relative; z-index: 2; text-shadow: 0 4px 30px rgba(0,0,0,1); pointer-events: none; }

.section-content { display: none; opacity: 0; transition: opacity 0.5s ease; background: var(--bg-color); padding-bottom: 40px; }
.section-content.active { display: block; opacity: 1; }

.inner-section-title { font-size: 1.5rem; font-weight: 800; color: var(--accent); text-transform: uppercase; margin: 40px 0 20px 4vw; }

/* --- THINNER SUBTITLES --- */
.section-subtitle {
    font-size: 0.95rem; /* Smaller */
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    margin-top: -15px;
    font-weight: 300; /* Thinner */
    line-height: 1.4;
    padding-left: 4vw;
}

/* --- VIDEO TOP TITLE OVERLAY --- */
.video-top-title {
    position: absolute;
    top: 25px;
    left: 20px;
    font-size: 1.1rem;
    font-weight: 600; /* Bold/Semi-bold */
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 50; /* Above overlay */
    pointer-events: none; /* Let clicks pass through */
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

/* Show title only when expanded */
.swiper-slide.expanded .video-top-title {
    opacity: 1;
}

/* --- SHOT ON LABEL (Ensure it stays bottom) --- */
.shot-on-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 50;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.swiper-slide.expanded .shot-on-label {
    opacity: 1;
}

/* --- REFINED VIDEO TOP TITLE --- */
.video-top-title {
    position: absolute;
    top: 25px;
    left: 20px;
    font-size: 0.9rem;  /* Smaller */
    font-weight: 400;   /* Thinner */
    text-transform: uppercase; /* All Caps */
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 50; 
    pointer-events: none; 
    letter-spacing: 1px;
}

.swiper-slide.expanded .video-top-title {
    opacity: 1;
}

/* --- REFINED SHOT ON LABEL --- */
/* Moved higher to clear the player controls/gradient */
.shot-on-label {
    position: absolute;
    bottom: 50px; /* Moved up */
    left: 20px;
    font-size: 0.65rem; /* Smaller */
    font-weight: 600;   /* Slightly bolder for legibility at small size */
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 50;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.swiper-slide.expanded .shot-on-label {
    opacity: 1;
}

/* Move Player Controls UP slightly to make room for "Shot On" text */
.slide-controls {
    bottom: 35px; /* Bumped up */
}

/* Position "Shot On" text at the very bottom, below controls */
.shot-on-label {
    position: absolute;
    bottom: 8px; /* Tucked at bottom */
    left: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 100; /* High z-index to sit above gradient */
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.swiper-slide.expanded .shot-on-label {
    opacity: 1;
}

/* --- FIX PLAYER & LABEL POSITIONS --- */

/* 1. The Gradient Background */
/* We add this to the controls container to create a backdrop for both player and text */
.slide-controls {
    position: absolute;
    bottom: 35px !important; /* Sit ABOVE the text */
    left: 0;
    width: 100%;
    padding: 20px 20px 10px 20px; /* Add breathing room */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 60;
    /* Remove default gradient here if we want a shared one, 
       but keeping it ensures the player is readable. 
       We will extend it downwards. */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

/* 2. The "Shot On" Label */
.shot-on-label {
    position: absolute;
    bottom: 12px !important; /* Pinned to the orange border */
    left: 20px !important;
    font-size: 0.6rem !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 70; /* On top of gradient */
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,1);
}

/* 3. Ensure Title is readable at top */
.video-top-title {
    top: 20px !important;
    left: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

/* 4. Fix Progress Bar Hover Area */
.progress-wrapper {
    height: 20px; /* Easier to grab */
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* --- SMART PLAYER POSITIONING --- */

/* 1. Base Player Controls (Gradient Container) */
.slide-controls {
    position: absolute;
    bottom: 0 !important; /* Always flush to bottom */
    left: 0;
    width: 100%;
    /* Default spacing (when no text exists) */
    padding: 40px 20px 20px 20px; 
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 60;
    /* Stronger gradient that starts from the very bottom */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    transition: padding-bottom 0.3s ease;
}

/* 2. Conditional Lift: If "Shot On" text exists, push buttons up */
.swiper-slide:has(.shot-on-label) .slide-controls {
    padding-bottom: 45px; /* Adds room for the text below buttons */
}

/* 3. "Shot On" Label Position */
.shot-on-label {
    position: absolute;
    bottom: 15px !important; /* Pinned to bottom inside the gradient */
    left: 20px !important;
    font-size: 0.6rem !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9); /* High contrast */
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 70; /* Sits ON TOP of the player/gradient */
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,1);
}

/* --- CONTINUOUS SCROLL "MARQUEE" STYLE --- */
.swiper-wrapper {
    transition-timing-function: linear !important;
}

/* --- CUSTOM FONT: TRIVANE --- */
@font-face {
    font-family: 'Trivane';
    src: url('../fonts/Trivane.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Apply to Main Headers (CONTENT, NARRATIVE, etc.) */
.section-toggle {
    font-family: 'Trivane', sans-serif !important;
    letter-spacing: 1px; /* Adjust spacing to match the blocky look */
}

/* Apply to Top Left Logo */
.header-left {
    font-family: 'Trivane', sans-serif !important;
    letter-spacing: 0.5px;
}

/* --- DESIGN UPDATES --- */

/* 1. Header Text: Orange Default, White Hover, No Shadow */
.section-toggle {
    color: #FF9900 !important; /* Default Orange */
    transition: color 0.3s ease;
}

.section-toggle:hover {
    color: #ffffff !important; /* Hover White */
}

.section-toggle span {
    text-shadow: none !important; /* Remove Drop Shadow */
}

/* 2. Video Saturation: 30% Color */
.header-bg-video {
    filter: saturate(30%) !important; /* 30% Saturated */
    opacity: 0.5;
}

/* Ensure hover state keeps the saturation but increases opacity/scale */
.section-toggle:hover .header-bg-video {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.05);
    filter: saturate(30%) !important; /* Keep it desaturated even on hover? or restore color? User implied permanent style. Keeping 30%. */
}

/* --- UPDATED VISUALS --- */

/* 1. Header Gradient & Position */
#mainHeader {
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0) 100%) !important;
    padding-top: 25px; /* Slight adjust for spacing */
}

/* 2. Bigger, Taller Sections */
.section-toggle {
    height: 400px !important; /* Taller */
    font-size: 6rem !important; /* Bigger Text */
    padding: 0 4vw !important; /* Keep horizontal alignment */
}

/* 3. Full Saturation */
.header-bg-video {
    filter: saturate(100%) !important; /* Full Color */
    opacity: 0.6; /* Slightly more visible */
}

/* 4. Hover State for Video */
.section-toggle:hover .header-bg-video {
    opacity: 0.9;
    filter: saturate(100%) !important;
}

/* 5. Mobile Adjustments for Giant Text */
@media (max-width: 768px) {
    .section-toggle {
        font-size: 3rem !important; /* Prevent text breaking on phone */
        height: 250px !important;
    }
}

/* --- HEADER & SPACING REFINEMENTS --- */

/* 1. Header Blur & Gradient */
#mainHeader {
    /* Slightly stronger gradient to support the blur */
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%) !important;
    /* The Blur Effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Ensure padding from previous step remains */
    padding-top: 25px;
}

/* 2. Push Text Down (maintain video at top) */
.section-toggle {
    /* Previous height was 400px. New height 500px to accommodate the push */
    height: 500px !important;
    
    /* Push content down by 100px */
    padding-top: 100px !important;
    
    /* Ensure padding is included in the height calculation */
    box-sizing: border-box; 
}

/* Adjust mobile to not be too tall, but still have space */
@media (max-width: 768px) {
    .section-toggle {
        height: 350px !important;
        padding-top: 80px !important;
    }
}

/* --- HEADER & SPACING REFINEMENTS --- */

/* 1. Header Blur & Gradient */
#mainHeader {
    /* Slightly stronger gradient to support the blur */
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%) !important;
    /* The Blur Effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Ensure padding from previous step remains */
    padding-top: 25px;
}

/* 2. Push Text Down (maintain video at top) */
.section-toggle {
    /* Previous height was 400px. New height 500px to accommodate the push */
    height: 500px !important;
    
    /* Push content down by 100px */
    padding-top: 100px !important;
    
    /* Ensure padding is included in the height calculation */
    box-sizing: border-box; 
}

/* Adjust mobile to not be too tall, but still have space */
@media (max-width: 768px) {
    .section-toggle {
        height: 350px !important;
        padding-top: 80px !important;
    }
}

/* --- HEADER BOTTOM FADE --- */
#mainHeader {
    /* Ensure the gradient fades to transparent at the bottom */
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0) 100%) !important;
    /* Maintain the blur effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- DIFFUSED BLUR & GRADIENT FADE --- */
#mainHeader {
    /* The black gradient fade */
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0) 100%) !important;
    
    /* The blur effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* THE FIX: Masking the blur to fade out at the bottom */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

/* --- REDUCE HEADER HEIGHT --- */
.section-toggle {
    height: 450px !important; /* Reduced by 50px */
}

/* --- ADJUST HEADER GRADIENT HEIGHT --- */
#mainHeader {
    /* Gradient fades to transparent by 50% (Half height), leaving the bottom half just blurred */
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 25%, rgba(0,0,0,0) 50%) !important;
    
    /* Keep the existing blur settings untouched */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

/* --- SOFTEN HEADER GRADIENT --- */
#mainHeader {
    /* Start at 80% opacity (0.8), fade seamlessly to transparent */
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0) 60%) !important;
    
    /* Keep the blur effect and the mask that fades the blur out at the bottom */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
}

/* --- BACKGROUND VIDEO BLUR --- */
.header-bg-video {
    /* Maintain 100% Saturation, Add 10px Blur (~20%) */
    filter: saturate(100%) blur(10px) !important;
    
    /* Scale up slightly to prevent blurred edges from pulling in the background color */
    transform: scale(1.1);
}

/* Ensure blur persists on hover */
.section-toggle:hover .header-bg-video {
    filter: saturate(100%) blur(10px) !important;
    opacity: 0.9; /* Keep the opacity boost on hover */
    transform: scale(1.15); /* Slight zoom on hover */
}

/* --- FIX VIDEO POSITION & BLUR --- */
.header-bg-video {
    /* Ensure absolute centering */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* COMBINED TRANSFORM: Center the video (-50%) AND Scale it slightly (1.05) to hide blurred edges */
    transform: translate(-50%, -50%) scale(1.05) !important;
    
    /* Reduced Blur to ~7% (4px) */
    filter: saturate(100%) blur(4px) !important;
    
    /* Ensure it stays behind text */
    z-index: 0;
}

/* On hover, keep EXACTLY the same position/scale (remove the zoom movement) */
.section-toggle:hover .header-bg-video {
    transform: translate(-50%, -50%) scale(1.05) !important; /* Stays still */
    filter: saturate(100%) blur(4px) !important;
    opacity: 0.9; /* Only change opacity */
}
