@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');

/* Gallery Section Base Styles */
.gallery-section {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(4px);
    overflow: visible;
    min-height: 100vh;
    padding-bottom: 0;
}

.section-header {
    padding-top: 4rem;
    margin-bottom: 2rem;
}

/* Banner and Slider Styles */
.banner {
    width: 100%;
    min-height: 60vh;
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
    overflow: visible;
    background: linear-gradient(120deg, rgba(60,64,160,0.10) 0%, rgba(0,255,136,0.06) 100%);
}

.banner .slider {
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 30s linear infinite;
    z-index: 2;
}

.banner .slider .item {
    position: absolute;
    inset: 0;
    transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(400px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, filter 0.3s;
    backface-visibility: hidden;
    box-shadow: 0 8px 32px 0 rgba(92,108,255,0.18), 0 0 0 4px rgba(99,102,241,0.10);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(99,102,241,0.13);
    background: rgba(255,255,255,0.01);
}

.banner .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.18);
    transition: transform 0.4s, filter 0.4s;
    transform: scale(1);
    filter: brightness(0.96) saturate(1.1);
}

.banner .slider .item:hover {
    box-shadow: 0 12px 40px 0 rgba(92,108,255,0.28), 0 0 0 8px rgba(0,255,136,0.10);
    filter: brightness(1.08) saturate(1.2);
    transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(400px) scale(1.07) rotateZ(-2deg);
}

.banner .slider .item:hover img {
    transform: scale(1.10) rotateZ(1.5deg);
    filter: brightness(1.12) saturate(1.25) drop-shadow(0 4px 24px #5b5ef7cc);
}

/* Animated light sweep overlay */
.banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(0,255,136,0.04) 100%);
    opacity: 0.7;
    z-index: 1;
    animation: galleryLightSweep 6s linear infinite alternate;
}

@keyframes galleryLightSweep {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Modal styles for expanded image */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(18,20,32,0.92);
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.gallery-modal.active {
    display: flex;
}
.gallery-modal img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.45);
    background: #181a2a;
    padding: 8px;
}
.gallery-modal .close-btn {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.5rem;
    color: #fff;
    background: rgba(0,0,0,0.25);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s;
}
.gallery-modal .close-btn:hover {
    background: rgba(99,102,241,0.25);
}

.banner .content{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}
.banner .content h1{
    font-family: 'ICA Rubrik';
    font-size: 16em;
    line-height: 1em;
    color: #25283B;
    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/model.png);
    width: 100%;
    height: 75vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}

/* Gallery CTA Button */
.gallery-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 0 1rem;
}

.gallery-cta .course-btn {
    min-width: 200px;
    text-align: center;
    padding: 0.9rem 2.2rem;
    background: linear-gradient(90deg, #5b5ef7 0%, #00ff88 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
    border-radius: 32px;
    box-shadow: 0 4px 24px 0 rgba(92,108,255,0.13);
    border: none;
    outline: none;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.gallery-cta .course-btn:hover {
    background: linear-gradient(90deg, #00ff88 0%, #5b5ef7 100%);
    color: #fff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 32px 0 rgba(92,108,255,0.22);
}

/* Animations */
@keyframes autoRun {
    from {
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }
    to {
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
    .banner .slider {
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }
    
    .banner .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(300px);
    }
    
    .gallery-section {
        min-height: 80vh;
    }
    
    .banner {
        min-height: 40vh;
    }
}

@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(200px);
    }
    
    .gallery-cta {
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .banner {
        min-height: 35vh;
        padding-bottom: 0.5rem;
    }
    
    .gallery-section {
        min-height: 70vh;
    }
    
    .gallery-cta .course-btn {
        min-width: 180px;
    }
}

