/* Enhanced Hero Section */
.hero-section {
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Enhanced Card Styling */
.content-card {
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 520px; /* Fixed height for cards */
    background: #fff;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.content-card:hover .card-img-top {
    transform: scale(1.02);
}

.card-img-top {
    width: 100%;
    height: 360px; /* Fixed height */
    object-fit: contain; /* Show full poster */
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
    padding: 12px; /* Slightly more padding */
}

.content-card .card-body {
    height: 160px; /* Fixed height for card body */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* New Release Badge */
.badge-new {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ff8787);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
    color: white;
    font-weight: 600;
}

/* Typography Improvements */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--bs-primary);
    border-radius: 2px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Improved Spacing */
section {
    padding: 5rem 0;
}

.card-body {
    padding: 1.5rem;
}

/* Feature Cards */
.feature-card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--bs-primary), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Carousel Styling */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-item {
    height: 700px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section, .carousel-item {
        min-height: 500px;
        height: 500px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }

    .content-card {
        height: 480px; /* Slightly smaller height on mobile */
    }

    .card-img-top {
        height: 320px; /* Adjusted image height */
    }

    .content-card .card-body {
        height: 160px;
        padding: 1rem; /* Smaller padding */
    }

    .card-title {
        font-size: 1.1rem; /* Smaller font size */
        margin-bottom: 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .content-card {
        height: 440px; /* Even smaller for mobile */
    }

    .card-img-top {
        height: 280px;
        padding: 8px;
    }

    .content-card .card-body {
        height: 160px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Lazy Images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: #f8f9fa;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Carousel Navigation */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 0.8;
}

.carousel-indicators {
    margin-bottom: 2rem;
    z-index: 3;
}

/* Enhanced Card Shadows */
.card {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

/* Improved Button Styles */
.btn {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,123,255,.15);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(255,255,255,.15);
}

/* Search Section Enhancement */
.search-section {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.search-section .card {
    border: none;
    background: rgba(255, 255, 255, 0.98);
}

/* Loading Skeleton Animation */
@keyframes loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.lazy-load {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.lazy-load.loaded {
    background: none;
    animation: none;
}
