
:root {
    --black: #0a0a0a;
    --black-soft: #111111;
    --black-elevated: #1a1a1a;
    --white: #f5f5f5;
    --white-muted: #a0a0a0;
    --accent: #ff3c00;
    --success: #28ca41;
    --error: #ff5f57;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --section-padding: clamp(80px, 12vh, 160px);
    --gutter: clamp(20px, 4vw, 60px);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--black); color: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--black); }
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; display: block; border: none; }

/* Scroll Progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0%; z-index: 9999; }

/* Loader */
.loader { position: fixed; inset: 0; background: var(--black); z-index: 9998; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s, visibility 0.6s; }
.loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-bar { width: 120px; height: 2px; background: var(--black-elevated); overflow: hidden; }
.loader-bar::after { content: ''; display: block; width: 40%; height: 100%; background: var(--accent); animation: loading 1s ease-in-out infinite; }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 24px var(--gutter); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(to bottom, rgba(10,10,10,0.8) 0%, transparent 100%); }
.nav-logo { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); letter-spacing: 0.05em; color: var(--white); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--white); position: relative; padding: 8px 0; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.4s var(--ease-out-expo); }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 101; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-video-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
.hero-video-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.1) 50%, rgba(10,10,10,0.9) 100%); pointer-events: none; z-index: 1; }

/* Hero MP4 video - ALWAYS fills the frame */
.hero-video-mp4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Fallback: YouTube/Vimeo iframe (only used if no MP4 uploaded) */
.hero-iframe { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 100vw; 
    height: 56.25vw; /* 16:9 aspect ratio */
    min-width: 177.78vh; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-height: 100dvh;
    transform: translate(-50%, -50%); 
    pointer-events: none;
}

/* Hero content - overlays the video */
.hero-content { 
    width: 100%; 
    padding: 0 var(--gutter) 80px; 
    position: relative; 
    z-index: 2; 
}
.hero-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 16px; opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s 0.5s forwards; }
.hero-title { font-family: var(--font-display); font-size: clamp(48px, 12vw, 180px); line-height: 0.9; text-transform: uppercase; margin-bottom: 24px; }
.hero-title span { display: block; opacity: 0; transform: translateY(100%); animation: slideUp 1s forwards; }
.hero-title span:nth-child(1) { animation-delay: 0.6s; }
.hero-title span:nth-child(2) { animation-delay: 0.7s; }
.hero-title .outline { -webkit-text-stroke: 1px var(--white); color: transparent; }
.hero-subtitle { max-width: 500px; font-size: clamp(14px, 1.5vw, 18px); color: var(--white-muted); opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s 0.9s forwards; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: fadeUp 0.8s 1.2s forwards; z-index: 2; }
.hero-scroll span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--white-muted); }
.hero-scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes scrollPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Showreels */
.showreels { display: flex; flex-direction: column; }
.showreel-section { position: relative; width: 100%; min-height: 70vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.showreel-image-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.6s; }
.showreel-video-bg { position: absolute; inset: 0; overflow: hidden; background-size: cover; background-position: center; }
.showreel-bg-iframe { position: absolute; top: 50%; left: 50%; width: 177.77vh; height: 100vh; min-width: 100%; min-height: 56.25vw; transform: translate(-50%, -50%); pointer-events: none; }
.showreel-bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.showreel-section:hover .showreel-image-bg { transform: scale(1.03); }
.showreel-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.85) 100%); }
.showreel-content { position: relative; z-index: 2; text-align: center; padding: var(--gutter); max-width: 700px; }
.showreel-number { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 16px; }
.showreel-title { font-family: var(--font-display); font-size: clamp(36px, 6vw, 72px); text-transform: uppercase; margin-bottom: 16px; }
.showreel-desc { font-size: clamp(14px, 1.2vw, 16px); color: var(--white-muted); margin-bottom: 32px; line-height: 1.7; }
.showreel-play-btn { display: inline-flex; align-items: center; gap: 16px; background: none; border: 1px solid var(--white); padding: 16px 32px; color: var(--white); cursor: pointer; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; transition: all 0.4s; }
.showreel-play-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }
.play-icon { width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.play-icon::before { content: ''; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 2px; }

/* Clients */
.clients { padding: 60px 0; overflow: hidden; border-top: 1px solid var(--black-elevated); border-bottom: 1px solid var(--black-elevated); background: var(--black-soft); }
.clients-track { display: flex; gap: 80px; animation: marquee 40s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
.client-name { flex-shrink: 0; font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 28px); text-transform: uppercase; opacity: 0.4; transition: opacity 0.3s; white-space: nowrap; }
.client-name:hover { opacity: 1; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections */
.section { padding: var(--section-padding) var(--gutter); }
.section-header { margin-bottom: 48px; }
.section-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: clamp(36px, 6vw, 72px); text-transform: uppercase; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1400px; margin: 0 auto; }
.about-image-wrap { position: relative; }
.about-image-wrap::before { content: ''; position: absolute; top: -20px; left: -20px; right: 20px; bottom: 20px; border: 1px solid var(--accent); z-index: -1; }
.about-image { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(30%); transition: filter 0.4s; }
.about-image:hover { filter: grayscale(0%); }
.about-text { color: var(--white-muted); font-size: clamp(15px, 1.2vw, 17px); margin-bottom: 24px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--black-elevated); }
.stat-number { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); color: var(--accent); line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--white-muted); margin-top: 8px; }

/* Services */
.services { background: var(--black-soft); }
.services-list { display: flex; flex-direction: column; gap: 2px; }
.service-item { background: var(--black-elevated); transition: background 0.3s; }
.service-item:hover, .service-item.active { background: var(--black); }
.service-header { display: flex; align-items: center; justify-content: space-between; padding: 32px 40px; cursor: pointer; }
.service-header-left { display: flex; align-items: center; gap: 32px; }
.service-number { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.service-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); text-transform: uppercase; }
.service-toggle { width: 40px; height: 40px; border: 1px solid var(--white-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; flex-shrink: 0; }
.service-toggle::before { content: '+'; font-family: var(--font-mono); font-size: 20px; color: var(--white); }
.service-item.active .service-toggle { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.service-item.active .service-toggle::before { color: var(--black); }

/* Service Videos - Play like showreels */
.service-videos { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out-expo); background: var(--black); }
.service-item.active .service-videos { max-height: 800px; }
.service-videos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 40px 40px; }
.service-video-item { position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; background: var(--black-elevated); border-radius: 4px; }
.service-video-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-video-item:hover .service-video-thumb { transform: scale(1.05); }
.service-video-bg { position: absolute; inset: 0; overflow: hidden; }
.service-video-iframe { position: absolute; top: 50%; left: 50%; width: 200%; height: 200%; transform: translate(-50%, -50%); pointer-events: none; }
.service-video-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.3); transition: background 0.3s; }
.service-video-item:hover .service-video-overlay { background: rgba(10,10,10,0.6); }
.service-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: rgba(255,255,255,0.1); backdrop-filter: blur(4px); border: 1px solid var(--white); color: var(--white); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0; transition: all 0.3s; z-index: 2; }
.service-video-item:hover .service-video-play { opacity: 1; }
.service-video-play:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }
.play-icon-small { width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.play-icon-small::before { content: ''; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent currentColor; margin-left: 2px; }
.service-video-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: linear-gradient(to top, rgba(10,10,10,0.9), transparent); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; z-index: 2; }

/* Availability */
.availability { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: rgba(40, 202, 65, 0.1); border: 1px solid rgba(40, 202, 65, 0.3); border-radius: 50px; margin-top: 32px; }
.availability-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.availability-text { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--success); }

/* Contact */
.contact { max-width: 1400px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-text { color: var(--white-muted); font-size: 16px; margin-bottom: 32px; }
.contact-email { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); color: var(--accent); position: relative; display: inline-block; }
.contact-email::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.4s; }
.contact-email:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.social-link { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--white-muted); transition: color 0.3s; }
.social-link:hover { color: var(--accent); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.hp-field { position: absolute; left: -9999px; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 16px 0; font-family: var(--font-body); font-size: 15px; color: var(--white); background: transparent; border: none; border-bottom: 1px solid var(--black-elevated); outline: none; transition: border-color 0.3s; border-radius: 0; -webkit-appearance: none; }
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath fill='%23a0a0a0' d='M6 8L2 4h8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; }
.form-select option { background: var(--black); color: var(--white); }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--white-muted); }
.form-textarea { resize: none; min-height: 120px; }
.btn-submit { align-self: flex-start; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; padding: 18px 48px; background: var(--accent); color: var(--black); border: none; cursor: pointer; position: relative; overflow: hidden; transition: all 0.4s; }
.btn-submit::before { content: ''; position: absolute; inset: 0; background: var(--white); transform: translateX(-101%); transition: transform 0.4s; }
.btn-submit .btn-text { position: relative; z-index: 1; }
.btn-submit .btn-spinner { display: none; position: relative; z-index: 1; }
.btn-submit .btn-spinner svg { animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.btn-submit:disabled { cursor: not-allowed; opacity: 0.7; }
.btn-submit:hover:not(:disabled)::before { transform: translateX(0); }
.form-message { display: none; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 4px; font-size: 14px; }
.form-success { background: rgba(40,202,65,0.1); border: 1px solid rgba(40,202,65,0.3); color: var(--success); }
.form-error { background: rgba(255,95,87,0.1); border: 1px solid rgba(255,95,87,0.3); color: var(--error); }
.form-message.show { display: flex; }

/* Footer */
.footer { padding: 40px var(--gutter); border-top: 1px solid var(--black-elevated); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--white-muted); }
.footer-back-top { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--white-muted); background: none; border: none; cursor: pointer; transition: color 0.3s; }
.footer-back-top:hover { color: var(--accent); }

/* Modal */
.video-modal { position: fixed; inset: 0; background: rgba(10,10,10,0.95); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s; }
.video-modal.active { opacity: 1; visibility: visible; }
.modal-close { position: absolute; top: 30px; right: 30px; width: 48px; height: 48px; background: none; border: 1px solid var(--white-muted); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.modal-close:hover { border-color: var(--accent); background: var(--accent); }
.modal-close::before, .modal-close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 1px; background: var(--white); }
.modal-close:hover::before, .modal-close:hover::after { background: var(--black); }
.modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal-video-wrap { width: 90%; max-width: 1200px; aspect-ratio: 16/9; transform: scale(0.9); opacity: 0; transition: all 0.4s 0.1s; }
.video-modal.active .modal-video-wrap { transform: scale(1); opacity: 1; }
.modal-video-wrap iframe { width: 100%; height: 100%; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--ease-out-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 1024px) {
    .about, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .service-videos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Nav - mobile menu */
    .nav-links { 
        position: fixed; 
        inset: 0; 
        background: rgba(10,10,10,0.98); 
        backdrop-filter: blur(10px);
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        gap: 32px; 
        transform: translateX(100%); 
        transition: transform 0.5s;
        z-index: 99;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a {
        background: transparent;
        backdrop-filter: none;
        font-size: 14px;
        padding: 12px 24px;
    }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Hero */
    .hero {
        min-height: 500px;
    }
    .hero-content {
        padding-bottom: 120px;
    }
    
    /* Showreel video backgrounds */
    .showreel-section {
        min-height: 50vh;
    }
    .showreel-video-bg {
        background-size: cover;
        background-position: center;
    }
    .showreel-bg-iframe {
        width: 177.78vh;
        height: 100%;
        min-width: 100vw;
        min-height: 100%;
    }
    
    /* Services */
    .service-header { padding: 24px 20px; }
    .service-header-left { gap: 16px; }
    .service-videos-grid { grid-template-columns: 1fr 1fr; padding: 0 20px 20px; gap: 12px; }
    
    /* Service video items - ensure overlay stays on video */
    .service-video-item {
        position: relative;
        aspect-ratio: 16/9;
    }
    .service-video-bg {
        position: absolute;
        inset: 0;
    }
    .service-video-iframe {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
    }
    .service-video-overlay {
        position: absolute;
        inset: 0;
    }
    .service-video-play {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 1; /* Always visible on mobile since no hover */
        padding: 8px 14px;
        font-size: 9px;
    }
    .service-video-title {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 8px 10px;
        font-size: 10px;
    }
    
    .footer { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 480px) {
    .service-videos-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; text-align: center; }
    
    /* Smaller play button on very small screens */
    .service-video-play {
        padding: 6px 12px;
        font-size: 8px;
        gap: 6px;
    }
    .play-icon-small {
        width: 20px;
        height: 20px;
    }
    .play-icon-small::before {
        border-width: 3px 0 3px 5px;
    }
}
