/* 
  Desa Dunu Landing Page - Style 
  Theme: Modern Government Website
  Mobile First Approach
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@400;600;800&display=swap');

:root {
    --primary: #0E5F64;
    --secondary: #1F8D93;
    --accent: #64D5D5;
    --bg-white: #FFFFFF;
    --bg-light: #F5FAFA;
    --text-main: #16313B;
    --text-muted: #4A6570;
    --footer-bg: #0B4E52;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--bg-white);
}

.header.scrolled .logo {
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.nav-links {
    display: none;
}

.nav-links a {
    color: var(--bg-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.header.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-cta {
    display: none;
    background-color: var(--accent);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-cta:hover {
    background-color: var(--bg-white);
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(100, 213, 213, 0.4);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.header.scrolled .mobile-menu-btn {
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(14, 95, 100, 0.6), rgba(14, 95, 100, 0.3) 50%, rgba(14, 95, 100, 0.7));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
    transform: translateY(-5vh);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-title {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-text {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 1.25rem 3.5rem 1.25rem 2rem;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--bg-white);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(100, 213, 213, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--bg-white);
    cursor: pointer;
    font-size: 1.25rem;
}

/* ===== SVG WAVE ===== */
.hero-wave {
    position: absolute;
    bottom: -2px; /* Prevent tiny gaps */
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 14vw; /* Lebih tinggi agar ombak terlihat lebih dramatis */
    min-height: 100px;
    max-height: 280px;
}

/* ===== QUICK ACCESS ===== */
.quick-access {
    position: relative;
    z-index: 10;
    margin-top: -30px;
    padding-bottom: 4rem;
}

.quick-access-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quick-pills {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.pill {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.pill-dark {
    background-color: var(--primary);
    color: var(--bg-white);
}

.pill-light {
    background-color: var(--accent);
    color: var(--bg-white);
}

.quick-menus {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

/* In mobile, make the 5th item span 2 cols to center */
.quick-menus .quick-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.quick-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    box-shadow: 0 10px 20px rgba(14, 95, 100, 0.15);
    border: 4px solid var(--bg-white);
    transition: var(--transition);
}

.quick-icon {
    width: 32px;
    height: 32px;
}

.quick-label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.quick-item:hover .quick-circle {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(14, 95, 100, 0.25);
    border-color: var(--accent);
}

/* ===== EXPLORE SECTION ===== */
.explore-section {
    position: relative;
    padding: 5rem 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.explore-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.explore-text {
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(31, 141, 147, 0.3);
}

.explore-map {
    width: 100%;
    position: relative;
}

.interactive-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(14, 95, 100, 0.15));
}

.map-region {
    fill: var(--primary);
    stroke: var(--accent);
    stroke-width: 2;
    transition: var(--transition);
    cursor: pointer;
}

.map-region:hover {
    fill: var(--secondary);
    stroke: var(--bg-white);
}

.map-marker circle {
    transition: var(--transition);
    cursor: pointer;
}

.map-marker:hover circle:first-child {
    r: 10;
    fill: var(--accent);
}

/* Decorative Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.5;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    opacity: 0.15;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -100px;
    opacity: 0.1;
}

/* ===== SECTION HEADER ===== */
.section-header {
    margin-bottom: 3rem;
}

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

/* ===== POTENSI DESA ===== */
.potensi-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.potensi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.potensi-card {
    padding: 2.5rem 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.potensi-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 95, 100, 0.1);
    border-color: rgba(100, 213, 213, 0.3);
}

.potensi-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--secondary);
    transition: var(--transition);
}

.potensi-card:hover .potensi-icon-wrapper {
    background: var(--secondary);
    color: var(--bg-white);
}

.potensi-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.potensi-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== PRODUK PAKET WISATA & UMKM ===== */
.produk-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.produk-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-content: center;
}

.produk-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
}

.produk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(14, 95, 100, 0.1);
}

.produk-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: var(--transition);
}

.produk-card:hover .produk-img {
    transform: scale(1.05);
}

.produk-content {
    padding: 1rem;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.produk-category {
    font-size: 0.7rem;
    color: var(--bg-white);
    background-color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    align-self: flex-start;
}

.produk-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.produk-excerpt {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex: 1;
}

.produk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.75rem;
    margin-top: auto;
}

.produk-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.produk-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
}

.produk-link i {
    width: 14px;
    height: 14px;
}

.produk-link:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}


/* ===== AGENDA KEGIATAN ===== */
.agenda-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.agenda-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem; /* Kurangi margin bawah dari default 3rem */
}

.agenda-header .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    align-self: flex-start;
}

.agenda-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid rgba(14, 95, 100, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.carousel-btn:hover {
    background: var(--secondary);
    color: var(--bg-white);
    border-color: var(--secondary);
}

.agenda-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
}

.agenda-carousel::-webkit-scrollbar {
    display: none; /* Chrome */
}

.agenda-card {
    min-width: 280px;
    height: 380px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    scroll-snap-align: start;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
}

.agenda-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(14, 95, 100, 0.2);
}

.agenda-info {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    width: 100%;
}

.agenda-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-heading);
}

.agenda-title {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.agenda-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
}

.agenda-location i {
    width: 16px;
    height: 16px;
}

/* ===== BERITA TERBARU ===== */
.berita-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.berita-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.berita-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.berita-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(14, 95, 100, 0.1);
}

.berita-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.berita-card:hover .berita-img {
    transform: scale(1.05);
}

.berita-content {
    padding: 1.5rem;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
}

.berita-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.berita-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.berita-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.berita-link:hover {
    color: var(--primary);
    gap: 0.75rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--footer-bg);
    color: rgba(255,255,255,0.8);
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--bg-white);
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
}

.footer-contact:hover {
    color: var(--bg-white);
}

.social-title {
    color: var(--bg-white);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-mini-map {
    width: 100%;
    max-width: 250px;
    height: auto;
    opacity: 0.8;
}

.footer-bottom {
    background: rgba(0,0,0,0.15);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Desktop Breakpoint */
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
    }
    
    .btn-cta {
        display: inline-block;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    /* Quick Access */
    .quick-access {
        margin-top: -60px;
    }
    
    .quick-access-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .quick-menus {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
    
    .quick-menus .quick-item:last-child:nth-child(odd) {
        grid-column: auto;
    }
    
    .quick-circle {
        width: 100px;
        height: 100px;
    }
    
    .quick-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Explore Section */
    .explore-container {
        flex-direction: row;
        align-items: center;
    }
    
    .explore-content {
        flex: 1;
        padding-right: 3rem;
    }
    
    .explore-map {
        flex: 1.2;
    }
    
    /* Potensi Grid */
    .potensi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Produk Grid */
    .produk-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Agenda */
    .agenda-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center; /* Sejajarkan ke tengah secara vertikal */
    }
    
    .agenda-header .btn-primary {
        align-self: auto;
    }
    
    .agenda-carousel {
        padding: 0.5rem 0 2rem 0; /* Kurangi padding atas agar lebih naik */
    }
    
    .agenda-card {
        min-width: 320px;
    }
    
    /* Berita */
    .berita-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr 1fr 1.5fr 1fr;
    }
}
