/* ==========================================================================
   GLOBAL & THEME WRAPPER
   ========================================================================== */
:root {
    --brand-aqua: #00ffff;
    --dark-bg: #111111;
    --light-gray: #f8f9fa;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: #333;
    background-color: #fff;
}

/* ==========================================================================
   NAVBAR (SEO & PROFESSIONAL)
   ========================================================================== */
.navbar {
    transition: var(--transition);
    padding: 20px 0;
    border-bottom: 1px solid transparent;
}

.navbar-brand img {
    height: 60px;
    /* Precise height as requested */
    transition: var(--transition);
}

.navbar-transparent {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.navbar-scrolled {
    background-color: rgba(17, 17, 17, 0.95);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--brand-aqua) !important;
}

/* ==========================================================================
   VIDEO BANNER (MOBILE COMPACT & BOTTOM ALIGNED)
   ========================================================================== */
.video-banner {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
}

.iframe-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.iframe-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    /* Logic to prevent cuts on portrait screens */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content-bottom {
    position: relative;
    width: 100%;
    z-index: 3;
    padding-bottom: 80px;
    /* Space from bottom */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   STATS SECTION (EQUALLY SPACED)
   ========================================================================== */
.stats-section {
    background: var(--dark-bg);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.stats-section .stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--brand-aqua);
    margin-bottom: 0;
    line-height: 1;
}

.stats-section .lead {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* ==========================================================================
   SHOWREEL & ROTATING PLAY BUTTON
   ========================================================================== */
.primary-showreel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.primary-showreel img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.primary-showreel:hover img {
    transform: scale(1.08);
}

/* ENLARGED SHOWREEL BUTTON */
.play-reel-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 160px; /* Increased size */
    height: 160px;
    pointer-events: none;
    transition: all 0.4s ease;
}

.primary-showreel:hover .play-reel-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-circle {
    fill: rgba(0, 255, 255, 0.25); /* Aqua tint */
    stroke: #ffffff;
    stroke-width: 2px;
}

.play-triangle {
    fill: #ffffff;
}




    /* 1. GLOBAL: Solid black background for all popups */
    .goverlay {
        background: #000000 !important;
        opacity: 1 !important;
    }

    /* 2. VIDEOS: Restore full-screen/large behavior */
    /* This targets only video/iframe slides and removes the "strip" centering logic */
    .gslide-video .ginner-container,
    .gslide-iframe .ginner-container {
        height: auto !important;
        max-width: 100% !important;
        background: transparent !important;
        display: block !important; /* Restores standard GLightbox video layout */
    }

    /* 3. IMAGES (TEXT): The Small Transparent Strip */
    /* This targeting ensures ONLY text popups get the centered strip effect */
    .gslide-inline .ginner-container {
        background: transparent !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;      /* Vertical center */
        justify-content: center !important;    /* Horizontal center */
        height: 100vh !important;
        width: 100vw !important;
    }

    .gslide-inline .text-popup-content {
        background: rgba(255, 255, 255, 0.08) !important; /* Subtle transparent strip */
        width: 100% !important;
        padding: 22px 0 !important;          /* Small strip height */
        text-align: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .gslide-inline .text-popup-content p {
        color: #ffffff !important;
        font-size: 2.1rem;
        font-weight: 400;
        margin: 0 !important;
        line-height: 1.2;
    }

    /* 4. Controls */
    .gclose, .gclose svg {
        color: #ffffff !important;
        filter: brightness(10);
    }



 


    /* 3. THE TRANSPARENT STRIP: Narrow height and glass-like background */
    .text-popup-content {
        background: rgba(255, 255, 255, 0.07) !important; /* Extremely subtle white tint */
        width: 100vw !important;             /* Full screen width */
        padding: 18px 0 !important;          /* Small vertical "strip" height */
        text-align: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05); /* Optional subtle edge */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .text-popup-content p {
        color: #ffffff !important;           /* Pure white text */
        font-size: 2.1rem;                   /* Clean, impactful size */
        font-weight: 400;
        margin: 0 !important;
        line-height: 1.2;
        letter-spacing: 0.5px;
    }

   

/* ==========================================================================
   PORTFOLIO & UI ELEMENTS
   ========================================================================== */
.portfolio-item {
    position: relative;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--brand-aqua);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.portfolio-item:hover .portfolio-play-overlay {
    opacity: 1;
}

.btn-primary {
    background-color: var(--brand-aqua);
    border: none;
    color: #111;
    padding: 14px 35px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

.content-image {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 991px) {
    .stats-section .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .video-banner {
        height: 75vh;
        /* Compact for mobile */
    }

    .display-3 {
        font-size: 1.8rem;
    }

    .hero-content-bottom {
        padding-bottom: 40px;
    }

    .play-reel-button {
        width: 100px;
        height: 100px;
    }

    .spinning-text {
        font-size: 10px;
    }

    .navbar-brand img {
        height: 45px;
    }
}

/* Aqua Button & Text Accents */
.btn-aqua {
    background-color: #00ffff !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 50px !important;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-aqua:hover {
    background-color: #ffffff !important;
    transform: translateY(-2px);
}

.text-aqua {
    color: #00ffff !important;
}

/* Footer Styling */
.footer-section {
    background-color: #1a1d20 !important;
}

.custom-input {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
}

.divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    opacity: 1;
}

.email-link {
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 1px solid #ffffff;
}

.social-icon:hover i {
    color: #00ffff !important;
}

/* PORTFOLIO GRID & IMAGES */
.portfolio-item {
    position: relative;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #000;
}

.portfolio-item img {
    transition: all 0.4s ease;
}

/* CENTERED HOVER STRIP */
.portfolio-hover-strip {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%); /* Centers strip vertically */
    background: rgba(33, 37, 41, 0.85); /* Semi-transparent grey strip */
    padding: 20px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.portfolio-item.hover-text-only:hover .portfolio-hover-strip {
    opacity: 1;
}

.portfolio-item.hover-text-only:hover img {
    filter: brightness(0.6); /* Dims background for text clarity */
}

.portfolio-hover-strip p {
    color: #ffffff;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

/* VIDEO CONTROLS */
.portfolio-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #00ffff; /* Aqua Branding */
    z-index: 5;
}