/* ============================================
   MODERN COLOR PALETTE
   ============================================ */
:root {
    --primary-blue: #2563eb;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --soft-gray: #f8fafc;
    --warm-cream: #fef3c7;
    --soft-green: #d1fae5;
    --lavender: #ede9fe;
    --coral: #fecaca;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-warm: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-cool: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    font-family: 'Poppins', sans-serif;
}

main {
    min-height: calc(100vh - 200px);
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   PARALLAX EFFECT
   ============================================ */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.9;
    z-index: 1;
}

.parallax-section>* {
    position: relative;
    z-index: 2;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98) !important;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: #1e293b !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: #2563eb !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 70%;
}

/* Donasi Button */
.btn-donasi {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-donasi::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-donasi:hover::before {
    left: 100%;
}

.btn-donasi:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.btn-donasi:active {
    transform: translateY(-1px);
}

/* Logo & Brand */
.navbar-brand {
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(37, 99, 235, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(59, 130, 246, 0.9) 50%, rgba(147, 197, 253, 0.85) 100%),
        url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1920&h=1080&fit=crop') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

/* ============================================
   QUICK ACCESS SECTION
   ============================================ */
.quick-access-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

.quick-access-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 140px;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
}

.quick-access-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

.quick-icon {
    transition: transform 0.3s ease;
}

.quick-access-item:hover .quick-icon {
    transform: scale(1.1);
}

.quick-title {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* ============================================
   SECTION BACKGROUNDS
   ============================================ */
#tentang {
    background: #ffffff;
    position: relative;
    background-image: radial-gradient(#dbeafe 1px, transparent 1px);
    background-size: 30px 30px;
}

#pilar {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    position: relative;
}

#pilar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 33c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm52-3c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-7 15c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-16 47c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM12 46c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm48 3c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm23 11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%233b82f6' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

#program {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    position: relative;
}

#statistik {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(37, 99, 235, 0.9) 100%),
        url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1920&h=1080&fit=crop') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

#statistik::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

section.bg-light {
    background: linear-gradient(180deg, #ede9fe 0%, #ddd6fe 100%) !important;
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.hover-white:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    display: inline-block;
    transition: all 0.3s ease;
}

/* ============================================
   STATS SECTION - IMPROVED
   ============================================ */
.stats-item {
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: block;
}

.stats-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }

    .hero-section,
    #statistik {
        background-attachment: scroll;
    }

    .quick-access-item {
        min-width: 120px;
        height: 120px;
        padding: 1rem;
    }

    .quick-icon i {
        font-size: 1.5rem !important;
    }

    .quick-title {
        font-size: 0.875rem;
    }

    .stats-number {
        font-size: 2.5rem;
    }

    .stats-unit {
        font-size: 1.25rem;
    }

    .stats-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .stats-number {
        font-size: 2rem;
    }

    .stats-unit {
        font-size: 1rem;
    }
}

/* ============================================
   GOOGLE MAPS FOOTER STYLES - CLEAN VERSION
   ============================================ */
.map-container {
    position: relative;
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Efek Dark Mode pada Peta Google Maps - SATU DEFINISI SAJA */
.map-container iframe {
    filter: grayscale(30%) invert(92%) contrast(83%);
    transition: filter 0.4s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) invert(0%) contrast(100%);
}

/* Overlay Gradient di atas Peta */
.map-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 70%, transparent 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.map-container:hover .map-overlay {
    background-color: rgba(0, 0, 0, 0.85) !important;
}

.map-overlay .btn {
    transition: all 0.3s ease;
}

.map-overlay .btn:hover {
    transform: scale(1.05);
}

/* ============================================
   SOCIAL MEDIA ICONS - IMPROVED VISIBILITY
   ============================================ */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important; /* PAKSA WARNA PUTIH */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon i {
    font-size: 1.25rem;
    line-height: 1;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: #ffffff !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
    border-color: transparent;
}

/* Responsive Map untuk Mobile */
@media (max-width: 768px) {
    .map-container {
        height: 250px !important;
    }
    
    .map-overlay .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 220px !important;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .social-icon i {
        font-size: 1.1rem;
    }
}

/* ============================================
   LEAFLET CARD STYLES (LOKASI CABANG)
   ============================================ */
.leaflet-card {
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid transparent;
    position: relative;
}

/* Efek hover: Naik dan border atas muncul */
.leaflet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15) !important;
    border-top-color: var(--primary-blue);
}

/* Dekorasi lipatan kertas di pojok kanan atas (opsional, untuk efek leaflet) */
.leaflet-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--light-blue) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.leaflet-card:hover::before {
    opacity: 1;
}

/* Hover effect untuk link kontak */
.hover-link {
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 6px;
}

.hover-link:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue) !important;
}

.hover-link i {
    transition: transform 0.2s ease;
}

.hover-link:hover i {
    transform: scale(1.2);
}

/* Badge Kantor Pusat */
.badge.bg-warning.text-dark {
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .leaflet-card::before {
        border-width: 0 30px 30px 0;
    }
}