@import url('https://fonts.googleapis.com/css2? family=Poppins:wght@300;400;500;600;700;800;900& display=swap');
*{
    font-family: "Poppins",sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
}
:root{
    --main-color:#207de7;
    --text-color: #020307;
    --bg-color: #fff;
    --blk-color:inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --btn-color: #0d6efd;
    --secondary-bg-image: linear-gradient(
        23deg,
        hsl(49deg 100% 69%) 0%,
        hsl(16deg 80% 61%) 2%,
        hsl(330deg 81% 34%) 12%,
        hsl(259deg 100% 15%) 50%,
        hsl(212deg 100% 25%) 88%,
        hsl(197deg 100% 30%) 98%,
        hsl(183deg 79% 36%) 100%
      );
}
/* custom scroll  */
html::-webkit-scrollbar{
    width: 0.5rem;
    background: var(--text-color);
}
html::-webkit-scrollbar-thumb{
    background: var(--main-color);
    border-radius: 5rem;
}
    body {
       background-image: url(purple-bg.jpg);
       background-position:center;
       background-size: cover;
       background-attachment: fixed;
       color: var(--bg-color);
    }
    /*navigation setup*/
    header{
        position: fixed;
        width: 100%;
        top: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 100px;
        transition: 0.5s;
        /* background: var(--main-color); */
    }
     /* baad main  */
     header.shadow{
        background:var(--secondary-bg-image);
        box-shadow: 0 0 4px rgb(14 55 54/15%);
     }
    header.shadow .navbar a{
        color: var(--bg-color);
    }
    header.shadow .logo{
        color: var(--text-color);
    }
    .logo{
        font-size: 1.1rem;
        font-weight: 600;
        align-items: center;
        color: var(--bg-color);
        display: flex;
        column-gap: 0.5rem;
    }
    .bx{
        color: var(--main-color);
    }
 .bxs-movie{
        width:3.4vw;
        height:auto;
        max-width: 16x;
        border-radius: 50%;
    }
    .navbar{
        display: flex;
        column-gap: 5rem;
    }
    .navbar li{
        position: relative;
        list-style: none;
    }
    .navbar a{
         font-size: 1rem;
         font-weight: 500;
         color: var(--bg-color);   
    }
    .navbar a::after{
        content: '';
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 3px;
        background: #fff;
        border-radius: 5px;
        transform-origin: right;
        transform: scaleX(0);
        transition: transform .5s;
    
    }
    .navbar a:hover::after{
        transform: scaleX(1);
    }
    #menu-icon{
        font-size: 24px;
        cursor: pointer;
        z-index: 100001;
        display: none;
    }
    
    .btn{
        padding: 0.7rem 1.4rem;
        background: var(--main-color);
        color: var(--bg-color);
        font-weight: 400;
        border-radius: 0.5rem;
    }
    .btn:hover{
        background:transparent;
        border: 1px solid #fff;
    }
    /*login dev*/
    .in_middle {
        top: 50%;
        left: 50%;       
        padding: 50px;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        z-index: 10000;
      }
      
  .popup-btn{
    padding: 0.7rem 1.4rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 400;
    border-radius: 0.5rem;
    }
    .popup-btn:hover{
        background:transparent;
        border: 1px solid  var(--main-color);
    }
    
    .wrapper{
        position: relative;
        width: 400px;
        height: 440px;
        background:transparent;
        border: 2px solid rgba(255,255,255,.5);
        border-radius: 20px;
        backdrop-filter: blur(20px);
        box-shadow: 0 0 30px rgba(168, 164, 164, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        transform: scale(0);
        transition: transform .5s ease, height .2s ease;
    }
    .wrapper.active-popup{
        transform: scale(1);
    }
    .wrapper.active{
        height:520px ;
    }
    .wrapper .form-box{
    width: 100%;
    padding: 40px;
    }    
    .wrapper .form-box.Login{
       transition: transform .18s ease;
       transform: translateX(0);
    }
    .wrapper.active .form-box.Login{
     transition: none;
     transform: translateX(-400px);
    }
    .wrapper .form-box.register{
        position: absolute;
        transition: none;
        transform:translateX(400px);
    }
    
     .wrapper.active .form-box.register{
        transition: transform .18s ease;
        transform: translateX(0);
     }
    .wrapper .icon-close{
        position: absolute;
        top: 0;
        right: 0;
        width: 45px;
        height: 45px;
        background: #162938;
        font-size: 2em;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom-left-radius: 20px;
        cursor: pointer;
        z-index: 1;
        transition: .5s ease-in-out;
        
    }
    .wrapper .icon-close:hover{
        transform: scale(0.1);
    }
    
    
    .form-box h2{
        font-size: 2em;
        color:  #1c9bef;
        text-align: center;
    }
    .input-box{
        position: relative;
        width: 100%;
        height: 50px;
        border-bottom: 2px solid #5589b1;
        margin: 30px 0;
    }
    .input-box label{
        position:absolute;
        top: 50%;
        left: 5px;
        transform: translateY(-50%);
        font-size: 1em;
        color:  #1c9bef;
        font-weight: 500;
        pointer-events: none;
        transition: .5s;
    }
    .input-box input:focus~label,
    .input-box input:valid~label{
    top: -5px;
    }
    .input-box input{
        width: 100%;
        height: 100%;
        background: transparent;
        border: none;
        outline: none;
        font-size: 1em;
        color: #162938;
        font-weight: 600;
        padding: 0 35px 0 5px;
    }
    .input-box .icon{
        position: absolute;
        right: 8px;
        font-size: 1.2em;
        color: #162938;
        line-height: 57px;
    }
    .remember-forgot{
        font-size: .9em;
        color:  #1c9bef;
        font-weight: 500;
        margin: -15px 0 15px;
        display: flex;
        justify-content: space-between;
    }
    .remember-forgot label input{
        accent-color: #162938;
        margin-right: 3px;
    }
    .remember-forgot a{
        color: #1c9bef;
        transition: .5s;
    }
    .remember-forgot:hover{
        text-decoration: underline;
    }
    .sub-btn{
        width: 100%;
        height: 45px;
        background:  #1c9bef;
        border: none;
        outline: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1em;
        color: #fff;
        font-weight: 500;
        transition: .4s ease-in-out;
    }
    .btn:hover{
        transform: scale(0.1);
    }
    .login-register{
        font-size: .9em;
        color: #162938;
        text-align: center;
        font-weight: 500;
        margin: 25px 0 10px;
    }
    .login-register p a{
        color: #162938;
        font-weight: 600;
    }
    .login-register p a:hover{
        text-decoration: underline;
    }
    /*End of login dev*/
/* home setup*/
section{
    padding: 4.5rem 0 1.5rem;
}
.container{
    width: 100%;
    min-height: 640px;
    position: relative;
    display: flex;
    align-items: center;
    background: rgb(2, 3, 7,0.5);
}
.container img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}


.swiper-pagination-bullet{
    width: 6px !important;
    height: 6px !important;
    border-radius: 0.2rem !important;
    background: var(--bg-color) !important;
    opacity: 1 !important;
}
.swiper-pagination-bullet-active{
    width: 1.5rem !important;
    background: var(--main-color) !important;
}
.home-text{
    z-index: 1000;
    padding: 0 150px;
}
.home-text span{
    color: var(--bg-color);
    font-weight: 500;
    text-transform: uppercase;
}
.home-text h1{
    color: var(--bg-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.play{
    position: absolute;
    right: 4rem;
    bottom: 10%;
}
.play .bx{
      background: var(--bg-color);
      padding: 10px;
      font-size: 2rem;
      border-radius: 50%;
      border: 4px solid rgb(2,3,7,0.5);
     color: var(--main-color);     
}
.play .bx:hover{
    background: var(--main-color);
    color: var(--bg-color);
    transition: 0.2s all linear;
}
/**/
.heading{
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    border-bottom: 1px solid var(--main-color);
    color: #fff;
}
.txt-S{
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;

}
.movie-container{
    max-width: 968px;
    margin-right: auto;
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,auto));
    margin-top: 2rem;
    gap: 1rem;

}
.box .box-img{
    width: 100%;
    height: 270px;
    cursor: pointer;
}
.box .box-img img{
       width: 100%;
       height: 100%;
       object-fit: cover;
}
.box .box-img:hover{
    transform: translateY(-10px);
    transition: 0.2s all linear;
}
.box h3{
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}
.box span{
    font-size:14px;
    color:var(--bg-color);
}
/*movie coming container*/
.coming-container{
    display: grid;
    gap: 1rem;
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    transition: .2s;
}
.coming-container .box img:hover{
    transition: 2s;
    transform: translateY(0);
}
.coming-container .box img{
    border-radius: 15px;
}

/*newsletter dev*/
.newsletter{
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 2rem;
}
.newsletter h2{
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}
.newsletter form{
    background: var(--bg-color);
    padding: 10px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
}
.newsletter form input{
    border: none;
    outline: none;
}
.email{
    width: 280px;
}
.newsletter form input::placeholder{
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 400;
}
.newsletter .btn{
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
}
Footer{
    padding: 4.5rem 0 1.5rem; 
}

/*footer dev*/
.Footer{
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
}
.social{
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}
.social .bx{
    background: var(--bg-color);
    padding: 2px;
    font-size: 2rem;
    border-radius: 50%;
    border: 4px solid rgba(2,3,7,0.4);
    color: var(--main-color);
}
.social .bx:hover{
    background: var(--main-color);
    color: var(--bg-color);
    transition: 0.2s all linear;
}
.copyright{
    padding: 20px;
    text-align: center;
    color: var(--bg-color);
}



/*search setup*/
.search{
    margin: 3rem;
    margin-left: 12rem;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 50px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}
.search::placeholder{
    color: #7378c5;
}
.search:focus{
    background-color: #020307;
    outline: none;
}
.movies{
    display: flex;
    flex-wrap:wrap;
}
.movie{
    background: var(--main-color);
    border-radius: 3px;
    box-shadow: 0 4px 5px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
    margin: 1rem;
    justify-content: center;
    align-items: center;
    width: 265px;
}
.movie img{
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: .5s;
}
.movie img:hover{
    transition: 0.2s all linear;
}
.movie-info{
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem 1rem;
    letter-spacing: 0.5px;
}
.movie-info h3{
    margin: 0;
}
.movie-info span{
    background-color: #1c9bef;
    border-radius: 3px;
    font-weight: bold;
    padding: 0.25rem 0.8rem;
}
.movie-info span.green{
    color:rgb(39,189,39)
}
.movie-info span.orange{
    color: orange;
}
.movie-info span.red{
    color:rgb(189,42, 39)
}
.overview{
    background-color: #fff;
    padding: 2rem;
    position: absolute;
    max-height: 100%;
    overflow: auto;
    left: 0;
    bottom: 0;
    right: 0;
    transform: translateY(101%);
    transition:  transform 0.3s ease-in;
}
.overview h3{
    margin-top: 0;
}
.movie:hover .overview{
    transform: translateY(0);
}
/* responsive  */
@media (max-width :1080px){
    .home-text{
        padding: 0 100px;
    }
 }
 @media (max-width :991px){
    header{
        padding: 18px 4%;
    }
    section{
        padding: 50px 4%;
    }
    .home-text{
        padding: 0 4%;
    }
    .home-text h1{
        font-size: 3rem;
    }
 }
 @media (max-width: 774px) {
    header{
        padding: 12px 4%;
    }
    #menu-icon{
        display: initial;
        color: var(--bg-color);
    }
     /* baad m  */
     header.shadow #menu-icon{
        color: var(--text-color);
     }
    .navbar{
        position: absolute;
        top: -570px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        row-gap: 1.4rem;
        padding: 20px;
        box-shadow: 4px 4px 0 4px rgb(14 55 54/15%);
        transition: 0.2s all linear;
        text-align: center;
        width: 100%;
    }
    .navbar a{
        color: var(--text-color);
    }
    .navbar a:hover{
        color: var(--main-color);
        border-bottom: 1px solid var(--main-color);
    }
    .navbar a::after{
        display: none;
    }
    .navbar.active{
        top: 100%;
    }

    .home-text h1{
        font-size: 2.4rem;
    }
    .btn{
        padding: 0.6rem 1.2rem;
    }
    .movies-container{
        grid-template-columns: repeat(auto-fit, minmax(160px,auto));
    }
 }
 @media (max-width: 472px){
    .newsletter form .email{
        width: auto;
    }
    .footer{
        flex-direction: column;
        align-items: center;
        row-gap: 1rem;
    }
    .container{
        width: 100%;
        min-height: 500px;
    }
    header{
        padding: 6px 4%;
    }
    .home-text h1{
        font-size: 1.7rem;
    }
    .play{
        right: 2rem;
        bottom: 8%;
    }
    .play .bx{
        padding: 7px;
    }
    .movies-container{
        grid-template-columns: repeat(auto-fit, minmax(140px,auto));
    }
    .box .box-img img{
        height: 240px;
    }
    .coming-container img{
        width: 100%;
        display:flex ;
        max-height: 500px;
    }
 }


/* Responsive adjustments */
@media (max-width: 768px) {
    .wrapper {
        width: 90%;
        max-width: 400px;
        height: auto; /* Let the height adjust to content */
    }

    .wrapper.active {
        height: auto; /* Let the height adjust to content */
    }

    .wrapper .form-box {
        padding: 20px; /* Reduce padding on smaller screens */
    }

    .input-box {
        margin: 20px 0; /* Increase margin between input boxes */
    }

    .remember-forgot {
        font-size: 0.8em; /* Decrease font size for remember-forgot section */
    }

    .sub-btn {
        font-size: 0.9em; /* Decrease font size for submit button */
    }

    .login-register {
        font-size: 0.8em; /* Decrease font size for login-register section */
    }
}
