/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header Styles */
.header {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 9, 20, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.logo h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #E50914;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 2px 4px rgba(229, 9, 20, 0.3);
}

.logo-image {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}
@media (max-width: 768px) {
    .logo-image {
        height: 40px !important;
        max-height: 40px !important;
    }
}
.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #E50914;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E50914;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: #E50914;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.search-input {
    background: none;
    border: none;
    color: #ffffff;
    outline: none;
    width: 200px;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

.language-toggle {
    background: #E50914;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.language-toggle:hover {
    background: #f40612;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #141414 0%, #1a1a1a 50%, #141414 100%);
    margin-top: 80px;
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Movies Section */
.movies-section {
    padding: 80px 0;
}

.movies-section.upcoming {
    background: #0a0a0a;
    border-top: 1px solid rgba(229, 9, 20, 0.1);
    border-bottom: 1px solid rgba(229, 9, 20, 0.1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 2rem;
    color: #E50914;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: #E50914;
    border-radius: 2px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.movie-card {
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
}

.movie-card:hover {
    transform: scale(1.05);
    border-color: #E50914;
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.3);
    z-index: 10;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    height: 450px;
    background: #2a2a2a;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-card:hover .movie-poster img {
    transform: scale(1.1);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 70%, rgba(229, 9, 20, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-bottom: 2rem;
}

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

.download-btn, .notify-btn {
    position: relative;
    z-index: 2;
    background: #E50914;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 2rem;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 80%;
    max-width: 200px;
}

.download-btn:hover, .notify-btn:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(229, 9, 20, 0.4);
}

.movie-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    padding: 0 1rem;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.movie-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 0 1rem 1rem;
    font-weight: 300;
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(229, 9, 20, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #E50914;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #E50914;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    color: #E50914;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-input {
        width: 150px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }
    .container {
        padding: 0 10px;
    }
    .hero {
        padding: 100px 0 60px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .movie-poster {
        height: 300px;
    }
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .nav-menu {
        gap: 0.75rem;
        font-size: 0.9rem;
    }
    .search-input {
        width: 120px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .movie-poster {
        height: 250px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b6b;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: #E50914;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f40612;
}

/* Netflix-style hover effects */
.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(229, 9, 20, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

/* Professional button states */
.download-btn:active, .notify-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(229, 9, 20, 0.3);
}

/* Enhanced focus states */
.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

/* Professional loading state */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #E50914;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}