@import url(https://fonts.googleapis.com/css2?family=Martel+Sans:wght@200;300;400;600;700;800;900&display=swap);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Martel Sans', 'Poppins';
}

.netflix-wrapper {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 90vh;
    background-image: url(./Images/bgimg.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: max(1200px, 100vw);
    color: white;
}

.tint-shadow {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.8;
}

.navbar-section {
    max-width: 80vw;
    height: 120px;
    margin: 0 auto;
    margin-bottom: -120px;
    padding: 0 32px;
}

header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    position: relative;
    z-index: 1;
    width: 10rem;
    margin: 0 0 0 16px;
}

.navbar-right {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    margin: 0 0 0 -12px;
    padding: 3px;
    gap: 10px;
}

#language-selector {
    background: none;
    border-radius: 10px;
    font-size: 1.5rem;
    color: white;
}

.signin-button {
    text-decoration: none;
    background-color: red;
    border-radius: 10px;
    width: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-content: center;
    text-align: center;

    transition-property: background-color, border-color, box-shadow;
    transition-duration: 0.25s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.68, 0.06);
    transition-delay: 0s;
    transition-behavior: normal;
}

.signin-button:hover {
    background-color: #c62828;
    /* Darkens the red slightly */
    border-color: #c62828;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

a {
    text-decoration: none;
    color: white;
}

.netflix-hero-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 10px;
    text-align: center;
}

.hero-container {
    width: 40%;
}

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

p {
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 15px;
}

h3 {
    color: white;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
}

.form-align {
    display: flex;
    gap: 15px;
}

.email-box {
    width: 60%;
    height: 3.5rem;
    background: none;
    border: 1px solid white;
    border-radius: 8px;
    padding-left: 5%;
    font-size: large;
    font-weight: 500;
}

.email-box::placeholder {
    color: rgb(227, 223, 223);
}

.submit-button {
    color: white;
    width: 30%;
    background-color: red;
    border: none;
    font-size: large;
    border-radius: 8px;

    transition-property: background-color, border-color, box-shadow;
    transition-duration: 0.25s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.68, 0.06);
    transition-delay: 0s;
    transition-behavior: normal;
}

.submit-button:hover {
    background-color: #c62828;
    /* Darkens the red slightly */
    border-color: #c62828;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.curve-animation {
    /* Kept relative and 100% width from your original code */
    position: relative;
    width: 100%;
    height: 100px;

    /* CRITICAL: Hides the parts of the curve that extend past the edges */
    overflow: hidden;

    /* Assuming a dark background behind the curve */
    background-color: #000000;
}

.curve-container {
    position: absolute;
    /* Push it down slightly to create the arc in the viewing area */
    top: 30px;

    /* Overhang the sides so the curve is smooth at the edges, not sharp */
    left: -10%;
    width: 120%;
    height: 200px;

    /* Your original gradient */
    background-image: linear-gradient(to right, rgb(33, 13, 22) 16%, rgb(184, 40, 105));

    /* Creates the elliptical top curve */
    border-radius: 50% / 50px 50px 0 0;
}

.curve-container::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50% / 50px 50px 0 0;

    /* THE FIX: A radial gradient centered at the top that fades into black */
    background: radial-gradient(ellipse 40% 100% at top center, rgba(34, 53, 159, 0.8) 0%, #000000 40%);
}

.lower-section {
    background-color: #000000;
    min-height: 100%;
    margin-top: -20px;
}

.trending-section {
    width: 80vw;
    margin: 0 auto;
    position: relative;
}

.trending-section-header {
    color: white;
    width: 100%;
    font-weight: 600;
}

.trending-section-card-area {
    position: relative;
    width: 100%;
    /* Black background like Netflix */
    padding: 20px 0;
    overflow: hidden;
}

.trending-cards {
    position: relative;
    /* So the number can be positioned absolute to this card */
    flex: 0 0 160px;
    /* Fixed width so they don't shrink (Adjust as needed) */
    aspect-ratio: 2 / 3;
    /* background-image: url(./Images/No1.webp); */
    object-fit: cover;
    border-radius: 6px;
    z-index: 2;
    transition-duration: 0.8s;
}

.trending-cards:hover {
    scale: 1.11;
}

.trending-number {
    position: absolute;
    top: 40%;
    left: -15%;

    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    font-family: Arial, sans-serif;

    -webkit-text-stroke: 3px #fff;
    z-index: 10;
}

.slider-track {
    display: flex;
    gap: 40px;
    /* Space between posters to make room for numbers */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 60px;
    /* Crucial: padding so the first number isn't cut off */

    /* Hides the scrollbar for a cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

#trending1 {
    background-image: url(./Images/No1.webp);
}

#trending2 {
    background-image: url(./Images/No2.webp);
}

#trending3 {
    background-image: url(./Images/No3.webp);
}

#trending4 {
    background-image: url(./Images/No4.webp);
}

#trending5 {
    background-image: url(./Images/No5.webp);
}

#trending6 {
    background-image: url(./Images/No6.webp);
}

#trending7 {
    background-image: url(./Images/No7.webp);
}

#trending8 {
    background-image: url(./Images/No8.webp);
}

#trending9 {
    background-image: url(./Images/No9.webp);
}

#trending10 {
    background-image: url(./Images/No10.webp);
}

.benefit-card-section {
    width: 80vw;
    margin: 0 auto;

}

h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 10px 0;
    padding: 10px;
}

.benefit-section-card-space {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.benefit-cards {
    position: relative;
    width: 24%;
    aspect-ratio: 2 / 2;
    color: white;
    border: 1px solid black;
    border-radius: 10px;
    background-image: linear-gradient(149deg, rgb(25, 34, 71) 0%, rgb(33, 14, 23) 96.86%);
    text-size-adjust: 100%;
    padding: 15px 16px 40px;
}

.benefit-cards h2 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 500;
    font-family: 'Martel Sans', 'Poppins';
}

.benefit-cards p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 400;
}

.headache {
    position: absolute;
    bottom: 5%;
    right: 5%;
}

.faq {
    width: 80vw;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.faq-button {
    display: flex;
    background-color: rgb(59, 58, 58);
    color: white;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    font-size: 18px;
    padding: 5px 20px;
}

.repeatlogin {
    width: 80vw;
    margin: 0 auto;
    margin-top: 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    width: 80vw;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
}

.span-num {
    margin: 30px auto;
}

.table {
    display: flex;
    justify-content: space-between;
    margin: 20px auto;
}

.table ul {
    list-style-type: none;
}

.table a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.min-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 30px;
    margin: 0 auto;
    margin-top: 30px;
}

.min-container a {
    text-decoration: underline;
    color: blue;
}

/* Tablet Screens (1024px and below) */
@media (max-width: 1024px) {

    /* Widen the hero text container */
    .hero-container {
        width: 70%;
    }

    /* Make the 4 benefit cards wrap into a 2x2 grid */
    .benefit-section-card-space {
        flex-wrap: wrap;
        gap: 15px;
    }

    .benefit-cards {
        width: calc(50% - 10px);
        margin-bottom: 10px;
    }
}

/* Mobile Screens (768px and below) */
@media (max-width: 768px) {

    /* Expand main sections to use more horizontal space on small screens */
    .navbar-section,
    .trending-section,
    .benefit-card-section,
    .faq,
    .repeatlogin,
    footer {
        width: 90vw;
    }

    /* Adjust Navbar */
    header .logo {
        width: 7rem;
    }

    #language-selector {
        font-size: 1rem;
    }

    .signin-button {
        width: 75px;
        font-size: 0.9rem;
    }

    /* Adjust Hero Section Typography */
    .hero-container {
        width: 100%;
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
        /* Scales down the massive 60px font */
    }

    p {
        font-size: 1.2rem;
    }

    /* Stack the email input and submit button */
    .form-align {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .email-box,
    .submit-button {
        width: 100%;
        max-width: 450px;
    }

    .submit-button {
        padding: 12px;
        height: 3.5rem;
    }

    /* Stack the benefit cards into a single column */
    .benefit-section-card-space {
        flex-direction: column;
    }

    .benefit-cards {
        width: 100%;
        aspect-ratio: auto;
        min-height: 180px;
        /* Prevents text overflow when stacked */
    }

    /* Adjust Footer Links into a 2-column grid */
    .table {
        flex-wrap: wrap;
        gap: 20px;
    }

    .table ul {
        width: 45%;
    }
}

/* Small Mobile Screens (480px and below) */
@media (max-width: 480px) {

    .container {
        height: fit-content;
        min-height: 70vh;
    }

    .navbar-section {
        width: 100vw;
        min-width: 373px;
        height: 4rem;
        margin: 0 auto;
        margin-bottom: -1rem;
        padding: 0;
    }

    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 0 auto;
        padding: 1rem 0.25rem;
        margin-bottom: 1rem;
    }

    .logo {
        position: relative;
        z-index: 1;
        width: 1rem;
        display: flex;
        align-items: center;
        padding-right: 1rem;
    }

    .navbar-right {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 1px;
        gap: 1rem;
    }

    #language-selector {
        background: none;
        border-radius: 5px;
        font-size: 0.75rem;
        color: white;
        height: 1.875rem;
    }

    .signin-button {
        text-decoration: none;
        background-color: red;
        border-radius: 5px;
        width: 3.25rem;
        height: 1.875rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        align-content: center;
        text-align: center;
        font-size: 0.75rem;

        transition-property: background-color, border-color, box-shadow;
        transition-duration: 0.25s;
        transition-timing-function: cubic-bezier(0.4, 0, 0.68, 0.06);
        transition-delay: 0s;
        transition-behavior: normal;
    }

    .hero-container {
        margin-top: 5rem;
        padding-top: 2rem;
    }

    h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    p {
        font-size: 1rem;
    }

    .submit-button {
        width: 12rem;
    }

    .form-align1 {
        display: flex;
        align-items: start;
    }

    /* Slightly shrink trending cards so more of the next card peeks out */
    .trending-cards {
        flex: 0 0 130px;
    }

    .trending-number {
        font-size: 100px;
        left: -15%;
    }

    /* Stack footer links into a single column */
    .table ul {
        width: 100%;
        margin-bottom: 10px;
    }

    .table ul li {
        margin-bottom: 10px;
    }
}