/* ========================================
   CSS Reset & Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --netflix-red: #e50914;
    --netflix-black: #000000;
    --netflix-dark-gray: #141414;
    --netflix-gray: #303030;
    --netflix-light-gray: #808080;
    --netflix-white: #ffffff;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--netflix-black);
    color: var(--netflix-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 3rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 10%, transparent);
    transition: background-color var(--transition-speed) ease;
}

.navbar.scrolled {
    background-color: var(--netflix-black);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto;
}

.navbar-logo .logo {
    width: 120px;
    height: 32px;
    fill: var(--netflix-red);
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
}

.navbar-logo .logo:hover {
    transform: scale(1.05);
}

.btn-signin {
    background-color: var(--netflix-red);
    color: var(--netflix-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.btn-signin:hover {
    background-color: #c11119;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1574267432644-f65be8d70a5f?w=1920&h=1080&fit=crop') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 950px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-form {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}


.btn-get-started {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    background-color: var(--netflix-red);
    color: var(--netflix-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
     justify-content: center;
    gap: 0.5rem;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.btn-get-started:hover {
    background-color: #c11119;
    transform: scale(1.02);
}

.btn-get-started::after {
    content: '›';
    font-size: 2rem;
}

/* ========================================
   Feature Sections
   ======================================== */

.feature {
    border-bottom: 8px solid var(--netflix-gray);
    padding: 4rem 2rem;
}

.feature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-container.reverse {
    direction: rtl;
}

.feature-container.reverse > * {
    direction: ltr;
}

.feature-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.feature-text p {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--netflix-white);
}

.feature-media {
    position: relative;
}

.feature-image-wrapper {
    position: relative;
}

.feature-image {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

.feature-video-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    z-index: 1;
}

.feature-video-wrapper.devices {
    width: 63%;
    height: 47%;
    top: 34%;
    left: 50%;
}

.feature-video {
    width: 100%;
    height: 100%;
}

/* Download Card Animation */
.download-card {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--netflix-black);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    min-width: 60%;
    z-index: 3;
}

.download-poster {
    height: 60px;
    border-radius: 4px;
}

.download-text {
    flex: 1;
}

.download-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.download-text p {
    font-size: 0.9rem;
    color: #0071eb;
}

.download-animation {
    width: 48px;
    height: 48px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8Y2lyY2xlIGN4PSIyNCIgY3k9IjI0IiByPSIyMCIgc3Ryb2tlPSIjZTUwOTE0IiBzdHJva2Utd2lkdGg9IjQiIGZpbGw9Im5vbmUiLz4KPC9zdmc+') center/contain no-repeat;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   FAQ Section
   ======================================== */

.faq {
    padding: 4rem 2rem;
    border-bottom: 8px solid var(--netflix-gray);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.faq-item {
    background-color: var(--netflix-gray);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--netflix-gray);
    border: none;
    color: var(--netflix-white);
    font-size: 1.5rem;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.faq-question:hover {
    background-color: #3e3e3e;
}

.faq-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    transition: transform var(--transition-speed) ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: var(--netflix-gray);
    transition: max-height var(--transition-speed) ease, padding var(--transition-speed) ease;
}

.faq-item.active .faq-answer {
    max-height: 1200px;
    padding: 1.5rem;
    border-top: 1px solid var(--netflix-black);
}

.faq-answer p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 4rem 2rem 2rem;
    background-color: var(--netflix-black);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-question {
    color: var(--netflix-light-gray);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-column a {
    color: var(--netflix-light-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-speed) ease;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-language {
    margin-bottom: 2rem;
}

.language-selector {
    background-color: transparent;
    color: var(--netflix-white);
    border: 1px solid var(--netflix-light-gray);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color var(--transition-speed) ease;
}

.language-selector:hover {
    border-color: var(--netflix-white);
}

.language-selector:focus {
    outline: none;
    border-color: var(--netflix-white);
}

.footer-country {
    color: var(--netflix-light-gray);
    font-size: 0.875rem;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .feature-container {
        gap: 2rem;
    }

    .feature-text h2 {
        font-size: 2rem;
    }

    .feature-text p {
        font-size: 1.125rem;
    }

    .faq-title {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1.125rem;
    }

    .faq-answer p {
        font-size: 1.125rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .navbar-logo .logo {
        width: 90px;
        height: 24px;
    }

    .btn-signin {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .hero {
        height: 90vh;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .hero-form {
        flex-direction: column;
        width: 100%;
    }

    .email-input {
        min-width: 100%;
        padding: 0.875rem 1rem;
    }

    .btn-get-started {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1.125rem;
    }

    .feature {
        padding: 3rem 1.5rem;
    }

    .feature-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-container.reverse {
        direction: ltr;
    }

    .feature-text {
        text-align: center;
    }

    .feature-text h2 {
        font-size: 1.5rem;
    }

    .feature-text p {
        font-size: 1rem;
    }

    .download-card {
        min-width: 80%;
        padding: 0.5rem 1rem;
    }

    .download-poster {
        height: 50px;
    }

    .download-text h4 {
        font-size: 0.875rem;
    }

    .download-text p {
        font-size: 0.75rem;
    }

    .faq {
        padding: 3rem 1.5rem;
    }

    .faq-title {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
    }

    .faq-answer p {
        font-size: 1rem;
    }

    .footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .footer-column {
        gap: 0.75rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .feature-text h2 {
        font-size: 1.25rem;
    }

    .feature-text p {
        font-size: 0.875rem;
    }

    .faq-question {
        font-size: 0.875rem;
        padding: 1rem;
    }

    .faq-answer p {
        font-size: 0.875rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
