/* Debug outline (optional) */
/* * {
    outline: 1px solid red !important;
} */

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Gradient background helper */
.gradient-bg {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
}

/* Glass effect (better browser support) */
.glass-effect {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar for dropdowns (WebKit) */
.dropdown-scroll::-webkit-scrollbar {
    width: 4px;
}

.dropdown-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dropdown-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Smooth fade / dropdown animations for group-hover classes */
.group:hover .group-hover\:visible {
    visibility: visible;
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0);
}

/* Slow Zoom Effect (Ken Burns) */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.animate-ken-burns {
    animation: kenBurns 20s ease-out infinite alternate;
}

/* Text Entrance Animation */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Only animate the active slide's text */
.carousel-item.opacity-100 .animate-slide-up,
.carousel-item.opacity-100 h1,
.carousel-item.opacity-100 p,
.carousel-item.opacity-100 button {
    animation: slideUpFade 0.8s ease-out forwards;
}

/* Hide content in inactive slides so they can re-animate */
.carousel-item.opacity-0 h1,
.carousel-item.opacity-0 p,
.carousel-item.opacity-0 button {
    opacity: 0;
}

/* Hide scrollbar utility */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Modern gallery card */
.gallery-card {
    min-width: 300px;
    max-width: 320px;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.25);
}

/* Gallery image animation */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.12);
}

/* Social buttons */
.social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border-radius: 8px;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 12px rgba(2, 20, 40, 0.15);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.03);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.05));
    box-shadow: 0 10px 30px rgba(2, 20, 40, 0.28);
}

/* Input focus (footer email) */
#footer-email:focus {
    box-shadow: 0 6px 20px rgba(15, 100, 150, 0.12);
}

/* Small screens - center bottom text nicely */
@media (max-width: 1024px) {
    .container .border-t {
        text-align: center;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

/* Pause animation on hover for better UX */
.group:hover .animate-marquee {
    animation-play-state: paused;
}