/* Base Styles */
:root {
    --primary-color: #e50914;
    --primary-dark: #b20710;
    --secondary-color: #221f1f;
    --light-color: #f5f5f1;
    --dark-color: #221f1f;
    --gray-color: #757575;
    --light-gray: #e6e6e6;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: var(--light-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-download {
    background-color: var(--secondary-color);
    color: white;
    font-size: 14px;
    padding: 8px 15px;
}

.btn-download:hover {
    background-color: var(--primary-color);
}

.btn-icon {
    background: transparent;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--primary-color);
}

/* Header Styles */
.header {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.logo span {
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: white;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.main-nav a i {
    margin-right: 8px;
    font-size: 16px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.search-container {
    position: relative;
    width: 250px;
}

.search-form {
    display: flex;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 4px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.search-input::placeholder {
    color: var(--gray-color);
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.jpg') no-repeat center center/cover;
    height: 50vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    margin-bottom: -80px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

@media (max-width: 550px) {
    .hero h1 {
        font-size: 1.0rem;
    margin-bottom: 20px;
    line-height: 1.2;
    margin-top: 40px;
    }

    .hero p {
        
        margin-bottom: 10px;
    }
}

.hero p {
   
    margin-bottom: 10px;
}

/* Movie Sections */
.movie-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    text-decoration: underline;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.movie-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.movie-poster {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 150%;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: var(--transition);
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.rating {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating i {
    margin-right: 5px;
    font-size: 12px;
}

.year {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CTA Section */
.cta-section {
    background-color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.subscribe-form button {
    border-radius: 0 4px 4px 0;
    padding: 0 25px;
}

/* Footer Styles */
.footer {
    background-color: var(--secondary-color);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-section.about .logo {
    font-size: 24px;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-section p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section.links ul li {
    margin-bottom: 10px;
}

.footer-section.links a {
    color: var(--gray-color);
    transition: var(--transition);
}

.footer-section.links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-section.contact i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--gray-color);
    margin: 0 10px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--secondary-color);
        transition: var(--transition);
        padding: 20px;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    .search-container {
        margin: 20px 0;
        width: 100%;
    }
    
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size:1.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* Search Results Styles */
.no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
    text-align: center;
    padding: 40px 0;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--gray-color);
    font-size: 16px;
}

/* Search highlight */
.highlight {
    background-color: rgba(229, 9, 20, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    color: #fff;
}

/* Search form adjustments */
.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 4px 0 0 4px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    height: 40px;
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 15px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background-color: var(--primary-dark);
}

