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

:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --accent-color: #e50914;
    /* Netflix Red-ish */
    --secondary-accent: #b81d24;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent));
    color: white;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    margin-left: 15px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: rgba(56, 55, 55, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 40px;
    margin: 10px 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.nav-links a:hover::before {
    width: 100%;
}


.nav-actions .fa-bell {
    animation: shake 2s infinite;
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(10, 10, 10, 1) 100%), url('https://images.unsplash.com/photo-1626814026160-2237a95fc5a0?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    opacity: 0;
    /* For animation */
    transform: translateY(30px);
    /* For animation */
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

/* Section Styles */
.marquee-section {
    padding: 0 0;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.marquee-section .blur-start {
    content: "";
    position: absolute;
    display: block;
    left: -4%;
    top: 0;
    bottom: 0;
    width: 10%;
    height: 100%;
    filter: blur(25px);
    background: #000;
    z-index: 1;
}

.marquee-section .blur-end {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    right: -4%;
    width: 10%;
    height: 100%;
    filter: blur(25px);
    background: #000;
    z-index: 1;
}

.marquee-title {
    text-align: center;
    color: #e74c3c;
    font-size: 28px;
    margin-bottom: 20px;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding-bottom: 20px;
}

.marquee {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
    /* Hover thì dừng lại */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.movie-slide {
    flex: 0 0 220px;
    margin: 0 15px;
    text-align: center;
    transition: 0.3s;
}

.movie-slide:hover {
    transform: scale(1.08);
}

.movie-slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.movie-slide p {
    color: white;
    margin-top: 10px;
    font-weight: bold;
    font-size: 15px;
}

section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Movie Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.movie-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    border: 1px solid var(--glass-border);
    opacity: 0;
    transform: translateY(20px);
}

.movie-card.visible {
    animation: fadeUp 0.6s ease forwards;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.rating {
    color: #ffd700;
}

/* Featured Section */
.featured {
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.6) 100%), url('https://wallpapercave.com/wp/wp11909577.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin: 40px 0;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.featured-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.featured h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.featured-desc {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 10px 0;
    margin-top: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(229, 9, 20, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Simple hide for mobile for now */
    }

    .featured {
        padding: 30px;
    }

    .featured h2 {
        font-size: 2rem;
    }
}