/* ==========================================================================
   OTT Platform - Premium Futuristic 3D Custom CSS
   ========================================================================== */

:root {
    /* Cosmic / Cyberpunk Color Palette */
    --bg-dark: #05060a;
    --bg-card: rgba(18, 19, 26, 0.65);
    --primary-color: #ff0055;
    --primary-glow: rgba(255, 0, 85, 0.5);
    --secondary-color: #00e5ff;
    --secondary-glow: rgba(0, 229, 255, 0.4);
    --neon-purple: #9d4edd;
    --purple-glow: rgba(157, 78, 221, 0.4);
    --text-main: #ffffff;
    --text-muted: #a0a4b8;
    --glass-bg: rgba(10, 11, 18, 0.7);
    --glass-border: rgba(255, 255, 255, 0.07);
    --card-glow: rgba(0, 229, 255, 0.15);
}

body {
    background: radial-gradient(circle at 10% 20%, #080314 0%, #030407 60%, #000c17 100%);
    background-size: 180% 180%;
    animation: cosmic-flow 25s ease infinite;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes cosmic-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--primary-glow), inset 0 0 5px var(--primary-glow);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-glow), inset 0 0 10px var(--primary-glow);
    }
}

@keyframes cyberBorder {
    0%, 100% {
        border-color: rgba(0, 229, 255, 0.3);
    }
    50% {
        border-color: rgba(255, 0, 85, 0.6);
    }
}

/* Typography & Utilities */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 0, 85, 0.2));
}

/* Brand Logo */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -1px;
}
.brand-logo .brand-icon {
    font-size: 1.1em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: transform 0.5s ease;
}
.brand-logo:hover .brand-icon {
    transform: rotate(360deg) scale(1.1);
}
.brand-logo .brand-text-1 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.brand-logo .brand-text-2 {
    color: var(--secondary-color);
    margin-left: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px var(--secondary-glow));
}

.bg-gradient-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--neon-purple));
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--neon-purple) 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: all 0.6s ease;
}

.btn-gradient:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px var(--primary-glow), 0 0 10px var(--secondary-glow);
    color: white;
}

.btn-gradient:hover::before {
    left: 100%;
}

/* Glassmorphism Navbar */
.custom-navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    padding: 15px 0;
}

.custom-navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 6, 10, 0.9);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.navbar-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

/* Search Input */
.search-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.search-glass:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-glow);
    background: rgba(255, 255, 255, 0.08);
}

.search-glass input:focus {
    box-shadow: none;
    color: white;
}

.search-glass input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    margin-top: 0;
    padding-top: 80px;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.05);
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(5, 6, 10, 0.4) 50%, rgba(5, 6, 10, 0) 100%);
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 10s ease;
}

.swiper-slide-active .hero-slide img {
    transform: scale(1.05);
}

.hero-content {
    position: absolute;
    bottom: 12%;
    left: 6%;
    z-index: 2;
    max-width: 600px;
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 60%, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.meta-tags span {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Movie/Series Cards with Interactive 3D Perspective */
.content-section {
    padding: 3.5rem 0;
    position: relative;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 25px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    box-shadow: 0 0 12px var(--primary-glow);
}

.movie-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    aspect-ratio: 2/3;
    border: 1px solid var(--glass-border);
    
    /* 3D Settings */
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.3s ease;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    backface-visibility: hidden;
}

/* 3D Shiny Reflection Sheen */
.movie-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.15) 100%);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.movie-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(0deg, rgba(5,6,10,0.95) 0%, rgba(5,6,10,0.4) 60%, transparent 100%);
    opacity: 0.8;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.movie-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 18px;
    z-index: 2;
    opacity: 0.9;
    transform: translateZ(30px); /* Pushes content forward in 3D space */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.movie-card:hover {
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.18), 0 0 15px rgba(255, 0, 85, 0.15);
    border-color: var(--secondary-color);
}

.movie-card:hover::before {
    opacity: 1;
}

.movie-card:hover img {
    transform: scale(1.06);
}

.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--neon-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 25px var(--primary-glow), 0 0 10px var(--secondary-glow);
    color: white;
}

/* Swiper Customization */
.swiper-button-next, .swiper-button-prev {
    color: var(--secondary-color) !important;
    background: rgba(10, 11, 18, 0.8);
    backdrop-filter: blur(8px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    opacity: 0;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--secondary-color);
    color: #000 !important;
    box-shadow: 0 0 15px var(--secondary-glow);
    border-color: var(--secondary-color);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.1rem;
    font-weight: bold;
}

.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
    opacity: 1;
}

/* Glassmorphic Dropdown & Panels */
.glass-dropdown {
    background: rgba(10, 11, 18, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5) !important;
    padding: 10px 0 !important;
}

.glass-dropdown .dropdown-item {
    color: var(--text-muted) !important;
    transition: all 0.3s ease;
}

.glass-dropdown .dropdown-item:hover {
    color: white !important;
    background: rgba(255, 0, 85, 0.1) !important;
    padding-left: 20px;
}

/* Footer */
.custom-footer {
    background: rgba(10, 11, 18, 0.9);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px var(--primary-glow);
    border-color: transparent;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 9, 14, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    z-index: 1030;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    gap: 4px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-nav .nav-item.active {
    color: var(--secondary-color);
    font-weight: 600;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-3px) scale(1.1);
    text-shadow: 0 0 12px var(--secondary-glow);
}

.mobile-bottom-nav .nav-item:active {
    transform: scale(0.9);
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
    .custom-footer {
        padding-bottom: 90px !important;
    }
}

/* ==========================================================================
   Cyberpunk / Sci-Fi Futuristic Additions
   ========================================================================== */

/* Cyber Grid Background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 0),
        linear-gradient(rgba(18, 19, 26, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 19, 26, 0.2) 1px, transparent 1px);
    background-size: 24px 24px, 48px 48px, 48px 48px;
    background-position: 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.25;
}

/* Custom Cyber Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #020305;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-glow);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Futuristic Custom Selection */
::selection {
    background: var(--primary-color);
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* Custom Cursor Reticle */
.cyber-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    box-shadow: 0 0 8px var(--secondary-glow);
    display: none;
}
.cyber-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 6px var(--primary-glow);
    display: none;
}

@media (pointer: fine) {
    .cyber-cursor, .cyber-cursor-dot {
        display: block;
    }
}

/* Sci-fi tech corner ornaments for panels & cards */
.tech-panel {
    position: relative;
    border: 1px solid rgba(0, 229, 255, 0.2) !important;
    background: rgba(8, 9, 15, 0.85) !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.1) !important;
}
.tech-panel::before, .tech-panel::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--secondary-color);
    pointer-events: none;
}
.tech-panel::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}
.tech-panel::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* High-tech Glowing Badges */
.badge-neon {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
    text-shadow: 0 0 5px var(--secondary-glow);
}
.badge-neon-primary {
    background: rgba(255, 0, 85, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(255, 0, 85, 0.3);
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.2);
    text-shadow: 0 0 5px var(--primary-glow);
}

/* Form fields glowing focus */
.search-glass:focus-within {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3) !important;
}

/* Interactive movie card overlay changes on hover */
.movie-card::after {
    background: linear-gradient(0deg, rgba(5,6,10,0.95) 0%, rgba(5,6,10,0.3) 60%, transparent 100%);
}
.movie-card:hover::after {
    background: linear-gradient(0deg, rgba(5,6,10,0.98) 0%, rgba(0, 229, 255, 0.1) 60%, transparent 100%);
}
.movie-card .card-overlay {
    backdrop-filter: blur(2px);
    background: rgba(5, 6, 10, 0.4);
    border-radius: 0 0 16px 16px;
}

