/* CSS Custom Properties */
:root {
    --netflix-red: #E50914;
    --netflix-black: #000000;
    --netflix-dark-gray: #141414;
    --netflix-gray: #333333;
    --netflix-light-gray: #757575;
    --netflix-white: #FFFFFF;
    --netflix-background: #000000;
    --netflix-card-bg: #2d2d2d;
    --netflix-gradient-bg: linear-gradient(135deg, #1a1a2e, #16213e);

    --font-family: 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 4px;
    --transition: all 0.3s ease;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--netflix-background);
    color: var(--netflix-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1;
}

h1 {
    font-size:2.5rem;
    font-weight: 900;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    font-size: 2rem;
    font-weight: 400;
}

/* Container */
.container {
    max-width: 90vw;
    margin: 0 30px;
    padding: 0 20px;
}

.wide-container {
    max-width: 1170px;
    margin: 0 10px;
    padding: 0 10px;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--netflix-red);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--netflix-white);
}

.btn-primary:hover {
    background-color: #B8070F;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: 100;
    border-radius: 5px;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 90vw;
    height: 0px;
    margin-top: 20px;
    margin-left: 60px;
    margin-right: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    height: 20px;
}

.nav-brand svg,
.nav-brand img {
    height: 40px;
    width: auto;
}

.netflix-logo {
    height: 45px;
    width: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
}

.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--netflix-white);
    height: 100%;
}

.language-selector select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--netflix-white);
    padding: 5px 0px 5px 30px;
    border-radius: 5px;
    font-size: 1rem;
    height: 35px;
    min-width: 115px;
    appearance: none;
    background-image:
        url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: left 10px center, right 15px center;
    background-size: 1rem 1rem, 10px 10px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://assets.nflxext.com/ffe/siteui/vlv3/3e4bd046-85a3-40e1-842d-fa11cec84349/web/IN-en-20250818-TRIFECTA-perspective_4bd1b66d-bbb6-4bc6-ba8f-ecbba53a1278_large.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    background-repeat: no-repeat;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    padding: 0 20px;
    margin-top: 100px;
}

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

.hero-content p {
    font-size: 1rem;
    /* margin-bottom: 10px; */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

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

.hero-subtext {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Email Signup */
.email-signup {
    margin-top: 10px;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
}

.input-group input {
    flex: 1;
    min-width: 200px;
    padding: 25px 20px;
    border: 1px solid rgba(128, 128, 128, 0.7);
    border-radius: 4px;
    background: rgba(22, 22, 22, 0.7);
    color: var(--netflix-white);
    font-size: 1rem;
    height: 56px;
}

.input-group input::placeholder {
    color: rgb(255, 255, 255);
}

.input-group input:focus {
    outline: none;
    border-color: var(--netflix-white);
    background: rgba(22, 22, 22, 0.9);
}

/* Trending Section */
.trending-section {
    padding: 20px 0;
    position: relative;
    width: 100%;
    margin-top: -1px;
}

.trending-section .container {
    max-width: 90vw;
    position: relative;
    z-index: 2;
}

.section-title {
    margin-bottom: 32px;
    padding-left: 20px;
    font-size: 1.5rem;
    font-weight: 500;
}

.trending-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

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

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

.trending-item {
    position: relative;
    min-width: 150px;
    height: 200px;
    border-radius: 8px;
    overflow: visible;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-right: 8px;
    margin-left: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2d2d2d;
    /* Fallback color */
}

.trending-item:hover {
    transform: scale(1.05) translateY(-4px);
    z-index: 10;
}

/* Updated rank number styling */
.rank-number {
    position: absolute;
    bottom: 30px;
    left: -20px;
    color: transparent;
    font-size: 5rem;
    font-weight: 200;
    line-height: 0.7;
    z-index: 100;
    font-family: 'Arial Black', sans-serif;
    -webkit-text-stroke: 3px var(--netflix-white);
    text-stroke: 3px var(--netflix-white);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Individual trending items with working placeholder images */
.trending-item.item-1 {
     background-image: url('https://occ-0-2041-3663.1.nflxso.net/dnm/api/v6/mAcAr9TxZIVbINe88xb3Teg5_OA/AAAABe_304EcJbpttONSbGl3zfaTdWPswLGgXu18_eyjmzqIyCp5mjb653PD1OizkOWQvgCOq3lAFENWMpc2MU9vDtJ14UpjxmQwgI6MPy4MbeArI6_RkdiWNj9Ocb2gtWYf1nMk.jpg?r=2b8');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trending-item.item-2 {
     background-image: url('https://occ-0-2041-3663.1.nflxso.net/dnm/api/v6/mAcAr9TxZIVbINe88xb3Teg5_OA/AAAABZMXtyZhDUnD0kSRd7nv_jCtrwcj-vKdttol86bKp4F0v6h120lBbU66UTdSHm7LCXq1-h6wh-unno24onpVG7GABmgXnO27lb09jghM0p9tejFXkcmx8DS_KgddPp3z2iCS.jpg?r=c28');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trending-item.item-3 {
     background-image: url('https://occ-0-2041-3663.1.nflxso.net/dnm/api/v6/mAcAr9TxZIVbINe88xb3Teg5_OA/AAAABb4gKZLhdC-EVRjZLQK3urvHlgV-lANKan3WXqOpghQwCT7RHMVQPGeaudSbc64jnCVOO9sKliR5aQowrDencoRfw-S3F134nJQ.jpg?r=d95');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trending-item.item-4 {
     background-image: url('https://occ-0-2041-3663.1.nflxso.net/dnm/api/v6/mAcAr9TxZIVbINe88xb3Teg5_OA/AAAABZV4NmkRBbtoq8O_5Aro81rbq4CRwiku0decuhWlpXGKK4pGsQ9LDCWu_Yf0jv8z5goKbOMQxZ-7ZJDxzXDBbkQcobG_TzvyQsNq6FqbmzhZ-z2jB5kKb1mk6-4mwpXXdznp.jpg?r=609');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trending-item.item-5 {
     background-image: url('https://occ-0-2041-3663.1.nflxso.net/dnm/api/v6/mAcAr9TxZIVbINe88xb3Teg5_OA/AAAABdOjPhcw0ei0impBlDZkIwlvEpMd-wxIYsgebtid4_B119iFFN414pGNltFGesesJLjxi0oHn8bvcvEJ05dVCxq-FTJ8qNqP8AJniQChuCAsMs_02LMuc2KXIDXsZawL7vOj.jpg?r=4f3');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trending-item.item-6 {
     background-image: url('https://occ-0-2041-3663.1.nflxso.net/dnm/api/v6/mAcAr9TxZIVbINe88xb3Teg5_OA/AAAABSBGJoQ0k2B9-eb4IAfopMoQlulqXfsG5r2G0nM9CTAyEf5oWYOQ1GB9iAQ0exY95P6m9a3JuzTwiVTC_OfouvikM374cD5inVAKuLfUC994jSnXVThyUwsD6Wkv_NMDVVrh.jpg?r=fb9');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trending-item.item-7 {
     background-image: url('https://occ-0-2041-3663.1.nflxso.net/dnm/api/v6/mAcAr9TxZIVbINe88xb3Teg5_OA/AAAABViqdtr9ZatqPa3P9T418vFq3iq4Ma4x1JUNFKxbIS5dPSoG_5VkNoEKXKBODntJNx_mCT_z0fcGegToBNEHLaVr3qyqSGDY67I.jpg?r=062');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trending-item.item-8 {
     background-image: url('https://occ-0-2041-3663.1.nflxso.net/dnm/api/v6/mAcAr9TxZIVbINe88xb3Teg5_OA/AAAABct1RW0RPLDOf1ivX-O0WGjNZ5Cb9XH086B0iar_brke2zA_qSPaseR9omexohvwcqSIm6RzR7tnnEbdVFCOxWUK6B7IEWrgXkTICkd1stuvXZlhnBW8ptU-G1umAuxG_A_y.jpg?r=81a');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trending-item.item-9 {
     background-image: url('https://occ-0-2041-3663.1.nflxso.net/dnm/api/v6/mAcAr9TxZIVbINe88xb3Teg5_OA/AAAABWS-EyoFBa-Svry6VvSCb6i3SN_WT20j-Iy5uiKWKH9rNk9qGhr97KLX_so6qg-EGRk5kyuXamvO6bwxx_DptuTt_iIGWIAxkoA.jpg?r=c23');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trending-item.item-10 {
     background-image: url('https://occ-0-2041-3663.1.nflxso.net/dnm/api/v6/mAcAr9TxZIVbINe88xb3Teg5_OA/AAAABV5rwf2fuYX2i-sYcG48oLpkL_dI0wXwdPApVds-33GmNPAx5AY1hwmOBuEzvSw4lP2jJt4gai_uX7vG87sq-4P-7zmtxCMw290.jpg?r=cc2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Reasons Section */
.reasons-section {
    padding: 40px auto;
    width: 100%;
    position: relative;
}

.reasons-section .wide-container {
    min-width: 95vw;
    margin: 0 auto;
    padding: 0 20px;
}

.reasons-section h2 {
    margin-bottom: 28px;
    font-size: 1.5rem;
    font-weight: 500;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    min-width: 85vw;
    margin: 10px 10px;
    padding: 0 20px;
}

.reason-card {
    background: linear-gradient(135deg, #2a2d5f 0%, #1a1a3e 100%);
    border-radius: 16px;
    padding: 12px 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reason-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--netflix-white);
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
    margin-top: 10px;
}

.reason-card p {
    font-size: 1rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.578);
    margin-bottom: 70px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.reason-icon {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    opacity: 0.9;
    background: rgba(255, 64, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-top: 20px;
}

.reason-icon svg {
    width: 50%;
    height: 50%;
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.faq-section {
    padding: 10px 0 10px;
    width: 90vw;
    margin: 40px 20px 0px;
}

.faq-section .wide-container {
    min-width: 90vw;
    margin: 0 40px;
    padding: 0 20px;
}

.faq-section h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 500;
}

.faq-list {
    min-width: 85vw;
    margin: 0px auto;
}

.faq-item {
    margin-bottom: 12px;
    overflow: hidden;
    align-items: center;
    width: 85vw;
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgb(50, 48, 46);
    border-bottom: none;
    color: var(--netflix-white);
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-family: inherit;
    min-height: 90px;
}

.faq-question:hover {
    background: var(--netflix-gray);
}

.faq-question i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

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

.faq-toggle:checked+.faq-question i {
    transform: rotate(45deg);
}

.faq-toggle:checked~.faq-answer {
    max-height: 600px;
}

.faq-answer p {
    padding: 0 20px 32px;
    font-size: 1.5rem;
    line-height: 1.2;
    background-color: rgb(50, 48, 46);
    margin-bottom: 20px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.cta-section {
    position: relative;
    text-align: center;
    padding: 60px 0;
    margin: auto;
}
.cta-section .input-group{
    position: relative;
    width: 40rem;
    margin: auto;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 20px;
    margin-left: 25%;
    margin-right: 25%;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--netflix-background);
    width: 100%;
    margin-left: 20px;
}

.footer .wide-container {
    min-width: 95vw;
    margin: 0 auto;
    padding: 0 10px;
}

.footer-intro {
    margin-bottom: 32px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-intro a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
    text-decoration: underline var(--netflix-light-gray);
    gap: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-language {
    margin-top: 70px;
    margin-bottom: 40px;
}

.footer-country {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 4rem;
}

.footer-disclaimer p {
    color: var(--netflix-light-gray);
    font-size: 1rem;
    margin-bottom: 10rem;
}

.footer-disclaimer a {
    color: blue;
    text-decoration: underline;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .faq-list {
        max-width: 90vw;
    }

    .faq-question {
        padding: 28px 32px;
        font-size: 1.5rem;
        min-height: 70px;
    }

    .faq-answer p {
        padding: 0 32px 28px;
        font-size: 1.25rem;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
        max-width: 90vw;
    }

    .wide-container {
        max-width: 90vw;
        padding: 0 20px;
    }

    .trending-item {
        width: 200px;
        min-width: 200px;
        height: 300px;
    }

    .carousel-container {
        gap: 12px;
    }

    .rank-number {
        font-size: 6rem;
        bottom: -12px;
        left: -15px;
        -webkit-text-stroke: 2px var(--netflix-white);
        text-stroke: 2px var(--netflix-white);
    }

    .reasons-section h2,
    .faq-section h2 {
        font-size: 2.5rem;
    }

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

@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
        margin-top: 20px;
        margin-left: 0;
        margin-right: 0;
        max-width: 100vw;
    }

    .hero-background{
        width: 90vw;
    }

    .nav-brand,
    .nav-actions {
        height: 50px;
    }

    .nav-brand svg,
    .nav-brand img,
    .netflix-logo {
        height: 38px;
    }

    .nav-actions {
        gap: 12px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .input-group {
        display: flex;
        flex-direction: row;
        align-content: center;
    }

    .input-group input {
        min-width: 150px;
    }

    .reasons-section {
        padding: 40px 0;
    }

    .reasons-grid {
        padding: 0 16px;
    }

    .reason-card {
        padding: 24px;
        min-height: 200px;
    }

    .trending-section {
        padding: 40px 0;
    }

    .trending-item {
        width: 160px;
        min-width: 160px;
        height: 240px;
    }

    .carousel-container {
        gap: 10px;
        padding: 0 16px;
    }

    .rank-number {
        font-size: 5rem;
        bottom: -10px;
        left: -12px;
        -webkit-text-stroke: 2px var(--netflix-white);
        text-stroke: 2px var(--netflix-white);
    }

    .faq-section {
        padding: 80px 0 100px;
    }

    .faq-question {
        padding: 24px 28px;
        font-size: 1.375rem;
        min-height: 65px;
    }

    .faq-question i {
        font-size: 1.5rem;
        margin-left: 15px;
    }

    .faq-answer p {
        padding: 0 28px 24px;
        font-size: 1.125rem;
    }

    .reason-card h3 {
        font-size: 1.5rem;
    }

    .reason-card p {
        font-size: 1rem;
    }

    .reasons-section h2,
    .faq-section h2 {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }

    .footer {
        padding: 60px 0 32px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-subtext {
        font-size: 0.9rem !important;
    }

    .section-title {
        font-size: 1.75rem;
        padding-left: 16px;
    }

    .trending-item {
        width: 140px;
        min-width: 140px;
        height: 200px;
    }

    .carousel-container {
        padding: 0 16px;
        gap: 8px;
    }

    .rank-number {
        font-size: 4rem;
        bottom: -8px;
        left: -10px;
        -webkit-text-stroke: 2px var(--netflix-white);
        text-stroke: 2px var(--netflix-white);
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

@media (prefers-high-contrast: high) {
    :root {
        --netflix-light-gray: #CCCCCC;
    }

    .btn-primary {
        border: 2px solid var(--netflix-white);
    }

    .faq-question {
        border: 1px solid var(--netflix-light-gray);
    }
}

/* Print styles */
@media print {

    .hero-background,
    .reason-card,
    .trending-item {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}