* {
    margin: 0;
    padding: 0;
    font-family: "poppins", 'Segoe UI';
}

html {
    scroll-behavior: smooth;
}

body {
    box-sizing: border-box;
    background-color: black;
    color: #fff;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header section */

.header {
    margin-bottom: 5vw;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
    background-image: linear-gradient(to top, rgb(0 0 0), rgb(0 0 0 / 48%), rgb(0 0 0)), url("images/backgrd.jpg");
    position: relative;
    width: 100%;

    height: 90vh;
    animation: heroZoom 15s infinite alternate;

}

@keyframes heroZoom {

    from {
        background-size: 100%;
    }

    to {
        background-size: 115%;
    }

}

@media (max-width:768px) {

    .navbar {
        padding: 1rem;
    }

    .header-logo img {
        width: 110px;
    }

    .header-title {
        font-size: 26px;
    }

    .header-buy-middle {
        font-size: 14px;
    }

    .header-description {
        width: 90%;
    }

    .header-end-btn {
        flex-direction: column;
    }

    .header-end-btn input {
        width: 90%;
    }

    .header-end-btn button {
        width: 90%;
    }

    .main-cards_cursel {
        gap: 1rem;
    }

    .card {
        flex: 0 0 120px;
        height: 170px;
    }

    .card img {
        height: 170px;
    }

    .card .card-num {
        font-size: 4rem;
    }

    .template {
        height: auto;
    }

    .input-btn {
        flex-direction: column;
        align-items: center;
    }

    .input-btn input {
        width: 90%;
    }

    .end-btn button {
        width: 200px;
    }

    .footer {
        grid-template-columns: 1fr;
    }

}

@media (max-width:480px) {

    .header-title {
        font-size: 22px;
    }

    .header-buy-middle {
        font-size: 13px;
    }

    .header-description {
        font-size: 14px;
    }

    .btn button {
        font-size: .8rem;
        padding: 4px 8px;
    }

    .lang-english {
        padding: 3px 6px;
    }

    .modal-content {
        width: 95%;
    }

    .movie-info p {
        font-size: 13px;
    }

    .card-btn button {
        font-size: 16px;
    }

}


.header-logo img {
    width: 7.59rem;
}

.navbar {


    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);

    display: flex;
    justify-content: space-between;
    padding: 2rem;
    align-items: center;
    height: 2px;
    text-align: center;


}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn button {

    font-size: 1rem;
    padding: 5px 10px;
    font-weight: 400;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin: 10px;
    background-color: #e50914;

}

.lang-english {
    font-size: 1.02rem;
    border: 1px solid #c8c8c8ec;
    padding: 5px 9px;
    border-radius: 5px;
    backdrop-filter: blur(2px);
}

select {
    background-color: #c8c8c8ec;
    font-size: 1.02rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.02);
    border: none;

}

@media (width <=500px) {
    select {
        width: 18px;
    }

    .header-end-btn {
        flex-direction: column;

    }

}

.lang-english option {
    color: black;
    background-color: antiquewhite;
}


.lang-english svg {
    color: #fff;
    fill: #fff;
    width: 20px;
    text-align: center;
    margin-right: 5px;

}

.btn button:hover {

    color: grey;
    background-color: #c11119;
    transform: scale(1.05);


}

.header-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.header-title {
    font-size: 40px;
    font-weight: 700;
    margin: 30px;
    text-align: center;

}

@media (max-width:768px) {

    .header-title {
        width: 90%;
        font-size: 28px;
    }

    .header-description {
        width: 90%;
    }

}

.header-buy-middle {
    font-size: 15px;
    margin: auto;
}

.header-description {

    margin: 10px;
    width: 30em;
}

.header-end-btn {
    display: flex;
    gap: 10px;
    justify-content: space-evenly;
    align-items: center;
    margin: 30px;
}

.header-end-btn button {
    line-height: 48px;
    width: 160px;
    border-radius: 8px;
    background-color: #e50914;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    border: none;
}

.header-end-btn button:hover {
    background-color: rgb(104, 15, 15);
}

.header-end-btn input {
    width: 250px;
    line-height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid grey;
    border-radius: 5px;


}

.header-end-btn input:focus {
    box-shadow: 0px 0px 5px 3px #fff;
    color: #fff;
}

input::placeholder {
    padding: 20px;
}

/* Main section  */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-curve {
    position: relative;
    border: 4px solid red;
    border-radius: 100% 100% 0 0;
    width: 100%;
    height: 100px;
    border-left: none;
    border-right: none;
    border-bottom: none;
    background: radial-gradient(50% 500% at 50% -420%,
            rgba(64, 97, 231, 0.4) 80%,
            rgba(0, 0, 0, 0.1) 100%), black;

}



.main-cards_cursel {
    width: 76vw;
    height: 292px;
    margin: 3em 10vw;
    display: flex;
    gap: 1.5em;
    overflow-x: auto;
    scroll-behavior: smooth;
    anchor-name: --cursel;
    scroll-snap-type: x mandatory;
}

.main-cards_cursel::-webkit-scrollbar {
    display: none;
}

.main-cards_cursel::scroll-button(right),
.main-cards_cursel::scroll-button(left) {
    content: ">";
    font-size: 1.25rem;
    width: 30px;
    height: 100px;
    border-radius: 40px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(163, 162, 163, 0.497);
    color: #fff;
    position: fixed;
    position-anchor: --cursel;
    position-area: right center;
    margin: 20px;
    translate: -1px -48px;

}

.main-cards_cursel::scroll-button(right):disabled,
.main-cards_cursel::scroll-button(left):disabled {
    display: none;
}

.main-cards_cursel::scroll-button(left):hover,
.main-cards_cursel::scroll-button(right):hover {
    background-color: rgb(160, 160, 160);
}

.main-cards_cursel::scroll-button(left) {
    content: "<";
    position-area: left center;
}

@media (max-width:1024px) {

    .header-title {
        width: 80%;
        font-size: 32px;
    }

    .header-description {
        width: 80%;
    }

    .main-cards_cursel {
        width: 90vw;
    }

    .template {
        width: 100%;
    }

    .template-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        grid-template-columns: 1fr 1fr;
    }

    .modal-content {
        width: 90%;
    }

}

.card {
    scroll-snap-align: start;
    flex: 0 0 139px;
    height: 196px;
    background-color: transparent;
    border-radius: 3em;
    position: relative;
    z-index: 10;
    transition: transform .3s ease;

}

.card1 {
    padding-left: 20px;
}

.card1>.card-num {

    translate: 20px;
}

.card .card-num {
    position: absolute;
    top: 105px;
    left: -15px;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    height: 1em;
    font-weight: 700;
    color: rgb(0, 0, 0);
    -webkit-text-stroke: 0.25rem rgb(255, 255, 255);
    text-shadow: 6px 20px 19rem rgb(73 66 66);

}


.card img {
    background-size: cover;
    height: 196px;
    border-radius: .5em;
    opacity: 0.9;
    filter: brightness(1.2);
    transition: transform 0.3s ease-in-out;



}


.card:hover {
    transform: scale(1.15);
    z-index: 20;
}

.card:hover img {
    filter: brightness(1.3);
}

.main-cards-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 7vw;
    width: max-content;
}

.main-data-group {

    width: 100%;
    margin: 0;

}

.template:hover {
    transform: scale(1.023);
    z-index: 20;
}

.template {
    border: none;
    width: 28rem;
    padding: 20px;
    margin: 0px auto;
    height: 160px;
    border-radius: 1rem;

    background: linear-gradient(130deg, #1a2143, #210f18);
    position: relative;
    transition: all 0.3s ease-in-out;
}

@media (max-width : 1500px) {
    .template-grid {

        grid-template-columns: 1fr;
        width: 80%;
    }

}

.template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px auto;
    width: 90%;
}

@media (max-width:800px) {
    .template-grid {
        grid-template-columns: 1fr;
    }
}


.template .template-head {
    font-size: 20px;
    padding: 10px 0;

}

.template .template-middle-content {
    font-size: 16px;
    color: #ffffffb3;
}

.icon {
    position: absolute;
    bottom: 10px;
    right: 10px;

}

.first-content {
    width: max-content;
    align-self: baseline;
    margin-left: 10%;
    font-size: 1.5rem;

}




.accordion-container {
    width: 90%;
    margin: 0px auto;

    background: black;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px black;
}

h2 {
    text-align: center;
    color: #fff;
}

/* Accordion Item Wrapper */
.accordion-item {
    border: none;
    padding: 10px 0;
    margin: 10px auto;
    background-color: #2d2d2d;
    color: white;
}



/* Header (The clickable part) */
.accordion-header {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px;
    cursor: pointer;
    list-style: none;
    transition: 0.3s ease;
    border-radius: 4px;
    color: #fff;
}

/* Hide default triangle marker in webkit browsers */
.accordion-header::-webkit-details-marker {
    display: none;
}

/* Add custom icon (chevron) */
.accordion-header::after {
    content: '+';
    float: right;
    font-weight: bolder;
    transition: transform 0.3s;
    font-size: 20px;


}

details[open] .accordion-header::after {
    content: '-';
    animation: rotate 0.1s linear;
}

@keyframes rotate {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(180deg);
    }
}

.accordion-header:hover {
    background-color: #535151;
}

/* Content Panel */
.accordion-content {
    padding: 10px;
    color: rgb(230, 228, 228);
    line-height: 1.6;
}

/* Animation for opening (CSS-only) */
details[open] .accordion-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-end-membership {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 30px;
    gap: 20px;

}

@media (max-width:800px) {
    .input-btn {
        flex-direction: column;
    }
}

.input-btn {
    display: flex;
    gap: 10px;

}

.input-btn input {
    width: 416px;
    height: 45px;
    background-color: transparent;
    border-radius: 8px;
    border: 1px solid grey;
}

.input-btn input::placeholder {
    font-size: 1rem;

}

.input-btn input:focus {
    box-shadow: 0px 0px 5px 3px #fff;
    color: #fff;
}


.input-btn .end-btn>button {
    line-height: 48px;
    width: 160px;
    border-radius: 8px;
    background-color: #e50914;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.input-btn .end-btn>button:hover {
    background-color: rgb(104, 15, 15);
    transform: scale(1.12);
}


footer {
    color: white;
    max-width: 60vw;
    margin: 0px auto;
    padding: 60px;

}

footer .questions {
    padding: 34px 0;
}


.footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    color: white;
}

footer {
    max-width: 90vw;
    padding: 75px 0;
}

@media screen and (max-width: 1300px) {
    .footer-item {
        align-items: center;
    }



    .footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }


    .footer a {
        color: #e6e6e6;
        text-decoration: none;
    }

    .footer a:hover {
        text-decoration: underline;
    }

    .footer-item {
        display: flex;
        flex-direction: column;
        gap: 23px;
    }
}




/* IMAGE MODAL OVERLAY */

/* background overlay */

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

/* show modal when clicked */

.image-modal:target {
    display: flex;
}

/* main modal box */

.modal-content {
    width: 750px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #141414;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    overflow-y: auto;

}

/* expanded image */

.modal-content img {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.modal-content {
    animation: modalZoom .3s ease;
}

@keyframes modalZoom {
    from {
        transform: scale(.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* movie info section */

.movie-info {
    padding: 20px;
    color: white;
}

.movie-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.movie-info p {
    font-size: 14px;
    line-height: 1.5;
    color: #ffff;
    margin-top: 20px;

}

.movie-info .card-span {
    font-size: 10px;
    margin: 0px 10px;
    border: none;
    color: #c6c6c6;
    padding: 3px 4px;
    background-color: #414141;
}

.card-btn {
    text-decoration: none;
    width: 100%;

}

.card-btn button {
    font-size: 20px;
    background-color: #e50914;
    color: #fff;
    border: none;
    padding: 10px 20px;
    width: 90%;
    margin: 20px 10px;
    border-radius: 5px;

}

/* close button */

.close-btn {
    position: absolute;
    top: 0px;
    right: 35px;

    font-size: 40px;
    color: white;
    text-decoration: none;
}




/* scrollbar */

.main-cards_cursel::-webkit-scrollbar {
    height: 6px;
}

.main-cards_cursel::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}