/* static/css/style.css (FINAL VERSION with 3D Spin Effect) */

/* --- Font and Typography --- */
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 70px;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), 
        url("../images/page-background.46607029e3f3.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; }

/* --- General Styles --- */
.navbar-brand { font-weight: 700; font-size: 1.5rem; }
.card { transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; border: none; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
.card-title { color: #0d6efd; }
.footer { background-color: #343a40; color: white; padding: 20px 0; text-align: center; }

/* --- Hero Section Styling --- */
.hero-section {
    position: relative;
    height: 90vh; 
    color: white;
    background-image: url("../images/hero-background.ab3e88691126.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* MODIFIED: Add perspective for the 3D effect */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px; /* This creates the 3D "stage" */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}


/* --- Poster Carousel Section --- */
.poster-section {
    background-color: transparent; 
}

.swiper {
    width: 100%;
    padding: 40px 0;
}

.swiper-slide {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: scale(0.8);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide-active {
    transform: scale(1);
    opacity: 1;
}

.swiper-slide img {
    /* Ensure the image is always a block-level element and takes up space */
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* This will ensure the whole image is visible */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

:root {
    --swiper-pagination-color: #0d6efd;
}

/* --- Content Panel Style --- */
.content-panel {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* --- Navbar Logo --- */
.logo-img {
    height: 35px;
    width: auto;
    margin-right: 10px;
}

/* --- NEW: Keyframes for 3D Spin Animation --- */
@keyframes spinY {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}

/* MODIFIED: Styling for the Hero Logo */
.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    opacity: 1;
    
    /* Add 3D properties and the animation */
    transform-style: preserve-3d;
    animation: spinY 10s linear infinite; /* 10s duration, steady speed, repeats forever */
}

/* --- Animations for Hero Text --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }