/* Custom CSS styles for SabilBox */

/* Font import link is in header, styles applied here */
body {
    font-family: 'Fredoka', 'Cairo', 'Inter', system-ui, sans-serif;
    scroll-behavior: auto; /* Disabled for Lenis smooth scrolling */
}

/* Glassmorphism utility classes */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dark mode scrollbar */
.dark-theme ::-webkit-scrollbar-track {
    background: #0f172a;
}
.dark-theme ::-webkit-scrollbar-thumb {
    background: #334155;
}
.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Lenis smooth scrolling classes */
html.lenis {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overflow: clip;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Map Styling */
#map {
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border: 4px solid white;
}

/* Text glow effect */
.text-glow {
    text-shadow: 0 0 15px rgba(251, 146, 60, 0.3);
}

/* Infinite Auto-Scroll Carousel for Sponsors */
@keyframes infinite-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

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

/* Interactive SVG animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

@keyframes pulse-slow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.pulse-slow-anim {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Custom Leaflet Map Pin Pulse */
.map-pulse-icon {
    position: relative;
}
.map-pulse-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(251, 146, 60, 0.4);
    border-radius: 50%;
    animation: map-pulse 2s infinite;
    z-index: -1;
}

@keyframes map-pulse {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Grid layout pattern background overlay */
.pattern-bg {
    background-image: radial-gradient(rgba(251, 146, 60, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}
