/* ========================================
   HERO SECTION WITH VIDEO BACKGROUND
   ======================================== */
.hero-section {
    position: relative;
    padding: 120px 0 80px;
    color: white;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* Image Background */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Prevent flash on load */
.hero-video.loading {
    opacity: 0;
}

/* Elegant Gradient Overlay - Natural Blue-Green Blend */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 40, 50, 0.88) 0%,
        rgba(15, 55, 65, 0.85) 50%,
        rgba(20, 65, 75, 0.83) 100%
    ) !important;
    z-index: 1;
}

/* Additional overlay for depth - subtle teal tint */
.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(15, 55, 65, 0.1) 0%,
        rgba(10, 40, 50, 0.3) 100%
    ) !important;
}

/* Content Layer */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Text Styling - PURE BRIGHT WHITE with Ultra Strong Shadows */
.hero-section h1 {
    color: #FFFFFF !important;
    text-shadow:
        3px 3px 10px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(0, 0, 0, 0.7),
        5px 5px 15px rgba(0, 0, 0, 0.6),
        1px 1px 3px rgba(0, 0, 0, 1);
    font-weight: 800;
    animation: fadeInUp 0.4s ease-out;
    letter-spacing: -0.5px;
    font-size: 2.5rem;
}

.hero-section .lead {
    color: #FFFFFF !important;
    text-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(0, 0, 0, 0.6),
        4px 4px 12px rgba(0, 0, 0, 0.5),
        1px 1px 2px rgba(0, 0, 0, 1);
    font-size: 1.25rem;
    animation: fadeInUp 0.5s ease-out;
    font-weight: 500;
    line-height: 1.8;
    opacity: 0.98;
}

/* Button Animations */
.hero-section .d-flex {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   NAVIGATION BAR - HIGH CONTRAST
   ======================================== */

/* Navbar when transparent over hero */
.navbar-landing {
    background-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Fixed navbar z-index must be below modal */
.navbar.fixed-top,
.navbar-landing.fixed-top {
    z-index: 1030 !important;
}

/* Navbar scrolled state with solid background */
.navbar-landing.is-sticky {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation Links - Pure White when over hero */
.navbar-landing .navbar-nav .nav-link {
    color: #FFFFFF !important;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

/* Active Navigation Link - Bright Green/Yellow */
.navbar-landing .navbar-nav .nav-link.active {
    color: #fbbf24 !important;
    font-weight: 600;
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(251, 191, 36, 0.3);
}

/* Navigation Link Hover */
.navbar-landing .navbar-nav .nav-link:hover {
    color: #fbbf24 !important;
    transform: translateY(-2px);
}

/* Scrolled navbar - dark text */
.navbar-landing.is-sticky .navbar-nav .nav-link {
    color: #374151 !important;
    text-shadow: none;
}

.navbar-landing.is-sticky .navbar-nav .nav-link.active {
    color: #10b981 !important;
    text-shadow: none;
}

.navbar-landing.is-sticky .navbar-nav .nav-link:hover {
    color: #10b981 !important;
}

/* Login button in navbar */
.navbar-landing .btn-primary {
    background-color: #10b981;
    border-color: #10b981;
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.navbar-landing .btn-primary:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Mobile menu toggle - white icon */
.navbar-landing .navbar-toggler {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-landing.is-sticky .navbar-toggler {
    color: #374151 !important;
    border-color: rgba(55, 65, 81, 0.3);
}

/* ========================================
   LOGO PEMPROV & SEPARATOR
   ======================================== */
.logo-pemprov {
    height: 75px !important;
    width: auto !important;
    transition: transform 0.3s ease;
}

.logo-pemprov:hover {
    transform: scale(1.05);
}

.logo-separator {
    width: 2px;
    height: 75px;
    background: linear-gradient(180deg, transparent 0%, #10b981 50%, transparent 100%);
    opacity: 0.6;
}

.navbar-landing.is-sticky .logo-separator {
    background: linear-gradient(180deg, transparent 0%, #374151 50%, transparent 100%);
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo-pemprov {
        height: 60px !important;
    }

    .logo-separator {
        height: 65px;
    }

    .navbar-brand .card-logo {
        height: 65px !important;
    }
}

/* ========================================
   HERO BUTTONS - ULTRA HIGH CONTRAST WITH CLEAR HIERARCHY
   ======================================== */

/* PRIMARY BUTTON - Dominant Solid Bright Green (CTA) */
.hero-section .btn-light {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 3px solid #10b981 !important;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow:
        0 8px 25px rgba(16, 185, 129, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.hero-section .btn-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-section .btn-light:hover::before {
    left: 100%;
}

.hero-section .btn-light:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #059669 !important;
    color: #FFFFFF !important;
    box-shadow:
        0 12px 32px rgba(16, 185, 129, 0.7),
        0 6px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.02);
}

.hero-section .btn-light:active {
    transform: translateY(-2px) scale(1);
}

/* SECONDARY BUTTON - Outline Style with Golden Yellow */
.btn-warning-custom {
    background: linear-gradient(135deg, transparent 0%, transparent 100%) !important;
    border: 3px solid #fbbf24 !important;
    color: #fbbf24 !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    box-shadow:
        0 6px 20px rgba(251, 191, 36, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.7),
        0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Shine animation effect */
.btn-warning-custom::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 cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn-warning-custom:hover::before {
    left: 100%;
}

/* Background fill on hover */
.btn-warning-custom:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    border-color: #f59e0b !important;
    color: #1f2937 !important;
    box-shadow:
        0 8px 24px rgba(251, 191, 36, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px) scale(1.01);
    text-shadow: none;
}

.btn-warning-custom:active {
    transform: translateY(-1px) scale(1);
}

/* Icon inside buttons - ensure high visibility and stay above animations */
.hero-section .btn i {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    font-size: 1.2em;
    vertical-align: middle;
    position: relative;
    z-index: 2;
}

/* Text content inside buttons - ensure stays above animations */
.btn-warning-custom,
.hero-section .btn-light {
    z-index: 0;
}

.btn-warning-custom *,
.hero-section .btn-light * {
    position: relative;
    z-index: 2;
}

/* Button spacing for clear visual separation */
.hero-section .d-flex {
    gap: 1.5rem !important;
}

/* SECONDARY LINK - Subtle text link (not competing with primary CTA) */
.btn-link-hero {
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link-hero:hover {
    color: #fbbf24 !important;
    border-bottom-color: #fbbf24;
    transform: translateX(5px);
}

.btn-link-hero i {
    transition: transform 0.3s ease;
}

.btn-link-hero:hover i {
    transform: translateX(5px);
}

/* ========================================
   SOCIAL PROOF COUNTER - Hero Section
   ======================================== */
.hero-social-proof {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.social-proof-item {
    text-align: center;
}

.social-proof-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow:
        2px 2px 8px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(16, 185, 129, 0.4);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.social-proof-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.social-proof-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
}

/* Trust Badges */
.trust-badges-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 2rem;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.trust-badge i {
    font-size: 1rem;
    color: #10b981;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.6));
}

.trust-badge:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-social-proof {
        padding: 1.25rem 1.5rem;
        margin-top: 2rem;
    }

    .social-proof-number {
        font-size: 1.75rem;
    }

    .social-proof-label {
        font-size: 0.75rem;
    }

    .social-proof-divider {
        display: none;
    }

    .trust-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .trust-badge i {
        font-size: 0.9rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN - MAINTAIN HIGH CONTRAST
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
        /* Remove fixed height to prevent content cutoff */
    }

    .hero-video {
        /* Keep video on mobile for better performance */
        display: block;
    }

    /* Ensure overlay maintains blue-green blend on mobile */
    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(10, 40, 50, 0.90) 0%,
            rgba(20, 65, 75, 0.88) 100%
        ) !important;
    }

    .hero-overlay::after {
        background: radial-gradient(
            ellipse at center,
            rgba(15, 55, 65, 0.15) 0%,
            rgba(10, 40, 50, 0.4) 100%
        ) !important;
    }

    .hero-section h1 {
        font-size: 1.6rem !important;
        letter-spacing: -0.3px;
    }

    .hero-section .lead {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    .hero-section .btn-lg {
        font-size: 1rem;
        padding: 0.85rem 1.5rem !important;
    }

    /* Stack buttons vertically on mobile with clear hierarchy */
    .hero-section .d-flex {
        flex-direction: column;
        gap: 1rem !important;
        align-items: stretch;
    }

    .hero-section .d-flex .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Primary button slightly larger on mobile */
    .hero-section .btn-light {
        font-size: 1.05rem !important;
        padding: 1rem 1.75rem !important;
    }

    /* Secondary button slightly smaller to maintain hierarchy */
    .btn-warning-custom {
        font-size: 0.95rem !important;
        padding: 0.85rem 1.5rem !important;
    }

    /* Navbar mobile adjustments */
    .navbar-landing .navbar-collapse {
        background-color: rgba(15, 55, 65, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }

    .navbar-landing.is-sticky .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
    }
}

/* Extra small devices (max-width: 576px) */
@media (max-width: 576px) {
    .hero-section {
        padding: 90px 0 50px;
    }

    .hero-section h1 {
        font-size: 1.4rem !important;
    }

    .hero-section .lead {
        font-size: 0.95rem !important;
    }

    .hero-social-proof {
        padding: 1rem !important;
    }

    .social-proof-number {
        font-size: 1.5rem !important;
    }

    .social-proof-label {
        font-size: 0.7rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }
}
.stats-card {
    transition: transform 0.3s ease;
}
.stats-card:hover {
    transform: translateY(-5px);
}
#public-map {
    height: 400px;
    width: 100%;
    border-radius: 0.5rem;
}

/* Map section responsive */
@media (max-width: 768px) {
    #public-map {
        height: 350px;
        border-radius: 16px;
    }

    #map {
        padding: 60px 0 !important;
    }

    #map h2 {
        font-size: 1.75rem !important;
    }

    #map p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 576px) {
    #public-map {
        height: 300px;
    }

    #map {
        padding: 50px 0 !important;
    }

    #map h2 {
        font-size: 1.5rem !important;
    }
}

/* Remove focus outline from leaflet map for cleaner UX */
#public-map:focus,
#public-map *:focus,
.leaflet-container:focus,
.leaflet-container *:focus {
    outline: none !important;
}

/* Ensure map is not focusable */
.leaflet-container {
    outline: none !important;
}
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 50%;
}
/* Custom marker styles for public map */
.custom-marker-public {
    background: transparent;
    border: none;
}
.marker-pin-public {
    width: 25px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}
/* Popup styles */
.leaflet-popup-content {
    margin: 8px 12px;
    min-width: 250px;
}
.popup-header-public {
    background: linear-gradient(135deg, #2d7a3e 0%, #10b981 100%);
    color: white;
    padding: 8px 12px;
    margin: -8px -12px 8px -12px;
    border-radius: 3px 3px 0 0;
    font-weight: bold;
}
.popup-content-public {
    font-size: 13px;
}
.popup-content-public .row {
    margin-bottom: 5px;
}
.popup-content-public .label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    display: inline-block;
}
.popup-content-public .value {
    color: #212529;
}
