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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #141414;
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #ffffff;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Netflix Red Button */
.btn {
    display: inline-block;
    background-color: #e50914;
    color: white;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 400;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #f40612;
}

.btn-rounded {
    border-radius: 20px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 0;
    transition: background-color 0.3s;
}

header.scrolled {
    background-color: #141414;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo img {
    width: 120px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 300;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #b3b3b3;
}

.nav-right {
    display: flex;
    align-items: center;
}

.search-icon, .notifications, .profile {
    margin-left: 20px;
    cursor: pointer;
}

/* Hero Section Styles */
.hero {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.hero-content {
    position: absolute;
    bottom: 100px;
    left: 50px;
    width: 50%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #e6e6e6;
}

.hero-buttons {
    display: flex;
    gap: 10px;
}

.hero-buttons .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Movie Rows Styles */
.movie-section {
    padding: 20px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    padding-left: 40px;
}

.movie-row {
    position: relative;
    padding: 0 40px;
}

.movie-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    gap: 10px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.movie-slider::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.movie-card {
    flex: 0 0 auto;
    width: 240px;
    height: 135px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-row:hover .slider-control {
    opacity: 1;
}

.slider-control.left {
    left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.slider-control.right {
    right: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* Footer Styles */
footer {
    padding: 40px;
    margin-top: 40px;
    color: #808080;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #808080;
    font-size: 13px;
    margin-bottom: 15px;
    display: block;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content {
        width: 70%;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .header-content {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-content {
        width: 80%;
        left: 30px;
        bottom: 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        padding-left: 20px;
    }
    
    .movie-row {
        padding: 0 20px;
    }
    
    .movie-card {
        width: 200px;
        height: 113px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-content {
        width: 90%;
        left: 20px;
        bottom: 30px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .movie-card {
        width: 150px;
        height: 84px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}