@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #07070a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --accent: #ff0055;
    --accent-hover: #ff3c5f;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    --gradient-primary: linear-gradient(135deg, #ff0055 0%, #7d1cff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .logo-text {
    font-family: 'Outfit', sans-serif;
}

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

/* Header & Navbar */
header {
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
    text-decoration: none;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
    opacity: 1;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 2001;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: white;
    display: block;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Animation */
.hamburger.active .line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .line:nth-child(2) { opacity: 0; }
.hamburger.active .line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #0d0d12;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: var(--nav-height) 30px;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid var(--glass-border);
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-link {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.9;
}

.mobile-menu-link:hover { color: var(--accent); }

.menu-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(5px);
}

.menu-mask.active { display: block; }

/* Category Bar */
.category-bar {
    background: var(--bg-dark);
    padding: 15px 40px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    margin-top: var(--nav-height);
    scrollbar-width: none;
    border-bottom: 1px solid var(--glass-border);
}

.category-bar::-webkit-scrollbar { display: none; }

.category-item {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-item:hover, .category-item.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Animated Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 5%;
    margin-bottom: 40px;
    transition: background-image 1s ease-in-out;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(7,7,10,1) 0%, rgba(7,7,10,0.5) 50%, rgba(7,7,10,0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeInSlide 0.8s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-weight: 600;
}

.quality-tag { color: var(--accent); text-transform: uppercase; }

/* Grid Layout */
.section-title {
    padding: 0 5% 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h2 {
    font-size: 1.5rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    padding: 0 5% 60px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 60, 95, 0.4);
}

.movie-poster {
    aspect-ratio: 2/3;
    overflow: hidden;
    position: relative;
}

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

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

/* Details Page Professional Styling */
.detail-container {
    max-width: 1200px;
    margin: 120px auto 40px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
}

.detail-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.detail-body h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    margin: 30px 0;
}

.label { color: var(--text-muted); font-weight: 500; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Policy / Legal Pages Styling */
.policy-container {
    max-width: 900px;
    margin: 140px auto 80px;
    padding: 0 40px;
}

.policy-container h1 { font-size: 3rem; margin-bottom: 40px; }
.policy-container h2 { font-size: 1.5rem; margin: 30px 0 15px; color: var(--accent); }
.policy-container p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.1rem; }
.policy-container ul { margin-left: 20px; margin-bottom: 25px; color: var(--text-muted); }

/* Footer */
footer {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--glass-border);
    padding: 80px 40px 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* 100% Mobile Friendly Overrides */
@media (max-width: 1024px) {
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .detail-container { grid-template-columns: 1fr; }
    .detail-img { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: block; }
    .nav-container { padding: 0 20px; }
    .hero-slider { height: 600px; text-align: center; }
    .hero-content h2 { font-size: 2.5rem; }
    .hero-meta { justify-content: center; }
    .category-bar { padding: 15px 20px; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
    .footer-columns { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .social-icons { justify-content: center; }
    .logo-text { font-size: 1.5rem; }
    .policy-container h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero-content h2 { font-size: 2rem; }
    .hero-slider { height: 500px; }
    .movie-grid { grid-template-columns: 1fr 1fr; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
