@import url(./global.css);

/* navbar */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7) !important;
    height: 65px;
    border-bottom: 1px solid #ffffff1a;
}

/* hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://user-images.githubusercontent.com/33485020/108069438-5ee79d80-7089-11eb-8264-08fdda7e0d11.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-weight: 500;
    color: yellow;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* trending section */
.trending {
    position: relative;
    padding: 40px 0;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
    cursor: pointer;
    margin-bottom: 20px;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover img {
    transform: scale(1.1);
}

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-info {
    transform: translateY(0);
}

.movie-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.movie-info p {
    font-size: 0.9rem;
    color: #ddd;
}

/* footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem; 
    }

    .trending {
        padding: 20px 0; 
    }

    .movie-card {
        height: 300px; 
    }

    .movie-card img {
        object-fit: cover;
    }

    .movie-info h3 {
        font-size: 1.2rem; 
    }

    .movie-info p {
        font-size: 0.8rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    #input {
        font-size: 0.9rem !important;
    }

    #input ~ button {
        white-space: nowrap;
        width: 40% !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero h1 {
        font-size: 2rem; 
    }

    .hero p {
        font-size: 0.9rem; 
    }

    .movie-card {
        height: 250px; 
    }

    .movie-info h3 {
        font-size: 1rem; 
    }

    .movie-info p {
        font-size: 0.7rem; 
    }
}