@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* =================================================================== */
/* === MOBILE FIRST STYLES (Your Original 3D Carousel) ============== */
/* =================================================================== */

:root {
  --spice-gold: #D4AF37;
  --desert-sand: #F4E4BC;
  --deep-black: #0A0A0A;
  --spice-orange: #FF8C00;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Default body for mobile */
body{
    background-color: #000000;
    background-image:
    repeating-linear-gradient(
        to right, transparent 0 100px,
        #25283b22 100px 101px
    ),
    repeating-linear-gradient(
        to bottom, transparent 0 100px,
        #25283b22 100px 101px
    );
    overflow: hidden;
}

body::before{
    position: absolute;
    width: min(1400px, 90vw);
    top: 10%;
    left: 50%;
    height: 90%;
    transform: translateX(-50%);
    content: '';
    background-image: url(../images/bg.png); /* Corrected path assuming css is in static/style */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    pointer-events: none;
}

.gallery-desktop {
    display: none; /* Hide desktop gallery by default */
}

/* --- Mobile Banner & 3D Slider Styles --- */
.banner{
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.banner .slider{
    position: absolute;
    width: 150px;
    height: 200px;
    top: 5%; /* <-- MODIFIED (was 10%) - Moves slider up */
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 2;
}
@keyframes autoRun{
    from{
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }to{
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}
.banner .slider .item{
    position: absolute;
    inset: 0 0 0 0;
    transform: 
        rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(350px);
}
.banner .slider .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out; /* Fade transition */
}
.banner .slider .item img.fade-out {
    opacity: 0; /* Class to trigger fade out */
}
.banner .content{
    position: absolute;
    bottom: 0;
    left: 75%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 60px; /* <-- MODIFIED (was 100px) - Moves content down */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}
.banner .content h1{
    font-family: 'ICA Rubrik';
    font-size: 10em;
    line-height: 1em;
    color: #FF8C00;
    position: relative;
}
.banner .content h1::after{
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}
.banner .content .author{
    font-family: Poppins;
    text-align: right;
    max-width: 200px;
}
.banner .content h2{
    font-size: 3em;
}
.banner .content .model{
    background-image: url(../images/PrayagLoop11.gif); /* Corrected path */
    width: 100%;
    height: 80vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}

/* --- Mobile Media Queries (from your original file) --- */
@media screen and (max-width: 1023px) {
    .banner .slider{
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }
    .banner .content{
        left: 50%;
    }
    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(300px);
    }
    .banner .content h1{
        text-align: center;
        width: 100%;
        text-shadow: 0 10px 20px #000;
        font-size: 7em;
    }
    .banner .content .author{
        color: #fff;
        padding: 20px;
        text-shadow: 0 10px 20px #000;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
}
@media screen and (max-width: 767px) {
    .banner .slider{
        width: 100px;
        height: 150px;
        left: calc(50% - 50px);
    }
    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(150px);
    }
    .banner .content h1{
        font-size: 5em;
    }
    .banner .content{
        left: 50%;
    }
}
@media screen and (max-width: 480px) {
    .banner .content h1 {
        font-size: 3em;
    }
    .banner .slider {
        width: 80px;
        top: 25%;
        height: 120px;
        left: calc(50% - 40px);
    }
    .banner .content{
        left: 50%;
    }
}


/* =================================================================== */
/* === DESKTOP STYLES (New Swiper.js Gallery) ======================== */
/* =================================================================== */
@media screen and (min-width: 1024px) {
    
    /* Swap visibility */
    .gallery-mobile {
        display: none;
    }
    .gallery-desktop {
        display: block;
    }
    
    /* Override body styles for desktop view */
    body {
        background: radial-gradient(circle at center, var(--deep-black) 60%, #000 100%);
        font-family: 'Orbitron', monospace;
        color: var(--desert-sand);
        overflow: hidden;
    }
    /* Remove the ::before pseudo-element on desktop */
    body::before {
        display: none;
    }
    
    /* Starfield Background */
    .stars, .stars2, .stars3 {
        position: fixed; top: 0; left: 0; width: 100%; height: 120%;
        transform: rotate(0deg); z-index: 0;
    }
    .stars {
        background-image: 
            radial-gradient(4px 4px at 20px 30px, #D4AF37, transparent), radial-gradient(3px 3px at 40px 70px, #D4AF37, transparent),
            radial-gradient(1px 1px at 90px 40px, #D4AF37, transparent), radial-gradient(1px 1px at 130px 80px, #D4AF37, transparent),
            radial-gradient(2px 2px at 160px 30px, #D4AF37, transparent);
        background-repeat: repeat; background-size: 200px 100px; animation: stars 20s linear infinite;
    }
    .stars2 {
        background-image: 
            radial-gradient(3px 3px at 40px 60px, #D4AF37, transparent), radial-gradient(1px 1px at 120px 50px, #D4AF37, transparent),
            radial-gradient(1px 1px at 190px 90px, #D4AF37, transparent), radial-gradient(1px 1px at 60px 20px, #D4AF37, transparent);
        background-repeat: repeat; background-size: 250px 120px; animation: stars 30s linear infinite;
    }
    .stars3 {
        background-image: 
            radial-gradient(1px 1px at 10px 10px, #D4AF37, transparent), radial-gradient(1px 1px at 150px 150px, #D4AF37, transparent),
            radial-gradient(1px 1px at 60px 150px, #D4AF37, transparent), radial-gradient(1px 1px at 175px 50px, #D4AF37, transparent),
            radial-gradient(2px 2px at 100px 75px, #D4AF37, transparent);
        background-repeat: repeat; background-size: 300px 200px; animation: stars 40s linear infinite;
    }
    @keyframes stars {
        from { transform: translateY(0px); }
        to { transform: translateY(-2000px); }
    }
    
    /* Desktop Title */
    .gallery-desktop h1 {
        text-align: center; padding: 20px; font-size: 3rem; color: var(--spice-gold);
        letter-spacing: 3px; background: linear-gradient(135deg, var(--spice-gold), var(--spice-orange));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        animation: titleGlow 2s ease-in-out infinite;
        text-shadow: 0 0 30px rgba(255, 195, 0, 0.6);
    }
    @keyframes titleGlow { 
      50% { text-shadow: 0 0 50px rgba(255, 165, 0, 0.8); } 
    }

    /* Swiper Styles */
    .swiper {
      width: 90%;
      height: 80vh;
    }
    .swiper-slide {
      background-position: center; background-size: cover; width: 320px; height: 450px;
      border-radius: 20px; overflow: hidden; box-shadow: 0 15px 40px rgba(212,175,55,0.3);
      transition: transform 0.6s ease, box-shadow 0.6s ease; border: 2px solid var(--spice-gold);
    }
    .swiper-slide img {
      width: 100%; height: 100%; object-fit: cover;
    }
    .swiper-slide-active {
      transform: scale(1.08); box-shadow: 0 20px 60px rgba(255,140,0,0.6);
    }
    .swiper-pagination-bullet {
      background: var(--spice-gold); opacity: 0.7;
    }
    .swiper-pagination-bullet-active {
      background: var(--spice-orange); opacity: 1; transform: scale(1.2);
    }
}