/* 
  Blue Ice Multimedia - Premium OTT Theme 
  Palette: Deep Black (#0b0f14), Ice Blue (#00d2ff), White, Dark Gray
*/

:root {
    --bg-black: #0b0f14;
    --bg-darker: #0f141a;
    --primary-blue: #00d2ff;
    --primary-gradient: linear-gradient(45deg, #00d2ff, #3a7bd5);
    --glass-white: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 10px rgba(0, 210, 255, 0.5);
    --text-grad: linear-gradient(45deg, #00d2ff, #fff);
}

body {
    background-color: var(--bg-black);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.text-justify {
    text-align: justify;
}

.text-gradient {
    background: var(--text-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.7) !important;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue) !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, #3a7bd5, #00d2ff); /* Reverse gradient on hover */
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* Hero Section */
#hero {
    height: 100vh;
    background-color: var(--bg-black);
    background-image: url('https://placehold.co/1920x1080/0b0f14/1a1f26.png?text=Cinematic+Background+Placeholder');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(11,15,20,0.3) 0%, rgba(11,15,20,1) 100%),
                radial-gradient(circle at center, transparent 0%, var(--bg-black) 90%);
    z-index: 1;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05); /* more subtle border */
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card .icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background: rgba(0, 210, 255, 0.1);
    transform: scale(1.1);
}

.feature-card i {
    background: var(--text-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Originals Slider */
.original-card {
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.original-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 2;
}

.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* App Download Pulse */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 600;
}
.accordion-button:not(.collapsed) {
    color: var(--primary-blue);
    background-color: rgba(0, 210, 255, 0.05);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button::after {
    filter: invert(1);
}
.accordion-button:not(.collapsed)::after {
    filter: invert(1) brightness(200%) sepia(100%) hue-rotate(180deg) saturate(300%);
}

/* Utility */
.bg-darker {
    background-color: var(--bg-darker) !important;
}
.hover-white:hover { color: #fff !important; }
.hover-primary:hover { color: var(--primary-blue) !important; transform: translateY(-3px); display: inline-block;}
.transition { transition: all 0.3s ease; }

/* Mobile Responsiveness & Overhaul */
@media (max-width: 991.98px) {
    /* 1. Full-Screen Mobile Menu */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(11, 15, 20, 0.98); /* Solid/Dark background */
        backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        z-index: 1040;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%); /* Hidden by default */
        padding: 2rem;
        opacity: 0;
    }

    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
    }
    
    .navbar-nav {
        width: 100%;
        text-align: center;
        gap: 1.5rem !important;
    }

    .nav-link {
        font-size: 1.5rem; /* Larger fonts for touch */
        color: rgba(255,255,255,0.9) !important;
    }

    .nav-link.active, .nav-link:hover {
        color: var(--primary-blue) !important;
    }

    /* Close button handling or toggler z-index */
    .navbar-toggler {
        z-index: 1050; /* Above the overlay */
        border: none;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* 2. Mobile Hero Section */
    #hero .display-3 {
        font-size: 2.2rem; /* Reduced heading size */
        margin-bottom: 0.5rem !important;
        line-height: 1.2;
    }

    #hero h2.h3 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem !important;
    }
    
    #hero .lead {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    #hero .d-flex.justify-content-center.gap-3 {
        flex-direction: column; /* Stack buttons */
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    #hero .btn-lg {
        width: 100%; /* Full width buttons */
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 1.1rem;
        min-height: 50px; /* Touch friendly */
    }

    /* 3. Section Spacing */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* 4. Originals Section - Horizontal Scroll on Mobile */
    #originals .row.justify-content-center {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        margin-right: -0.75rem; /* Offset container padding */
        padding-right: 0.75rem;
    }

    #originals .col-xl-3, #originals .col-lg-4, #originals .col-sm-6 {
        flex: 0 0 80%; /* 80% viewport width */
        max-width: 80%;
        scroll-snap-align: center;
    }
    
    /* 5. Mobile Cards & Layouts */
    .feature-card, .card {
        margin-bottom: 1rem;
    }
    
    #intro .row.g-5 {
        gap: 2rem !important; /* Reduce gap */
    }
    
    /* 6. FAQ Touch Targets */
    .accordion-button {
        padding: 1.25rem 1rem;
        font-size: 1.1rem;
    }
}

/* Ensure navbar toggler is visible on black */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}
