/* =============================================
   CLIENTS PAGE - Luxury Cinematic Styling
   Inspired by rejouice.com
   
   DEVICE COMPATIBILITY:
   - iPhone (all models including notch devices)
   - iPad (Mini, Air, Pro)
   - Android phones and tablets
   - Windows/macOS laptops and desktops
   - All screen sizes from 320px to 4K
   ============================================= */

/* ===== CSS VARIABLES FOR CONSISTENCY ===== */
:root {
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --touch-target-min: 44px;
}

/* ===== BASE STYLES ===== */
body.clients-page {
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    /* Support for iOS safe areas */
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
}

/* ===== NAVIGATION ===== */
body.clients-page nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: max(30px, var(--safe-area-top)) 5vw 30px;
    transition: all 0.3s ease;
}

body.clients-page nav a,
body.clients-page nav h2 a {
    color: #fff;
    /* Better touch response */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}



body.clients-page nav a::after {
    background-color: #fff;
}

body.clients-page nav.nav-dark a,
body.clients-page nav.nav-dark h2 a {
    color: #0a0a0a;
}

body.clients-page nav.nav-dark a::after {
    background-color: #0a0a0a;
}

/* ===== HERO SECTION ===== */
.clients-hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(120px + var(--safe-area-top)) 5vw calc(80px + var(--safe-area-bottom));
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

.clients-hero-inner {
    max-width: 1400px;
    width: 100%;
    text-align: center;
}

.clients-title {
    font-family: rejo, serif;
    font-size: clamp(3rem, 10vw, 9rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
    overflow: hidden;
}

.clients-title .title-line {
    display: block;
    overflow: hidden;
}

.clients-title .title-word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.clients-title .title-word.highlight {
    color: #f53607;
    font-style: italic;
}

.clients-sub {
    font-family: nb, sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
}

/* Scroll Indicator */
.scroll-indicator-clients {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-indicator-clients i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    animation: bounce 2s infinite;
}

.scroll-indicator-clients span {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, #fff 0%, transparent 100%);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ===== CLIENT GRID SECTION ===== */
.clients-grid-section {
    padding: 120px 5vw 60px 5vw;
    background: #fff;
    color: #0a0a0a;
}

.clients-grid-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    font-family: nb, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-label.light {
    color: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #f5f5f5;
    overflow: hidden;
}

.client-item {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    outline: none;
    margin: -0.5px;
}

.client-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-item:hover::before {
    transform: translateY(0);
}

.client-name {
    font-family: rejo, serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 400;
    color: #0a0a0a;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
    text-align: center;
}

.client-item:hover .client-name {
    color: #fff;
}

/* ===== FEATURED CLIENT STORIES ===== */
.featured-clients {
    background: #0a0a0a;
    padding: 120px 5vw;
}

.featured-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.client-story {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    border-radius: 20px;
    overflow: hidden;
}

.story-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.story-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.story-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 80px;
    width: 100%;
}

.story-left {
    display: flex;
    align-items: center;
}

.story-client-name {
    font-family: rejo, serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}

.story-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}

.story-description {
    font-family: nb, sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-item {
    font-family: nb, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== VIDEO SHOWCASE HORIZONTAL SCROLL ===== */
.video-showcase {
    background: #fff;
    color: #0a0a0a;
    padding: 60px 0 120px 0;
    overflow: hidden;
}

.showcase-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 5vw;
}

.showcase-title {
    font-family: rejo, serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    margin-bottom: 16px;
}

.showcase-sub {
    font-family: nb, sans-serif;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.5);
}

.showcase-wrapper {
    width: 100%;
    overflow: hidden;
}

.showcase-track {
    display: flex;
    gap: 30px;
    padding: 0 5vw;
    will-change: transform;
}

.showcase-item {
    flex: 0 0 auto;
    width: 45vw;
    max-width: 700px;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.showcase-item:hover video {
    transform: scale(1.08);
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    transition: all 0.4s ease;
}

.showcase-item:hover .item-info {
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.item-info span {
    font-family: nb, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    transition: color 0.3s ease;
}

.showcase-item:hover .item-info span {
    color: #f53607;
}

/* ===== TESTIMONIAL QUOTE STRIP ===== */
.testimonial-strip {
    background: #0a0a0a;
    padding: 200px 5vw;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-strip-inner {
    max-width: 1200px;
    text-align: center;
}

.big-quote {
    font-family: rejo, serif;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
}

.big-quote .quote-word {
    display: inline-block;
    opacity: 0.2;
    filter: blur(4px);
    transition: all 0.5s ease;
    margin-right: 0.2em;
}

.big-quote .quote-word.highlight {
    color: #f53607;
}

.quote-attribution {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
}

.attribution-name {
    font-family: nb, sans-serif;
    font-size: 1rem;
    color: #fff;
}

.attribution-title {
    font-family: nb, sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== CLIENT MARQUEE ===== */
.client-marquee {
    background: #f5f5f5;
    padding: 100px 0;
    overflow: hidden;
}

.marquee-label {
    text-align: center;
    margin-bottom: 60px;
}

.marquee-label span {
    font-family: nb, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(0, 0, 0, 0.5);
}

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.marquee-track {
    display: flex;
    width: fit-content;
    will-change: transform;
}

.marquee-track.track-2 {
    /* Reverse direction handled by JS */
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
    padding-right: 0;
}

.marquee-item {
    font-family: rejo, serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 400;
    color: #0a0a0a;
    white-space: nowrap;
    padding: 0 20px;
}

.marquee-separator {
    font-size: 0.5rem;
    color: rgba(0, 0, 0, 0.3);
    padding: 0 10px;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== CTA SECTION ===== */
.clients-cta {
    background: #0a0a0a;
    padding: 200px 5vw;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-inner {
    max-width: 1000px;
    text-align: center;
}

.cta-headline {
    font-family: rejo, serif;
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
}

.cta-headline .cta-line {
    display: block;
}

.cta-headline em {
    font-style: italic;
    color: #f53607;
}

.cta-sub {
    font-family: nb, sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 50px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: #fff;
    color: #0a0a0a;
    border-radius: 50px;
    font-family: nb, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
    transform: scale(1.05);
    background: #f53607;
    color: #fff;
}

.cta-button .btn-text {
    position: relative;
    overflow: hidden;
    height: 1.2em;
}

.cta-button .btn-text span {
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button .btn-text .text-hover {
    position: absolute;
    top: 100%;
    left: 0;
}

.cta-button:hover .btn-text .text-default {
    transform: translateY(-100%);
}

.cta-button:hover .btn-text .text-hover {
    transform: translateY(-100%);
}

.cta-button i {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.cta-button:hover i {
    transform: translate(4px, -4px);
}

/* ===== FOOTER OVERRIDES ===== */
body.clients-page footer {
    background: #0a0a0a;
}

body.clients-page .footer-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .clients-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 40px;
    }

    .story-right {
        max-width: 100%;
    }

    .showcase-item {
        width: 70vw;
    }
}

@media (max-width: 768px) {
    /* Clients Hero - Mobile optimized */
    .clients-hero {
        padding: 80px 5vw 40px;
        min-height: 70vh;
        min-height: 70dvh;
    }

    .clients-title {
        font-size: clamp(2.5rem, 11vw, 4.5rem);
        margin-bottom: 20px;
    }

    .clients-sub {
        font-size: clamp(15px, 4vw, 18px);
        line-height: 1.6;
        padding: 0 2vw;
    }

    /* Client Grid - 2 columns on mobile */
    .clients-grid-section {
        padding: 40px 5vw;
    }

    .clients-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2vw;
    }

    .client-item {
        padding: 20px 12px;
        min-height: 90px;
        border-radius: 12px;
    }

    .client-name {
        font-size: clamp(14px, 4vw, 18px);
    }

    /* Disable hover effects on mobile - use tap instead */
    .client-item::before {
        display: none;
    }

    .client-item:active {
        background: #0a0a0a;
        transform: scale(0.98);
    }

    .client-item:active .client-name {
        color: #fff;
    }

    /* Client Stories - Mobile layout */
    .client-story {
        min-height: auto;
        border-radius: 12px;
        margin-bottom: 30px;
    }

    .story-content {
        padding: 25px 18px;
        gap: 20px;
    }

    .story-client-name {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .story-description {
        font-size: clamp(15px, 4vw, 17px);
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .story-meta {
        gap: 8px;
    }

    .meta-item {
        font-size: 11px;
        padding: 8px 14px;
        min-height: 36px;
    }

    /* Showcase - Full width cards with horizontal scroll */
    .showcase-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .showcase-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .showcase-track {
        padding: 0 5vw;
    }

    .showcase-item {
        width: 85vw;
        border-radius: 12px;
        scroll-snap-align: center;
        pointer-events: auto;
        cursor: pointer;
        touch-action: manipulation;
    }

    .showcase-item:hover {
        transform: none; /* Disable hover transform on mobile */
    }

    .item-info {
        padding: 20px;
    }

    .item-info span {
        font-size: 13px;
    }

    /* Testimonial Strip */
    .testimonial-strip {
        padding: 50px 5vw;
        min-height: 50vh;
    }

    .big-quote {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        line-height: 1.4;
        margin-bottom: 30px;
    }

    .attribution-name {
        font-size: 15px;
    }

    .attribution-title {
        font-size: 13px;
    }

    /* CTA Section */
    .clients-cta {
        padding: 50px 5vw;
        min-height: 50vh;
    }

    .cta-headline {
        font-size: clamp(2rem, 9vw, 3.5rem);
        margin-bottom: 15px;
    }

    .cta-sub {
        font-size: clamp(15px, 4vw, 18px);
        margin-bottom: 25px;
    }

    .cta-button {
        padding: 18px 32px;
        font-size: 14px;
        min-height: 56px;
    }

    /* Marquee - Smaller text */
    .client-marquee {
        padding: 20px 0;
    }

    .video-showcase {
        padding: 60px 0 10px 0;
    }

    .showcase-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .showcase-wrapper::-webkit-scrollbar {
        display: none;
    }

    .showcase-track {
        padding: 0 5vw 0 5vw;
    }

    .showcase-item {
        width: 85vw;
        max-width: none;
    }

    .showcase-item:last-child {
        margin-right: 5vw;
    }

    .marquee-label {
        margin-bottom: 30px;
    }

    .marquee-item {
        font-size: clamp(1.2rem, 5vw, 2rem);
        padding: 0 15px;
    }

    /* Section labels */
    .section-label {
        margin-bottom: 40px;
        padding-bottom: 15px;
    }
}

    .marquee-item {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - refined spacing */
    .clients-hero {
        padding: 90px 5vw 50px;
    }

    .clients-title {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }

    .clients-logo-grid {
        grid-template-columns: 1fr;
        gap: 4vw;
    }

    .client-item {
        aspect-ratio: 2.5/1;
        min-height: 80px;
        border-radius: 10px;
    }

    .client-name {
        font-size: clamp(15px, 5vw, 20px);
    }

    .meta-item {
        font-size: 10px;
        padding: 6px 12px;
        min-height: 32px;
    }

    .cta-button {
        padding: 16px 28px;
        font-size: 13px;
        min-height: 52px;
    }

    .cta-headline {
        font-size: clamp(1.8rem, 10vw, 3rem);
    }

    .story-client-name {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .big-quote {
        font-size: clamp(1.3rem, 6.5vw, 2rem);
    }

    /* Video modal - Full screen on small devices */
    .modal-content {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
    }

    .video-container {
        border-radius: 0;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    .scroll-indicator-clients span {
        animation: none;
    }

    .clients-title .title-word,
    .clients-sub,
    .big-quote .quote-word {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Optimize for low-end devices */
@media (max-width: 768px) {
    /* Ensure main content is visible on mobile */
    .main {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    body.clients-page {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .story-background video {
        display: none;
    }

    .story-background {
        background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    }

    .showcase-item video {
        transform: none !important;
    }

    /* Make hero text visible on mobile since animations are disabled */
    .clients-title .title-word,
    .clients-sub {
        opacity: 1;
        transform: none;
    }
}

/* ===== SMOOTH SCROLL ENHANCEMENTS ===== */
.clients-page .main {
    scroll-behavior: smooth;
}

/* GPU acceleration for animations */
.client-item,
.showcase-item,
.cta-button,
.marquee-track {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* =============================================
   VIDEO MODAL - Premium Interactive Player

   Features:
   - Full-screen cinematic video playback
   - Custom media controls with smooth animations
   - GSAP-powered modal entrance/exit
   - Keyboard navigation support
   - Mobile responsive design
   - Auto-hide controls with hover detection
   - Volume control with slider
   - Progress bar with seek functionality
   - Fullscreen toggle
   - ESC/Click outside/Close button to dismiss
   - Premium agency-style experience

   Interaction:
   - Click any video thumbnail to open modal
   - Video loads with custom controls
   - Background blurs and page scroll locks
   - Spacebar: Play/Pause
   - Arrow keys: Seek ±5s, Volume ±10%
   - ESC: Close modal

   Inspired by: rejouice.com
   ============================================= */

/* Play Icon Overlay on Thumbnails */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.play-icon-overlay::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(245, 54, 7, 0.2);
    opacity: 0;
    animation: pulse 2s ease-in-out infinite;
}

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

.play-icon-overlay i {
    font-size: 48px;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.video-clickable {
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-clickable:active {
    transform: scale(0.98);
}

.video-clickable:hover .play-icon-overlay {
    opacity: 1;
}

.video-clickable:hover .play-icon-overlay i {
    transform: scale(1);
}

.video-clickable::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(245, 54, 7, 0.1) 0%,
        rgba(10, 10, 10, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.video-clickable:hover::after {
    opacity: 1;
}

/* Modal Container */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal Overlay */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 1;
    transition: backdrop-filter 0.4s ease;
}

/* Modal Content */
.modal-content {
    position: relative;
    z-index: 10;
    width: 85vw;
    max-width: 1600px;
    height: auto;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
}

.video-modal.active .modal-content {
    transform: scale(1);
}

/* Close Button */
.modal-close {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100000;
    pointer-events: auto;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-close:hover {
    background: rgba(245, 54, 7, 0.95);
    border-color: rgba(245, 54, 7, 0.5);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 8px 24px rgba(245, 54, 7, 0.4);
}

.modal-close i {
    transition: transform 0.3s ease;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    pointer-events: auto;
    transition: box-shadow 0.3s ease;
}

.video-container:hover {
    box-shadow: 
        0 40px 80px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.video-container:fullscreen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
}

.video-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
}

.video-container:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
}

#modalVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: auto;
    background: #000;
    position: relative;
    z-index: 1;
}

/* Hide native video controls */
#modalVideo::-webkit-media-controls {
    display: none !important;
}

#modalVideo::-webkit-media-controls-enclosure {
    display: none !important;
}

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

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

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Video Title in Modal */
.video-title-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: nb, sans-serif;
    font-size: 1.2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 8px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 50;
}

.video-modal.active .video-title-modal {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Custom Controls */
.custom-controls {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 100%
    ) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Fullscreen specific styles */
.video-container:fullscreen .custom-controls,
.video-container:-webkit-full-screen .custom-controls,
.video-container:-moz-full-screen .custom-controls {
    position: absolute !important;
    bottom: 0 !important;
}

.video-container:hover .custom-controls,
.custom-controls.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.video-modal.active .custom-controls {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Control Buttons */
.control-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 100 !important;
    line-height: 1 !important;
    padding: 0 !important;
    opacity: 1 !important;
}

.control-btn * {
    pointer-events: none !important;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: scale(1.1);
}

.control-btn i {
    pointer-events: none;
    font-size: 16px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    opacity: 1 !important;
}

.control-btn:hover i {
    color: #fff !important;
}

/* Progress Bar Container */
.progress-bar-container {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    min-width: 200px !important;
    position: relative !important;
    z-index: 10 !important;
    padding: 0 8px !important;
}

/* Progress Bar */
.progress-bar {
    width: 100% !important;
    height: 5px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

.progress-bar:hover {
    height: 6px;
    background: rgba(255, 255, 255, 0.35) !important;
}

.progress-filled {
    height: 100% !important;
    background: #fff !important;
    border-radius: 4px !important;
    width: 0%;
    transition: width 0.1s linear !important;
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
}

.progress-filled::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.progress-bar:hover .progress-filled::after {
    opacity: 1;
    width: 14px;
    height: 14px;
}

/* Time Display */
.time-display {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
}

.time-separator {
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 2px !important;
}

/* Volume Control */
.volume-control {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

.volume-slider {
    width: 70px;
    opacity: 1 !important;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block !important;
    visibility: visible !important;
}

.volume-control:hover .volume-slider {
    width: 90px;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.35) !important;
}

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

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    opacity: 1;
}

/* Fullscreen Button */
.fullscreen-btn {
    margin-left: auto;
}

/* Body Lock when Modal Open */
body.modal-open {
    overflow: hidden;
}

/* Loading State */
.video-container.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #f53607;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        filter: none;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 20px;
        z-index: 200000;
    }

    .video-container {
        border-radius: 0;
    }

    .video-title-modal {
        font-size: 0.9rem;
        padding: 8px 14px;
        top: 12px;
        left: 12px;
    }

    /* Controls - two-row layout on mobile */
    .custom-controls {
        padding: 8px 10px 12px 10px !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    /* Progress bar on its own full-width row */
    .progress-bar-container {
        order: -1 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin-bottom: 4px !important;
    }

    .progress-bar {
        height: 8px !important;
    }

    .progress-filled::after {
        width: 16px !important;
        height: 16px !important;
    }

    /* Second row: play + time + volume + fullscreen */
    .control-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 18px !important;
    }

    .control-btn i {
        font-size: 18px !important;
    }

    .time-display {
        font-size: 0.7rem !important;
        font-weight: bold !important;
        flex: 1 !important;
    }

    /* Volume control - hide slider, keep button */
    .volume-control {
        display: flex !important;
    }

    .volume-slider {
        width: 0 !important;
        display: none !important;
    }

    /* Fullscreen button always visible */
    .fullscreen-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: 0 !important;
    }

    .play-icon-overlay {
        width: 60px;
        height: 60px;
    }

    .play-icon-overlay i {
        font-size: 36px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .modal-content {
        width: 92vw;
    }

    .custom-controls {
        gap: 12px;
    }
}

/* Accessibility */
.control-btn:focus,
.modal-close:focus {
    outline: 2px solid #f53607;
    outline-offset: 2px;
}

.progress-bar:focus-visible {
    outline: 2px solid #f53607;
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

/* Performance Optimizations */
.video-modal,
.modal-content,
.modal-overlay {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* ===== ADDITIONAL TABLET OPTIMIZATIONS ===== */
/* iPad Pro / Large tablets (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .clients-hero {
        padding: 100px 4vw 60px;
    }
    
    .clients-title {
        font-size: clamp(4rem, 9vw, 7rem);
    }
    
    .clients-logo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
    }
    
    .client-item {
        padding: 35px;
    }
    
    .showcase-item {
        width: 55vw;
    }
    
    .story-content {
        gap: 50px;
        padding: 60px;
    }
}

/* ===== IPHONE SPECIFIC OPTIMIZATIONS ===== */
/* iPhone SE / Small phones */
@media (max-width: 375px) {
    .clients-title {
        font-size: clamp(1.8rem, 11vw, 3rem);
    }
    
    .clients-sub {
        font-size: clamp(14px, 3.8vw, 16px);
    }
    
    .client-item {
        padding: 15px 10px;
        min-height: 75px;
    }
    
    .client-name {
        font-size: clamp(12px, 3.5vw, 15px);
    }
    
    .big-quote {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }
    
    .cta-headline {
        font-size: clamp(1.6rem, 9vw, 2.5rem);
    }
    
    .cta-button {
        padding: 14px 24px;
        font-size: 12px;
    }
}

/* iPhone 14 Pro Max / Large phones */
@media (min-width: 390px) and (max-width: 430px) {
    .clients-title {
        font-size: clamp(2.3rem, 10vw, 4rem);
    }
    
    .clients-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }
    
    .client-item {
        min-height: 100px;
        border-radius: 14px;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 896px) and (orientation: landscape) {
    .clients-hero {
        min-height: auto;
        padding: 80px 5vw 40px;
    }
    
    .clients-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    .clients-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .client-story {
        min-height: 80vh;
    }
    
    .testimonial-strip,
    .clients-cta {
        min-height: 60vh;
        padding: 60px 5vw;
    }
}

/* ===== ACCESSIBILITY & REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .scroll-indicator-clients span {
        animation: none;
    }
    
    .client-item::before {
        transition: none;
    }
    
    .showcase-item video {
        transition: none;
    }
    
    @keyframes spin {
        from, to {
            transform: translate(-50%, -50%);
        }
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .client-item {
        border: 2px solid #fff;
    }
    
    .cta-button {
        border: 2px solid #fff;
    }
    
    .meta-item {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .client-item::before {
        display: none;
    }
    
    .showcase-item:hover {
        transform: none;
    }
    
    .showcase-item:hover video {
        transform: none;
    }
    
    /* Larger touch targets */
    .control-btn {
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    .modal-close {
        min-width: 48px;
        min-height: 48px;
    }
    
    .cta-button {
        min-height: 52px;
    }
    
    /* Active states for touch feedback */
    .client-item:active {
        transform: scale(0.98);
        background: #0a0a0a;
    }
    
    .client-item:active .client-name {
        color: #fff;
    }
    
    .cta-button:active {
        transform: scale(0.98);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .video-modal,
    .modal-overlay,
    body.clients-page nav,
    .scroll-indicator-clients {
        display: none !important;
    }
    
    body.clients-page {
        background: #fff !important;
        color: #000 !important;
    }
    
    .clients-hero,
    .clients-grid-section {
        background: #fff !important;
    }
    
    .clients-title,
    .client-name {
        color: #000 !important;
    }
}
