/* =========================================
   RESET & ROOT VARIABLES
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

:root{
    --primary:#16a34a;
    --secondary:#15803d;
    --dark:#0f172a;
    --light:#f8fafc;
    --white:#ffffff;
    --gray:#64748b;
    --shadow:0 10px 30px rgba(0,0,0,0.1);
}

/* =========================================
   BASE
========================================= */

body{
    font-family:'Segoe UI',sans-serif;
    overflow-x:hidden;
    background:var(--light);
    color:var(--dark);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:20px;
}

/* =========================================
   NAVBAR
========================================= */

.custom-navbar{
    background:rgba(11,21,51,.85);
    backdrop-filter:blur(15px);
    padding:14px 0;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
    transition:0.4s;
}

.navbar-brand{
    font-size:24px;
    letter-spacing:1px;
}

.navbar-scrolled{
    background:rgba(11,21,51,.98);
    box-shadow:0 8px 25px rgba(0,0,0,.2);
    padding:10px 0;
}

/* =========================================
   NAV LINK
========================================= */

.nav-link{
    color:white !important;
    margin-left:15px;
    position:relative;
    display:inline-block;
    padding-bottom:5px;
    transition:0.3s;
}

.nav-link::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0%;
    height:3px;
    background:linear-gradient(to right,#00c853,#00e676);
    border-radius:10px;
    transition:0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after{
    width:100%;
}

.nav-link.active{
    color:#4ade80 !important;
}

/* =========================================
   LOADER
========================================= */

#loader{
    position:fixed;
    width:100%;
    height:100vh;
    background:white;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.spinner{
    width:70px;
    height:70px;
    border:8px solid #ddd;
    border-top:8px solid var(--primary);
    border-radius:50%;
    animation:spin 1s linear infinite;
}

/* =========================================
   HERO SECTION
========================================= */

.hero-section{
    height:100vh;
    background:
        linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),
        url('https://images.unsplash.com/photo-1506744038136-46273834b3fb');
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    position:relative;
}

.hero-section::before{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at top right,rgba(22,163,74,.35),transparent 40%);
    pointer-events:none;
}

.hero-content{
    color:white;
    z-index:2;
    position:relative;
}

.judul{
    font-size:72px;
    font-weight:800;
    margin-bottom:20px;
    animation:fadeDown 1.5s ease;
}

.subjudul{
    font-size:24px;
    margin-bottom:35px;
    color:#e2e8f0;
}

/* =========================================
   BUTTONS
========================================= */

.tombol-hover,
.btn-feedback,
.btn-desa{
    background:linear-gradient(135deg,#16a34a,#22c55e);
    box-shadow:0 10px 25px rgba(22,163,74,.3);
    border:none;
    border-radius:50px;
    padding:14px 35px;
    font-weight:bold;
    color:white;
    display:inline-block;
    text-decoration:none;
    font-size:18px;
    transition:0.4s;
}

.tombol-hover:hover,
.btn-feedback:hover,
.btn-desa:hover{
    transform:translateY(-5px) scale(1.05);
    background:linear-gradient(135deg,var(--secondary),#16a34a);
    box-shadow:0 15px 30px rgba(22,163,74,.45);
    color:white;
}

/* =========================================
   SECTIONS
========================================= */

.section-padding{
    padding:110px 0;
}

.section-title{
    font-size:48px;
    font-weight:800;
    color:var(--dark);
    margin-bottom:20px;
}

/* =========================================
   CARDS (SHARED)
========================================= */

.fitur-card,
.struktur-card,
.umkm-card,
.kontak-box,
.form-box,
.statistik-card,
.feedback-card,
.stat-card,
.sejarah-card{
    background:white;
    border-radius:25px;
    padding:30px;
    box-shadow:var(--shadow);
    transition:0.5s;
    height:100%;
    border:1px solid rgba(255,255,255,.2);
    backdrop-filter:blur(8px);
}

.fitur-card:hover,
.struktur-card:hover,
.umkm-card:hover,
.kontak-box:hover,
.stat-card:hover{
    transform:translateY(-12px);
}

/* Fitur Card */
.fitur-card{
    text-align:center;
}

.fitur-card i{
    font-size:55px;
    color:var(--primary);
    margin-bottom:20px;
}

.fitur-card h4{
    margin-bottom:15px;
}

/* =========================================
   IMAGES
========================================= */

.gambar-hover{
    border-radius:25px;
    transition:0.5s;
}

.gambar-hover:hover{
    transform:scale(1.03);
}

.galeri-img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:20px;
    cursor:pointer;
    transition:0.5s;
}

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

/* =========================================
   LIGHTBOX
========================================= */

#lightbox{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:rgba(0,0,0,0.9);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

#lightbox img{
    width:80%;
    max-width:900px;
    border-radius:20px;
}

/* =========================================
   FORM
========================================= */

.form-control,
.form-select{
    border-radius:12px;
    padding:14px;
    border:1px solid #cbd5e1;
    transition:0.3s;
}

.form-control:focus,
.form-select:focus{
    box-shadow:none;
    border-color:var(--primary);
}

textarea.form-control{
    resize:none;
}

/* =========================================
   STATISTIK CARD
========================================= */

.statistik-card,
.stat-card{
    text-align:center;
}

.counter,
.stat-card h3{
    font-size:55px;
    color:var(--primary);
    font-weight:bold;
}

.stat-card i{
    font-size:55px;
    color:var(--primary);
    margin-bottom:15px;
}

.stat-card p{
    color:var(--gray);
    margin-top:10px;
}

/* =========================================
   UMKM CARD
========================================= */

.umkm-card img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:20px;
}

/* =========================================
   TABLE
========================================= */

.table-responsive{
    border-radius:20px;
    overflow:hidden;
}

.table{
    margin-bottom:0;
}

.table thead{
    background:var(--dark);
    color:white;
}

.table th,
.table td{
    padding:15px;
}

.table td{
    vertical-align:middle;
}

.table tbody tr:hover{
    background:#f8fafc;
}

/* =========================================
   BADGE & PROGRESS
========================================= */

.badge{
    padding:8px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

.progress{
    height:25px;
    border-radius:30px;
    overflow:hidden;
}

.progress-bar{
    font-weight:600;
}

/* =========================================
   JAM DIGITAL & FOTO PREVIEW
========================================= */

#jamDigital{
    font-size:22px;
    font-weight:700;
    color:var(--primary);
}

#previewFoto{
    max-width:300px;
    border-radius:15px;
    margin-top:15px;
    box-shadow:var(--shadow);
}

/* =========================================
   FEEDBACK SECTION
========================================= */

.feedback-section{
    padding:110px 0;
}

.feedback-card{
    padding:35px;
    border-radius:25px;
    position:relative;
    overflow:hidden;
}

.feedback-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:var(--primary);
}

.feedback-card:hover{
    transform:translateY(-8px);
}

.card-header-custom{
    text-align:center;
    margin-bottom:30px;
}

.card-header-custom i{
    font-size:55px;
    color:var(--primary);
    margin-bottom:15px;
}

.card-header-custom h2{
    font-weight:700;
    color:var(--dark);
}

.feedback-card label{
    font-weight:600;
    margin-bottom:8px;
    color:var(--dark);
}

/* =========================================
   STRUKTUR ORGANISASI
========================================= */

.struktur-section{
    padding:140px 0 100px;
    background:#f4f7fb;
    min-height:100vh;
    overflow:hidden;
}

.struktur-title{
    font-size:55px;
    font-weight:800;
    color:#0b1533;
    margin-bottom:15px;
}

.struktur-subtitle{
    color:#6c757d;
    font-size:18px;
}

.title-line{
    width:120px;
    height:5px;
    background:linear-gradient(to right,#00c853,#00e676);
    margin:15px auto 20px;
    border-radius:10px;
}

.struktur-box{
    background:white;
    border-radius:22px;
    padding:30px 20px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    transition:0.4s;
    position:relative;
    z-index:2;
    height:100%;
}

.struktur-box:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

.struktur-box h4{
    font-size:28px;
    font-weight:700;
    color:#0b1533;
    margin-bottom:10px;
}

.struktur-box h5{
    font-size:22px;
    font-weight:700;
    color:#0b1533;
    margin-top:15px;
}

.struktur-box p{
    color:#555;
    font-size:18px;
    margin:0;
}

/* Box Utama (Kepala Desa) */
.utama{
    width:340px;
    background:linear-gradient(135deg,#0b1533,#142850);
    color:white;
}

.utama h4,
.utama h5,
.utama p{
    color:white;
}

/* Icon Circle */
.icon-circle{
    width:80px;
    height:80px;
    margin:0 auto 20px;
    border-radius:50%;
    background:linear-gradient(135deg,#00c853,#00e676);
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:32px;
    color:white;
    box-shadow:0 10px 20px rgba(0,200,83,0.3);
}

.kecil-icon{
    width:65px;
    height:65px;
    font-size:24px;
}

/* Garis Penghubung */
.line-vertical{
    width:4px;
    height:60px;
    background:#00c853;
    margin:0 auto;
    position:relative;
}

.line-horizontal{
    width:70%;
    height:4px;
    background:#00c853;
    margin:0 auto;
    border-radius:10px;
}

.connector-wrapper{
    position:relative;
    margin-top:-5px;
    margin-bottom:20px;
}

.connector-wrapper::before{
    content:"";
    position:absolute;
    top:0;
    left:15%;
    width:70%;
    height:4px;
    background:#00c853;
}

.connector-line{
    width:4px;
    height:40px;
    background:#00c853;
    margin:0 auto;
}

/* =========================================
   SEJARAH DESA
========================================= */

.sejarah-hero{
    height:100vh;
    background-color:#000; /* ⬅️ TAMBAHKAN DI SINI */
    background:
        linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),
        url('https://images.unsplash.com/photo-1506744038136-46273834b3fb');
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
    position:relative;
}

.sejarah-hero .content{
    position:relative;
    z-index:2;
}

.sejarah-hero h1{
    font-size:75px;
    font-weight:800;
    animation:fadeDown 1.2s ease;
}

.sejarah-hero p{
    font-size:24px;
    margin-top:15px;
    animation:fadeUp 1.5s ease;
}

.sejarah-section{
    padding:100px 0;
    background:#f5f7fa;
}

.sejarah-card{
    padding:50px;
    border-radius:30px;
}

.sejarah-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 40px rgba(0,0,0,0.15);
}

.sejarah-card h2{
    font-size:40px;
    font-weight:700;
    margin-bottom:25px;
}

.sejarah-card p{
    font-size:18px;
    line-height:1.9;
    color:#555;
}

/* =========================================
   TIMELINE
========================================= */

.timeline-section{
    padding:100px 0;
    background:white;
}

.timeline{
    border-left:4px solid #00d26a;
    padding-left:40px;
}

.timeline-item{
    margin-bottom:50px;
    position:relative;
    transition:0.4s;
}

.timeline-item:hover{
    transform:translateX(10px);
}

.timeline-item::before{
    content:'';
    width:18px;
    height:18px;
    background:#00d26a;
    border-radius:50%;
    position:absolute;
    left:-51px;
    top:5px;
}

.timeline-year{
    font-size:28px;
    font-weight:700;
    color:#00d26a;
    margin-bottom:10px;
}

.timeline-content{
    background:#f5f7fa;
    padding:30px;
    border-radius:20px;
    transition:0.4s;
}

.timeline-content:hover{
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

.timeline-content h4{
    font-weight:700;
    margin-bottom:15px;
}

/* =========================================
   FOOTER
========================================= */

.footer{
    background:linear-gradient(135deg,#071129,#0f172a);
    color:white;
    text-align:center;
    padding:50px 20px;
    margin-top:50px;
}

.footer-logo{
    font-size:40px;
    font-weight:800;
    margin-bottom:15px;
}

.footer-line{
    width:100px;
    height:4px;
    background:#00e676;
    margin:15px auto 20px;
    border-radius:10px;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

@keyframes fadeDown{
    from{
        opacity:0;
        transform:translateY(-60px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(50px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================================
   RESPONSIVE — TABLET (max 992px)
========================================= */

@media(max-width:992px){

    .struktur-title{
        font-size:42px;
    }

    .struktur-box{
        margin-bottom:20px;
    }

    .connector-wrapper::before,
    .connector-line{
        display:none;
    }

}

/* =========================================
   RESPONSIVE — MOBILE (max 768px)
========================================= */

@media(max-width:768px){

    .judul{
        font-size:42px;
    }

    .subjudul{
        font-size:18px;
    }

    .section-title{
        font-size:35px;
    }

    .struktur-title{
        font-size:34px;
    }

    .struktur-subtitle{
        font-size:16px;
    }

    .utama{
        width:100%;
    }

    .sejarah-hero h1{
        font-size:45px;
    }

    .sejarah-hero p{
        font-size:18px;
    }

    .sejarah-card{
        padding:30px;
    }

    .feedback-card{
        padding:25px;
    }

    .stat-card h3{
        font-size:32px;
    }

}
