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

:root {
    --netflix-red: #e50914;
    --netflix-dark: #141414;
    --netflix-gray: #333;
    --netflix-light-gray: #8c8c8c;
    --netflix-white: #fff;
    --netflix-black: #000;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--netflix-black);
    color: var(--netflix-white);
    line-height: 1.4;
    overflow-x: hidden;
}

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

.btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

/* Header Styles */
.header {}

.header-container {
    width: 100%;
    padding: 0 4%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.logo {
    height: 40px;
    width: auto;
}

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

.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 8px 16px;
    min-width: 120px;
}

.language-selector i:first-child {
    margin-right: 8px;
    font-size: 14px;
}

.language-dropdown {
    background: transparent;
    color: var(--netflix-white);
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    appearance: none;
    flex: 1;
    cursor: pointer;
}

.language-selector i:last-child {
    margin-left: 8px;
    font-size: 12px;
}

.btn-signin {
    background-color: var(--netflix-red);
    color: var(--netflix-white);
    padding: 8px 16px;
    font-size: 14px;
}

.btn-signin:hover {
    background-color: #f40612;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--netflix-white);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    /* height: 100vh; */
    min-height: 600px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%),
        url('netflixbg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-text {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.form-group {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.email-input {
    width: 69%;
    padding: 24px 20px 10px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #8c8c8c;
    border-radius: 4px;
    color: var(--netflix-white);
    outline: none;
}

.email-input:focus {
    border-color: var(--netflix-white);
}

.input-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8c8c;
    font-size: 16px;
    transition: var(--transition);
    pointer-events: none;
}

.email-input:focus+.input-label,
.email-input:not(:placeholder-shown)+.input-label {
    top: 10px;
    font-size: 12px;
    transform: none;
}

.btn-getstarted {
    background-color: var(--netflix-red);
    color: var(--netflix-white);
    padding: 12px 24px;
    font-size: 1.5rem;
    font-weight: 500;
    white-space: nowrap;
}

.btn-getstarted:hover {
    background-color: #f40612;
}

.btn-getstarted i {
    margin-left: 8px;
}

.form-note {
    font-size: 1rem;
    color: var(--netflix-light-gray);
    margin-top: 20px;
}

/* Section Styles */
.section {
    padding: 60px 0;
    border-top: 8px solid #222;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

/* Trending Section */
.trending-section {
    background-color: var(--netflix-black);
}

.movie-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.movie-carousel::-webkit-scrollbar {
    display: none;
}

.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    aspect-ratio: 2/3;
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

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

/* Features Section */
.features-section {
    background-color: var(--netflix-black);
}

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

.feature-card {
    background: linear-gradient(135deg, rgba(51, 28, 132, 0.8) 0%, rgba(42, 17, 50, 0.8) 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--netflix-red);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--netflix-white);
}

.feature-card p {
    color: var(--netflix-light-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    background-color: var(--netflix-black);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto 40px;
}

.faq-item {
    margin-bottom: 8px;
    background-color: var(--netflix-gray);
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background-color: var(--netflix-gray);
    color: var(--netflix-white);
    border: none;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #444;
}

.faq-question i {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 24px;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--netflix-white);
    background-color: var(--netflix-gray);
    border-top: 1px solid #000;
}

.membership-form {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.membership-text {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--netflix-black);
    padding: 60px 0 30px;
    border-top: 8px solid #222;
}

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

.call-text {
    font-size: 1rem;
    color: var(--netflix-light-gray);
    margin-bottom: 30px;
}

.call-text a {
    color: var(--netflix-light-gray);
    text-decoration: none;
}

.call-text a:hover {
    text-decoration: underline;
}

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

.footer-links a {
    color: var(--netflix-light-gray);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-language {
    margin-bottom: 30px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
}

.netflix-india {
    font-size: 1rem;
    color: var(--netflix-light-gray);
    margin-bottom: 20px;
}

.recaptcha-notice {
    font-size: 0.75rem;
    color: var(--netflix-light-gray);
}

.recaptcha-notice a {
    color: #0071eb;
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-text {
        font-size: 1.125rem;
    }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-form {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* .form-group {
        min-width: 100%;
        max-width: 100%;
    }
     */
    .btn-getstarted {
        width: 50%;
        max-width: 186px;
        font-size: 1.25rem;
        padding: 15px 24px;
    }

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

    .faq-question {
        font-size: 1.25rem;
        padding: 20px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.08rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-text {
        font-size: 0.875rem;
    }

    .btn-getstarted {
        font-size: 1rem;
        padding: 12px 20px;
    }

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

    .faq-question {
        font-size: 1rem;
        padding: 16px;
    }

    .faq-answer p {
        font-size: 0.875rem;
        padding: 16px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .language-selector {
        min-width: 100px;
        padding: 6px 12px;
    }

    .language-dropdown {
        font-size: 12px;
    }

    .logo {
        width: 82px;
    }

    .navbar {
        height: 54px;
    }

    .hero-form {
        flex-direction: column;
    }
    .hero-subtitle {
    margin-bottom: 12px;
}
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.section,
.footer {
    animation: fadeIn 0.8s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #0071eb;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .feature-card {
        border: 2px solid var(--netflix-white);
    }

    .faq-item {
        border: 1px solid var(--netflix-white);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--netflix-black);
        color: var(--netflix-white);
    }
}