body {
    margin: 0;
    background-color: #1B1919;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Hero Carousel */
.hero-carousel-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.hero-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex: 0 0 100%;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.carousel-slide .hero-content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.carousel-slide .hero-content h2 {
    font-size: 0.9em;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.carousel-slide .hero-content p {
    font-size: 0.6em;
    margin: 5px 0 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 3;
}

.carousel-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-button:hover {
    opacity: 1;
}

/* Main Content */
main {
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.see-all {
    color: #aaa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.see-all:hover {
    color: #fff;
}

.horizontal-movie-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.movie-poster-container {
    flex: 0 0 auto;
    width: 120px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.movie-poster-container:hover {
    transform: scale(1.05);
}

.movie-poster {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 5px 0;
}

.bottom-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

.bottom-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bottom-nav li.active a,
.bottom-nav li a:hover {
    color: #fff;
}

.bottom-nav li i {
    font-size: 1.5em;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.bottom-nav li a:hover i {
    transform: scale(1.2);
}

/* Download Button */
.download-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: none; /* Hidden by default */
}

.download-button {
    background-color: #e50914; /* Netflix red */
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px; /* Slightly larger */
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.download-button:hover {
    background-color: #f40612; /* Brighter red on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
    box-shadow: 0 6px 10px rgba(244, 6, 18, 0.5); /* Glow effect */
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 6, 18, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(244, 6, 18, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 6, 18, 0);
    }
}

/* Add pulse animation to the button */
.download-button.pulse {
    animation: pulse 2s infinite;
}

/* Icon Styling */
.download-button i {
    font-size: 24px; /* Larger icon */
    transition: transform 0.3s ease;
}

/* Bounce Animation on Click */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.download-button:active {
    animation: bounce 0.5s;
}

/* Hide the button after installation */
.download-button-container.hidden {
    display: none;
}

/* Optional: Add a label for clarity */
.download-button::after {
    content: 'Install App';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.download-button:hover::after {
    opacity: 1;
}