/* Custom Utilities & Micro-interactions */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Smooth reveal animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Utility to hide/show elements before JS runs if needed, or maintain aspect */
.opacity-0-init { opacity: 0; }

/* ===== Gallery Marquee Auto-scroll ===== */
.gallery-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.gallery-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
}

.gallery-marquee-track:hover {
    animation-play-state: paused;
}

.gallery-marquee-reverse {
    animation-direction: reverse;
}

.gallery-marquee-content {
    display: flex;
    gap: 1rem;
    padding: 0 0.5rem;
    flex-shrink: 0;
}

.gallery-item {
    width: 260px;
    height: 280px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px -3px rgba(0,0,0,0.08);
    border: 3px solid white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px -5px rgba(0,0,0,0.2);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive gallery items */
@media (max-width: 768px) {
    .gallery-item {
        width: 200px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 160px;
        height: 180px;
    }
}
