/* ===============================================
   KEY PRODUCTION - CORE CSS
   =============================================== */

:root {
    /* Colors */
    --primary: #6FBF4A;
    --primary-hover: #5DA53E;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #f5f5f5;
    --bg-card: #151515;
    --text-light: #ffffff;
    --text-muted: #888888;
    --text-dark: #121212;
    --text-dark-mut: #4a4a4a;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spaces */
    --section-py: 6rem;
    --container-px: 5%;

    /* Transitions */
    --trans-fast: 0.3s ease;
    --trans-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
body.light-theme {
    --bg-dark: #ffffff;
    --bg-darker: #f5f5f5;
    --bg-light: #121212;
    --bg-card: #f9f9f9;
    --text-light: #121212;
    --text-muted: #666666;
    --text-dark: #ffffff;
    --text-dark-mut: #e0e0e0;
    --border-color: rgba(0, 0, 0, 0.1);
}

.light-logo { display: none; }
body.light-theme .dark-logo { display: none; }
body.light-theme .light-logo { display: block; }

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-fast);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.py-section {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.bg-dark { background-color: var(--bg-dark); }
.bg-darker { background-color: var(--bg-darker); }
.bg-light { background-color: var(--bg-light); color: var(--text-dark); }
.bg-primary { background-color: var(--primary); color: var(--text-dark); }

.text-primary { color: var(--primary); }
.text-dark { color: var(--text-dark); }
.text-dark-mut { color: var(--text-dark-mut); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.pt-3 { padding-top: 1rem; }
.border-top { border-top: 1px solid var(--border-color); }

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
}

.section-title {
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--trans-fast);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(111, 191, 74, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 191, 74, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

.btn-outline-dark {
    background-color: transparent;
    border-color: var(--text-dark);
    color: var(--text-dark);
}
.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: var(--bg-light);
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--text-light);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-dark {
    background-color: var(--text-dark);
    color: var(--text-light); /* Switch to variable so it adapts to light theme */
}
.btn-dark:hover {
    background-color: #333;
}
body.light-theme .btn-dark:hover {
    background-color: #e0e0e0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--trans-fast);
    padding: 1.5rem 0;
}

.header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

body.light-theme .header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.theme-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--trans-fast);
}

.theme-toggle:hover {
    color: var(--primary);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.brand-icon {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.navbar {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--trans-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--trans-slow);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .navbar.active {
        right: 0;
    }
    .menu-toggle {
        display: block;
    }
    .nav-cta {
        display: none;
    }
}

/* Animations (Intersection) */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Parallax Sections */
.section-parallax {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.parallax-wrapper {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: -1;
}
.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%),
                linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, var(--bg-dark) 100%);
}

body.light-theme .overlay-gradient {
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.5) 100%),
                linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, var(--bg-dark) 100%);
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

body.light-theme .overlay-dark {
    background: rgba(255,255,255,0.8);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    padding-top: 80px;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.8;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.scroll-down-icon {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: #fff;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-20px) translateX(-50%);}
    60% {transform: translateY(-10px) translateX(-50%);}
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    background-color: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--trans-slow);
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(111, 191, 74, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.service-card .icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.service-card p {
    color: var(--text-muted);
}
.service-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(111, 191, 74, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--trans-fast);
}
.service-card:hover .service-glow {
    opacity: 1;
}

/* Showreel Section */
.showreel {
    height: 70vh;
    justify-content: center;
    text-align: center;
}
.showreel-content {
    position: relative;
    z-index: 2;
}
.showreel h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
}
.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-color: var(--primary);
    border-radius: 50%;
    color: #fff;
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    transition: var(--trans-fast);
}
.play-btn:hover {
    transform: scale(1.1);
}
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--trans-fast);
}
.portfolio-item:hover img {
    transform: scale(1.1);
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay h3 {
    color: #fff;
    font-size: 1.4rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.portfolio-overlay span {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}
.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
}

/* Clients Marquee */
.clients-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}
.marquee-content {
    display: flex;
    gap: 4rem;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}
.client-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.4;
    text-transform: uppercase;
    transition: var(--trans-fast);
    cursor: default;
}
.client-logo:hover {
    color: var(--primary);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 2)); }
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.floating-img {
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    animation: floating 6s ease-in-out infinite;
}
@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Behind The Scenes */
.bts {
    height: 60vh;
    justify-content: center;
    text-align: center;
}
.bts-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.bts-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}
.bts-gradient {
    background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(0,0,0,0.3) 100%);
}

body.light-theme .bts-gradient {
    background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(255,255,255,0.4) 100%);
}

/* Footer */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}
.footer h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.brand-icon-footer {
    height: 140px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

body.light-theme .brand-icon-footer {
    filter: none;
}

.footer-logo-link {
    margin-bottom: 0.5rem;
    display: inline-flex;
}

.footer ul li {
    margin-bottom: 0.8rem;
}
.footer ul li a {
    color: var(--text-muted);
}
.footer ul li a:hover {
    color: var(--primary);
}
.contact-details li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
}
.contact-details li i {
    color: var(--primary);
    font-size: 1.2rem;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--border-color);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}
.social-icons a:hover {
    background-color: var(--primary);
}
.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--trans-fast);
}
.video-modal.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: var(--trans-fast);
    z-index: 2001;
}
.close-modal:hover {
    color: var(--primary);
    transform: scale(1.1);
}
.video-container {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
}
.video-container video {
    width: 100%;
    height: 100%;
    outline: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        text-align: center;
        padding-top: 100px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons {
        justify-content: center;
    }
}

/* Custom Premium Play Card for Video embeds */
.video-play-card {
    transition: transform var(--trans-fast), box-shadow var(--trans-fast), border-color var(--trans-fast);
}
.video-play-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(111, 191, 74, 0.3) !important;
    border-color: var(--primary) !important;
}
.video-play-card .play-icon-glow {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease;
}
.video-play-card:hover .play-icon-glow {
    transform: scale(1.15);
    background-color: var(--primary-hover) !important;
    box-shadow: 0 0 40px rgba(111, 191, 74, 0.7) !important;
}
.video-play-card img {
    transition: transform 0.5s ease, filter 0.3s ease;
}
.video-play-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.8) !important;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
}
.lightbox-modal.active {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.15s ease;
}
.lightbox-img:active {
    transform: scale(0.98);
}
.lightbox-caption {
    color: #fff;
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.lightbox-counter {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2600;
}
.lightbox-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(111, 191, 74, 0.6);
}
.lightbox-prev {
    left: 30px;
}
.lightbox-next {
    right: 30px;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3.5rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2600;
}
.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1) rotate(90deg);
}
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }
    .lightbox-img {
        max-height: 65vh;
    }
    .lightbox-btn {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    .lightbox-prev { left: 15px; }
    .lightbox-next { right: 15px; }
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
}
