/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background-color: #141414; /* Netflix dark background color */
}

/* Navbar Styles */
.navbar {
    background-color: #141414;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .brand {
    font-size: 24px;
    font-weight: bold;
    color: #e50914; /* Netflix red color */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #e50914; /* Netflix red color for hover effect */
}

/* Movies Section */
.movies-section {
    padding: 80px 20px 20px; /* Added top padding to avoid overlap with sticky navbar */
    max-width: 1200px;
    margin: 0 auto;
}

.movies-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.movie-item {
    background-color: #333; /* Dark background color for movie boxes */
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    color: #fff;
}

.movie-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.movie-item:hover img {
    opacity: 0.7; /* Slightly fade image on hover */
}

.movie-info {
    padding: 10px;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent dark background */
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.movie-info h3 {
    color: red;
    margin: 0;
    font-size: 18px;
}

.movie-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #b3b3b3;
}

.movie-item:hover .movie-info {
    background: rgba(0, 0, 0, 0.9); /* Darken background on hover */
}

/* Footer Styles */
.footer {
    background-color: #141414;
    padding: 30px 20px;
    text-align: center;
    color: #b3b3b3;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}
