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

:root {
    --netflix-red: #E50914;
    --netflix-black: #000000;
    --netflix-dark: #141414;
    --netflix-grey: #303030;
    --netflix-light-grey: #757575;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--netflix-black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header Styles */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 50px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--netflix-red);
    letter-spacing: 2px;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

.language-dropdown {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: 1px solid var(--netflix-light-grey);
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.sign-in-btn {
    background-color: var(--netflix-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)),
                url('https://assets.nflxext.com/ffe/siteui/vlv3/9c363af5-4750-4f14-87d1-8125f5276db0/web/IN-en-20251027-TRIFECTA-perspective_b68b1528-3a10-4997-9f99-48ccbdb86626_large.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: none;
    padding-bottom: 0;
    overflow: visible;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 2;
    pointer-events: none;
    line-height: 0;
}

.hero-curve svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

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

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

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

.email-form {
    margin-top: 20px;
}

.email-input-wrapper {
    display: flex;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--netflix-light-grey);
    border-radius: 4px;
    overflow: hidden;
}

.email-input {
    flex: 1;
    background-color: transparent;
    border: none;
    color: var(--white);
    padding: 18px 20px;
    font-size: 16px;
    outline: none;
}

.email-input::placeholder {
    color: var(--netflix-light-grey);
}

.get-started-btn {
    background-color: var(--netflix-red);
    color: var(--white);
    border: none;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background-color 0.3s;
}

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

.arrow {
    font-size: 24px;
    font-weight: 300;
}

/* Section Styles */
section {
    padding: 60px 0;
    border-bottom: 8px solid var(--netflix-grey);
}

.hero-section {
    border-bottom: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.hero-title {
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Trending Section */
.trending-section {
    background-color: var(--netflix-black);
    padding: 60px 20px;
    margin-top: -60px;
    padding-top: 120px;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.carousel-item {
    position: relative;
    flex: 0 0 200px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.poster-number {
    position: absolute;
    bottom: 50px;
    left: 10px;
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.8);
    z-index: 2;
    pointer-events: none;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.carousel-item:hover .poster-image {
    transform: scale(1.1);
}

.movie-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    z-index: 3;
    pointer-events: none;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

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

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

.feature-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.feature-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.8;
}

.icon-tv {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.icon-download {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.5);
}

.icon-devices {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 0 20px rgba(250, 112, 154, 0.5);
}

.icon-kids {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 0 20px rgba(67, 233, 123, 0.5);
}

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

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

.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background-color: var(--netflix-grey);
    color: var(--white);
    border: none;
    padding: 20px 30px;
    font-size: 1.25rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

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

.faq-icon {
    font-size: 2rem;
    font-weight: 300;
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: var(--netflix-grey);
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.faq-answer p {
    padding: 20px 30px;
    font-size: 1.125rem;
    line-height: 1.8;
}

.faq-answer p:first-child {
    padding-top: 30px;
}

.faq-answer p:last-child {
    padding-bottom: 30px;
}

/* Email Section */
.email-section {
    background-color: var(--netflix-black);
    padding: 60px 20px;
    text-align: center;
}

.email-prompt {
    font-size: 1.25rem;
    margin-bottom: 25px;
}

/* Footer */
.footer {
    background-color: var(--netflix-black);
    padding: 60px 20px 30px;
    color: var(--netflix-light-grey);
}

.footer-phone {
    margin-bottom: 30px;
    font-size: 1rem;
}

.footer-phone a {
    color: var(--netflix-light-grey);
    text-decoration: underline;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column a {
    color: var(--netflix-light-grey);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
}

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

.footer-country {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

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

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

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

    .email-input-wrapper {
        flex-direction: column;
        border-radius: 4px;
    }

    .email-input {
        padding: 15px;
    }

    .get-started-btn {
        padding: 15px;
        justify-content: center;
        border-radius: 0 0 4px 4px;
    }

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

    .carousel-item {
        flex: 0 0 150px;
        height: 225px;
    }

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

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

    .faq-answer p {
        font-size: 1rem;
        padding: 15px 20px;
    }

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

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

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

    .carousel-item {
        flex: 0 0 120px;
        height: 180px;
    }

    .poster-number {
        font-size: 2.5rem;
    }

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

