*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
.wrapper{
    max-width: 1400px;
    margin: 0 auto;
}
/*HEADER SECTION*/
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1E3A8A;
    position: sticky;
    top: 0;
    padding: 1.3rem 2rem 1.3rem 2rem;
    z-index: 1000;
    border-bottom: .5px solid #636363f3;
}
.logo{
    font-size: 2rem;
    font-weight: bold;
}
span{
    color: #38BDF8;
    text-transform: uppercase;
    font-size: 2.5rem;
    letter-spacing: 1px;
    font-family: 'Arial Narrow Bold', sans-serif;
}
.logo a{
    text-decoration: none;
    list-style: none;
    color: #fff;
}
.nav-list{
    display: flex;
    gap: 1.7rem;
    padding: 0 .4rem;
    list-style: none;
}
.nav-list a{
    text-decoration: none;
    color: #fff;
    text-transform: capitalize;
    transition: color .5s ease;
    font-weight: 500;
    list-style-type: none;
    
}
.nav-list a:hover{
    color: #38BDF8;
}
.btn-toggle{
    color: #E0E1DD;
    background-color: #1E3A8A;
    border:none;
    font-size: 1rem;
    cursor: pointer;
    display: none;
}



/*HOME SECTION*/

.home{
    padding: 70px 2rem;
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    gap: 4rem;
    background-color: #1E3A8A;
}
/*HOME TEXT */
.home-text h5{
    color: #FFFFFF;
    text-transform: capitalize;
    margin-bottom: 2.5rem;
}
.home-text h1{
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.3rem;
    color: #FFFFFF;
    text-transform: capitalize;
}
.home-text p{
    text-transform: capitalize;
    margin-bottom: 4.4rem;
    width: 80%;
    color: #fff;
}
.home-text a{
    text-decoration: none;
    text-transform: capitalize;
    padding: .6rem 1.2rem;
    background-color: #38BDF8;
    border-radius: 7px;
    color: #fff;
    font-weight: 900;
    transition: background-color .3s ease;
    border: 1px solid #FFFFFF;
}
.home-text a:hover{
    background-color: #1E3A8A;
}

@media(max-width: 400px){
    .home-text h1{
        font-size: 2.4rem;
    }
    .home-text p{
        font-size: .9rem;
        margin-bottom: 2.4rem;
    }
}
/*HOME IMAGE */
.home-image{
    
}
.home-image .img{
    border-radius: 100%;
    max-width: 100%;
    opacity: 0;
    animation: zoomFade 2s ease forwards;
    
}

@keyframes zoomFade {
  0% {
    transform: scale(0.8); /* smaller */
    opacity: 0;
  }
  100% {
    transform: scale(1); /* normal size */
    opacity: 1;
  }
}

@media(max-width: 771px){
    .home{
        flex-direction: column;
    }
    .nav-bar{
        display: none;
    }
    .btn-toggle{
        display: block;
    }
}
/*TITLE SECTION*/
.section-title{
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}
.section-title span{
    font-size: 3rem;
}

/*MOVIES SECTION*/
.movies{
    padding: 80px;
    /*background-color: #fff9f9;*/
}
.movies-cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}
.movie-card{
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 7px;
    max-width: 100%;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);*/
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.movie-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.movie-card .img{
    width: 210px;
    max-height: 260px;
    object-fit: contain cover;
    border-radius: 6%;
    margin-bottom: 1rem;
    display: block;
    max-width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #474646;
}
.category h5{
    padding: .2rem 1rem;
    background-color: #38BDF8;
    margin-bottom: 1rem;
    margin-top: .6rem;
    border-radius: 10px;
    color: #fff;
    text-transform: uppercase;
}
.name h4{
    text-transform: uppercase;
    margin-bottom: .5rem;
}
@media(max-width: 400px){
    .name h4{
        font-size: .9rem;
    }
}
.rate{
    margin-bottom: 1rem;
    font-size: .9rem;
    color: #575755;
}


/*FAVORIES SECTION*/
.favorites{
    background-color: #d1e7f2;
    padding: 79px 0;
    margin-bottom: 75px;
}

.favorites-cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem .5rem;
    margin: 0 5rem;
}
.favorite-card{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: .7rem;
    border-radius: 7px;
    background-color: #FFFFFF;
    box-shadow: 0 8px 10px rgba(11, 8, 8, 0.1);
    padding: .5rem 0;
}
.favorite-card .img{
    max-width: 100%;
    /*margin-bottom: 1rem;*/
    width: 300px;
    height: 200px;
    /*object-fit:   full;*/
    border-radius: 6%;
    display: block;
}
.para{
    margin-bottom: .5rem;
    font-size: .8rem;
    color: rgb(59, 59, 59);
    margin: 0 1rem;
    text-align: justify;  
    border-radius: 5px;
}


/*CONTACT SECTION*/
.contact{
    padding: 0 5rem;
    margin-bottom: 3rem;;
}
.contact-wrap{
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}
.info{
    flex: 0 0 55%;

}
.item{
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.icon{
    font-size: 2.5rem;
    color:#38BDF8;
}
.txt{
    margin-left: 2rem;
}

/*form*/
.form{
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: .3rem;
}
input{
    width: 40vw;
    padding: .6rem;
}
textarea{
    width: 40vw;
    padding-top: .8rem;
}
button{
    padding: .2rem 2rem;
    background-color: #38BDF8;
    margin-bottom: 1rem;
    margin-top: .6rem;
    border-radius: 10px;
    color: #fff;
    text-transform: uppercase;
    border: none;
    transition: color 0.4s ease;
}
button:hover{
    background-color: #1E3A8A;
}

@media(max-width: 772px){
    .contact-wrap{
        display: flex;
        flex-direction: column;
    }
    input,
    textarea{
        width: 60vw;
    }
    .header{
        padding-right: .2rem;
    }
}


footer{
    text-align: center;
    color: #fff;
    background-color: #212121;
    padding: 1rem 0;
}






@media(max-width: 380px){
    .section-title{
        font-size: 2rem;
        }
    .section-title span{
        font-size: 2.3rem;
    }
    
    .movies-cards{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    .movie-card .img{
        max-width: 140px;
        height: 200px;
        display: block;
    }
    .favorites-cards{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 2rem;
    }
    .favorite-card .img{
        max-width: 140px;
        height: 200px;
    }
    .para{
        font-size: .7rem;
    }
}
@media(max-width: 300px){
    .section-title{
        font-size: 1.6rem;
        }
    .section-title span{
        font-size: 2rem;
    }
    
    .movies-cards{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    .movie-card .img{
        max-width: 100px;
        height: 200px;
    }
    .favorites-cards{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 2rem;
    }
    .favorite-card .img{
        max-width: 100px;
        height: 200px;
    }
}