/* --- Global Variables & Basic Setup --- */
:root {
    --bg-color: #141414; /* Netflix Dark Background */
    --text-primary: #fff;
    --text-secondary: #e5e5e5;
    --accent-color: #e50914; /* Netflix Red */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* --- Premium Animated Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 100;
    /* Glassmorphism Blur Effect */
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    text-shadow: 0 2px 15px rgba(229, 9, 20, 0.4);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    margin-left: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

/* Animated Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.search-bar {
    margin-left: auto;
}

.search-bar input {
    padding: 10px 20px;
    border-radius: 30px; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 240px;
    font-size: 14px;
    transition: all 0.4s ease; 
}

/* Search Bar expands and glows */
.search-bar input:focus {
    width: 320px; 
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

.search-bar input::placeholder {
    color: #888;
}

/* --- Hero Banner (Netflix Style) --- */
.hero-banner {
    position: relative;
    height: 85vh;
    /* Dune Background Image */
    background: url('Bg_images/dune-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
}

.hero-fade-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #141414);
}

.hero-content {
    margin-left: 40px;
    max-width: 50%;
    z-index: 10;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* --- Buttons --- */
.btn {
    padding: 12px 28px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background-color: white;
    color: black;
    margin-right: 15px;
    transition: background-color 0.2s;
}

.primary-btn:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.secondary-btn {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

/* --- Netflix Style Horizontal Scrolling Rows --- */
.movie-row {
    margin-left: 40px;
    margin-top: -30px; 
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.movie-row:not(:first-of-type) {
    margin-top: 20px;
}

.movie-row h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #e5e5e5;
}

.row-posters {
    display: flex;
    overflow-y: hidden;
    overflow-x: scroll; 
    padding: 20px 0;
    scroll-behavior: smooth;
}

.row-posters::-webkit-scrollbar {
    display: none;
}
.row-posters {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.row-poster {
    width: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
    transition: transform 450ms;
    cursor: pointer;
}

.row-poster:hover {
    transform: scale(1.08); 
}

/* --- Circular Posters for People Row --- */
.row-person {
    width: 160px;
    height: 160px;
    border-radius: 50%; 
    object-fit: cover;
    margin-right: 20px;
    transition: transform 450ms;
    cursor: pointer;
    border: 3px solid transparent;
}

.row-person:hover {
    transform: scale(1.1);
    border-color: var(--text-primary);
}

.person-info {
    text-align: center;
    margin-top: 10px;
    width: 160px;
}

.person-info h3 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.person-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- Watchlist Grid Styles --- */
.watchlist-container {
    padding: 0 40px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.watchlist-container h2 {
    font-size: 22px;
    margin-bottom: 5px;
    color: #e5e5e5;
}

.watchlist-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    margin-top: 20px;
}

.watchlist-item {
    width: 200px;
}

.watchlist-item .row-poster {
    margin-right: 0; 
    width: 100%;
}

.remove-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    background-color: rgba(229, 9, 20, 0.8); 
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.remove-btn:hover {
    background-color: rgba(229, 9, 20, 1);
}

/* --- More Info Pages Styles --- */
.info-container {
    padding: 120px 40px 50px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.info-poster {
    width: 350px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.info-details {
    flex: 1;
}

.info-details h1 {
    font-size: 45px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.info-meta {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.info-meta span {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}

.info-overview {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.info-cast-list {
    list-style: none;
    color: var(--text-secondary);
    line-height: 2;
    font-size: 16px;
}

.info-cast-list strong {
    color: var(--text-primary);
    width: 100px;
    display: inline-block;
}

/* --- Floating Developer Badge --- */
.dev-badge {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.dev-badge:hover {
    background: rgba(20, 20, 20, 0.9);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

.dev-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-name strong {
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.dev-badge:hover .dev-name strong {
    color: var(--accent-color);
}

/* Links Reveal Animation */
.dev-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
    margin-top: 0;
}

.dev-badge:hover .dev-links {
    max-height: 60px; 
    opacity: 1;
    margin-top: 12px;
}

.dev-link {
    color: #bbb;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dev-link:hover {
    color: white;
}