/* Custom animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animation-delay-200 {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Hero Section Enhancements */
.hero-bg-image {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive hero image optimization */
@media (max-width: 768px) {
    .hero-bg-image {
        background-attachment: scroll;
    }
}

/* Enhanced text shadow for better readability */
.hero-text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Parallax effect for modern look */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Certificate Carousel Smooth Scrolling */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.animate-scroll {
    animation: scroll 20s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Map UI tweaks */
#worldMap {
    background: #0f1115; /* fallback behind tiles */
}

/* Blue glow for markers to match reference */
.swam-marker {
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.65)) drop-shadow(0 0 2px rgba(96, 165, 250, 0.8));
    cursor: pointer;
}

/* Slightly reduce tile brightness for stronger contrast */
#worldMap .leaflet-tile {
    filter: brightness(0.9) contrast(1.05);
}

/* Remove default Leaflet corner logos/attribution spacing if any */
#worldMap .leaflet-control-container {
    display: none;
}

/* Ensure navbar overlays the map panes */
nav {
    z-index: 1000 !important; /* higher than Leaflet panes (200-650) */
}
