
body {
    font-family: Arial, sans-serif;
    background-color: #141414;
    color: white;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #141414;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

nav ul li a:hover {
    text-decoration: underline;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #fff;
    background-color: #333;
    color: #fff;
}

.search-bar button {
    padding: 8px 16px;
    background-color: #e50914;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #f40612;
}

.hero {
    background: url('https://image.tmdb.org/t/p/original/vgWikvlhzEpY1G3jjRK9b0P8g6g.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

.hero .cta-button {
    padding: 15px 30px;
    background-color: #e50914;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 20px;
    transition: background-color 0.3s;
}

.hero .cta-button:hover {
    background-color: #f40612;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Movie Section */
.movie-section {
    padding: 40px 20px;
}

.movie-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #fff;
}

.movie-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.movie-container .movie {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.movie-container .movie:hover {
    transform: scale(1.1);
}

.movie-container .movie:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.movie-container .movie img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.movie-container .movie-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.movie-container .movie:hover .movie-details {
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: auto;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100px); }
    to { transform: translateY(0); }
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Footer */
footer {
    padding: 20px;
    background-color: #141414;
    text-align: center;
}

footer p {
    margin: 0;
    color: #fff;
}

footer ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

footer ul li {
    display: inline;
    margin-right: 15px;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
}
