*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}
body{
    background:#0d1425;
    color:#fff;
}


header{
    width:100%;
    height:80px;
    padding:0 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#111827;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    font-size:30px;
    font-weight:700;
    color:#cccfd8;
}

nav{
    display:flex;
    align-items:center;
    gap:30px;
}

nav a{
    color:white;
    text-decoration:none;
    transition:.2s;
}

nav a:hover{
    color:#8B5CF6;
}

#loginBtn{
    padding:10px 22px;
    border:none;
    border-radius:8px;
    background:#8B5CF6;
    color:white;
    cursor:pointer;
    transition:.3s;
}

#loginBtn:hover{
    background:#650ef1;
}


.hero{
    position: relative;
    width:100%;
    min-height:90vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:60px 8%;
    gap:50px;
    overflow:hidden;
}

/* Background */
.hero::before{
    content:"";
    position:absolute;
    inset:0;

    background:url("./banner.png") center center/cover no-repeat;

    filter:blur(4px);
    transform:scale(1.08);

    opacity: 0.9;;

    z-index:-2;
}

/* Dark Fade Overlay */
.hero::after{
    content:"";
    position:absolute;
    inset:0;

    background:linear-gradient(
        to right,
        rgba(8,10,20,.82),
        rgba(18,10,35,.55),
        rgba(10,10,20,.72)
    );

    z-index:-1;
}

.hero-content{
    flex:1;
    background-color: rgba(0, 0, 0,0.7);
    filter: blur(3px) brightness(1px);
    border-radius: 10px;
    
    padding:2%

}

.hero-content h1{
    font-size:55px;
    line-height:70px;
}

.hero-content span{
    color:#8B5CF6;
}

.hero-content p{
    margin:25px 0;
    color:#cbd5e1;
    line-height:30px;
}

#exploreBtn{
    padding:14px 30px;
    border:none;
    border-radius:8px;
    background:#8B5CF6;
    color:white;
    cursor:pointer;
    font-size:16px;
    transition:.3s;
}

#exploreBtn:hover{
    transform:translateY(-5px);
    background-color: #650ef1;
    box-shadow: #f2f2f5;
}

.hero-image{
    flex:1;
    text-align:center;
}

.hero-image img{
    width:100%;
    max-width:500px;
    border-radius:20px;
    box-shadow:0 0 30px rgba(139,92,246,.4);
}


.search{
    padding:70px 8%;
    text-align:center;
}

.search h2{
    margin-bottom:20px;
    font-size:35px;
}

#searchInput{
    width:500px;
    max-width:100%;
    padding:16px;
    border:none;
    outline:none;
    border-radius:10px;
    font-size:16px;
}


.movies{
    padding:70px 8%;
}

.title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
}

.title h2{
    font-size:35px;
}

.title button{
    padding:10px 20px;
    border:none;
    border-radius:8px;
    background:#8B5CF6;
    color:white;
    cursor:pointer;
}

#movieContainer{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.movie-card{
    background:#1E293B;
    border-radius:15px;
    overflow:hidden;
    transition:.3s;
}

.movie-card:hover{
    transform:translateY(-10px);
}

.movie-card img{
    width:100%;
    height:350px;
    object-fit:cover;
}

.movie-details{
    padding:20px;
}

.movie-details h2{
    font-size:22px;
    margin-bottom:15px;
}

.movie-details p{
    margin:8px 0;
    color:#d1d5db;
}

.book-btn{
    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;
    background:#8B5CF6;
    color:white;
    cursor:pointer;
    margin-top:15px;
    transition:.2s;
}

.book-btn:hover{
    background:#0b0b0b;
}


.offers{
    padding:70px 8%;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.offer-card{
    background:#1E293B;
    padding:30px;
    border-radius:15px;
    text-align:center;
}

.offer-card h3{
    color:#8B5CF6;
    margin-bottom:15px;
}

footer{
    background:#111827;
    padding:40px;
    text-align:center;
}

footer h2{
    color:#8B5CF6;
    margin-bottom:15px;
}

footer p{
    margin:10px 0;
    color:#cbd5e1;
}

/* Laptop */

@media (max-width:1200px){

    .hero{
        padding:50px 5%;
    }

    .hero-content h1{
        font-size:48px;
        line-height:60px;
    }

}

/* Responsive */

/* Tab */

@media (max-width:992px){

    header{
        padding:20px 5%;
        flex-direction:column;
        height:auto;
        gap:20px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:20px;
    }

    .hero{
        flex-direction:column-reverse;
        text-align:center;
    }

    .hero-content,
    .hero-image{
        width:100%;
    }

    .hero-content h1{
        font-size:42px;
        line-height:55px;
    }

    #searchInput{
        width:100%;
    }

}


/* Mobile */

@media (max-width:768px){

    .logo{
        font-size:25px;
    }

    nav{
        gap:15px;
    }

    nav a{
        font-size:15px;
    }

    .hero{
        padding:40px 20px;
    }

    .hero-content h1{
        font-size:34px;
        line-height:45px;
    }

    .hero-content p{
        font-size:15px;
    }

    .hero-image img{
        max-width:100%;
    }

    .title{
        flex-direction:column;
        gap:20px;
    }

    .title h2{
        font-size:28px;
    }

    .movie-card img{
        height:300px;
    }

}


/* Small Mobile */

@media (max-width:480px){

    header{
        padding:20px;
    }

    nav{
        flex-direction:column;
    }

    #loginBtn{
        width:100%;
    }

    .hero-content h1{
        font-size:28px;
        line-height:38px;
    }

    .search h2{
        font-size:28px;
    }

    #searchInput{
        padding:14px;
    }

}



::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#b0b2b5;
}

::-webkit-scrollbar-thumb{
    background:#37353b;
    border-radius:20px;
}



.hero-content{
    animation:leftSlide 1s ease;
}

.hero-image{
    animation:rightSlide 1s ease;
}

.movie-card{
    animation:fadeUp .8s ease;
}





@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}




.movie-card:hover{

    transform:translateY(-10px) scale(1.03);

    box-shadow:0 0 30px rgba(138, 92, 246, 0.608);

}

.book-btn:hover{

    letter-spacing:1px;

}

.offer-card{

    transition:.4s;

}

.offer-card:hover{

    transform:translateX(-8px);

    box-shadow:0 0 25px rgba(139,92,246,.3);

}

.hero-image img{

    transition:.5s;

}

.hero-image img:hover{

    transform:scale(1.05);

}