/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    min-height: 100vh;
}

/* Header */
.header {
    background: #2c3e50;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3498db;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn,
.signup-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.login-btn {
    color: #ecf0f1;
    border-color: #ecf0f1;
}

.login-btn:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.signup-btn {
    background: #3498db;
    color: #ffffff;
}

.signup-btn:hover {
    background: #2980b9;
}

/* Hero Section */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #7f8c8d;
}

.cta-button {
    background: #3498db;
    color: #ffffff;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #2980b9;
}

/* Section */
.section {
    background: #ffffff;
    margin: 2rem auto;
    max-width: 1400px;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.movie-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ecf0f1;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.movie-poster {
    width: 100%;
    height: 400px;
    background: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ecf0f1;
    overflow: hidden;
    position: relative;
}

.movie-poster::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    padding-left: 8px;
}

.movie-card:hover .movie-poster::after {
    opacity: 1;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-info {
    padding: 1.5rem;
    color: #2c3e50;
}

.movie-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.movie-genre {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #3498db;
    font-weight: 600;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.feature-card {
    background: #ecf0f1;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    color: #2c3e50;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

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

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

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-utility {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-utility a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-utility a:hover {
    color: #3498db;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ecf0f1;
    transition: all 0.3s;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        gap: 0;
        margin-top: 1rem;
        background: #34495e;
        border-radius: 8px;
        overflow: hidden;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #2c3e50;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
    }

    .auth-buttons {
        order: 1;
        margin-left: auto;
        margin-right: 1rem;
        gap: 0.5rem;
    }

    .login-btn,
    .signup-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 2rem 1rem;
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section {
        margin: 1rem;
        padding: 2rem 1rem;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

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

    .movie-poster {
        height: 250px;
    }

    .movie-poster::after {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .movie-info {
        padding: 1rem;
    }

    .movie-title {
        font-size: 1.1rem;
    }

    .movie-genre {
        font-size: 0.85rem;
    }

    .movie-rating {
        font-size: 0.9rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .auth-buttons {
        gap: 0.3rem;
    }

    .login-btn,
    .signup-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .movie-poster {
        height: 220px;
    }

    .movie-title {
        font-size: 1rem;
    }

    .movie-genre {
        font-size: 0.8rem;
    }

    .movie-rating {
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

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

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }
}
