/* ============================================================
   1. RESET & VARIABEL
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2e7d32;
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --secondary: #ff8f00;
    --accent: #00897b;
    --bg-light: #f1f8e9;
    --bg-white: #ffffff;
    --text-dark: #1e2a1e;
    --text-light: #4a5a4a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

body.dark-mode {
    --bg-light: #121812;
    --bg-white: #1e2a1e;
    --text-dark: #e8efe8;
    --text-light: #b0c0b0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   2. DARK MODE: BLOG & BERITA
   ============================================================ */
body.dark-mode .section-blog {
    background: var(--bg-light);
}
body.dark-mode .berita-card {
    background-color: var(--bg-white);
    border-color: rgba(255,255,255,0.06);
}
body.dark-mode .berita-card .card-overlay {
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(4px);
}
body.dark-mode .berita-card .card-overlay i {
    color: #66bb6a;
}
body.dark-mode .berita-card .card-overlay h4 {
    color: #e8efe8;
}
body.dark-mode .berita-card .card-overlay .card-preview {
    color: #b0c0b0;
}
body.dark-mode .berita-card .card-overlay .small-tag {
    background: rgba(255,255,255,0.15);
    color: #e8efe8;
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .berita-card:hover .card-overlay .small-tag {
    background: rgba(255,255,255,0.25);
}
body.dark-mode .berita-card.empty-card {
    background: var(--bg-white) !important;
    border-color: rgba(255,255,255,0.1);
    color: var(--text-light);
}
body.dark-mode .berita-card.empty-card i {
    color: var(--text-light);
}

/* ============================================================
   3. TOMBOL
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(46,125,50,0.35);
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46,125,50,0.45);
    background: var(--primary-dark);
}
.btn:active { transform: scale(0.96); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   4. JUDUL SECTION
   ============================================================ */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 4px;
}
.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 640px;
}

/* ============================================================
   5. HERO BANNER
   ============================================================ */
.hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    border-radius: 0 0 60px 60px;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
}
.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-content h1 span { color: #4caf50; }
.hero-content p {
    font-size: 1.15rem;
    color: #f0f0f0;
    margin-bottom: 28px;
}
.hero-badges span {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
    margin: 4px 4px 0 0;
}
.hero-content .btn { background: var(--primary); color: #fff; }
.hero-content .btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.hero-content .btn-outline:hover {
    background: #fff;
    color: var(--primary-dark);
}
.hero-buttons {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.btn-hero {
    padding: 16px 48px;
    font-size: 1.1rem;
    position: relative;
    overflow: visible;
}
.btn-hero::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-light), var(--secondary), var(--primary-light));
    background-size: 200% 200%;
    z-index: -1;
    animation: gradient-shift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(4px);
}
.btn-hero:hover::before { opacity: 1; }
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================
   6. SECTION & CARD (UMUM)
   ============================================================ */
section { padding: 70px 0; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.35s ease,
                border-color 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(46,125,50,0.12), 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}
.card i {
    font-size: 2.4rem;
    color: var(--primary-light);
    margin-bottom: 14px;
    transition: transform 0.3s ease, color 0.3s ease;
}
.card:hover i {
    transform: scale(1.15) rotate(-3deg);
    color: var(--primary-dark);
}
.card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}
.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}
.card .small-tag {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.75rem;
    background: var(--bg-light);
    padding: 4px 14px;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}
.card:hover .small-tag {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   8. TENTANG DESA (GRID)
   ============================================================ */
.tentang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.tentang-card {
    text-align: center;
    padding: 32px 20px;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.35s ease;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    border: none;
    outline: none;
}
.tentang-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(46,125,50,0.1);
}
.tentang-card:hover,
.tentang-card:focus,
.tentang-card:active {
    text-decoration: none !important;
    outline: none;
}
.tentang-card i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 12px;
    display: block;
}
.tentang-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}
.tentang-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}
.tentang-card .small-tag {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: var(--secondary);
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease;
}
.tentang-card:hover .small-tag {
    background: var(--secondary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
}

/* ============================================================
   9. UMKM SLIDER (HORIZONTAL)
   ============================================================ */
.section-umkm {
    padding: 50px 0;
    background: var(--bg-light);
}

.umkm-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 40px;
}

.umkm-scroll-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 4px 20px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.umkm-scroll-wrapper::-webkit-scrollbar { display: none; }

/* ===== CARD UMKM (UKURAN KECIL) ===== */
.umkm-card-expand {
    flex: 0 0 180px;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.umkm-card-expand:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(46,125,50,0.10);
}

.umkm-card-expand .umkm-card-image {
    height: 110px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.umkm-card-expand .umkm-category {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(46,125,50,0.85);
    color: #fff;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
}

.umkm-card-expand .umkm-badge-weekly {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(255, 143, 0, 0.9);
    color: #fff;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.5rem;
    font-weight: 700;
    backdrop-filter: blur(2px);
}

.umkm-card-expand .umkm-card-body {
    padding: 8px 10px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.umkm-card-expand .umkm-card-body h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.umkm-card-expand .umkm-pelaku,
.umkm-card-expand .umkm-harga {
    font-size: 0.7rem;
    color: var(--text-light);
    margin: 1px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.umkm-card-expand .umkm-pelaku i,
.umkm-card-expand .umkm-harga i {
    width: 14px;
    color: var(--secondary);
    font-size: 0.65rem;
}

.umkm-card-expand .umkm-deskripsi-short {
    font-size: 0.65rem;
    color: var(--text-light);
    margin: 4px 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.umkm-card-expand .btn-detail {
    background: transparent;
    border: 1.5px solid var(--primary-light);
    color: var(--primary-light);
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    margin-top: auto;
}

.umkm-card-expand .btn-detail:hover {
    background: var(--primary-light);
    color: #fff;
}

/* ===== TOMBOL SCROLL ===== */
.umkm-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0.9;
}
.umkm-scroll-btn:hover {
    background: var(--primary-light);
    color: #fff;
    box-shadow: 0 4px 16px rgba(46,125,50,0.15);
    transform: translateY(-50%) scale(1.05);
}
.scroll-left { left: 0; }
.scroll-right { right: 0; }

/* ============================================================
   10. GALERI, KEGIATAN, TIPS KEAMANAN (CARD)
   ============================================================ */
.galeri-grid,
.kegiatan-grid,
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px;
}

.galeri-item,
.kegiatan-card,
.tips-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    background: var(--bg-white);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.4s cubic-bezier(0.34,1.56,0.64,1);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(0,0,0,0.04);
    will-change: transform;
    min-height: 180px;
}

.galeri-item:hover,
.kegiatan-card:hover,
.tips-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
    will-change: transform;
}
.galeri-item:hover img { transform: scale(1.05); }

.galeri-item .card-overlay,
.kegiatan-card .card-overlay,
.tips-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 12px 14px 14px 14px;
    color: #fff;
    transition: opacity 0.4s ease, background 0.4s ease;
    opacity: 0.85;
    will-change: opacity, background;
}

.galeri-item:hover .card-overlay,
.kegiatan-card:hover .card-overlay,
.tips-card:hover .card-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 100%);
}

.card-overlay .title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    line-height: 1.3;
}
.galeri-item:hover .card-overlay .title,
.kegiatan-card:hover .card-overlay .title,
.tips-card:hover .card-overlay .title {
    transform: translateY(-2px);
}

.card-overlay .desc {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.card-overlay .tag {
    display: inline-block;
    font-size: 0.6rem;
    background: rgba(255,255,255,0.15);
    padding: 2px 10px;
    border-radius: 50px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ============================================================
   11. KONTAK
   ============================================================ */
.kontak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}
.kontak-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.3s ease;
}
.kontak-card:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.kontak-card i {
    font-size: 2.6rem;
    color: var(--primary-light);
    margin-bottom: 10px;
    transition: transform 0.4s ease, color 0.4s ease;
}
.kontak-card:hover i {
    transform: scale(1.25) rotate(8deg);
    color: var(--secondary);
}
.kontak-card h5 {
    font-size: 1.1rem;
    color: var(--primary-dark);
}
.kontak-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}
.kontak-card a { color: var(--primary); font-weight: 600; }

/* ============================================================
   12. SOCIAL ENGINEERING
   ============================================================ */
.security-section {
    background: linear-gradient(135deg, #1e2a1e, #2e3b2e);
    color: #e8f5e9;
    border-radius: 40px;
    padding: 50px 40px;
    margin: 40px 0;
}
.security-section .section-title { color: #fff; }
.security-section .section-title::after { background: var(--secondary); }
.security-section .section-subtitle { color: #b9dbb9; }
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}
.security-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    padding: 24px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.security-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 8px 30px rgba(255,143,0,0.08);
}
.security-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}
.security-card:hover i { transform: scale(1.15) rotate(-4deg); }
.security-card h5 { font-size: 1.1rem; margin-bottom: 6px; color: #fff; }
.security-card p { font-size: 0.9rem; color: #c8e6c9; opacity: 0.9; }
.security-card .badge {
    display: inline-block;
    background: var(--secondary);
    color: #1e2a1e;
    padding: 2px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 10px;
}

/* ============================================================
   13. STATS & VISITOR CARD
   ============================================================ */
.stats-section { padding: 20px 0; }
.visitor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
    padding: 18px 30px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 60px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.visitor-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.visitor-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.visitor-card:hover .visitor-icon {
    transform: scale(1.05) rotate(-4deg);
    background: var(--secondary);
}
.visitor-content { display: flex; flex-direction: column; align-items: flex-start; }
.visitor-number {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
.visitor-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}
.visitor-card:hover .visitor-number { color: var(--primary-dark); }
.visitor-card:hover .visitor-label { color: var(--primary); }

/* ============================================================
   15. CAROUSEL 3D & KEUNGGULAN DESA
   ============================================================ */
.section-keunggulan {
    padding: 60px 0 80px;
    background: var(--bg-light);
}
.carousel-3d-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-3d-track {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-3d-item {
    position: absolute;
    width: 280px;
    padding: 30px 24px 24px;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.34,1.56,0.64,1);
    opacity: 0.3;
    transform: scale(0.7) translateX(0) rotateY(0deg);
    pointer-events: none;
    border: 2px solid transparent;
}
.carousel-3d-item.active {
    opacity: 1;
    transform: scale(1) translateX(0) rotateY(0deg);
    pointer-events: auto;
    border-color: var(--primary-light);
    box-shadow: 0 20px 60px rgba(46,125,50,0.15), 0 0 40px rgba(76,175,80,0.05);
    z-index: 10;
}
.carousel-3d-item.prev {
    transform: scale(0.85) translateX(-200px) rotateY(15deg);
    opacity: 0.6;
    z-index: 5;
    pointer-events: none;
}
.carousel-3d-item.next {
    transform: scale(0.85) translateX(200px) rotateY(-15deg);
    opacity: 0.6;
    z-index: 5;
    pointer-events: none;
}
.carousel-3d-item.hidden {
    opacity: 0;
    transform: scale(0.5) translateX(0) rotateY(0deg);
    pointer-events: none;
    z-index: 0;
}
.circle-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--primary-light);
    border: 3px solid var(--primary-light);
    transition: all 0.5s ease;
    box-shadow: 0 4px 20px rgba(46,125,50,0.08);
}
.carousel-3d-item.active .circle-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    border-color: var(--primary-dark);
    box-shadow: 0 8px 30px rgba(46,125,50,0.25);
    transform: scale(1.05);
}
.carousel-3d-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}
.carousel-3d-item.active h4 { color: var(--primary-dark); }
.carousel-3d-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}
.carousel-3d-item .small-tag {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--bg-light);
    padding: 4px 16px;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
}
.carousel-3d-item.active .small-tag {
    background: var(--primary);
    color: #fff;
}
.carousel-3d-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-3d-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 30px rgba(46,125,50,0.2);
}
.prev-btn { left: -20px; }
.next-btn { right: -20px; }
.carousel-3d-dots {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}
.dot-3d {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.dot-3d.active {
    background: var(--primary-light);
    border-color: var(--primary-dark);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(76,175,80,0.2);
}

/* ============================================================
   16. FADE-IN & WHATSAPP FLOAT
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.34,1.56,0.64,1),
                transform 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.6);
    color: #fff;
}

/* ============================================================
   17. BUBBLE POP - MODAL (UMUM & UMKM)
   ============================================================ */
.bubble-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: bubbleFadeIn 0.3s ease;
}
.bubble-modal.active { display: flex; }
.bubble-modal-content {
    background: var(--bg-white);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 30px 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: bubbleScaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.bubble-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
}
.bubble-close:hover {
    transform: rotate(90deg);
    color: var(--primary-dark);
}
.bubble-modal-content::-webkit-scrollbar {
    width: 6px;
}
.bubble-modal-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}
.bubble-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}
@keyframes bubbleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes bubbleScaleIn {
    from { opacity: 0; transform: scale(0.8) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== MODAL UNTUK UMKM ===== */
.umkm-modal-gallery {
    position: relative;
    margin: 8px 0;
}
.umkm-modal-img-item {
    width: 100%;
}
.umkm-modal-img-item img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
}
.umkm-modal-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.umkm-nav-btn {
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-dark);
}
.umkm-nav-btn:hover {
    background: var(--primary-light);
    color: #fff;
}

/* ============================================================
   18. KEYFRAMES (RIBBLE, SPARKLE, FLOAT, BADGE POP)
   ============================================================ */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    width: 10px;
    height: 10px;
    transform: translate(-50%,-50%) scale(0);
    animation: ripple-anim 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: translate(-50%,-50%) scale(30); opacity: 0; }
}
@keyframes sparkle-fly {
    0% { transform: translate(0,0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}
@keyframes float-icon {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(4deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
@keyframes badge-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.hero-badges span {
    animation: badge-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) backwards;
}
.hero-badges span:nth-child(1) { animation-delay: 0.1s; }
.hero-badges span:nth-child(2) { animation-delay: 0.2s; }
.hero-badges span:nth-child(3) { animation-delay: 0.3s; }
.hero-badges span:nth-child(4) { animation-delay: 0.4s; }

/* ============================================================
   19. DARK MODE - ATURAN UMUM
   ============================================================ */
body.dark-mode .hero-banner .hero-overlay { background: rgba(0,0,0,0.6); }
body.dark-mode .btn-outline { border-color: #4caf50; color: #4caf50; }

body.dark-mode .card,
body.dark-mode .kontak-card,
body.dark-mode .upload-area {
    background: var(--bg-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
}

body.dark-mode .bubble-modal-content {
    background: var(--bg-white);
}
body.dark-mode .bubble-close { color: var(--text-light); }
body.dark-mode .bubble-close:hover { color: var(--text-dark); }
body.dark-mode .bubble-text { color: var(--text-dark); }

body.dark-mode .visitor-card {
    background: rgba(18,24,18,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,0.06);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
body.dark-mode .visitor-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
body.dark-mode .visitor-number { color: #e8efe8; }
body.dark-mode .visitor-label { color: #b0c0b0; }
body.dark-mode .visitor-card:hover .visitor-number { color: #a5d6a7; }
body.dark-mode .visitor-card:hover .visitor-label { color: #66bb6a; }

body.dark-mode .umkm-card-expand {
    background: var(--bg-white);
    border-color: rgba(255,255,255,0.06);
}
body.dark-mode .umkm-card-expand .umkm-card-body h4 {
    color: var(--text-dark);
}
body.dark-mode .umkm-card-expand .umkm-pelaku,
body.dark-mode .umkm-card-expand .umkm-harga,
body.dark-mode .umkm-card-expand .umkm-deskripsi-short {
    color: var(--text-light);
}
body.dark-mode .umkm-card-expand .btn-detail {
    border-color: #66bb6a;
    color: #66bb6a;
}
body.dark-mode .umkm-card-expand .btn-detail:hover {
    background: #66bb6a;
    color: #1a2a1a;
}
body.dark-mode .umkm-nav-btn {
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
}
body.dark-mode .umkm-nav-btn:hover {
    background: #66bb6a;
    color: #1a2a1a;
}
body.dark-mode .umkm-scroll-btn {
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
}
body.dark-mode .umkm-scroll-btn:hover {
    background: var(--primary-light);
    color: #fff;
}

body.dark-mode .galeri-item,
body.dark-mode .kegiatan-card,
body.dark-mode .tips-card {
    background: var(--bg-white);
    border-color: rgba(255,255,255,0.06);
}
body.dark-mode .galeri-item .card-overlay,
body.dark-mode .kegiatan-card .card-overlay,
body.dark-mode .tips-card .card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%);
}
body.dark-mode .card-overlay .title,
body.dark-mode .card-overlay .desc,
body.dark-mode .card-overlay .tag {
    color: #e8efe8;
}

body.dark-mode .security-section {
    background: linear-gradient(135deg, #0a120a, #1a2a1a);
}
body.dark-mode .security-card {
    background: rgba(255,255,255,0.04);
}
body.dark-mode .security-card:hover {
    background: rgba(255,255,255,0.10);
}
body.dark-mode .security-card h5 { color: #e8efe8; }
body.dark-mode .security-card p { color: #b0c0b0; }

/* ============================================================
   20. SMOOTH TRANSITIONS (GLOBAL)
   ============================================================ */
body,
body *,
body *::before,
body *::after {
    transition:
        background-color 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
        color 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
        border-color 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
        box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
        backdrop-filter 0.4s ease,
        background 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
        text-shadow 0.35s ease,
        fill 0.35s ease,
        stroke 0.35s ease;
}
img, iframe, video, canvas, svg * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
    body, body *, body *::before, body *::after { transition: none !important; }
}

/* ============================================================
   21. CUSTOM CURSOR & RIPPLE
   ============================================================ */
* { cursor: none; }
.cursor-dot {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.3s ease;
    box-shadow: 0 0 20px rgba(76,175,80,0.3);
}
.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(76,175,80,0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    box-shadow: 0 0 30px rgba(76,175,80,0.05);
}
.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: #ff8f00;
    background: rgba(255,143,0,0.05);
    box-shadow: 0 0 50px rgba(255,143,0,0.1);
}
.cursor-dot.hover {
    width: 6px;
    height: 6px;
    background: #ff8f00;
}
@media (hover: none) and (pointer: coarse) {
    * { cursor: auto !important; }
    .cursor-dot, .cursor-ring { display: none !important; }
}
@keyframes ripple-anim {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* ============================================================
   22. BUBBLE CARD
   ============================================================ */
.bubble-card {
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.4s ease;
    will-change: transform;
    transform-style: preserve-3d;
}
.bubble-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.bubble-card .card-overlay {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    padding: 28px 24px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.bubble-card:hover .card-overlay {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

/* ============================================================
   23. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .section-title::after { left: 50%; transform: translateX(-50%); }
    .section-title { text-align: center; display: block; }
    .section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .hero-banner { min-height: 400px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .btn-hero { padding: 14px 36px; font-size: 1rem; }
    .hero-buttons { gap: 12px; justify-content: center; }

    .card-grid { grid-template-columns: 1fr 1fr; }
    .galeri-grid, .kegiatan-grid, .tips-grid { grid-template-columns: repeat(2, 1fr); }
    .security-section { padding: 30px 20px; border-radius: 24px; }
    .security-grid { grid-template-columns: 1fr; }
    .kontak-grid { grid-template-columns: 1fr 1fr; }

    .carousel-3d-container { min-height: 350px; padding: 20px 0; }
    .carousel-3d-track { height: 300px; }
    .carousel-3d-item { width: 220px; padding: 24px 16px 20px; }
    .carousel-3d-item.prev { transform: scale(0.8) translateX(-120px) rotateY(10deg); }
    .carousel-3d-item.next { transform: scale(0.8) translateX(120px) rotateY(-10deg); }
    .circle-icon { width: 60px; height: 60px; font-size: 1.8rem; }
    .carousel-3d-btn { width: 36px; height: 36px; font-size: 1rem; }
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }

    .umkm-slider-container { padding: 0 30px; }
    .umkm-card-expand { flex: 0 0 150px; }
    .umkm-card-expand .umkm-card-image { height: 90px; }
    .umkm-scroll-btn { width: 28px; height: 28px; font-size: 0.7rem; }

    .galeri-item, .kegiatan-card, .tips-card { min-height: 150px; }
    .galeri-item .card-overlay, .kegiatan-card .card-overlay, .tips-card .card-overlay { padding: 12px 10px; }
    .card-overlay .title { font-size: 0.8rem; }
    .card-overlay .desc { font-size: 0.65rem; }

    .whatsapp-float { width: 50px; height: 50px; font-size: 1.8rem; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .hero-banner { min-height: 300px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-badges span { font-size: 0.7rem; padding: 4px 12px; }
    .btn-hero {
        padding: 12px 28px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    .hero-buttons { flex-direction: column; gap: 10px; align-items: stretch; }
    .hero-buttons .btn { width: 100%; text-align: center; }

    .card-grid { grid-template-columns: 1fr; }
    .galeri-grid, .kegiatan-grid, .tips-grid { grid-template-columns: 1fr 1fr; }
    .kontak-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    section { padding: 40px 0; }

    .carousel-3d-container { min-height: 300px; padding: 10px 0; }
    .carousel-3d-track { height: 260px; }
    .carousel-3d-item { width: 180px; padding: 18px 12px 16px; }
    .carousel-3d-item.prev { transform: scale(0.7) translateX(-80px) rotateY(8deg); opacity: 0.4; }
    .carousel-3d-item.next { transform: scale(0.7) translateX(80px) rotateY(-8deg); opacity: 0.4; }
    .circle-icon { width: 48px; height: 48px; font-size: 1.4rem; margin-bottom: 10px; }
    .carousel-3d-btn { width: 30px; height: 30px; font-size: 0.8rem; }
    .prev-btn { left: -5px; }
    .next-btn { right: -5px; }

    .umkm-slider-container { padding: 0 20px; }
    .umkm-card-expand { flex: 0 0 140px; }
    .umkm-card-expand .umkm-card-image { height: 80px; }
    .umkm-card-expand .umkm-card-body { padding: 6px 8px; }
    .umkm-card-expand .umkm-card-body h4 { font-size: 0.75rem; }
    .umkm-card-expand .umkm-pelaku,
    .umkm-card-expand .umkm-harga { font-size: 0.6rem; }
    .umkm-card-expand .umkm-deskripsi-short { font-size: 0.6rem; }
    .umkm-card-expand .btn-detail { font-size: 0.55rem; padding: 2px 8px; }
    .umkm-scroll-btn { width: 24px; height: 24px; font-size: 0.6rem; }

    .galeri-item, .kegiatan-card, .tips-card { min-height: 120px; }
    .galeri-item .card-overlay, .kegiatan-card .card-overlay, .tips-card .card-overlay { padding: 8px 8px 10px; }
    .card-overlay .title { font-size: 0.7rem; }
    .card-overlay .desc { font-size: 0.55rem; }
    .card-overlay .tag { font-size: 0.45rem; padding: 1px 6px; }

    .visitor-card { padding: 14px 20px; gap: 14px; border-radius: 40px; max-width: 280px; }
    .visitor-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .visitor-number { font-size: 1.4rem; }
    .visitor-label { font-size: 0.65rem; }

    .whatsapp-float { width: 44px; height: 44px; font-size: 1.4rem; bottom: 16px; right: 16px; }
}

/* ============================================================
   24. UTILITY - CARD PREVIEW
   ============================================================ */
.card-preview {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 4px;
    color: #fff !important;
}