@import url('https://fonts.googleapis.com/css2?family=Karma:wght@300;400;500;600;700&family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-margin-top: 5rem;
}
:root {
    --fontXL: 4rem;
    --fontL: 2rem;
    --fontB: 1.5rem;
    --fontMM: 1.2rem;
    --fontM: 1rem;
    --fontS: 0.85rem;
    --primary-color: #133E87;
    --secondary-color: #608BC1;
    --third-color: #CBDCEB;
    --light-color: #F3F3E0;
    --white-color: #FFFFFF;
    --primary-transparent: #133e8782;

}

/* General Body Styles */
body {
    margin: 0;
    font-family: 'Karma', serif;
    
    color: var(--primary-color);
    overflow-x: hidden;
}

/* Base typography: use Karma for general text; keep headers, titles, logos, and navbar in display fonts */
body, p, li, a, span, small, label, input, textarea, button, figcaption {
    font-family: 'Karma', serif;
}

h1, h2, h3, h4, h5, h6,
.header-title, .header-title .desa-name, .header-title .kabupaten-name,
.main-title h1 {
    font-family: 'Playfair Display SC', serif;
}

/* Ensure navbar and logo keep display font */
.nav-links a,
.logo a,
.nav-wrapper nav .logo a {
    font-family: 'Playfair Display SC', serif;
}

/* Animation on scroll */
.hidden {
    opacity: 0;
    transition: all 1s;
    filter: blur(5px);
    transform: translateX(-100%);
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.header-logo{
        width: 55px;
        height: 55px;
        border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    backdrop-filter: blur(2px);
    }
/* Enhanced Header with Immersive Design */
.header-container {
    height: calc(100vh + 60px); /* extend to cover nav overlap */
    min-height: 660px; /* increased to keep coverage on shorter viewports */
    background-image: url('../batu tongkarayya,2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Background Layers */
.header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(96,139,193,0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(19,62,135,0.1) 0%, transparent 70%);
    animation: backgroundShift 20s ease-in-out infinite alternate;
    z-index: 1;
}

.header-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="headerGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.06)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.06)"/><circle cx="80" cy="30" r="0.5" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23headerGrain)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
    animation: grainFloat 15s ease-in-out infinite alternate;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(19,62,135,0.85) 0%, 
        rgba(96,139,193,0.75) 50%, 
        rgba(19,62,135,0.85) 100%);
    display: flex;
    flex-direction: column;
    padding: 20px 50px;
    z-index: 3;
    animation: overlayPulse 25s ease-in-out infinite alternate;
}

/* Header grid content to prevent overlaps */
.header-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 40px;
    align-items: center;
    justify-items: stretch;
    padding: 30px 0 40px 0;
    min-height: 70vh;
}

.header-top {
    width: 100%;
}

.header-title {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    width: fit-content;
}

.header-title .desa-name {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 3;
}

.header-title .kabupaten-name {
    font-size: 0.9em;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
    position: relative;
    z-index: 3;
}

/* Main Title "DESA WISATA ANDALAN" */

/* Hero enhancements */
.hero-tagline {
    margin-top: 14px;
    font-size: 1.08em;
    color: var(--white-color);
    letter-spacing: 0.3px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
    background: rgba(255, 255, 255, 0.16);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.hero-actions {
    margin-top: 22px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: 'Playfair Display SC', serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.hero-btn::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-btn:hover::before {
    left: 100%;
}

.hero-btn.primary {
    background: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--white-color);
}

.hero-btn.primary:hover {
    background: transparent;
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.hero-btn.secondary {
    background: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.hero-btn.secondary:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* Decorative tape separator below header */
.tape {
    height: 12px;
    background: linear-gradient(90deg, #5B85BB 0%, var(--secondary-color) 50%, #5B85BB 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .main-title {
        align-items: center;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-tagline {
        font-size: 0.95em;
        padding: 8px 16px;
    }
}



.main-title {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align text to the left */
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 24px 28px;
    border-radius: 20px;
    border: none;
    box-shadow: none;
    max-width: 900px;
}

.main-title h1 {
    font-size: clamp(2.4rem, 3vw, 4rem);
    font-weight: 300;
    margin: 0;
    line-height: 1.05;
    letter-spacing: 3px;
    position: relative;
    z-index: 4;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f0f8ff 25%, 
        #e6f3ff 50%, 
        #ffffff 75%,
        #f0f8ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation:
        titleEntrance 0.9s ease-out 0.3s both,
        gradientShift 8s ease-in-out 1.1s infinite,
        titleFloat 6s ease-in-out 1.2s infinite;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
        filter: blur(0px);
    }
}

.main-title h1 span {
    opacity: 1;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff; /* fallback */
}

.main-title h1 strong {
    font-weight: 900; /* Extra bold for the second word */
    background: linear-gradient(135deg, #ffffff 0%, #e6f3ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.sub-title-wrapper {
    position: absolute;
    bottom: 80px; /* Position above the navigation bar */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

.sub-title-text {
    font-size: 0.9em;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    position: relative;
    z-index: 3;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

/* Floating Info Cards */
.floating-info-cards {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: center;
    justify-self: end;
    z-index: 4;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px 20px;
    min-width: 200px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: cardEntrance 0.8s ease-out forwards;
    animation-delay: var(--delay, 1s);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(0) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2.5em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

.card-content {
    display: flex;
    flex-direction: column;
    color: var(--white-color);
}

.card-number {
    font-size: 2em;
    font-weight: 900;
    line-height: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-text {
    font-size: 0.9em;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 4;
    opacity: 0;
    animation: scrollIndicatorEntrance 1s ease-out 2s forwards;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-arrow span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--white-color);
    border-right: 2px solid var(--white-color);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.15s;
}

.scroll-arrow span:nth-child(3) {
    animation-delay: 0.3s;
}

.scroll-text {
    color: var(--white-color);
    font-size: 0.9em;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    opacity: 0.9;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes scrollIndicatorEntrance {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.7;
    }
    40% {
        transform: rotate(45deg) translateY(-10px);
        opacity: 1;
    }
    60% {
        transform: rotate(45deg) translateY(-5px);
        opacity: 0.9;
    }
}


/* Navigation Bar */
.nav-wrapper {
    text-align: center;
    padding: 0;
    margin-top: 0;
    position: relative;
    top: 0;
    z-index: 200;
    /* REVOLUTIONARY SMOOTH TRANSITION SYSTEM */
    transition: 
        transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        background-color 0.4s ease,
        padding 0.5s ease,
        box-shadow 0.4s ease,
        border 0.4s ease;
    transform: translateY(50%); /* Overlap top edge of main */
    display: grid;
    place-items: center;
    height: auto;
    /* Smooth width transition container */
    width: 100%;
    box-sizing: border-box;
    /* Beautiful gradient border */
    border: 2px solid transparent;
    background: 
        linear-gradient(transparent, transparent) padding-box,
        linear-gradient(135deg, 
            var(--secondary-color) 0%, 
            var(--primary-color) 25%, 
            var(--secondary-color) 50%, 
            var(--primary-color) 75%, 
            var(--secondary-color) 100%
        ) border-box;
    border-radius: 35px;
}

.nav-wrapper.nav-sticky {
    position: sticky;
    top: 10px;
    /* SMOOTH TRANSFORM TRANSITION */
    transform: translateY(0) scale(1);
    z-index: 300;
    /* Enhanced sticky state */
    padding: 8px 20px;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    margin: 0 auto;
    max-width: calc(100% - 40px);
    /* Enhanced animated gradient border for sticky state */
    border: 3px solid transparent;
    background: 
        linear-gradient(
            135deg, 
            rgba(15, 51, 111, 0.05) 0%, 
            rgba(19, 62, 135, 0.08) 50%, 
            rgba(96, 139, 193, 0.05) 100%
        ) padding-box,
        linear-gradient(135deg, 
            var(--primary-color) 0%, 
            var(--secondary-color) 20%,
            var(--primary-color) 40%, 
            var(--secondary-color) 60%,
            var(--primary-color) 80%,
            var(--secondary-color) 100%
        ) border-box;
    background-size: 100% 100%, 200% 200%;
    animation: borderGradientShift 8s ease-in-out infinite;
}

.nav-wrapper.nav-sticky nav {
    /* SMOOTH WIDTH TRANSITION */
    width: auto;
    border-radius: 25px;
    padding: 12px 30px;
    margin: 0 auto;
    /* ENHANCED STICKY NAVBAR WITH SMOOTH TRANSITIONS */
    background: linear-gradient(135deg, #0f336f 0%, #133E87 35%, #4f74b4 65%, #608BC1 100%);
    box-shadow: 
        /* Main drop shadows */
        0 8px 25px rgba(0, 0, 0, 0.3), 
        0 2px 10px rgba(0, 0, 0, 0.1),
        /* Enhanced left side glow for sticky mode */
        inset 18px 0 25px -12px rgba(255, 255, 255, 0.22),
        inset 30px 0 40px -18px rgba(255, 255, 255, 0.1),
        /* Enhanced right side glow for sticky mode */
        inset -18px 0 25px -12px rgba(255, 255, 255, 0.22),
        inset -30px 0 40px -18px rgba(255, 255, 255, 0.1),
        /* Top/bottom enhancement for sticky */
        inset 0 10px 18px -10px rgba(255, 255, 255, 0.12),
        inset 0 -10px 18px -10px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: visible;
    /* SMOOTH TRANSFORM FOR STICKY STATE */
    transform: scale(1) translateY(0);
    transition: 
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        width 0.5s ease,
        padding 0.3s ease,
        box-shadow 0.4s ease;
}

/* REVOLUTIONARY SMOOTH TRANSITION ENHANCEMENT */
.nav-wrapper.nav-sticky nav:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 20px 0 30px -15px rgba(255, 255, 255, 0.28),
        inset 35px 0 45px -20px rgba(255, 255, 255, 0.15),
        inset -20px 0 30px -15px rgba(255, 255, 255, 0.28),
        inset -35px 0 45px -20px rgba(255, 255, 255, 0.15);
}

/* Enhanced border glow on hover */
.nav-wrapper.nav-sticky:hover {
    border-width: 4px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05),
        0 0 30px rgba(19, 62, 135, 0.3),
        0 0 60px rgba(96, 139, 193, 0.2);
}

/* Border gradient animation keyframe */
@keyframes borderGradientShift {
    0%, 100% {
        background-position: 0% 50%, 0% 50%;
    }
    50% {
        background-position: 0% 50%, 100% 50%;
    }
}

/* SMOOTH TRANSITION PRELOAD SYSTEM */
.nav-wrapper {
    /* Pre-load transitions to prevent jank */
    will-change: transform, background-color, padding;
    /* Override any previous transform conflicts */
    transform-origin: center;
}

.nav-wrapper.nav-sticky {
    /* Enhanced smooth scaling entrance */
    animation: stickyNavEntrance 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    /* Override any inherited transition conflicts */
    transition-delay: 0s !important;
}

@keyframes stickyNavEntrance {
    0% {
        transform: translateY(50%) scale(0.95);
        opacity: 0.8;
        backdrop-filter: blur(4px);
    }
    50% {
        transform: translateY(25%) scale(0.98);
        opacity: 0.9;
        backdrop-filter: blur(6px);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

/* SMOOTH REVERSE ANIMATION FOR EXIT */
.nav-wrapper:not(.nav-sticky) {
    animation: stickyNavExit 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes stickyNavExit {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        backdrop-filter: blur(8px);
    }
    100% {
        transform: translateY(50%) scale(0.98);
        opacity: 1;
        backdrop-filter: blur(0px);
    }
}

/* PERFORMANCE OPTIMIZATION & RESPONSIVE ENHANCEMENTS */
@media (max-width: 900px) {
    .nav-wrapper {
        /* Mobile optimized transitions */
        transition: 
            transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
            background-color 0.3s ease,
            padding 0.3s ease,
            border 0.3s ease;
        padding: 0 10px;
        border-width: 2px;
        border-radius: 25px;
    }
    
    .nav-wrapper.nav-sticky {
        padding: 6px 15px;
        max-width: calc(100% - 20px);
        border-radius: 20px;
        border-width: 2px;
    }
    
    .nav-wrapper.nav-sticky:hover {
        border-width: 3px;
    }
    
    @keyframes stickyNavEntrance {
        0% {
            transform: translateY(50%) scale(0.96);
            opacity: 0.9;
        }
        100% {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }
}

/* ACCESSIBILITY: REDUCE MOTION SUPPORT */
@media (prefers-reduced-motion: reduce) {
    .nav-wrapper,
    .nav-wrapper.nav-sticky {
        transition: background-color 0.2s ease;
        animation: none;
    }
    
    .nav-wrapper.nav-sticky nav {
        transition: padding 0.2s ease;
    }
    
    .nav-wrapper.nav-sticky {
        animation: none !important;
        background-size: 100% 100%, 100% 100%;
    }
}

/* HARDWARE ACCELERATION OPTIMIZATION */
@supports (transform: translate3d(0,0,0)) {
    .nav-wrapper {
        transform: translateY(50%) translate3d(0,0,0);
        will-change: transform;
    }
    
    .nav-wrapper.nav-sticky {
        transform: translateY(0) scale(1) translate3d(0,0,0);
    }
}

/* Advanced Animated Side Glow System for Sticky Navbar */
.nav-wrapper.nav-sticky nav::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: 
        /* Extended dramatic side coverage */
        radial-gradient(ellipse 120px 110% at 0% 50%, 
            rgba(255,255,255,0.35) 0%, 
            rgba(255,255,255,0.22) 20%, 
            rgba(255,255,255,0.12) 40%, 
            rgba(255,255,255,0.06) 65%, 
            transparent 85%),
        radial-gradient(ellipse 120px 110% at 100% 50%, 
            rgba(255,255,255,0.35) 0%, 
            rgba(255,255,255,0.22) 20%, 
            rgba(255,255,255,0.12) 40%, 
            rgba(255,255,255,0.06) 65%, 
            transparent 85%),
        /* Breathing base glow */
        radial-gradient(ellipse 200px 100% at 50% 50%, 
            transparent 0%, 
            rgba(255,255,255,0.03) 60%, 
            rgba(255,255,255,0.08) 85%, 
            transparent 100%);
    border-radius: 30px;
    pointer-events: none;
    z-index: 1;
    animation: breathingGlow 4s ease-in-out infinite;
    opacity: 0.9;
}

.nav-wrapper.nav-sticky nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Sharp edge highlights */
        linear-gradient(90deg, 
            rgba(255,255,255,0.35) 0%, 
            rgba(255,255,255,0.18) 5%, 
            rgba(255,255,255,0.08) 12%, 
            transparent 30%),
        linear-gradient(270deg, 
            rgba(255,255,255,0.35) 0%, 
            rgba(255,255,255,0.18) 5%, 
            rgba(255,255,255,0.08) 12%, 
            transparent 30%),
        /* Corner accent glow */
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.15) 0%, transparent 25%),
        radial-gradient(circle at 100% 0%, rgba(255,255,255,0.15) 0%, transparent 25%),
        radial-gradient(circle at 0% 100%, rgba(255,255,255,0.15) 0%, transparent 25%),
        radial-gradient(circle at 100% 100%, rgba(255,255,255,0.15) 0%, transparent 25%);
    border-radius: 25px;
    pointer-events: none;
    z-index: 2;
    animation: edgePulse 3s ease-in-out infinite alternate;
}

.nav-wrapper.nav-sticky .nav-links a {
    padding: 8px 16px;
}

/* Full-width gradient background behind nav to prevent side clipping */
.nav-wrapper::before {
    content: none;
}

nav {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    margin: 0 auto;
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Revolutionary Multi-Layer Interactive Side Glow System */
nav::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    pointer-events: none;
    z-index: 1;
    animation: subtleBreathing 5s ease-in-out infinite;
    transform-origin: center;
}

/* Enhanced Interactive Edge Glow */
nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
    animation: edgeShimmer 6s ease-in-out infinite;
}

/* Interactive hover enhancement for entire navbar */
nav:hover::before {
    animation-duration: 2s;
    opacity: 1.2;
    transform: scale(1.02);
}

nav:hover::after {
    animation-duration: 2s;
    opacity: 1.3;
}

/* Advanced Animation Keyframes */
@keyframes breathingGlow {
    0%, 100% { 
        opacity: 0.9; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1.1; 
        transform: scale(1.01); 
    }
}

@keyframes subtleBreathing {
    0%, 100% { 
        opacity: 0.8; 
        transform: scale(1) rotateZ(0deg); 
    }
    33% { 
        opacity: 0.95; 
        transform: scale(1.005) rotateZ(0.1deg); 
    }
    66% { 
        opacity: 1.0; 
        transform: scale(1.01) rotateZ(-0.1deg); 
    }
}

@keyframes edgePulse {
    0% { 
        opacity: 0.7; 
        transform: scale(1); 
    }
    100% { 
        opacity: 1.0; 
        transform: scale(1.005); 
    }
}

@keyframes edgeShimmer {
    0%, 100% { 
        opacity: 0.8; 
        filter: brightness(1); 
    }
    25% { 
        opacity: 0.9; 
        filter: brightness(1.05); 
    }
    50% { 
        opacity: 1.0; 
        filter: brightness(1.1); 
    }
    75% { 
        opacity: 0.95; 
        filter: brightness(1.03); 
    }
}

/* Advanced CSS Custom Properties for Dynamic Overlay Control */
:root {
    --navbar-glow-intensity: 1;
    --navbar-animation-speed: 1;
    --navbar-hover-scale: 1.02;
    --navbar-edge-brightness: 1.1;
}

/* Dynamic Media Query Adjustments for Responsive Glow */
@media (max-width: 900px) {
    :root {
        --navbar-glow-intensity: 0.8;
        --navbar-animation-speed: 1.2;
        --navbar-hover-scale: 1.01;
    }
    
    nav::before {
        animation-duration: calc(5s / var(--navbar-animation-speed));
        opacity: calc(0.8 * var(--navbar-glow-intensity));
    }
    
    nav::after {
        animation-duration: calc(6s / var(--navbar-animation-speed));
        opacity: calc(0.8 * var(--navbar-glow-intensity));
    }
}

@media (prefers-reduced-motion: reduce) {
    nav::before, nav::after,
    .nav-wrapper.nav-sticky nav::before,
    .nav-wrapper.nav-sticky nav::after {
        animation: none;
        opacity: calc(0.6 * var(--navbar-glow-intensity));
    }
}

/* Performance optimized transform for modern browsers */
@supports (transform: translate3d(0,0,0)) {
    nav::before, nav::after {
        transform: translate3d(0,0,0);
        will-change: transform, opacity;
    }
}

.logo a {
    color: var(--white-color);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo a:hover {
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    justify-content: center;
    width: auto;
    gap: 8px;
    list-style: none;
    position: relative;
    z-index: 10;
}

.nav-links a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
    padding: 8px 16px;
    border-radius: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a:hover {
    color: var(--white-color);
    transform: translateY(-2px);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.nav-links a.active {
    color: var(--white-color);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== LOGO STYLING WITH IMAGE ===== */
.nav-wrapper nav .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.nav-wrapper nav .logo::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 70%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 10%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.3) 90%, 
        transparent 100%
    );
    opacity: 0.7;
}

.nav-wrapper nav .logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    backdrop-filter: blur(1px);
}

.nav-wrapper nav .logo a {
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.nav-wrapper nav .logo a:hover {
    color: rgba(203, 220, 235, 0.9);
}

/* Adjust nav spacing for logo divider */
.nav-wrapper nav {
    gap: 40px;
}

/* ===== VERTICAL DIVIDERS FOR NAV-WRAPPER ===== */
.nav-wrapper nav .main-nav .nav-links {
    gap: 32px;
}

.nav-wrapper nav .main-nav .nav-links li {
    position: relative;
}

/* Vertical dividers between menu items in nav-wrapper */
.nav-wrapper nav .main-nav .nav-links li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 10%, 
        rgba(255, 255, 255, 0.7) 50%, 
        rgba(255, 255, 255, 0.4) 90%, 
        transparent 100%
    );
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Enhanced divider on hover for nav-wrapper */
.nav-wrapper nav .main-nav .nav-links li:not(:last-child):hover::after {
    opacity: 1;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(203, 220, 235, 0.6) 10%, 
        rgba(203, 220, 235, 0.9) 50%, 
        rgba(203, 220, 235, 0.6) 90%, 
        transparent 100%
    );
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px;
    transition: all 0.3s ease;
}


/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, .hero-btn:focus-visible, .cta-btn:focus-visible, .nav-links a:focus-visible {
    outline: 3px solid rgba(255,255,255,0.9);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(19,62,135,0.4);
    border-radius: 6px;
}

/* Main Content Area */
main {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #4a76a8 50%, var(--secondary-color) 100%);
    padding: 60px 40px 60px 40px; /* Add top padding to clear overlapped nav */
    position: relative;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="mainGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="30" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23mainGrain)"/></svg>');
    opacity: 0.2;
    pointer-events: none;
}

.content-container {
    height: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.text-content {
    flex-basis: 58%; /* 58% for the text block */
    color: var(--white-color);
    position: relative;
    z-index: 2;
}

.text-content p {
    font-family: 'Karma', sans-serif;
    font-size: 1.05em;
    line-height: 1.7;
    margin-top: 0;
    text-align: justify;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
}
.text-content p.second-paragraph{
    margin-top: 20px;
    opacity: 0.95;
}

.image-placeholder {
    flex-basis: 38%; /* 38% for the placeholder */
    height: 300px;
    background-color: var(--third-color);
    border-radius: 20px; /* More modern rounded corners */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.image-placeholder:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.image-placeholder:hover img {
    transform: scale(1.05);
}

/* Profil Desa enhanced layout */
#profil-desa {
    position: relative;
    isolation: isolate;
}

#profil-desa::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -80px;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(closest-side, rgba(255,255,255,0.18), transparent 70%);
    filter: blur(30px);
    opacity: 0.35;
    z-index: 0;
}

#profil-desa::after {
    content: '';
    bottom: -80px;
    right: -120px;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(closest-side, rgba(19,62,135,0.25), transparent 70%);
    filter: blur(40px);
    opacity: 0.25;
    z-index: 0;
}

#profil-desa .text-content {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 24px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

#profil-desa .text-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 8%;
    height: 84%;
    width: 6px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--third-color), var(--white-color));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1280px){
#profil-desa .text-content p {
    font-size: 1.1em;
    line-height: 1.8;
}

}

@media (min-width: 1280px){
#profil-desa .text-content p {
    font-size: 1.4em;
    line-height: 1.8;
}

.nav-wrapper nav .logo a {
    font-size: 1.4em;
}
}

@media (min-width: 1920px){
#profil-desa .text-content p {
    font-size: 1.8em;
    line-height: 1.8;
}

.nav-wrapper nav .logo a {
    font-size: 2.5em;
}

}

#profil-desa .image-placeholder {
    height: 420px;
    background: transparent;
    border-radius: 26px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 8px 18px rgba(0, 0, 0, 0.15);
}

#profil-desa .image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19,62,135,0.15), rgba(96,139,193,0.15));
    border-radius: 26px;
    pointer-events: none;
}

#profil-desa .image-placeholder img {
    border-radius: 26px;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#profil-desa .image-placeholder:hover img {
    transform: scale(1.06);
}

@media (max-width: 992px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 0;
        min-height: 60vh;
    }
    .floating-info-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-self: start;
    }
    #profil-desa .image-placeholder {
        transform: none;
        height: 340px;
    }
}

/* Map + Facilities side-by-side */
.map-section {
    background: linear-gradient(135deg, #D7E4F2 0%, #c5d6ef 50%, #D7E4F2 100%);
}
.map-container {
    width: 100%;
    margin: 0;
    padding: 40px 40px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); /* map much larger, facilities min width */
    gap: 24px;
    align-items: start;
}
.map-pane {
    display: flex;
}
.map-pane .map-image {
    width: 100%;
    min-height: 600px; /* taller for better presence */
    border-radius: 18px;
    /* Use provided photo as map background */
    background-color: #dfe8f5; /* fallback color */
    background-image: url('../WhatsApp Image 2025-08-19 at 09.11.53_7046614d.jpg');
    background-size: cover; /* ensure full cover */
    background-position: center; /* center the image */
    background-repeat: no-repeat;
    box-shadow: 0 15px 40px rgba(0,0,0,0.14);
    border: 1px solid rgba(19,62,135,0.20);
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: -6px;
    position: relative;
}
.facilities-pane {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid rgba(19,62,135,0.20);
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    max-height: 600px; /* match map height */
    overflow: auto; /* prevent overflow collision */
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: -6px;
}
/* Reuse existing facility styles inside pane */
.facilities-pane .facility-grid {
    display: grid;
    grid-template-columns: 1fr; /* stack cards inside pane */
    gap: 16px;
}

.facilities-pane .facility-card { 
    padding: 16px; 
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(19, 62, 135, 0.15);
    transition: all 0.3s ease;
}

.facilities-pane .facility-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.facilities-pane .facility-title { 
    margin-bottom: 12px; 
    font-size: 1.1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 8px;
}

.facilities-pane .facility-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.facilities-pane .facilities-header { 
    text-align: left; 
    margin-bottom: 16px; 
    position: sticky; 
    top: -16px; 
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.9) 0%, rgba(250, 252, 255, 0.8) 70%, rgba(250, 252, 255, 0) 100%); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10; 
    padding: 20px 16px 16px 16px; 
    margin-left: -16px;
    margin-right: -16px;
    margin-top: -16px;
    border-bottom: 1px solid rgba(19, 62, 135, 0.1);
}

.facilities-pane .facilities-header h2 { 
    font-family: 'Playfair Display SC', serif;
    font-size: 1.5rem; 
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    position: relative;
    padding-bottom: 8px;
}
.facilities-pane .facilities-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.facilities-pane .facilities-header p { 
    font-size: 0.95rem; 
    color: #555;
    line-height: 1.4;
}

/* Facility card type-specific styling */
.facility-card.facility-education { border-left: 4px solid #4CAF50; }
.facility-card.facility-worship { border-left: 4px solid #673AB7; }
.facility-card.facility-tourism { border-left: 4px solid #2196F3; }
.facility-card.facility-public { border-left: 4px solid #607D8B; }

@media (max-width: 992px) {
    .map-container {
        grid-template-columns: 1fr; /* stack on tablet/mobile */
    }
    .map-pane .map-image { min-height: 360px; }
    .facilities-pane { max-height: none; }
}

/* Map Markers Styles */
.map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-marker {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
    font-family: 'Inter', sans-serif;
}

.map-marker::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--secondary-color) transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.map-marker:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 20;
}

.marker-number {
    font-size: 16px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.marker-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    color: var(--primary-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--primary-color);
}

.marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 30;
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.map-marker:hover .marker-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Marker types with different colors */
.map-marker[data-type="education"] {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.map-marker[data-type="worship"] {
    background: linear-gradient(135deg, #673AB7 0%, #9C27B0 100%);
}

.map-marker[data-type="tourism"] {
    background: linear-gradient(135deg, #2196F3 0%, #03A9F4 100%);
}

.map-marker[data-type="government"] {
    background: linear-gradient(135deg, #F44336 0%, #E91E63 100%);
}

.map-marker[data-type="market"] {
    background: linear-gradient(135deg, #FF9800 0%, #FFC107 100%);
}

.map-marker[data-type="bank"] {
    background: linear-gradient(135deg, #795548 0%, #9E9E9E 100%);
}

.map-marker[data-type="public"] {
    background: linear-gradient(135deg, #607D8B 0%, #90A4AE 100%);
}

/* Mosque icon */
.mosque-icon {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
    font-style: normal;
}

.mosque-icon::before {
    content: '☪';
    font-size: 10px;
}

/* Facility list items with markers */
.facility-list li {
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(19, 62, 135, 0.1);
}

.facility-list li:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Facility marker styling */
.facility-marker {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    font-size: 12px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.facility-name {
    flex-grow: 1;
    font-size: 0.95em;
}

.facility-list li:hover .facility-marker {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Marker colors based on type */
.facility-marker[data-type="education"] {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.facility-marker[data-type="worship"] {
    background: linear-gradient(135deg, #673AB7 0%, #9C27B0 100%);
}

.facility-marker[data-type="tourism"] {
    background: linear-gradient(135deg, #2196F3 0%, #03A9F4 100%);
}

.facility-marker[data-type="government"] {
    background: linear-gradient(135deg, #F44336 0%, #E91E63 100%);
}

.facility-marker[data-type="market"] {
    background: linear-gradient(135deg, #FF9800 0%, #FFC107 100%);
}

.facility-marker[data-type="bank"] {
    background: linear-gradient(135deg, #795548 0%, #9E9E9E 100%);
}

.facility-marker[data-type="public"] {
    background: linear-gradient(135deg, #607D8B 0%, #90A4AE 100%);
}

/* Position markers on the map */
.map-marker[data-id="1"] { top: 84%; left: 75%; }
.map-marker[data-id="2"] { top: 35%; left: 45%; }
.map-marker[data-id="3"] { top: 32%; left: 50%; }
.map-marker[data-id="4"] { top: 40%; left: 55%; }
.map-marker[data-id="5"] { top: 60%; left: 30%; }
.map-marker[data-id="6"] { top: 65%; left: 35%; }
.map-marker[data-id="7"] { top: 75%; left: 25%; }
.map-marker[data-id="8"] { top: 45%; left: 60%; }
.map-marker[data-id="9"] { top: 50%; left: 45%; }
.map-marker[data-id="10"] { top: 25%; left: 65%; }
.map-marker[data-id="11"] { top: 20%; left: 30%; }
.map-marker[data-id="12"] { top: 70%; left: 40%; }
.map-marker[data-id="13"] { top: 15%; left: 45%; }
.map-marker[data-id="14"] { top: 25%; left: 25%; }
.map-marker[data-id="15"] { top: 35%; left: 70%; }
.map-marker[data-id="16"] { top: 55%; left: 65%; }
.map-marker[data-id="17"] { top: 65%; left: 70%; }
.map-marker[data-id="18"] { top: 75%; left: 60%; }
.map-marker[data-id="19"] { top: 85%; left: 75%; }
.map-marker[data-id="20"] { top: 15%; left: 80%; }

/* Marker animation */
@keyframes markerPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.map-marker {
    animation: markerPulse 2s infinite;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

/* Stagger animation for markers */
.map-marker:nth-child(1) { --i: 1; }
.map-marker:nth-child(2) { --i: 2; }
.map-marker:nth-child(3) { --i: 3; }
.map-marker:nth-child(4) { --i: 4; }
.map-marker:nth-child(5) { --i: 5; }
.map-marker:nth-child(6) { --i: 6; }
.map-marker:nth-child(7) { --i: 7; }
.map-marker:nth-child(8) { --i: 8; }
.map-marker:nth-child(9) { --i: 9; }
.map-marker:nth-child(10) { --i: 10; }
.map-marker:nth-child(11) { --i: 11; }
.map-marker:nth-child(12) { --i: 12; }
.map-marker:nth-child(13) { --i: 13; }
.map-marker:nth-child(14) { --i: 14; }
.map-marker:nth-child(15) { --i: 15; }
.map-marker:nth-child(16) { --i: 16; }
.map-marker:nth-child(17) { --i: 17; }
.map-marker:nth-child(18) { --i: 18; }
.map-marker:nth-child(19) { --i: 19; }
.map-marker:nth-child(20) { --i: 20; }

/* Responsive adjustments for markers */
@media (max-width: 768px) {
    .map-marker {
        width: 30px;
        height: 30px;
    }
    
    .marker-number {
        font-size: 14px;
    }
    
    .marker-tooltip {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #D7E4F2 0%, #c5d6ef 50%, #D7E4F2 100%);
    position: relative;
    padding: 20px 0;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="featuresGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(91,133,187,0.08)"/><circle cx="75" cy="75" r="1" fill="rgba(91,133,187,0.08)"/><circle cx="50" cy="10" r="0.5" fill="rgba(91,133,187,0.04)"/><circle cx="20" cy="80" r="0.5" fill="rgba(91,133,187,0.04)"/><circle cx="80" cy="30" r="0.5" fill="rgba(91,133,187,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23featuresGrain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

#wisata {
    position: relative;
    isolation: isolate;
}
#wisata::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -100px;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(closest-side, rgba(19,62,135,0.25), transparent 70%);
    filter: blur(40px);
    opacity: 0.25;
    z-index: 0;
}

#wisata::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -120px;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(closest-side, rgba(255,255,255,0.18), transparent 70%);
    filter: blur(30px);
    opacity: 0.35;
    z-index: 0;
}

.top-bar, .bottom-bar {
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #5B85BB 0%, var(--secondary-color) 50%, #5B85BB 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.container {
    margin: 0 auto;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 30px;
    gap: 48px;
    position: relative;
    z-index: 1;
}


.feature-shape {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #5B85BB 0%, var(--secondary-color) 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.feature-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.feature-shape:hover::before {
    transform: translateX(100%);
}

.feature-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-shape:hover img {
    transform: scale(1.05);
}

.feature-shape::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19,62,135,0.15), rgba(96,139,193,0.15));
    border-radius: 24px;
    pointer-events: none;
    z-index: 1;
}

.feature-text {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 24px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1340px){
    .feature-text{
       margin-left: 20px;
        margin-right: 20px;
        }
}

.feature-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4a9a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.feature-text h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.feature-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.feature-item:nth-child(odd) .feature-text {
    text-align: right;
}

.feature-item:nth-child(odd) .feature-shape {
    transform: rotate(-3deg);
}

.feature-item:nth-child(odd):hover .feature-shape {
    transform: rotate(-1deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.feature-item:nth-child(even) .feature-text {
    text-align: left;
}

.feature-item:nth-child(even) .feature-shape {
    transform: rotate(3deg);
}

.feature-item:nth-child(even):hover .feature-shape {
    transform: rotate(1deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-item:last-child {
    margin-bottom: 0;
}



/* Carousel Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.show {
    display: flex;
    opacity: 1;
}

.carousel {
    position: relative;
    width: 100%;
    height: 80%;
    max-width: 1080px;
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0.7) translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.show .carousel {
    transform: scale(1) translateY(0);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 2em;
    cursor: pointer;
    z-index: 1001;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.close-carousel {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 3em;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    padding: 100px 0 120px 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    filter: blur(3px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-section.animate-in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="30" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.cta-container {
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-content {
    color: var(--white-color);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-section.animate-in .cta-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.cta-title {
    font-family: 'Playfair Display SC', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-section.animate-in .cta-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.cta-subtitle {
    font-family: 'Karma', sans-serif;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-section.animate-in .cta-subtitle {
    opacity: 0.95;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-section.animate-in .cta-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: 'Playfair Display SC', serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn::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;
}

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

/* Auto shimmer effect when CTA section animates in */
.cta-section.animate-in .cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s ease-in-out 1.5s;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.cta-btn.primary {
    background: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--white-color);
}

.cta-btn.primary:hover {
    background: transparent;
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.cta-btn.secondary:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.cta-visual {
    position: relative;
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-section.animate-in .cta-visual {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.5s;
}

.cta-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    transform: rotate(5deg);
}

.cta-image-item {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    opacity: 0;
}

.cta-section.animate-in .cta-image-item {
    opacity: 1;
}

.cta-section.animate-in .cta-image-item:nth-child(1) {
    animation: slideInImage1 0.8s ease-out 0.7s both;
}

.cta-section.animate-in .cta-image-item:nth-child(2) {
    animation: slideInImage2 0.8s ease-out 0.8s both;
}

.cta-section.animate-in .cta-image-item:nth-child(3) {
    animation: slideInImage3 0.8s ease-out 0.9s both;
}

.cta-section.animate-in .cta-image-item:nth-child(4) {
    animation: slideInImage4 0.8s ease-out 1s both;
}

/* Scroll-based animations */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.feature-item.hidden {
    transform: translateY(50px);
    opacity: 0;
}

.feature-item.show {
    transform: translateY(0);
    opacity: 1;
}

.content-container.hidden {
    transform: translateY(30px);
    opacity: 0;
}

.content-container.show {
    transform: translateY(0);
    opacity: 1;
}

@media(prefers-reduced-motion) {
    .hidden {
        transition: none;
    }
}

/* Wave animation */
@keyframes waveFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Additional entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Individual image animations */
@keyframes slideInImage1 {
    from {
        opacity: 0;
        transform: rotate(-8deg) translateY(50px) scale(0.7);
    }
    to {
        opacity: 1;
        transform: rotate(-8deg) translateY(0) scale(1);
    }
}

@keyframes slideInImage2 {
    from {
        opacity: 0;
        transform: rotate(5deg) translateY(70px) scale(0.7);
    }
    to {
        opacity: 1;
        transform: rotate(5deg) translateY(20px) scale(1);
    }
}

@keyframes slideInImage3 {
    from {
        opacity: 0;
        transform: rotate(-3deg) translateY(40px) scale(0.7);
    }
    to {
        opacity: 1;
        transform: rotate(-3deg) translateY(-10px) scale(1);
    }
}

@keyframes slideInImage4 {
    from {
        opacity: 0;
        transform: rotate(7deg) translateY(50px) scale(0.7);
    }
    to {
        opacity: 1;
        transform: rotate(7deg) translateY(0) scale(1);
    }
}

/* Mobile animation */
@keyframes slideInMobile {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .cta-section {
        transition: opacity 0.3s ease;
        transform: none;
        filter: none;
    }
    
    .cta-content,
    .cta-title,
    .cta-subtitle,
    .cta-buttons,
    .cta-visual,
    .cta-wave {
        transition: opacity 0.3s ease;
        transform: none;
    }
    
    .cta-section.animate-in .cta-image-item:nth-child(1),
    .cta-section.animate-in .cta-image-item:nth-child(2),
    .cta-section.animate-in .cta-image-item:nth-child(3),
    .cta-section.animate-in .cta-image-item:nth-child(4) {
        animation: none;
        opacity: 1;
        transform: rotate(-8deg);
    }
    
    .cta-section.animate-in .cta-image-item:nth-child(2) {
        transform: rotate(5deg) translateY(20px);
    }
    
    .cta-section.animate-in .cta-image-item:nth-child(3) {
        transform: rotate(-3deg) translateY(-10px);
    }
    
    .cta-section.animate-in .cta-image-item:nth-child(4) {
        transform: rotate(7deg);
    }
}

.cta-image-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(19, 62, 135, 0.2), rgba(96, 139, 193, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 20px;
}

.cta-image-item:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-radius: 25px;
}

.cta-image-item:hover::before {
    opacity: 1;
}

.cta-image-item:nth-child(1) {
    transform: rotate(-8deg);
}

.cta-image-item:nth-child(1):hover {
    transform: rotate(-5deg) scale(1.08) translateY(-8px);
}

.cta-image-item:nth-child(2) {
    transform: rotate(5deg) translateY(20px);
}

.cta-image-item:nth-child(2):hover {
    transform: rotate(2deg) scale(1.08) translateY(12px);
}

.cta-image-item:nth-child(3) {
    transform: rotate(-3deg) translateY(-10px);
}

.cta-image-item:nth-child(3):hover {
    transform: rotate(-1deg) scale(1.08) translateY(-18px);
}

.cta-image-item:nth-child(4) {
    transform: rotate(7deg);
}

.cta-image-item:nth-child(4):hover {
    transform: rotate(4deg) scale(1.08) translateY(-8px);
}

.cta-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: brightness(1) contrast(1) saturate(1);
}

.cta-image-item:hover img {
    transform: scale(1.15);
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

/* Shimmer effect overlay */
.cta-image-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

.cta-image-item:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Wave Container */
.cta-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Increased height for better visibility */
    overflow: hidden;
    line-height: 0;
    opacity: 1; /* Ensure waves are visible */
    transform: translateZ(0); /* Hardware acceleration */
}

@media (max-width: 768px) {
    .cta-waves {
        top: 800px;
        height: 200px;
    }
}

@media (max-width: 534px) {
    .cta-waves {
        top: 850px;
        height: 200px;
    }
}

@media (max-width: 520px) {
    .cta-waves {
        top: 680px;
        height: 200px;
    }
}

@media (max-width: 470px) {
    .cta-waves {
        top: 700px;
        height: 200px;
    }
}

@media (max-width: 360px) {
    .cta-waves {
        top: 750px;
        height: 200px;
    }
}

@media (max-width: 340px) {
    .cta-waves {
        top: 760px;
        height: 200px;
    }
}

/* No animate-in dependency for waves */

/* Individual Wave Layers */
.cta-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform;
}

.cta-wave svg {
    position: relative;
    display: block;
    width: 200%; /* exact 2x for seamless -50% loop */
    height: 120px; /* Match container height */
    border: none;
    outline: none;
    backface-visibility: hidden;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform;
}

/* Wave Layer 1 - Front layer (darkest, fastest) */
.wave-layer-1 {
    z-index: 3;
}

.wave-layer-1 svg {
    color: #0a2a5c;
    animation: smoothWaveMove1 20s linear infinite;
}

/* Wave Layer 2 - Middle layer (medium opacity, medium speed) */
.wave-layer-2 {
    z-index: 2;
}

.wave-layer-2 svg {
    color: #133E87;
    animation: smoothWaveMove2 30s linear infinite reverse;
}

/* Wave Layer 3 - Back layer (lightest, slowest) */
.wave-layer-3 {
    z-index: 1;
}

.wave-layer-3 svg {
    color: #608BC1;
    animation: smoothWaveMove3 40s linear infinite;
}

/* Wave hover effects disabled to avoid jitter from speed changes */
/* .cta-section:hover .wave-layer-1 svg { animation-duration: 18s; }
.cta-section:hover .wave-layer-2 svg { animation-duration: 28s; }
.cta-section:hover .wave-layer-3 svg { animation-duration: 38s; } */

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .wave-layer-1 svg,
    .wave-layer-2 svg,
    .wave-layer-3 svg {
        animation: none;
        transform: translateX(-16.666%) translateZ(0); /* Static position showing partial wave */
    }
    
    .cta-waves {
        animation: none;
    }
}

/* Facilities Section */
.facilities-section {
    background: linear-gradient(135deg, #D7E4F2 0%, #c5d6ef 50%, #D7E4F2 100%);
    position: relative;
}
.facilities-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="facilitiesGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(91,133,187,0.08)"/><circle cx="75" cy="75" r="1" fill="rgba(91,133,187,0.08)"/><circle cx="50" cy="10" r="0.5" fill="rgba(91,133,187,0.04)"/><circle cx="20" cy="80" r="0.5" fill="rgba(91,133,187,0.04)"/><circle cx="80" cy="30" r="0.5" fill="rgba(91,133,187,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23facilitiesGrain)"/></svg>');
    opacity: 0.25;
    pointer-events: none;
}
.facilities-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
    z-index: 1;
}
.facilities-header {
    text-align: center;
    margin-bottom: 40px;
}
.facilities-header h2 {
    font-size: 2.6rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4a9a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.facilities-header p {
    color: #2b3d5d;
    opacity: 0.9;
    font-family: 'Karma', sans-serif;
}
.facility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.facility-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.facility-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}
.facility-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.facility-list li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 40px; /* add left space for icon */
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(96,139,193,0.08);
    color: #0a2a5c;
    font-family: 'Karma', sans-serif;
}
.facility-list li:last-child { margin-bottom: 0; }
/* Default icon before each facility item in the facilities pane */
.facilities-pane .facility-list li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
    /* Default map pin */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23133E87'><path d='M12 2C8.687 2 6 4.686 6 8c0 4.5 6 14 6 14s6-9.5 6-14c0-3.314-2.687-6-6-6zm0 8.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/></svg>");
}
/* Education (school) icon for Pendidikan */
.facilities-pane .facility-education .facility-list li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23133E87'><path d='M12 3l9 5-9 5-9-5 9-5zm0 7.18l7.5-4.18L12 4.82 4.5 6 12 10.18z'/><path d='M5 12.5v4.75c0 .41.34.75.75.75H9v-4.5h6v4.5h3.25c.41 0 .75-.34.75-.75V12.5l-7 3.89-7-3.89z'/></svg>");
}
/* Worship (mosque) icon for Tempat Ibadah */
.facilities-pane .facility-worship .facility-list li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23133E87'><path d='M12 3l2 1.5V7h3l3 2v10h-4v-5H8v5H4V9l3-2h3V4.5L12 3z'/></svg>");
}
/* Cave icon for items marked as cave under tourism */
.facilities-pane .facility-tourism .facility-list li.is-cave::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23133E87'><path d='M3 20h18l-2-10-4-5H9L5 10l-2 10zm6-8l2-3 2 3 1 6H8l1-6z'/></svg>");
}
/* Public facilities (building/bank) icon */
.facilities-pane .facility-public .facility-list li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23133E87'><path d='M3 10l9-7 9 7v10H3V10zm5 8h2v-6H8v6zm6 0h2v-6h-2v6zM5 10h14L12 5 5 10z'/></svg>");
}

@media (max-width: 992px) {
    .facility-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .facility-grid { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes ctaImageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Header Background Animations */
@keyframes backgroundShift {
    0% {
        background: 
            radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(96,139,193,0.25) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(19,62,135,0.1) 0%, transparent 70%);
    }
    25% {
        background: 
            radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18) 0%, transparent 55%),
            radial-gradient(circle at 70% 80%, rgba(96,139,193,0.28) 0%, transparent 55%),
            radial-gradient(circle at 40% 60%, rgba(19,62,135,0.12) 0%, transparent 75%);
    }
    50% {
        background: 
            radial-gradient(circle at 80% 40%, rgba(255,255,255,0.20) 0%, transparent 60%),
            radial-gradient(circle at 20% 60%, rgba(96,139,193,0.30) 0%, transparent 60%),
            radial-gradient(circle at 60% 30%, rgba(19,62,135,0.15) 0%, transparent 80%);
    }
    75% {
        background: 
            radial-gradient(circle at 70% 80%, rgba(255,255,255,0.17) 0%, transparent 52%),
            radial-gradient(circle at 30% 20%, rgba(96,139,193,0.27) 0%, transparent 52%),
            radial-gradient(circle at 50% 70%, rgba(19,62,135,0.13) 0%, transparent 72%);
    }
    100% {
        background: 
            radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(96,139,193,0.25) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(19,62,135,0.1) 0%, transparent 70%);
    }
}

@keyframes grainFloat {
    0% {
        opacity: 0.4;
        transform: translateX(0) translateY(0);
    }
    25% {
        opacity: 0.5;
        transform: translateX(2px) translateY(-1px);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-1px) translateY(2px);
    }
    75% {
        opacity: 0.6;
        transform: translateX(1px) translateY(1px);
    }
    100% {
        opacity: 0.4;
        transform: translateX(0) translateY(0);
    }
}

@keyframes overlayPulse {
    0% {
        background: linear-gradient(135deg, 
            rgba(19,62,135,0.85) 0%, 
            rgba(96,139,193,0.75) 50%, 
            rgba(19,62,135,0.85) 100%);
    }
    50% {
        background: linear-gradient(135deg, 
            rgba(19,62,135,0.80) 0%, 
            rgba(96,139,193,0.70) 50%, 
            rgba(19,62,135,0.80) 100%);
    }
    100% {
        background: linear-gradient(135deg, 
            rgba(19,62,135,0.85) 0%, 
            rgba(96,139,193,0.75) 50%, 
            rgba(19,62,135,0.85) 100%);
    }
}

/* Smooth Wave Animation Keyframes - No vertical jitter */
@keyframes smoothWaveMove1 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* Move exactly half width (200%) */
    }
}

@keyframes smoothWaveMove2 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes smoothWaveMove3 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes waveFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* CTA Image Animation Classes */
.cta-image-animate {
    animation: ctaImageFadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

/* Ripple Effect */
.cta-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleEffect 0.6s ease-out;
    z-index: 3;
    pointer-events: none;
}

/* Touch Active State */
.cta-touch-active {
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.cta-touch-active img {
    filter: brightness(1.1) contrast(1.1) saturate(1.2) !important;
}


@media (max-width: 1220px) {
    .nav-links a{
        font-size: 1.2rem;
    }

    .nav-wrapper.nav-sticky .logo a{
        font-size: 1rem;
    }

}

@media (max-width: 1170px) {
    .nav-links a{
        font-size: 1rem;
    }

    .nav-wrapper.nav-sticky .logo a{
        font-size: 1rem;
    }

}

@media (max-width: 1090px) {
    .nav-links a{
        font-size: 0.8rem;
    }

    .nav-wrapper.nav-sticky .logo a{
        font-size: 1rem;
    }

}

@media (max-width: 970px) {
    .nav-links a{
        font-size: 0.6rem;
    }

    .nav-wrapper.nav-sticky .logo a{
        font-size: 1rem;
    }

}



/* CTA Responsive Design */
@media (max-width: 1024px) {
    
    .cta-container {
        gap: 60px;
        padding: 0 30px;
    }
    
    .cta-title {
        font-size: 3rem;
    }
    
    .cta-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 80px 0 100px 0;
    }
    
    .cta-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-btn {
        min-width: 160px;
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .cta-image-grid {
        max-width: 400px;
        margin: 0 auto;
        transform: rotate(0deg);
    }
    
    .cta-image-item:nth-child(1),
    .cta-image-item:nth-child(2),
    .cta-image-item:nth-child(3),
    .cta-image-item:nth-child(4) {
        transform: rotate(0deg) translateY(0);
    }
    
    .cta-image-item:nth-child(1):hover,
    .cta-image-item:nth-child(2):hover,
    .cta-image-item:nth-child(3):hover,
    .cta-image-item:nth-child(4):hover {
        transform: scale(1.05) translateY(-5px);
    }
    
    /* Mobile-friendly animations */
    .cta-section.animate-in .cta-image-item:nth-child(1) {
        animation: slideInMobile 0.6s ease-out 0.7s both;
    }
    
    .cta-section.animate-in .cta-image-item:nth-child(2) {
        animation: slideInMobile 0.6s ease-out 0.8s both;
    }
    
    .cta-section.animate-in .cta-image-item:nth-child(3) {
        animation: slideInMobile 0.6s ease-out 0.9s both;
    }
    
    .cta-section.animate-in .cta-image-item:nth-child(4) {
        animation: slideInMobile 0.6s ease-out 1s both;
    }
    
    /* Reduce shimmer effect on mobile */
    .cta-image-item::after {
        display: none;
    }
    
    
    .cta-wave svg {
        height: 100px;
        width: 200%; /* match desktop for seamless -50% loop */
    }
    
    /* Slower, smoother animations on mobile for better performance */
    .wave-layer-1 svg {
        animation: smoothWaveMove1 35s linear infinite;
    }
    
    .wave-layer-2 svg {
        animation: smoothWaveMove2 50s linear infinite reverse;
    }
    
    .wave-layer-3 svg {
        animation: smoothWaveMove3 65s linear infinite;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 60px 0 80px 0;
    }
    
    .cta-container {
        padding: 0 20px;
        gap: 40px;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .cta-image-grid {
        gap: 10px;
        max-width: 300px;
    }
    
    .cta-wave svg {
        height: 80px;
    }
}


/* Mobile menu overlay */
#navOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 250;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#navOverlay.show { display: block; opacity: 1; }
body.menu-open { overflow: hidden; }

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #103478 0%, var(--primary-color) 50%, #0a2555 100%);
    color: #E8E8E8;
    font-family: 'Cormorant Garamond', serif;
    padding: 60px 0 30px 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="80" cy="30" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.footer-container {
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer-column h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #E8E8E8 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: inherit;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.footer-column a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--third-color) 0%, var(--white-color) 100%);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-column a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.footer-column a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: right;
    font-size: 1rem;
    color: #E8E8E8;
    opacity: 0.8;
    padding-top: 30px;
    border-top: 1px solid rgba(232, 232, 232, 0.15);
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: calc(100vh + 60px); /* extend to cover nav overlap on mobile */
        min-height: 560px;
        background-attachment: scroll;
    }
    .layanan-page .main-title {
    margin-top: 50vh;
    padding: 14px 10px;
    max-width: 100%;
    text-align: center;
  }

    .main-title h1 {
        font-size: 4em;
    }
    
    /* Mobile responsive for floating cards */
    .floating-info-cards {
        position: static;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
        padding: 0 20px;
    }
    
    .info-card {
        min-width: 160px;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .card-icon {
        font-size: 2em;
    }
    
    .card-number {
        font-size: 1.5em;
    }
    
    .card-text {
        font-size: 0.8em;
    }
    
    /* Mobile responsive for scroll indicator */
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow span {
        width: 16px;
        height: 16px;
    }
    
    .scroll-text {
        font-size: 0.8em;
    }

    .nav-wrapper {
        margin-top: 0;
        padding-bottom: 0;
    }

    /* Ensure off-canvas menu can overflow navbar on mobile */
    nav { overflow: visible; }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        gap: 6px;
        padding-top: 16px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .nav-links li { width: 100%; }
    .nav-links a { display: block; width: 100%; text-align: center; padding: 14px 24px; font-size: 1.1em; }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .hamburger {
        display: block;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .content-container {
        display: block;
        padding: 40px 20px;
        height: 800px;
    }

    .text-content, .image-placeholder {
        flex-basis: 100%;
    }

    .image-placeholder {
        margin-top: 20px;
        height: 250px;
    }

    .container {
        padding: 30px 0;
    }

    .feature-item,
    .feature-item:nth-child(even) {
        margin-bottom: 80px;
    }

    .feature-item:nth-child(odd) .feature-text {
        text-align: center;
    }

    .feature-shape {
        width: 100%;
        height: 280px;
        margin-bottom: 25px;
    }

    .feature-text {
        max-width: 100%;
        text-align: center !important;
        padding: 10px;
        border-radius: 16px;
    }

    .feature-text h2 {
        font-size: 2.2rem;
    }

    .feature-text h2::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .feature-text p {
        font-size: 1.1rem;
    }

    .map-image {
        width: 95%;
        height: 50%;
    }

    .footer-columns {
        gap: 40px;
        text-align: left;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* === Unified Bold Title Component (Index/Home) === */
/* Hero Title polish: bold, elegant underline and emblem using available space */
.header-content .main-title h1{
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 1.1px;
}
.header-content .main-title h1::after{
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: -12px;
    height: 4px; border-radius: 999px;
    background: linear-gradient(90deg, var(--third-color), var(--secondary-color), var(--third-color));
    background-size: 200% 100%;
    box-shadow: 0 10px 22px rgba(0,0,0,.28);
    animation: homeTitleSlide 7s linear infinite;
}
.header-content .main-title h1::before{
    content: "";
    position: absolute;
    left: -16px; top: 50%; transform: translateY(-50%);
    width: 12px; height: 12px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #fff 25%, var(--secondary-color) 26%, var(--primary-color) 100%);
    box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
@keyframes homeTitleSlide{ to{ background-position: 200% 0; } }

/* Facilities panel title */
.facilities-section .facilities-header h2{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin: 6px 0 16px;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    letter-spacing: .6px;
    color: var(--primary-color);
    background: linear-gradient(#ffffffcc,#ffffffcc) padding-box,
                linear-gradient(135deg, var(--secondary-color), var(--third-color)) border-box;
    border: 2px solid transparent;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(2,6,23,.12);
}
.facilities-section .facilities-header h2::before{
    content: "";
    position: absolute;
    left: -12px; top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #fff 25%, var(--secondary-color) 26%, var(--third-color) 100%);
    box-shadow: 0 4px 10px rgba(2,6,23,.25);
}
.facilities-section .facilities-header h2::after{
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: -10px;
    height: 3px; border-radius: 999px;
    background: linear-gradient(90deg, var(--third-color), var(--secondary-color));
    box-shadow: 0 6px 14px rgba(2,6,23,.12);
}

@media (prefers-reduced-motion: reduce){
    .header-content .main-title h1::after{ animation: none; }
}

/* Force remove ::before on main title (Home) */
.header-content .main-title h1::before,
.main-title h1::before{
    content: none !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force remove ::before for requested components */
h2.section-title::before,
.header-title::before{
    content: none !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== RESPONSIVE ADJUSTMENTS FOR NAV-WRAPPER VERTICAL DIVIDERS ===== */

/* Tablet responsive adjustments (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-wrapper nav .main-nav .nav-links {
        gap: 24px;
    }
    
    .nav-wrapper nav .main-nav .nav-links li:not(:last-child)::after {
        right: -12px;
        height: 55%;
    }
    
    /* Logo responsive adjustments */
    .nav-wrapper nav {
        gap: 32px;
    }
    
    .nav-wrapper nav .logo::after {
        right: -16px;
        height: 65%;
    }
    
    .nav-wrapper nav .logo img {
        width: 36px;
        height: 36px;
    }
    
    .nav-wrapper nav .logo a {
        font-size: 1.05em;
    }
}

/* Small tablet responsive adjustments (769px - 900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .nav-wrapper nav .main-nav .nav-links {
        gap: 20px;
    }
    
    .nav-wrapper nav .main-nav .nav-links li:not(:last-child)::after {
        right: -10px;
        height: 50%;
        opacity: 0.7;
    }
    
    /* Logo responsive adjustments for small tablet */
    .nav-wrapper nav {
        gap: 28px;
    }
    
    .nav-wrapper nav .logo::after {
        right: -14px;
        height: 60%;
        opacity: 0.6;
    }
    
    .nav-wrapper nav .logo img {
        width: 34px;
        height: 34px;
    }
    
    .nav-wrapper nav .logo a {
        font-size: 1em;
    }
}

/* Hide dividers on mobile (768px and below) where hamburger menu is used */
@media (max-width: 768px) {
    .nav-wrapper nav .main-nav .nav-links li:not(:last-child)::after {
        display: none;
    }
    
    /* Hide logo divider on mobile */
    .nav-wrapper nav .logo::after {
        display: none;
    }
    
    /* Adjust logo for mobile */
    .nav-wrapper nav .logo img {
        width: 32px;
        height: 32px;
    }
    
    .nav-wrapper nav .logo a {
        font-size: 0.95em;
    }
    
    .nav-wrapper nav {
        gap: 20px;
    }
}


@media (max-width: 700px){
        .feature-text h2 {
        font-size: 1.5rem;
    }
    .feature-text p{
        font-size: 1rem;
    }

    .feature-item, .feature-item:nth-child(even){
        margin-bottom: 30px;
    }
}

@media (max-width: 620px){
    .content-container{
        height: 900px;
    }
}

/* ===== RESPONSIVE: MIN-WIDTH 601PX - SWAP ORDER FOR EVEN FEATURE ITEMS ===== */
@media (min-width: 601px) {
    /* Swap order for Tebing Batu Tongkarayya (2nd) and Gua Purbakala Passea (4th) */
    .feature-item:nth-child(2),
    .feature-item:nth-child(4) {
        display: flex;
        flex-direction: row-reverse;
    }
    
    /* Adjust text alignment for swapped items */
    .feature-item:nth-child(2) .feature-text,
    .feature-item:nth-child(4) .feature-text {
        text-align: right;
    }
    
    /* Ensure proper alignment of the underline */
    .feature-item:nth-child(2) .feature-text h2::before,
    .feature-item:nth-child(4) .feature-text h2::before {
        left: auto;
        right: 0;
    }
}

/* ===== RESPONSIVE: MAX-WIDTH 600PX - FEATURE ITEMS ===== */
@media (max-width: 600px) {
    /* Feature Item: Mobile-First Single Column Layout */
    .feature-item {
        display: flex !important;
        flex-direction: column-reverse !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 40px !important;
        padding: 0 15px !important;
        text-align: center !important;
        align-items: center !important;
    }
    
    .feature-item:nth-child(even),
    .feature-item:nth-child(odd) {
        display: flex !important;
        flex-direction: column-reverse !important;
        text-align: center !important;
    }
    
    /* Feature Shape: Responsive & Clean */
    .feature-shape {
        width: 100% !important;
        height: 240px !important;
        border-radius: 16px !important;
        transform: rotate(0deg) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
        margin-bottom: 0 !important;
    }
    
    .feature-shape img {
        border-radius: 16px !important;
    }
    
    .feature-shape:hover {
        transform: scale(1.03) !important;
    }
    
    .feature-item:nth-child(odd) .feature-shape,
    .feature-item:nth-child(even) .feature-shape {
        transform: rotate(0deg) !important;
    }
    
    .feature-item:nth-child(odd):hover .feature-shape,
    .feature-item:nth-child(even):hover .feature-shape {
        transform: scale(1.03) !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Feature Text: Centered & Readable */
    .feature-text {
        border-radius: 16px !important;
        text-align: center !important;
        max-width: 100% !important;
    }
    
    .feature-item:nth-child(odd) .feature-text,
    .feature-item:nth-child(even) .feature-text {
        text-align: center !important;
    }
    
    .feature-text h2 {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }
    
    .feature-text h2::before {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 50px !important;
    }
    
    .feature-text p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-top: 15px !important;
    }
    
    /* Animation States: Mobile Optimized */
    .feature-item.hidden {
        transform: translateY(30px) scale(0.95) !important;
        opacity: 0 !important;
        transition: all 0.6s ease-out !important;
    }
    
    .feature-item.show {
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
        transition: all 0.6s ease-out !important;
    }
}

@media (max-width: 520px){
    .content-container{
        height: 700px;
    }
        /* === ROOT VARIABLES ADJUSTMENTS === */
    :root {
        --fontXL: 3rem;
        --fontL: 1.6rem;
        --fontB: 1.3rem;
        --fontMM: 1.1rem;
        --fontM: 0.9rem;
        --fontS: 0.8rem;
    }
    
    /* === HEADER SECTION === */
    .header-container {
        height: 120vh;
        min-height: 500px;
        background-attachment: scroll;
        padding: 0;
    }
    
    .header-overlay {
        padding: 15px 20px;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
        min-height: 60vh;
        text-align: center;
    }
    
    .header-brand {
        justify-content: center !important;
        margin-bottom: 10px;
    }
    
    .header-logo {
        width: 40px !important;
        height: 40px !important;
    }
    
    .header-title .desa-name {
        font-size: 1rem;
    }
    
    .header-title .kabupaten-name {
        font-size: 0.8rem;
    }
    
    .main-title {
        padding: 16px 20px;
        border-radius: 16px;
        max-width: 100%;
        align-items: center;
    }
    
    .main-title h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.1;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
        padding: 8px 16px;
        margin-top: 10px;
        border-radius: 20px;
    }
    
    .hero-actions {
        margin-top: 18px;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 140px;
        border-radius: 25px;
    }
    
    /* === FLOATING INFO CARDS === */
    .floating-info-cards {
        display: grid !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 6px !important;
        margin-top: 0px !important;
        padding: 0 15px !important;
        overflow-x: auto !important;
        justify-self: center;
    }
    
    .info-card {
        flex: 1 !important;
        padding: 6px 8px !important;
        gap: 6px !important;
        border-radius: 12px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }
    
    .card-icon {
        font-size: 1.3em !important;
    }
    
    .card-number {
        font-size: 1em !important;
        font-weight: 700 !important;
    }
    
    .card-text {
        font-size: 0.65em !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
    }
    
    /* === SCROLL INDICATOR === */
    .scroll-indicator {
        bottom: 15px;
    }
    
    .scroll-arrow span {
        width: 14px;
        height: 14px;
    }
    
    .scroll-text {
        font-size: 0.75em;
    }
    
    /* === NAVIGATION === */
    .nav-wrapper {
        padding: 0 10px;
    }
    
    .nav-wrapper.nav-sticky {
        padding: 5px 10px;
        max-width: calc(100% - 20px);
        border-radius: 18px;
    }
    
    .nav-wrapper.nav-sticky nav {
        padding: 8px 20px;
        border-radius: 15px;
    }
    
    nav {
        padding: 8px 20px;
        border-radius: 20px;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }
    
    .logo a {
        font-size: 0.9rem;
    }
    
    .nav-links {
        width: 80%;
        top: 60px;
        height: calc(100vh - 60px);
        padding-top: 20px;
        gap: 8px;
    }
    
    .nav-links a {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .hamburger div {
        width: 22px;
        height: 2.5px;
        margin: 4px;
    }
    
    /* === MAIN CONTENT === */
    main {
        padding: 40px 15px 40px 15px;
    }
    
    .content-container {
        padding: 30px 0;
        gap: 30px;
    }
    
    .text-content {
        padding: 16px 20px;
        border-radius: 16px;
    }
    
    .text-content p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }
    
    .image-placeholder {
        height: 220px;
        border-radius: 16px;
        margin-top: 15px;
    }
    
    /* === FEATURES SECTION === */
    .features-section {
        padding: 40px 0;
    }
    .container {
        padding: 40px 15px;
    }

    .footer-column li {
    margin-bottom: 0px;
}
    
    /* Feature-item styles removed - using 600px media query instead */
    
    /* === MAP SECTION === */
    .map-container {
        padding: 30px 15px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-pane .map-image {
        min-height: 280px;
        border-radius: 16px;
    }
    
    .facilities-pane {
        border-radius: 14px;
        padding: 12px;
        max-height: none;
    }
    
    .facilities-header {
        padding: 15px 12px 12px 12px;
        margin: -12px -12px 12px -12px;
    }
    
    .facilities-header h2 {
        font-size: 1.3rem;
    }
    
    .facility-card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .facility-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .facility-list li {
        padding: 6px 8px 6px 32px;
        margin-bottom: 6px;
        border-radius: 8px;
        font-size: 0.85rem;
    }
    
    /* === CTA SECTION === */
    .cta-section {
        padding: 60px 0 80px 0;
    }
    
    .cta-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        text-align: center;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 20px;
        line-height: 1.1;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 260px;
        padding: 12px 24px;
        font-size: 0.95rem;
        min-width: auto;
        border-radius: 25px;
    }
    
    .cta-image-grid {
        max-width: 280px;
        margin: 0 auto;
        gap: 12px;
        transform: rotate(0deg);
    }
    
    .cta-image-item {
        border-radius: 16px;
    }
    
    .cta-image-item:nth-child(1),
    .cta-image-item:nth-child(2),
    .cta-image-item:nth-child(3),
    .cta-image-item:nth-child(4) {
        transform: rotate(0deg) translateY(0);
    }
    
    .cta-image-item:nth-child(1):hover,
    .cta-image-item:nth-child(2):hover,
    .cta-image-item:nth-child(3):hover,
    .cta-image-item:nth-child(4):hover {
        transform: scale(1.03) translateY(-3px);
    }
    
    
    .cta-wave svg {
        height: 80px;
    }
    
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-columns {

        gap: 30px;
        text-align: left;
    }
    
    .footer-column h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .footer-column a {
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        text-align: center;
        font-size: 0.9rem;
        padding-top: 25px;
    }
    
    
    
    /* === MODAL AND CAROUSEL === */
    .modal {
        padding: 10px;
    }
    
    .carousel {
        max-width: 100%;
        height: 70%;
        border-radius: 12px;
    }
    
    .carousel-control {
        padding: 8px 12px;
        font-size: 1.5em;
    }
    
    .close-carousel {
        font-size: 2.5em;
        right: 20px;
        top: 5px;
    }
    
    /* === PERFORMANCE OPTIMIZATIONS === */
    .header-container::before,
    .header-container::after {
        animation-duration: 30s;
    }
    
    nav::before,
    nav::after {
        animation-duration: 8s;
    }
    
    .wave-layer-1 svg {
        animation-duration: 40s;
    }
    
    .wave-layer-2 svg {
        animation-duration: 60s;
    }
    
    .wave-layer-3 svg {
        animation-duration: 80s;
    }
    
    /* === ACCESSIBILITY IMPROVEMENTS === */
    .hero-btn:focus-visible,
    .cta-btn:focus-visible,
    .nav-links a:focus-visible,
    .mobile-nav-item:focus-visible {
        outline: 2px solid rgba(255,255,255,0.8);
        outline-offset: 2px;
    }
    
    /* === TOUCH IMPROVEMENTS === */
    .hero-btn,
    .cta-btn,
    .nav-links a,
    .mobile-nav-item,
    .feature-shape {
        -webkit-tap-highlight-color: rgba(255,255,255,0.2);
        touch-action: manipulation;
    }
    
    /* === PREVENT HORIZONTAL SCROLL === */
    body {
        overflow-x: hidden;
    }
    
    * {
        box-sizing: border-box;
    }
    
    /* === ENSURE PROPER SPACING FOR MOBILE BOTTOM NAV === */
    
    
    /* === ADDITIONAL RESPONSIVE ENHANCEMENTS === */
    
    /* Improve text readability and spacing */
    .text-content p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }
    
    .second-paragraph {
        margin-top: 20px;
        font-weight: 500;
    }
    
    /* Better image handling */
    .image-placeholder img,
    .feature-shape img,
    .cta-image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
    }
    
    /* Improve button interactions */
    .hero-btn:active,
    .cta-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Better spacing for content sections */
    .content-container {
        margin: 20px 0;
    }
    
    /* Optimize floating cards for very small screens */
    .floating-info-cards {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 8px;
        padding: 0 15px;
        margin-top: 25px;
    }
    
    .info-card {
        min-width: auto;
        padding: 8px 12px;
        text-align: center;
    }
    
    /* Feature section layout - using 600px media query styles */
    
    /* Improve navigation accessibility */
    .nav-links.active {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* Better modal handling */
    .modal {
        padding: 15px;
   - using 600px media query sty }
 s   
rousel-inner img {
        max-height: 60vh;
        object-fit: contain;
        border-radius: 8px;
    }
    
    /* Optimize tape element */
    .tape {
        height: 4px;
    }
    
    /* Better scroll behavior */
    html {
        scroll-padding-top: 80px; /* Account for sticky nav */
    }
    
    
    /* Better wave animations for mobile */
    .cta-wave svg {
        height: 60px;
        animation-duration: 25s;
    }
    
    /* Optimize footer links */
    .footer-column ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .footer-column li {
        width: 100%;
        text-align: left;
    }
    
    .footer-column a {
        display: block;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .footer-column a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    
    /* Better mobile bottom nav spacing */
    .mobile-nav-container {
        max-width: 100%;
        justify-content: space-evenly;
    }
    
    /* Improve loading performance */
    .header-container {
        background-size: cover;
        background-position: center center;
        will-change: transform;
    }
    
    /* Better focus states for accessibility */
    .hamburger:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.8);
        outline-offset: 4px;
        border-radius: 4px;
    }
    
    /* Optimize content width */
    .container,
    .content-container,
    .cta-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Better image loading */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Improve text selection */
    ::selection {
        background: rgba(19, 62, 135, 0.3);
        color: inherit;
    }
    
    /* Better form elements if any */
    input, button, select, textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Optimize animations for mobile */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

@media (max-width: 460px){
    .content-container{
        height: 800px;
    }
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE DESIGN FOR MAX-WIDTH 400PX ===== */
@media (max-width: 400px) {
    /* === ROOT VARIABLES ADJUSTMENTS === */
    :root {
        --fontXL: 3rem;
        --fontL: 1.6rem;
        --fontB: 1.3rem;
        --fontMM: 1.1rem;
        --fontM: 0.9rem;
        --fontS: 0.8rem;
    }

       .content-container{
        height: 800px;
    }
    
    /* === HEADER SECTION === */
    .header-container {
        height: 120vh;
        min-height: 500px;
        background-attachment: scroll;
        padding: 0;
    }
    
    .header-overlay {
        padding: 15px 20px;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
        min-height: 60vh;
        text-align: center;
    }
    
    .header-brand {
        justify-content: center !important;
        margin-bottom: 10px;
    }
    
    .header-logo {
        width: 40px !important;
        height: 40px !important;
    }
    
    .header-title .desa-name {
        font-size: 1rem;
    }
    
    .header-title .kabupaten-name {
        font-size: 0.8rem;
    }
    
    .main-title {
        padding: 16px 20px;
        border-radius: 16px;
        max-width: 100%;
        align-items: center;
    }
    
    .main-title h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.1;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
        padding: 8px 16px;
        margin-top: 10px;
        border-radius: 20px;
    }
    
    .hero-actions {
        margin-top: 18px;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 140px;
        border-radius: 25px;
    }
    
    /* === FLOATING INFO CARDS === */
    .floating-info-cards {
        display: grid !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 6px !important;
        margin-top: 18px !important;
        padding: 0 15px !important;
        overflow-x: auto !important;
    }
    
    .info-card {
        flex: 1 !important;
        padding: 6px 8px !important;
        gap: 6px !important;
        border-radius: 12px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }
    
    .card-icon {
        font-size: 1.3em !important;
    }
    
    .card-number {
        font-size: 1em !important;
        font-weight: 700 !important;
    }
    
    .card-text {
        font-size: 0.65em !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
    }
    
    /* === SCROLL INDICATOR === */
    .scroll-indicator {
        bottom: 15px;
    }
    
    .scroll-arrow span {
        width: 14px;
        height: 14px;
    }
    
    .scroll-text {
        font-size: 0.75em;
    }
    
    /* === NAVIGATION === */
    .nav-wrapper {
        padding: 0 10px;
    }
    
    .nav-wrapper.nav-sticky {
        padding: 5px 10px;
        max-width: calc(100% - 20px);
        border-radius: 18px;
    }
    
    .nav-wrapper.nav-sticky nav {
        padding: 8px 20px;
        border-radius: 15px;
    }
    
    nav {
        padding: 8px 20px;
        border-radius: 20px;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }
    
    .logo a {
        font-size: 0.9rem;
    }
    
    .nav-links {
        width: 80%;
        top: 60px;
        height: calc(100vh - 60px);
        padding-top: 20px;
        gap: 8px;
    }
    
    .nav-links a {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .hamburger div {
        width: 22px;
        height: 2.5px;
        margin: 4px;
    }
    
    /* === MAIN CONTENT === */
    main {
        padding: 40px 15px 40px 15px;
    }
    
    .content-container {
        padding: 30px 0;
        gap: 30px;
    }
    
    .text-content {
        padding: 16px 20px;
        border-radius: 16px;
    }
    
    .text-content p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }
    
    .image-placeholder {
        height: 220px;
        border-radius: 16px;
        margin-top: 15px;
    }
    
    /* === FEATURES SECTION === */
    .features-section {
        padding: 40px 0;
    }
    
    .container {
        padding: 40px 15px;
    }
    
    /* Feature-item styles removed - using 600px media query instead */
    /* === MAP SECTION === */
    .map-container {
        padding: 30px 15px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-pane .map-image {
        min-height: 280px;
        border-radius: 16px;
    }
    
    .facilities-pane {
        border-radius: 14px;
        padding: 12px;
        max-height: none;
    }
    
    .facilities-header {
        padding: 15px 12px 12px 12px;
        margin: -12px -12px 12px -12px;
    }
    
    .facilities-header h2 {
        font-size: 1.3rem;
    }
    
    .facility-card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .facility-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .facility-list li {
        padding: 6px 8px 6px 32px;
        margin-bottom: 6px;
        border-radius: 8px;
        font-size: 0.85rem;
    }
    
    /* === CTA SECTION === */
    .cta-section {
        padding: 60px 0 80px 0;
    }
    
    .cta-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        text-align: center;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 20px;
        line-height: 1.1;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 260px;
        padding: 12px 24px;
        font-size: 0.95rem;
        min-width: auto;
        border-radius: 25px;
    }
    
    .cta-image-grid {
        max-width: 280px;
        margin: 0 auto;
        gap: 12px;
        transform: rotate(0deg);
    }
    
    .cta-image-item {
        border-radius: 16px;
    }
    
    .cta-image-item:nth-child(1),
    .cta-image-item:nth-child(2),
    .cta-image-item:nth-child(3),
    .cta-image-item:nth-child(4) {
        transform: rotate(0deg) translateY(0);
    }
    
    .cta-image-item:nth-child(1):hover,
    .cta-image-item:nth-child(2):hover,
    .cta-image-item:nth-child(3):hover,
    .cta-image-item:nth-child(4):hover {
        transform: scale(1.03) translateY(-3px);
    }
    
    /* === WAVES === */
    .cta-waves {
        height: 80px;
    }
    
    .cta-wave svg {
        height: 80px;
    }
    
    /* === FOOTER === */
    .site-footer {
        padding: 40px 0 160px 0;
    }
    
    .footer-container {
        padding: 0 20px;
    }
        @media (max-width: 360px) {
            .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}
    .footer-column a {
        font-size: 1rem;
    }
}

    
    .footer-bottom {
        text-align: center;
        font-size: 0.9rem;
        padding-top: 25px;
    }
    
    
    /* === MODAL AND CAROUSEL === */
    .modal {
        padding: 10px;
    }
    
    .carousel {
        max-width: 100%;
        height: 70%;
        border-radius: 12px;
    }
    
    .carousel-control {
        padding: 8px 12px;
        font-size: 1.5em;
    }
    
    .close-carousel {
        font-size: 2.5em;
        right: 20px;
        top: 5px;
    }
    
    /* === PERFORMANCE OPTIMIZATIONS === */
    .header-container::before,
    .header-container::after {
        animation-duration: 30s;
    }
    
    nav::before,
    nav::after {
        animation-duration: 8s;
    }
    
    .wave-layer-1 svg {
        animation-duration: 40s;
    }
    
    .wave-layer-2 svg {
        animation-duration: 60s;
    }
    
    .wave-layer-3 svg {
        animation-duration: 80s;
    }
    
    /* === ACCESSIBILITY IMPROVEMENTS === */
    .hero-btn:focus-visible,
    .cta-btn:focus-visible,
    .nav-links a:focus-visible,
    .mobile-nav-item:focus-visible {
        outline: 2px solid rgba(255,255,255,0.8);
        outline-offset: 2px;
    }
    
    /* === TOUCH IMPROVEMENTS === */
    .hero-btn,
    .cta-btn,
    .nav-links a,
    .mobile-nav-item,
    .feature-shape {
        -webkit-tap-highlight-color: rgba(255,255,255,0.2);
        touch-action: manipulation;
    }
    
    /* === PREVENT HORIZONTAL SCROLL === */
    body {
        overflow-x: hidden;
    }
    
    * {
        box-sizing: border-box;
    }
    
    /* === ENSURE PROPER SPACING FOR MOBILE BOTTOM NAV === */
    main {
        padding-bottom: 80px; /* Space for mobile bottom nav */
    }
    
    
    /* === ADDITIONAL RESPONSIVE ENHANCEMENTS === */
    
    /* Improve text readability and spacing */
    .text-content p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 16px;
    }
    
    .second-paragraph {
        margin-top: 20px;
        font-weight: 500;
    }
    
    /* Better image handling */
    .image-placeholder img,
    .feature-shape img,
    .cta-image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
    }
    
    /* Improve button interactions */
    .hero-btn:active,
    .cta-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Better spacing for content sections */
    .content-container {
        margin: 20px 0;
    }
    
    /* Optimize floating cards for very small screens */
    .floating-info-cards {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 8px;
        padding: 0 15px;
        margin-top: 25px;
    }
    
    .info-card {
        min-width: auto;
        padding: 8px 12px;
        text-align: center;
    }
    
    /* Feature section layout - using 600px media query styles */
    
    /* Improve navigation accessibility */
    .nav-links.active {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* Better modal handling */
    .modal {
        paddi- using 600px media query styng: 15spx;
    
    .carousel-inner img {
        max-height: 60vh;
        object-fit: contain;
        border-radius: 8px;
    }
    
    /* Optimize tape element */
    .tape {
        height: 4px;
    }
    
    /* Better scroll behavior */
    html {
        scroll-padding-top: 80px; /* Account for sticky nav */
    }
    
    /* Improve header top section */
    .header-top {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    /* Better wave animations for mobile */
    .cta-wave svg {
        height: 60px;
        animation-duration: 25s;
    }
    
    /* Optimize footer links */
    .footer-column ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .footer-column li {
        width: 100%;
        text-align: center;
    }
    
    .footer-column a {
        display: block;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .footer-column a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    
    /* Better mobile bottom nav spacing */
    .mobile-nav-container {
        max-width: 100%;
        justify-content: space-evenly;
    }
    
    /* Improve loading performance */
    .header-container {
        background-size: cover;
        background-position: center center;
        will-change: transform;
    }
    
    /* Better focus states for accessibility */
    .hamburger:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.8);
        outline-offset: 4px;
        border-radius: 4px;
    }
    
    /* Optimize content width */
    .container,
    .content-container,
    .cta-container,
    .footer-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Better image loading */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Improve text selection */
    ::selection {
        background: rgba(19, 62, 135, 0.3);
        color: inherit;
    }
    
    /* Better form elements if any */
    input, button, select, textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Optimize animations for mobile */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* ===== ULTRA SMALL SCREENS (320px and below) ===== */
@media (max-width: 320px) {
    /* Further optimize for very small screens */
    :root {
        --fontXL: 2.5rem;
        --fontL: 1.4rem;
        --fontB: 1.2rem;
        --fontMM: 1rem;
        --fontM: 0.85rem;
        --fontS: 0.75rem;
    }
    
    /* Header optimizations */
    .header-overlay {
        padding: 10px 15px;
    }
    
    .main-title h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        line-height: 1.05;
    }
    
    .hero-tagline {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .hero-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 120px;
    }
    
    /* Navigation adjustments */
    .nav-wrapper {
        padding: 0 8px;
    }
    
    .logo a {
        font-size: 0.8rem;
    }
    
    .logo img {
        width: 26px;
        height: 26px;
    }
    
    /* Content optimizations */
    main {
        padding: 30px 12px 70px 12px;
    }
    
    .container {
        padding: 30px 12px;
    }
    
    .text-content {
        padding: 12px 16px;
    }
    
    .text-content p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    /* Feature section */
    .feature-text h2 {
        font-size: 1.3rem !important;
        margin-bottom: 8px !important;
        line-height: 1.1 !important;
    }
    
    .feature-text p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    .feature-shape {
        height: 200px;
        margin-bottom: 15px;
    }
    
    /* CTA section */
    .cta-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
}

/* =============================================
   LARGE SCREENS (1280px - 1600px)
   Enhanced typography and spacing for desktop
   ============================================= */
@media (min-width: 1280px) {
    /* Root Variables - Increased sizes for large screens */
    :root {
        --fontXXL: 5.5rem;
        --fontXL: 4.5rem;
        --fontL: 2.8rem;
        --fontB: 2rem;
        --fontMM: 1.5rem;
        --fontM: 1.2rem;
        --fontS: 1rem;
    }

    .header-logo{
        width: 100px;
        height: 100px;
    }

    @media (max-width: 1280px){
        .header-logo{
            width: 80px;
            height: 80px;
        }
     }
    /* === HEADER SECTION === */
    .header-container {
        min-height: 800px;
    }

    .header-overlay {
        padding: 30px 80px;
    }

    .header-content {
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
        gap: 60px;
        padding: 50px 0;


    }

    .header-title {
        padding: 14px 20px;
        border-radius: 18px;
    }

    .header-title .desa-name {
        font-size: 1.6em;
    }

    .header-title .kabupaten-name {
        font-size: 1.1em;
    }

    .main-title {
        max-width: 1100px;
        padding: 32px 40px;
        border-radius: 24px;
    }

    .main-title h1 {
        font-size: clamp(3rem, 8vw, 3rem);
        letter-spacing: 4px;
        line-height: 1.1;
    }

    .hero-tagline {
        font-size: 1.35em;
        padding: 14px 28px;
        margin-top: 20px;
        border-radius: 30px;
    }

    .hero-actions {
        margin-top: 32px;
        gap: 20px;
    }

    .hero-btn {
        padding: 16px 36px;
        font-size: 1.25rem;
        min-width: 200px;
        border-radius: 50px;
    }



    nav {
        max-width: 1400px;
        margin: 0 auto;
        padding: 20px 40px;
    }

    .logo img {
        width: 60px;
        height: 60px;
    }

    .logo-text .desa {
        font-size: 1.3rem;
    }

    .logo-text .kabupaten {
        font-size: 1rem;
    }

    .nav-links {
        gap: 40px;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 12px 20px;
    }

    /* === MAIN CONTENT === */
    main {
        padding: 60px 80px 80px 80px;
        margin: 0 auto;
    }

    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 60px 40px;
    }

    /* === TEXT CONTENT === */
    .text-content {
        padding: 40px 50px;
        border-radius: 20px;
    }

    .text-content h2 {
        font-size: 2.8rem;
        margin-bottom: 30px;
    }

    .text-content p {
        font-size: 1.25rem;
        line-height: 1.8;
        margin-bottom: 24px;
    }

    /* === FEATURE SECTION === */
    .feature-text h2 {
        font-size: 3rem !important;
        margin-bottom: 30px !important;
        line-height: 1.2 !important;
    }

    .feature-text p {
        font-size: 1.3rem !important;
        line-height: 1.8 !important;
    }

    .feature-shape {
        height: 500px;
        border-radius: 24px;
    }

    /* === CTA SECTION === */
    .cta-section {
        padding: 100px 80px 120px 80px;
    }

    .cta-title {
        font-size: 3.5rem !important;
        margin-bottom: 30px !important;
        line-height: 1.2 !important;
    }

    .cta-subtitle {
        font-size: 1.4rem;
        margin-bottom: 40px;
        line-height: 1.7;
    }

    .cta-btn {
        padding: 18px 40px;
        font-size: 1.25rem;
        min-width: 220px;
    }

    /* === FOOTER === */
    .site-footer {
        padding: 80px 80px 40px 80px;
    }

    .footer-column h3 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .footer-column a {
        font-size: 1.15rem;
    }

    .footer-bottom {
        font-size: 1.1rem;
    }
}

/* =============================================
   EXTRA LARGE SCREENS (1601px - 1920px)
   Premium desktop experience
   ============================================= */
@media (min-width: 1601px) {
    :root {
        --fontXXL: 6.5rem;
        --fontXL: 5rem;
        --fontL: 3.2rem;
        --fontB: 2.3rem;
        --fontMM: 1.7rem;
        --fontM: 1.35rem;
        --fontS: 1.1rem;
    }

    .header-container {
        min-height: 900px;
    }

    .header-overlay {
        padding: 40px 120px;
    }

    .header-content {
        gap: 80px;
    }

    .main-title h1 {
        font-size: clamp(5rem, 9vw, 7.5rem);
        letter-spacing: 5px;
    }

    .hero-tagline {
        font-size: 1.5em;
    }

    .hero-btn {
        padding: 20px 48px;
        font-size: 1.4rem;
        min-width: 240px;
    }

    .nav-wrapper {
        padding: 0 120px;
    }

    nav {
        max-width: 1600px;
        padding: 24px 50px;
    }

    .logo img {
        width: 70px;
        height: 70px;
    }

    .nav-links a {
        font-size: 1.45rem;
    }

    main {
        padding: 80px 120px 100px 120px;
    }

    .text-content h2 {
        font-size: 3.2rem;
    }

    .text-content p {
        font-size: 1.4rem;
    }

    .feature-text h2 {
        font-size: 3.5rem !important;
    }

    .feature-text p {
        font-size: 1.45rem !important;
    }

    .cta-title {
        font-size: 4rem !important;
    }

    .cta-subtitle {
        font-size: 1.55rem;
    }

    .cta-btn {
        padding: 22px 48px;
        font-size: 1.4rem;
    }

    .footer-column h3 {
        font-size: 2rem;
    }

    .footer-column a {
        font-size: 1.3rem;
    }
}

/* =============================================
   ULTRA LARGE SCREENS (1921px - 2560px)
   4K and Ultra-wide display optimization
   ============================================= */
@media (min-width: 1921px) and (max-width: 2560px) {
    :root {
        --fontXXL: 7.5rem;
        --fontXL: 6rem;
        --fontL: 3.8rem;
        --fontB: 2.6rem;
        --fontMM: 2rem;
        --fontM: 1.5rem;
        --fontS: 1.25rem;
    }

    .header-container {
        min-height: 1280px;
    }

    .header-overlay {
        padding: 50px 150px;
    }

    .header-content {
        gap: 100px;
    }

    .main-title h1 {
        font-size: clamp(6rem, 10vw, 9rem);
        letter-spacing: 6px;
    }

    .hero-tagline {
        font-size: 1.75em;
        padding: 20px 44px;
    }

    .hero-btn {
        padding: 24px 56px;
        font-size: 1.6rem;
        min-width: 280px;
    }

    .nav-wrapper {
        padding: 0 150px;
    }

    nav {
        max-width: 2000px;
        padding: 28px 60px;
    }

    .logo img {
        width: 85px;
        height: 85px;
    }

    .logo-text .desa {
        font-size: 1.8rem;
    }

    .nav-links a {
        font-size: 1.65rem;
    }

    main {
        padding: 100px 150px 120px 150px;
    }

    .container {
        max-width: 2000px;
        padding: 100px 80px;
    }

    .text-content {
        padding: 60px 90px;
    }

    .text-content h2 {
        font-size: 3.8rem;
    }

    .text-content p {
        font-size: 1.6rem;
    }

    .feature-text h2 {
        font-size: 4.2rem !important;
    }

    .feature-text p {
        font-size: 1.65rem !important;
    }

    .feature-shape {
        height: 750px;
    }

    .cta-section {
        padding: 150px 150px 180px 150px;
    }

    .cta-title {
        font-size: 4.8rem !important;
    }

    .cta-subtitle {
        font-size: 1.8rem;
    }

    .cta-btn {
        padding: 26px 56px;
        font-size: 1.6rem;
        min-width: 300px;
    }

    .footer-column h3 {
        font-size: 2.4rem;
    }

    .footer-column a {
        font-size: 1.5rem;
    }

    .footer-bottom {
        font-size: 1.35rem;
    }
}

/* ========================================
   RESPONSIVE: FLOATING INFO CARDS - LARGE SCREENS
   ======================================== */

/* Large Screens (1280px - 1600px) */
@media (min-width: 1280px) and (max-width: 1600px) {
    .floating-info-cards {
        gap: 20px;
    }

    .info-card {
        gap: 20px;
        border-radius: 24px;
        padding: 20px 26px;
        min-width: 260px;
    }

    .card-icon {
        font-size: 3.2em;
    }

    .card-number {
        font-size: 2.6em;
    }

    .card-text {
        font-size: 1.15em;
    }

    .scroll-indicator {
        bottom: 40px;
    }

    .scroll-arrow span {
        width: 24px;
        height: 24px;
        border-bottom: 3px solid var(--white-color);
        border-right: 3px solid var(--white-color);
    }

    .scroll-text {
        font-size: 1.1em;
    }
}

/* Extra Large Screens (1601px - 1920px) */
@media (min-width: 1601px) and (max-width: 1920px) {
    .floating-info-cards {
        gap: 24px;
    }

    .info-card {
        gap: 24px;
        border-radius: 28px;
        padding: 24px 32px;
        min-width: 300px;
    }

    .info-card:hover {
        transform: translateX(0) scale(1.08);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }

    .card-icon {
        font-size: 3.8em;
    }

    .card-number {
        font-size: 3.2em;
    }

    .card-text {
        font-size: 1.3em;
    }

    .scroll-indicator {
        bottom: 50px;
        gap: 14px;
    }

    .scroll-arrow {
        gap: 8px;
    }

    .scroll-arrow span {
        width: 28px;
        height: 28px;
        border-bottom: 3px solid var(--white-color);
        border-right: 3px solid var(--white-color);
    }

    .scroll-text {
        font-size: 1.25em;
    }
}

/* Ultra Large Screens (1921px - 2560px) - 4K Displays */
@media (min-width: 1921px) and (max-width: 2560px) {
    .floating-info-cards {
        gap: 30px;
    }

    .info-card {
        gap: 28px;
        border-radius: 32px;
        padding: 28px 38px;
        min-width: 360px;
        border: 2px solid rgba(255, 255, 255, 0.25);
    }

    .info-card:hover {
        transform: translateX(0) scale(1.1);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
        background: rgba(255, 255, 255, 0.3);
    }

    .card-icon {
        font-size: 4.5em;
    }

    .card-number {
        font-size: 3.8em;
    }

    .card-text {
        font-size: 1.5em;
        font-weight: 700;
    }

    .scroll-indicator {
        bottom: 60px;
        gap: 16px;
    }

    .scroll-arrow {
        gap: 10px;
    }

    .scroll-arrow span {
        width: 32px;
        height: 32px;
        border-bottom: 4px solid var(--white-color);
        border-right: 4px solid var(--white-color);
    }

    .scroll-text {
        font-size: 1.45em;
        font-weight: 600;
    }

    /* Enhanced animations for larger screens */
    @keyframes iconFloat {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-8px);
        }
    }
}

