/* CSS Variables for Theming */
:root {
    /* Light Mode Colors - Netflix-inspired */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #141414;
    --text-secondary: #564d4d;
    --text-muted: #737373;
    --border-color: #e5e5e5;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    --gradient-secondary: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    --accent-color: #e50914;
    --accent-hover: #b20710;
}

/* Dark Mode Colors - Netflix Dark Theme */
[data-theme="dark"] {
    --bg-primary: #141414;
    --bg-secondary: #181818;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #737373;
    --border-color: #2f2f2f;
    --card-bg: #181818;
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-hover: rgba(0, 0, 0, 0.7);
    --gradient-primary: linear-gradient(135deg, #e50914 0%, #b20710 50%, #831010 100%);
    --gradient-secondary: linear-gradient(135deg, #1db954 0%, #1ed760 50%, #169c46 100%);
    --accent-color: #e50914;
    --accent-hover: #b20710;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(24, 24, 24, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    align-items: center;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn i {
    transition: all 0.3s ease;
}

#sun-icon {
    display: none;
}

#moon-icon {
    display: block;
}

[data-theme="dark"] #sun-icon {
    display: block;
}

[data-theme="dark"] #moon-icon {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-name {
    color: #e50914;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active i {
    color: #e50914;
}

.nav-link i {
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.652) 0%, rgba(178, 7, 16, 0.9) 100%), 
                url('poster.jpeg');
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.hero-logo {
    margin-bottom: 2rem;
}

.hero-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.hero-section .search-section .search-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0;
    min-width: 650px;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1rem 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

.cta-button {
    background: linear-gradient(135deg, #ff1a1a 0%, #e50914 25%, #cc0000 50%, #b20710 75%, #990000 100%);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.3));
    white-space: nowrap;
    min-width: 180px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ff3333 0%, #ff1a1a 25%, #e50914 50%, #cc0000 75%, #b20710 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

/* Responsive Design for Search Section */
@media (max-width: 768px) {
    .search-section {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-section .search-section .search-container {
        max-width: 95%;
        min-width: 400px;
        border-radius: 50px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .search-input {
        min-width: 400px;
        width: 100%;
        padding: 1rem 1rem 1rem 2.5rem;
        font-size: 0.95rem;
        border-radius: 50px;
    }
    
    .cta-button {
        min-width: 200px;
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section .search-section .search-container {
        max-width: 100%;
        min-width: 300px;
        border-radius: 50px;
    }
    
    .search-section {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .search-input {
        min-width: unset;
        width: 100%;
        padding: 0.9rem 0.9rem 0.9rem 2.2rem;
        font-size: 0.9rem;
    }
    
    .cta-button {
        min-width: 150px;
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature span {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e50914, #1db954, #e50914);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.category-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--border-color));
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-hover);
}

.category-card.movies {
    background: linear-gradient(135deg, #e50914b1 0%, #b2070fe6 50%, #831010 100%), url(./poster-2.jpeg);
    color: white;
}

.category-card.music {
    background: linear-gradient(135deg, #1db954b1 0%, #1ed75fd9 50%, #169c46 100%), url(./song.jpeg);
    color: white;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-icon i {
    font-size: 1.5rem;
    color: white;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.category-card ul {
    list-style: none;
}

.category-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card li:last-child {
    border-bottom: none;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section {
    min-width: 180px;
    flex: 1 1 180px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 0.7rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-hover);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-section {
        min-width: unset;
        flex: unset;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 10px;
    }
    .footer-content {
        gap: 1rem;
    }
    .footer-section h3 {
        font-size: 1.1rem;
    }
    .footer-section h4 {
        font-size: 1rem;
    }
    .footer-bottom {
        font-size: 0.95rem;
        padding-top: 1rem;
    }
}

/* Streaming Platform Specific Styles */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Play button effect for feature icons */
.feature-icon {
    position: relative;
    overflow: hidden;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon::after {
    width: 100px;
    height: 100px;
}

/* Streaming platform loading animation */
@keyframes streaming-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-features .feature {
    animation: streaming-pulse 2s infinite;
}

.hero-features .feature:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-features .feature:nth-child(3) {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(24, 24, 24, 0.98) 100%);
        backdrop-filter: blur(20px);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        gap: 0;
        margin: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        font-size: 1.1rem;
        justify-content: flex-start;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(229, 9, 20, 0.2);
        border-color: rgba(229, 9, 20, 0.3);
        transform: translateX(5px);
    }
    
    .nav-link i {
        font-size: 1.2rem;
        margin-right: 1rem;
    }
    
    /* Mobile menu overlay */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-links.active::before {
        opacity: 1;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .categories-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-links ul {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Streaming Page Styles */
.streaming-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.streaming-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('poster.jpeg') center/cover no-repeat;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: -var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: -var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.search-container {
    display: flex;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    overflow: hidden;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    outline: none;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

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

.search-button {
    background: var(--accent-color);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.search-button:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Category Quick Navigation */
.category-quick-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-quick-nav::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.category-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

/* Movies Section */
.movies-section {
    padding: 2rem;
    background: var(--bg-primary);
}

.category-section {
    margin-bottom: 3rem;
}

.category-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.category-heading i {
    color: var(--accent-color);
}

.scroll-hint {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
    font-weight: 400;
}

/* Horizontal Scrolling Container */
.movies-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
}

.movies-scroll-container::-webkit-scrollbar {
    display: none;
}

.movies-grid {
    display: flex;
    gap: 1.5rem;
    min-width: max-content;
    padding: 0.5rem 0;
}

/* Movie Cards */
.movie-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 200px;
    border: 1px solid var(--border-color);
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.movie-poster {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}
.play-btn, .info-btn, .download-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.play-btn:hover, .info-btn:hover, .download-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.info-btn {
    background: rgba(255, 255, 255, 0.2);
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.movie-info {
    padding: 1rem;
}

.movie-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-genre {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating {
    font-weight: 600;
    color: var(--accent-color);
}

.movie-rating i {
    color: #ffd700;
    font-size: 0.9rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--accent-color);
    animation: pulse 1.5s infinite;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.8;
}
/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-container {
        max-width: 90%;
        width: 90%;
    }
    
    .category-quick-nav {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .movies-section {
        padding: 1rem;
    }
    
    .category-heading {
        font-size: 1.3rem;
        padding: 0 0.5rem;
    }
    
    .movies-grid {
        gap: 1rem;
    }
    
    .movie-card {
        min-width: 160px;
        max-width: 160px;
    }
    
    .movie-poster {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-container {
        flex-direction: column;
        border-radius: 30px;
        gap: 1rem;
    }
    
    .search-button {
        border-radius: 50px;
    }

    .search-input {
        font-size: 1rem;
        background-color: rgba(102, 99, 99, 0.1);
        color: rgb(2, 2, 2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .category-quick-nav {
        justify-content: flex-start;
        padding: 1rem 0.5rem;
    }
    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .movies-grid {
        gap: 0.75rem;
    }
    
    .movie-card {
        min-width: 140px;
        max-width: 140px;
    }
    
    .movie-poster {
        height: 200px;
    }
    .play-btn, .info-btn, .download-btn {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        gap: 0.3rem;
    }
     .play-btn, .info-btn, .download-btn .fas {
        font-size: 0.7rem;
        color: #ffff;
     }
}
