* {
    padding: 0;
    margin: 0;
}

body {
    background-color: rgb(0, 0, 0);
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.main {
    background-image: url("Images/netflix-bg.jpg");
    height: 100vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.main .box {
    opacity: 0.78;
    height: 100vh;
    width: 100%;
    background-color: black;
    position: absolute;
    top: 0;
    z-index: 1;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
    max-width: 70vw;
    height: 60px;
    padding-top: 25px;
    position: relative;
    z-index: 10;
}

nav>div {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav .logo img {
    height: 45px;
    align-items: center;
}

nav .btn {
    position: relative;
    z-index: 10;
}

nav .btn:first-child {
    margin-right: 10px;
    height: 32px;
    width: auto;
    padding: 4px 12px;
    background-color: rgba(22, 22, 22, 0.7);
    border: 1px solid rgba(128, 128, 128, 0.7);
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

nav .red-signin {
    height: 32px;
    padding: 4px 16px;
    background-color: rgb(229, 9, 20);
    border: none;
    color: white;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}

nav .red-signin:hover {
    background-color: rgb(156, 5, 5);
}

nav .btn:first-child img {
    margin-right: 8px;
    height: 16px;
}

.container {
    position: relative;
    z-index: 30;
    color: white;
    text-align: center;
    padding-top: 150px;
    margin: 0 auto;
    max-width: 950px;
}

h1 {
    margin: 0 auto 16px;
    padding: 0;
    color: rgb(255, 255, 255);
    font-weight: 900;
    line-height: 1.1;
    max-width: 700px;
    text-align: center;
    font-size: 3.5rem;
}

.container p {
    font-size: 1rem;
    /* 20px */
    font-weight: 400;
    margin: 12px 0;
    color: white;
    /* font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
}

.container p:first-of-type {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px;
    /* font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
}

.email-signup {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    gap: 10px;
    margin-top: 20px;
}

.input-wrapper {
    position: relative;
}

.email-signup .email-input {
    height: 45px;
    width: 400px;
    /* width: 100%; */
    /* max-width: 500px; */
    color: white;
    padding: 14px 16px 5px 16px;
    background-color: rgba(22, 22, 22, 0.7);
    border: 1px solid rgba(128, 128, 128, 0.7);
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s ease;
}

.email-input:focus+.floating-label,
.email-input:valid+.floating-label {
    top: 12px;
    font-size: 11px;
    transform: translateY(0);
}

.email-input:-webkit-autofill,
.email-input:-webkit-autofill:hover,
.email-input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px rgba(22, 22, 22, 0.7) inset;
    box-shadow: 0 0 0px 1000px rgba(22, 22, 22, 0.7) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.email-input:focus {
    border: 1px solid white;
}

.email-signup .btn-get-started {
    height: 67px;
    width: 200px;
    padding: 5px 16px;
    background-color: rgb(229, 9, 20);
    border: none;
    color: white;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.5rem;
    text-align: center;
}

.email-signup .btn-get-started:hover {
    background-color: rgb(156, 5, 5);
}

.email-signup .btn-get-started img {
    height: 20px;
}

/* .main {
    background-image: url("Images/Netflix BG.jpg");
    height: 100vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
} */


/* Simple straight separator - GOOD ENOUGH */
.separator {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            rgba(207, 12, 113, 0.3) 0%,
            rgb(203, 21, 67) 50%,
            rgba(227, 8, 143, 0.3) 100%);
    position: relative;
    z-index: 1;
}

.separator::after {
    content: '';
    position: absolute;
    top: 0;
    /* Center vertically */
    left: 50%;
    transform: translateX(-50%);
    /* Center both axes */
    width: 500px;
    height: 60px;
    background: radial-gradient(ellipse at top,
            /* Attached to top edge */
            rgba(73, 49, 181, 0.6) 0%,
            transparent 70%);
    filter: blur(10px);
    clip-path: ellipse(50% 100% at 50% 0%);
}

.trending-section {
    background-color: #000;
    padding: 50px;
    color: white;
    position: relative;
}

.trending-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 50px;
    /* font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
}

.movie-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 50px;
    scroll-behavior: smooth;
    max-width: calc(5.5 * (200px + 25px));
}

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

.poster {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 260px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.poster:hover {
    transform: scale(1.05);
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
    display: block;
}

.rank-number {
    position: absolute;
    bottom: 1px;
    left: -30px;
    font-size: 7rem;
    font-weight: 900;
    color: #0b0909;
    -webkit-text-stroke: 2px #f1eded;
    font-family: 'Netflix Sans', Arial, sans-serif;
    line-height: 1;
    z-index: 1;
}

.arrow-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 140px;
    background: rgba(41, 40, 40, 0.7);
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease, background 0.3s ease;
}

.arrow-slider:hover {
    background: rgba(73, 70, 70, 0.7);
}

.arrow-left {
    left: 10px;
    opacity: 0;
    pointer-events: none;
}

.arrow-right {
    right: 90px;
    opacity: 1;
    pointer-events: auto;
}

.more-reasons {
    background-color: black;
    color: white;
    padding: 40px;
    position: relative;
}

.more-reasons h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 50px;
    /* font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
}

.watch-anywhere {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-left: 20px;
    padding: 0 50px;
}

.card {
    background: linear-gradient(149deg, #192247 0%, #210e17 96.86%);
    width: 320px;
    height: 260px;
    padding: 15px;
    border-radius: 15px;
    position: relative;
}

.card h3 {
    padding-bottom: 20px;
    font-weight: 700;
    font-size: 1.5rem;
    /* font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
}

.card p {
    /* font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
    color: #c5b3b3;
}

.card img {
    height: 72px;
    width: 72px;
    position: absolute;
    right: 17px;
    bottom: 17px;
}

.faq-section {
    background-color: black;
    color: white;
    padding: 40px;
    position: relative;
}

.faq-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 50px;
    /* font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
}

.faq-container {
    margin-left: 0;
    padding: 0 50px;
}

.faq-item {
    background-color: #2D2D2D;
    margin-bottom: 10px;
    /*Space between questions*/
    overflow: hidden;
    /* Prevents content from spilling out */
    transition: all 0.3s ease;
    /* Smooth animations for opening/closing */
}

.faq-question {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: none;
    color: white;
    border: none;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    /* font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
    transition: background-color 0.3s ease;
}

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

.faq-question>img {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]>img {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 32px;
    /* font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
}

/* When open, add padding (controlled by JS for max-height) */
.faq-answer.open {
    padding: 20px 32px 24px 32px;
}

.answer-content {
    color: white;
    /* White text */
    line-height: 1.5;
    /* Comfortable line spacing */
}

.answer-content p {
    margin-bottom: 16px;
    /* Space between paragraphs */
    font-size: 1.5rem;
    /* Slightly smaller than question */
    font-weight: 500;
    /* Regular weight */
}

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

.bottom-cta {
    padding: 40px 30px;
    text-align: center;
}

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

.container-two p {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    /* font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
}

.container-two .email-input {
    width: 500px;
}

.email-signup {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

.site-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    margin-top: 10px;
    /* font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; */
}

.footer-container {
    max-width: 1000px;
    margin: 0 90px;
    padding: 0 20px;
}

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

.footer-title a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column a {
    display: block;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px;
}

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

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

.footer-language .btn {
    background-color: rgba(22, 22, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

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


/* ===================================
   RESPONSIVE DESIGN - FINAL
   =================================== */


/* Large Tablet (769px - 1024px) */
@media (max-width: 1024px) {

    nav {
        max-width: 85vw;
    }

    nav .logo img {
        height: 40px;
    }

    .main {
        height: 800px;
    }

    .main .box {
        height: 800px;
    }

    .container {
        max-width: 85vw;
        padding-top: 130px;
    }

    h1 {
        font-size: 3rem;
    }

    .container p:first-of-type {
        font-size: 1.3rem;
    }

    .email-input {
        width: 350px !important;
        height: 48px;
    }

    .btn-get-started {
        height: 65px;
        width: 100px;
        font-size: 1.3rem;
    }

    /* Movie Slider - Show 4.5 posters */
    .movie-slider {
        max-width: calc(5 * (150px + 22px));
        gap: 22px;
        padding: 0 60px;
    }


    .poster {
        width: 150px;
        height: 200px;
        margin-left: 15px;
    }

    .rank-number {
        font-size: 6.8rem;
        left: -25px;
    }

    .arrow-slider {
        width: 38px;
        height: 120px;
    }

    .arrow-left {
        left: 10px;
    }

    .arrow-right {
        right: 5px;
    }

    .watch-anywhere {
        flex-direction: column;
        align-items: stretch;
        padding: 0 40px;
        margin-left: 0;
        gap: 20px;
    }

    .card {
        width: 100%;
        min-width: auto;
        height: auto;
        min-height: 240px;
    }
}

/* iPad / Tablet (481px - 768px) */
@media (max-width: 768px) {

    /* Navigation */
    nav {
        max-width: 90vw;
        padding-top: 18px;
        height: 50px;
    }

    nav .logo img {
        height: 32px;
    }

    nav .btn:first-child {
        height: 30px;
        padding: 4px 10px;
        font-size: 0.85rem;
    }

    nav .btn:first-child img {
        height: 14px;
        margin-right: 6px;
    }

    nav .red-signin {
        height: 30px;
        padding: 4px 14px;
        font-size: 0.85rem;
    }

    /* Hero Section */
    .container {
        padding-top: 110px;
        max-width: 88vw;
    }

    h1 {
        font-size: 2.5rem;
    }

    .container p {
        font-size: 1rem;
    }

    .container p:first-of-type {
        font-size: 1.2rem;
        margin: 18px 0;
    }

    /* Email Signup */
    .email-signup {
        gap: 10px;
        padding: 0;
    }

    .email-input {
        width: 320px !important;
        height: 45px;
        font-size: 15px;
    }

    .floating-label {
        font-size: 15px;
    }

    .btn-get-started {
        width: 160px;
        height: 60px;
        font-size: 1.2rem;
    }

    .btn-get-started img {
        height: 18px;
    }

    /* Sections */
    .trending-section,
    .more-reasons,
    .faq-section {
        padding: 40px 25px;
    }

    .trending-section h2,
    .more-reasons h2,
    .faq-heading {
        font-size: 1.4rem;
        margin: 0 0 25px 25px;
    }

    /* Movie Slider - Show 5.5 posters (same as laptop) */
    .movie-slider {
        padding: 0 40px;
        max-width: calc(5.5 * (150px + 18px));
        gap: 18px;
        margin-right: 40px;
        margin-left: 20px;
    }

    .poster {
        width: 150px;
        height: 200px;
    }

    .rank-number {
        font-size: 5rem;
        left: -18px;
        -webkit-text-stroke: 2px #f1eded;
    }

    /* Arrows visible on tablet */
    .arrow-slider {
        width: 32px;
        height: 125px;
    }

    .arrow-left {
        left: 8px;
    }

    .arrow-right {
        right: 10px;
    }

    /* Cards - Full width, stacked */
    .watch-anywhere {
        flex-direction: column;
        align-items: stretch;
        padding: 0 25px;
        margin-left: 0;
        gap: 18px;
    }

    .card {
        width: 100%;
        min-width: auto;
        height: auto;
        min-height: 230px;
    }


    .card h3 {
        font-size: 1.4rem;
    }

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

    .card img {
        height: 68px;
        width: 68px;
    }

    /* FAQ */
    .faq-container {
        padding: 0 25px;
    }

    .faq-question {
        font-size: 1.25rem;
        padding: 22px 26px;
        height: 75px;
    }

    .faq-question>img {
        width: 30px;
        height: 30px;
    }

    .faq-answer {
        padding: 0 26px;
    }

    .faq-answer.open {
        padding: 18px 26px 22px;
    }

    .answer-content p {
        font-size: 1.15rem;
    }

    /* Bottom CTA */
    .bottom-cta {
        padding: 35px 25px;
    }

    .container-two p {
        font-size: 1rem;
    }

    .container-two .email-input {
        width: 350px !important;
    }

    /* Footer */
    .footer-container {
        margin: 0 35px;
    }

    .footer-grid {
        gap: 35px;
    }

    .footer-column a {
        font-size: 0.9rem;
    }
}

/* Mobile (320px - 480px) */
@media (max-width: 480px) {

    /* Navigation */
    nav {
        max-width: 100%;
        padding: 12px 15px 0;
        height: 40px;
    }

    .main {
        height: 500px;
    }

    .main .box {
        height: 500px;
    }

    nav .logo img {
        height: 25px;
    }

    nav>div {
        gap: 8px;
    }

    nav .btn:first-child {
        height: 26px;
        padding: 3px 8px;
        font-size: 0.75rem;
        margin-right: 0;
    }

    nav .btn:first-child img {
        height: 12px;
        margin-right: 4px;
    }

    nav .red-signin {
        height: 26px;
        padding: 3px 10px;
        font-size: 0.75rem;
    }

    /* Hero Section */
    .container {
        padding-top: 70px;
        max-width: 92vw;
    }

    h1 {
        font-size: 1.6rem;
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .container p {
        font-size: 0.85rem;
        margin: 8px 0;
    }

    .container p:first-of-type {
        font-size: 0.95rem;
        margin: 10px 0;
        font-weight: 500;
    }

    /* Email Signup - Stack vertically */
    .email-signup {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 15px;
        margin-top: 15px;
    }

    .input-wrapper {
        width: 90%;
    }

    .email-input {
        /* width: 100% !important; */
        height: 35px;
        font-size: 16px;
        /* Prevents iOS zoom */
        padding: 14px 14px 4px 14px;
    }

    .floating-label {
        font-size: 14px;
        left: 14px;
    }

    .email-input:focus+.floating-label,
    .email-input:valid+.floating-label {
        font-size: 10px;
        top: 8px;
    }

    .btn-get-started {
        width: 100%;
        height: 36px;
        font-size: 1rem;
        padding: 4px 12px;
        margin-left: 70px;
    }

    .btn-get-started img {
        height: 15px;
    }

    /* Separator */
    .separator {
        height: 2px;
    }

    .separator::after {
        width: 350px;
        height: 50px;
        filter: blur(8px);
    }

    /* Sections */
    .trending-section,
    .more-reasons,
    .faq-section {
        padding: 25px 15px;
    }

    .trending-section h2,
    .more-reasons h2,
    .faq-heading {
        font-size: 1.1rem;
        margin: 0 0 18px 0;
        font-weight: 700;
    }

    /* Movie Slider - Show 2 posters only */
    .movie-slider {
        padding: 0 15px;
        max-width: none !important;
        gap: 10px;
    }

    .poster {
        width: 110px;
        height: 145px;
        margin-left: 20;
    }

    .poster:first-child {
        margin-left: 5px;
    }

    .rank-number {
        font-size: 3.8rem;
        left: -10px;
        bottom: -2px;
        -webkit-text-stroke: 1.5px #f1eded;
    }

    /* NO ARROWS on mobile */
    .arrow-slider {
        /* display: none !important; */
        height: 100px;
        width: 30px;
    }

    .watch-anywhere {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin-left: 0;
        gap: 12px;
    }

    .card {
        width: 90%;
        min-width: auto;
        height: auto;
        min-height: 200px;
        padding: 18px;
    }

    .card h3 {
        font-size: 1.1rem;
        padding-bottom: 12px;
    }

    .card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .card img {
        height: 55px;
        width: 55px;
        right: 15px;
        bottom: 15px;
    }

    /* FAQ */
    .faq-container {
        padding: 0;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 16px 18px;
        height: auto;
        min-height: 58px;
    }

    .faq-question>img {
        width: 22px;
        height: 22px;
    }

    .faq-answer {
        padding: 0 18px;
    }

    .faq-answer.open {
        padding: 14px 18px 18px;
    }

    .answer-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    /* Bottom CTA */
    .bottom-cta {
        padding: 25px 15px;
    }

    .container-two {
        max-width: 100%;
    }

    .container-two p {
        font-size: 0.85rem;
        text-align: center;
        margin-bottom: 12px;
        padding: 0 10px;
    }

    .container-two .email-input {
        width: 100% !important;
    }

    /* Footer */
    .footer-container {
        margin: 0 15px;
        padding: 0 10px;
    }

    .footer-title {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }

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

    .footer-column {
        min-width: auto;
    }

    .footer-column a {
        font-size: 0.75rem;
        padding: 7px 0;
        white-space: normal;
    }

    .footer-language {
        margin: 25px 0;
    }

    .footer-language .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .footer-language .btn img {
        height: 14px;
    }

    .footer-country {
        font-size: 0.75rem;
        margin-top: 15px;
    }
}

/* Extra Small Mobile (320px - 360px) */
@media (max-width: 360px) {
    nav .logo img {
        height: 22px;
    }

    nav .btn:first-child {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    nav .red-signin {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .container p:first-of-type {
        font-size: 0.85rem;
    }

    .poster {
        width: 95px;
        height: 125px;
    }

    .rank-number {
        font-size: 3.2rem;
        left: -8px;
    }

    .card {
        min-height: 180px;
        padding: 15px;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.8rem;
    }

    .card img {
        height: 50px;
        width: 50px;
    }

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

    .answer-content p {
        font-size: 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
