/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #141414;
    color: #fff;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    transition: background-color 0.3s;
}

header.scrolled {
    background-color: #141414;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #e50914;
    text-decoration: none;
}

/* Hero Section */
.hero {
    height: 80vh; 
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('https://image.tmdb.org/t/p/original/9yBVqNruk6Ykrwc32qrK2TIE5xw.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #141414, transparent);
    z-index: 1;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-in-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2s ease-in-out;
}

/* Movies Section */
.movies-section {
    padding: 20px 50px 50px 50px;
    position: relative;
    z-index: 10;
    margin-top: -150px;
}

/* Simple Search Bar Styles */
.search-section {
    max-width: 700px;
    margin: 20px auto 50px auto; 
}

#search-input {
    width: 100%;
    padding: 18px 25px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 50px;
    color: #fff;
    font-size: 1.2rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#search-input:focus {
    border-color: #e50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
}

#search-input::placeholder {
    color: #888;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.movie-card:hover .movie-info {
    opacity: 1; 
}

.movie-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
}

.movie-year {
    font-size: 0.8rem;
    color: #d2d2d2;
}

footer {
    background-color: #000;
    padding: 50px;
    text-align: center;
}

.copyright {
    color: #757575;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.grid-message {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    padding: 40px 0;
    color: #757575;
}

.vpn-notice {
    background-color: #222;
    border-left: 4px solid #e50914; 
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 40px; 
    display: flex;
    align-items: center;
    gap: 15px;
}

.vpn-notice i {
    font-size: 1.5rem;
    color: #e50914;
}

.vpn-notice p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #dcdcdc;
    margin: 0;
    letter-spacing: 0.5px;
}

.vpn-notice p strong {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    header { padding: 15px 20px; }
    .hero { padding: 0 20px; }
    .hero h1 { font-size: 2.5rem; }
    .movies-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .movies-section { padding: 20px; }
    .movie-card img { height: 220px; }
    .vpn-notice { flex-direction: column; text-align: center; }
    #search-input { font-size: 1rem; padding: 15px 20px; }
}
