/* Base Variables & Reset */
:root {
    --bg-dark: #070b19;       /* Deep Luxury Navy */
    --bg-card: #0f172a;       /* Slate Navy for cards */
    --accent-blue: #00b4d8;   /* Electric Cyan */
    --accent-light: #90e0ef;  /* Soft Light Blue */
    --text-main: #f8fafc;     /* Clean Off-White */
    --text-muted: #94a3b8;    /* Muted Slate Text */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

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

/* Header / Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4%;
    background: linear-gradient(to bottom, rgba(7,11,25,0.9), rgba(7,11,25,0));
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-blue);
}

.search-box input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 4%;
    background-image: url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--bg-dark) 30%, rgba(7,11,25,0.5) 60%, var(--bg-dark) 100%),
                linear-gradient(to bottom, rgba(7,11,25,0) 50%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.badge {
    color: var(--accent-blue);
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.synopsis {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.rating-box {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-light);
}

.scale {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--bg-dark);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

/* Main Content & Grid */
.container {
    padding: 4rem 4%;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-blue);
    margin-top: 0.5rem;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.movie-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.1);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card-genre {
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content h3 {
    margin: 0.5rem 0 1rem 0;
    font-size: 1.25rem;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-rating {
    color: var(--accent-light);
    font-weight: 600;
}

.btn-text {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}