/* Global Settings */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

/* Header and opacity setting */
header {
    height: 80vh;
    width: 100%;
    background: url(assets/hero.jpg) center/cover no-repeat;
    position: relative;
}

.hero-opacity {
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Navbar(logo+button) */

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    height: 80px;
    width: 100%;
    padding: 0px 5%;
    flex-wrap: wrap;
    gap: 10px
}

.nav_left img {
    width: 150px;
}

.nav_btn {
    height: 32px;
    width: 80px;
}

.start-btn {
    height: 56px;
    width: 200px;
    font-size: 18px;
    white-space: nowrap;
    font-size: clamp(14px, 2vw, 18px);

}

/* Common stylings of sign-in+start-btn */
.nav_btn,
.start-btn {
    background-color: #e50914;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav_btn:hover,
.start-btn:hover {
    background-color: #c40812;
}

/* Hero Image Centered text */
.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    height: calc(80vh - 80px);
    line-height: 1.1;
    margin: 20px auto;
    max-width: 600px;
}

.header-content h1 {
    font-size: clamp(26px, 5vw, 56px);
}

/* first paragraph styling */

.header-content>:nth-child(2) {
    font-weight: bold;
    font-size: 20px;
}

/* SEARCH SECTION */

.search {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
}

.search-input {
    height: 56px;
    padding: 15px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid gray;
    outline: none;
    border-radius: 4px;
    caret-color: white;
}

.search-input::placeholder {
    color: rgb(200, 200, 200);
}

.search-input:focus {
    border-color: white;
}

.terms-info {
    padding-top: 10px;
}

/* Modifier Classes of input */

.input-small {
    width: 400px;
    max-width: 90vw;
}

.input-large {
    width: 500px;
    max-width: 90vw;
}

/* container setting */

.container {
    width: 80%;
    margin: auto;
    padding: 40px 20px;
}

.section-title {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin: 20px 0;
    padding: 10px;
}

/* Slider and Cards Section */

.slider {
    display: flex;
    align-items: center;
    position: relative;
}

.cards {
    display: flex;
    scroll-behavior: smooth;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
}

.movie_card {
    position: relative;
    flex: 0 0 calc((100% - 48px) / 5.5);
    transition: transform 0.3s ease;
}

.movie_card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.movie_card span {
    position: absolute;
    bottom: 8px;
    left: -10px;
    font-size: clamp(50px, 80px, 75px);
    font-weight: 900;
    color: black;
    -webkit-text-stroke: 2px white;
    z-index: 1;

}

.movie_card:hover {
    transform: scale(1.06);
    z-index: 2;
}

.left,
.right {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left:hover,
.right:hover {
    background: rgba(0, 0, 0, 0.9);
}

.left {
    left: 0;
}

.right {
    right: 0
}


/* Reasons Card styling */




.join_reasons_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    gap: 15px;
}

.reason_card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    border-radius: 4px;
    background: linear-gradient(145deg, #1c1b3a 0%, #1a1030 50%, #220222 100%);
    min-height: 260px;

}

.reason_card h3 {
    font-size: 24px;
    margin: 10px 0;
}

.reason_card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    flex-grow: 1;
    padding: 5px;
}

.small-icon {
    width: 72px;
    align-self: flex-end;
}

/* QnA styling */
.question-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq {
    margin-bottom: 10px;
}

.question {
    background-color: #2d2d2d;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 24px;
}

.question:hover {
    background-color: #414141;
}

.icon {
    font-size: 35px;
    font-weight: 200;
    transition: transform 0.2s ease;
}

.answer {
    background-color: #2d2d2d;
    margin-top: 2px;
    padding: 24px;
    font-size: 24px;
    line-height: 1.4;
    display: none;

}

.faq.active .answer {
    display: block;
}

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

.search-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 20px;
    padding: 25px;

}

.search-main-title {
    margin: 20px 0;
}


.membership-info {
    margin: 10px 0;
    color: rgba(250, 250, 250, 0.526);
}

/* footer part styling */

footer {
    width: 80vw;
    background-color: #000000;
    margin: auto;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;

}

.footer-text a,
.foot a {
    margin: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.foot {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    width: 100%;

}

/* BOTTOM TEXT STYLES */

.para-first {
    color: rgba(255, 255, 255, 0.7);
    padding-top: 30px;
}

.para-sec {
    color: #FFFFFF80;
    font-size: 0.8rem;
    padding-top: 50px;
    margin-bottom: 20px;
}

/* Language Selector Styling */

.language-select {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid gray;
    width: 120px;
    height: 32px;
    border-radius: 4px;
    padding: 0px 12px;
    background-color: rgba(0, 0, 0, 0.6);
    margin-top: 20px;

}

.language-select select {
    background: transparent;
    color: #ffffff;
    outline: none;
    border: none;
    width: 100%;
}

/* ===================Media Queries======================== */



/* ---------- Large Desktop ---------- */

@media (min-width: 1200px) {

    .container {
        width: 80%;
    }

    .movie_card {
        flex: 0 0 calc((100% - 48px) / 5.5);
    }

    .movie_card img {
        height: 280px;
    }

    .question {
        font-size: 24px;
        padding: 24px;
    }

    .answer {
        font-size: 24px;
    }

}


/* ---------- Laptop / Medium Desktop ---------- */

@media (max-width: 1199px) {

    nav {
        padding: 0 4%;
    }

    .container {
        width: 90%;
    }

    .movie_card {
        flex: 0 0 calc((100% - 36px) / 4.5);
    }

    .movie_card img {
        height: 250px;
    }

    .reason_card h3 {
        font-size: 22px;
    }

    .question {
        font-size: 22px;
        padding: 22px;
    }

    .answer {
        font-size: 22px;
        padding: 22px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

}


/* ---------- Tablet ---------- */

@media (max-width: 768px) {

    header {
        height: 70vh;
    }

    nav {
        height: 70px;
        padding: 0 5%;
    }

    .nav_left img {
        width: 120px;
    }

    .nav_btn {
        width: 75px;
        height: 32px;
    }

    .header-content {
        height: calc(70vh - 70px);
        width: 90%;
        margin: 10px auto;
        gap: 16px;
    }

    .header-content h1 {
        font-size: clamp(28px, 6vw, 44px);
    }

    .header-content> :nth-child(2) {
        font-size: 18px;
    }

    .header-content p {
        font-size: 16px;
    }

    .input-small {
        width: 400px;
        max-width: 85vw;
    }

    .input-large {
        width: 500px;
        max-width: 85vw;
    }

    .container {
        width: 90%;
        padding: 30px 0;
    }

    .section-title {
        font-size: 24px;
        margin: 18px 0;
    }

    /* Movie cards */

    .cards {
        gap: 10px;
    }

    .movie_card {
        flex: 0 0 calc((100% - 20px) / 3);
    }

    .movie_card img {
        height: 220px;
    }

    .movie_card span {
        font-size: 60px;
        left: -8px;
        bottom: 5px;
    }

    /* Slider buttons */

    .left,
    .right {
        width: 35px;
        height: 70px;
        font-size: 32px;
    }

    /* Reasons */

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


    .reason_card {
        min-height: 240px;
    }

    .reason_card h3 {
        font-size: 20px;
    }

    .reason_card p {
        font-size: 15px;
    }

    .small-icon {
        width: 60px;
    }

    /* FAQ */

    .question {
        font-size: 20px;
        padding: 20px;
    }

    .answer {
        font-size: 19px;
        padding: 20px;
    }

    .icon {
        font-size: 30px;
    }

    /* Footer */

    footer {
        width: 90%;
    }

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

}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

    header {
        height: 75vh;
    }

    nav {
        height: 65px;
        padding: 0 5%;
    }

    .nav_left img {
        width: 100px;
    }

    .nav_btn {
        width: 70px;
        height: 30px;
        font-size: 13px;
    }

    .header-content {
        height: calc(75vh - 65px);
        width: 92%;
        gap: 14px;
    }

    .header-content h1 {
        font-size: clamp(25px, 8vw, 36px);
    }

    .header-content> :nth-child(2) {
        font-size: 17px;
    }

    .header-content p {
        font-size: 15px;
    }

    /* Search */

    .search {
        width: 100%;
    }

    .search-input,
    .input-small,
    .input-large {
        width: 100%;
        max-width: 100%;
        height: 52px;
    }

    .start-btn {
        width: 160px;
        height: 52px;

    }

    .terms-info {
        font-size: 14px;
    }

    /* Main container */

    .container {
        width: 92%;
        padding: 25px 0;
    }

    .section-title {
        font-size: 20px;
        margin: 15px 0;
    }

    /* Movie cards */

    .cards {
        gap: 8px;
    }

    .movie_card {
        flex: 0 0 calc((100% - 8px) / 2);
    }

    .movie_card img {
        height: 200px;
    }

    .movie_card span {
        font-size: 52px;
        left: -7px;
        bottom: 3px;
    }

    /* Slider arrows */

    .left,
    .right {
        width: 30px;
        height: 60px;
        font-size: 28px;
    }

    /* Reasons */

    .join_reasons_grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .reason_card {
        min-height: 200px;
        padding: 15px;
    }

    .reason_card h3 {
        font-size: 20px;
    }

    .reason_card p {
        font-size: 15px;
    }

    .small-icon {
        width: 55px;
    }

    /* FAQ */

    .question {
        font-size: 17px;
        padding: 18px 16px;
    }

    .answer {
        font-size: 16px;
        padding: 18px 16px;
    }

    .icon {
        font-size: 27px;
        margin-left: 10px;
    }

    /* Search at bottom */

    .search-main {
        margin: 15px;
        padding: 20px 10px;
    }

    .search-main-title {
        font-size: 18px;
        text-align: center;
        margin: 15px 0;
    }

    .membership-info {
        font-size: 14px;
        text-align: center;
    }

    /* Footer */

    footer {
        width: 92%;
    }

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

    .footer-text a,
    .foot a {
        margin: 6px 0;
        font-size: 14px;
    }

    .para-first {
        font-size: 14px;
        padding-top: 25px;
    }

    .para-sec {
        font-size: 12px;
        padding-top: 35px;
    }

    .language-select {
        width: 110px;
    }

}


/* ---------- Very Small Mobile ---------- */

@media (max-width: 400px) {

    header {
        height: 78vh;
    }

    .nav_left img {
        width: 90px;
    }

    .nav_btn {
        width: 65px;
        font-size: 12px;
    }

    .header-content h1 {
        font-size: 25px;
    }

    .header-content> :nth-child(2) {
        font-size: 16px;
    }

    .header-content p {
        font-size: 14px;
    }

    .movie_card {
        flex: 0 0 calc((100% - 8px) / 2);
    }

    .movie_card img {
        height: 180px;
    }

    .movie_card span {
        font-size: 45px;
    }

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

    .answer {
        font-size: 15px;
        padding: 16px 14px;
    }

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

}


/* ---------- Below 200px ---------- */

@media (max-width: 200px) {

    nav {
        padding: 8px 2%;
    }

    .nav_left img {
        width: 65px;
    }

    .nav_btn {
        width: 50px;
        height: 25px;
        font-size: 9px;
    }

    .header-content h1 {
        font-size: 20px;
    }

    .header-content > :nth-child(2) {
        font-size: 12px;
    }

    .header-content p {
        font-size: 11px;
    }

    .search-input,
    .input-small,
    .input-large {
        width: 100%;
        height: 40px;
        font-size: 11px;
    }

    .start-btn {
        width: 110px;
        height: 40px;
        font-size: 12px;
    }

    .container,
    footer {
        width: 96%;
    }

    .movie_card {
        flex: 0 0 100%;
    }

    .movie_card img {
        height: 200px;
    }

    .section-title {
        font-size: 16px;
    }

    .question {
        font-size: 12px;
        padding: 10px;
    }

    .answer {
        font-size: 11px;
        padding: 10px;
    }

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

/* ---------- Below 150px ---------- */

@media (max-width: 150px) {

html, body {
    min-width: 150px;
    min-height: 100vh;
    width: 100%;
    background-color: #000;
    color: #fff;
    text-align: center;
    overflow-x: hidden;
}

* {
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

header,
nav,
.header-content,
.container,
.slider,
.search,
.search-main,
footer {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav {
    justify-content: center;
}

.header-content {
    align-items: center;
    justify-content: center;
    padding: 5px;
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    text-align: center;
    width: 100%;
}

.cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.movie_card {
    flex: 0 0 100%;
    min-width: 0;
}

.movie_card img {
    width: 100%;
    height: auto;
}

.join_reasons_grid {
    width: 100%;
    grid-template-columns: 1fr;
}

.reason_card {
    min-width: 0;
}

.question-box,
.faq,
.question,
.answer {
    width: 100%;
    min-width: 0;
}

.footer-grid {
    grid-template-columns: 1fr;
    width: 100%;
}

.foot {
    align-items: center;
    text-align: center;
}

.search-input,
.input-small,
.input-large,
.start-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.language-select {
    margin-left: auto;
    margin-right: auto;
}

}