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

:root {
    --primary-bg: #141414;
    --secondary-bg: #181818;
    --nav-bg: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 10%, transparent);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-red: #e50914;
    --accent-red-hover: #f40612;
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --card-hover: #2a2a2a;
    --border-color: #404040;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* Navigation Bar - Flexbox Layout */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    height: 68px;
    background: var(--nav-bg);
    transition: background-color 0.4s ease;
}

.navbar.scrolled {
    background: var(--primary-bg);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: 3F09C9;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-secondary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    pointer-events: none;
}

.search-box input {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 8px 12px 8px 38px;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-box:hover input,
.search-box input:focus {
    width: 260px;
    opacity: 1;
    outline: none;
    border-color: var(--text-primary);
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn svg {
    width: 24px;
    height: 24px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.profile img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.profile:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%),
                url('images/MOVIE 25.jpg') center top / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 4%;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, var(--primary-bg) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: -20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-play {
    background: var(--text-primary);
    color: var(--primary-bg);
}

.btn-play:hover {
    background: rgba(255, 255, 255, 0.8);
}

.btn-more {
    background: rgba(109, 109, 110, 0.7);
    color: var(--text-primary);
}

.btn-more:hover {
    background: rgba(109, 109, 110, 0.5);
}

/* Content Section */
.content {
    padding: 20px 1.5%;
    position: relative;
    z-index: 2;
    margin-top: -20px;
    width: 100%;
    max-width: 100%;
}

/* Movie Section */
.movie-section {
    margin-bottom: 25px;
    width: 100%;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    padding-left: 0.5%;
}

/* Movie Grid - CSS Grid Layout */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
}

.movie-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 2/3;
}


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

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

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

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

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

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-red);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    margin-bottom: 15px;
}

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

.play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 4px;
}

.movie-info {
    text-align: center;
}

.movie-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.match {
    color: #46d369;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
}

.rating {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 3px;
}

/* Footer */
.footer {
    padding: 50px 4% 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

.social-links svg {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.Get-Started {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.Get-Started:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .movie-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 4%;
        height: 60px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .search-box {
        display: none;
    }
    
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

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

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

/* Selection Styling */
::selection {
    background: var(--accent-red);
    color: var(--text-primary);
}
