@import "style.css";

/* Enhanced Gallery Section */
#gallery {
    padding: 5rem 0;
    background: var(--base-white);
    position: relative;
    overflow: hidden;
}

.gallery-slideshow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(12, 31, 63, 0.15);
    background: var(--primary-navy);
}

.gallery-slide {
    display: none;
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-slide.active {
    display: block;
    animation: slideIn 0.8s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            135deg,
            rgba(12, 31, 63, 0.3) 0%,
            rgba(92, 138, 137, 0.2) 50%,
            rgba(255, 215, 0, 0.1) 100%
    );
    z-index: 1;
}

.gallery-slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 2;
    color: white;
    padding: 30px;
    background: rgba(12, 31, 63, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
}

.gallery-slide.active .gallery-slide-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.gallery-slide-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold-accent);
}

.gallery-slide-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Navigation Controls */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(12, 31, 63, 0.8);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-nav:hover {
    background: rgba(12, 31, 63, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(12, 31, 63, 0.3);
}

.gallery-nav.prev {
    left: 30px;
}

.gallery-nav.next {
    right: 30px;
}

.gallery-nav svg {
    width: 20px;
    height: 20px;
}

/* Thumbnail Navigation */
.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 0 20px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gallery-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 31, 63, 0.4);
    transition: all 0.3s ease;
}

.gallery-thumb.active {
    border-color: var(--gold-accent);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.gallery-thumb.active::before {
    background: rgba(255, 215, 0, 0.2);
}

.gallery-thumb:hover {
    transform: scale(1.05);
    border-color: var(--accent-teal);
}

.gallery-thumb:hover::before {
    background: rgba(92, 138, 137, 0.3);
}

/* Progress Indicator */
.gallery-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--gold-accent);
    transition: width 0.3s ease;
    z-index: 3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-slide {
        height: 400px;
    }

    .gallery-slide-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 20px;
    }

    .gallery-slide-title {
        font-size: 1.4rem;
    }

    .gallery-nav {
        width: 50px;
        height: 50px;
    }

    .gallery-nav.prev {
        left: 15px;
    }

    .gallery-nav.next {
        right: 15px;
    }

    .gallery-thumbnails {
        gap: 10px;
        overflow-x: auto;
        padding: 0 20px;
    }

    .gallery-thumb {
        min-width: 60px;
        height: 45px;
    }
}

/* Auto-play indicator */
.gallery-play-pause {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(12, 31, 63, 0.8);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-play-pause:hover {
    background: rgba(12, 31, 63, 0.95);
    transform: scale(1.1);
}