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

:root {
    --primary-theme: #E50914; /* Netflix/Marvel Red */
    --primary-hover: #ff0f1a;
    --dark-bg: #080808;
    --card-bg: #141414;
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-muted: #a3a3a3;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: #f5f5f5;
    overflow-x: hidden;
}

/* Base Styles & Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}
.text-primary-theme { color: var(--primary-theme) !important; }
.bg-primary-theme { background-color: var(--primary-theme) !important; }
.text-muted { color: var(--text-muted) !important; }
.tracking-widest { letter-spacing: 0.2rem; }

/* Custom Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-theme), #ba050e);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 8px;
}
.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-theme));
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
    transform: translateY(-3px);
    color: white;
}
.btn-outline-light {
    border-width: 2px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Animations Variables */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes bounceBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4) rotate(5deg); text-shadow: 0 0 10px var(--primary-theme); }
}

.float-animation { animation: float 4s ease-in-out infinite; }
.bounce-anim { animation: bounceBounce 0.4s ease-out; }

/* Navbar Setup */
.custom-nav {
    transition: all 0.5s ease;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent) !important;
}
.nav-scrolled {
    padding: 0.8rem 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(8, 8, 8, 0.85) !important;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-links .nav-link {
    font-weight: 500;
    color: #ccc !important;
    margin: 0 12px;
    transition: all 0.3s;
    position: relative;
}
.nav-links .nav-link:hover {
    color: white !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}
.nav-links .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-theme);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-links .nav-link:hover::after {
    width: 100%;
}

/* Cart Icon */
.cart-btn {
    color: white;
    transition: all 0.3s;
}
.cart-btn:hover { color: var(--primary-theme); transform: scale(1.1); }
.cart-badge {
    font-size: 0.65rem;
    padding: 0.35em 0.6em;
    border: 2px solid var(--dark-bg);
}

/* User Dropdown */
.custom-dropdown {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}
.custom-dropdown .dropdown-item {
    transition: 0.3s;
}
.custom-dropdown .dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary-theme) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('public/coming1.jpg') no-repeat center center/cover; /* Fallback */
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.8)), url('public/coming3.jpg');
    display: flex;
    align-items: center;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(8,8,8,0.9) 100%);
    z-index: 0;
}
.hero-fade-bottom {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to top, var(--dark-bg), transparent);
    z-index: 1;
}

.hero-content {
    padding-top: 100px;
}
.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}
.text-glow {
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}
.text-gradient {
    background: linear-gradient(to right, #ffffff, #a3a3a3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Movies Grid & Cards */
.movie-section {
    position: relative;
    z-index: 2;
}
.section-title {
    font-weight: 700;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}
.section-title span {
    font-size: 2.5rem;
    line-height: 1;
}

.movie-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: var(--card-bg);
    aspect-ratio: 2/3;
}
.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.5s ease;
}
.movie-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.25);
    z-index: 10;
}
.movie-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.6) blur(2px);
}

.movie-card .overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    transition: bottom 0.4s ease-in-out;
    padding-top: 50px;
}
.movie-card:hover .overlay {
    bottom: 0;
}
.animated-title {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.movie-card:hover .animated-title {
    transform: translateY(0);
    opacity: 1;
}
.price-tag {
    transform: translateY(20px);
    opacity: 0;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.4s ease 0.2s;
}
.movie-card:hover .price-tag {
    transform: translateY(0);
    opacity: 1;
}
.add-to-cart-btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.3s;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
}
.movie-card:hover .add-to-cart-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Auth Pages */
.auth-page {
    background: url('public/coming2.jpg') no-repeat center center/cover;
    position: relative;
    background-attachment: fixed;
}
.auth-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
}
.overlay-glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.auth-form .form-floating .form-control {
    border-radius: 8px;
    padding-left: 1.2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.auth-form .form-floating .form-control:focus {
    border-color: var(--primary-theme);
    box-shadow: 0 0 0 0.25rem rgba(229, 9, 20, 0.25);
}
.auth-form .form-floating label {
    padding-left: 1.2rem;
    color: #888;
}

/* Cart Page */
.cart-page {
    background: var(--dark-bg);
}
.cart-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}
.cart-item:hover {
    background: rgba(30, 30, 30, 0.8);
    transform: translateX(10px);
    border-left: 4px solid var(--primary-theme);
}
.cart-img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.shadow-inner {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.remove-btn {
    transition: transform 0.3s;
}
.remove-btn:hover {
    transform: scale(1.15) rotate(15deg);
}

.slide-in-right {
    animation: slideInR 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-30px);
}
@keyframes slideInR {
    to { opacity: 1; transform: translateX(0); }
}

/* Footer */
.custom-footer {
    position: relative;
    background: #000;
}
.custom-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-theme), transparent);
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-link:hover {
    background: var(--primary-theme);
    color: white;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .nav-scrolled { background: rgba(8, 8, 8, 0.95) !important; }
}