/* =====================================================
   GOOGLE FONT
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap'
);


/* =====================================================
   RESET
===================================================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family:
        'DM Sans',
        sans-serif;

    background: #f4f8f5;

    color: #333;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

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

.navbar {
    width: 100%;
    min-height: 72px;

    background: #0b6b43;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text h2 {
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 19px;
    line-height: 1.1;
}

.logo-text span {
    color: #d5eadf;
    font-size: 10px;
}


/* MENU */

.menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu li a {
    color: white;
    font-size: 13px;
    font-weight: 600;

    padding: 9px 13px;

    border-radius: 8px;

    transition: .3s ease;
}

.menu li a:hover,
.menu li a.active {
    background: rgba(255, 255, 255, .14);
}


/* LOGIN */

.menu .login-btn {
    background: #ffd54f;
    color: #174d37;

    margin-left: 7px;

    padding: 10px 15px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
}

.menu .login-btn:hover {
    background: #ffe27b;
    transform: translateY(-2px);
}


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

.hero {

    position: relative;

    min-height: 100vh;

    padding-top: 82px;

    overflow: hidden;


    /*
       FOTO DESA
    */

    background-image:
        url("../img/desa-oelomin.jpeg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;


    display: flex;

    align-items: center;

}


/* =====================================================
   OVERLAY GELAP
===================================================== */

.hero-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;


    /*
       FOTO DIGELAPKAN
       TANPA MENGUBAH FOTO ASLI
    */

    background:

        linear-gradient(90deg,
            rgba(0, 32, 20, .96) 0%,
            rgba(0, 45, 28, .88) 40%,
            rgba(0, 0, 0, .67) 100%);

}


/* =====================================================
   HERO CONTAINER
===================================================== */

.hero-container {

    position: relative;

    z-index: 2;

    width: 90%;

    max-width: 1250px;

    min-height:
        calc(100vh - 82px);

    margin: auto;

    display: grid;

    grid-template-columns:
        1.05fr .95fr;

    align-items: center;

    gap: 70px;

}


/* =====================================================
   HERO CONTENT
===================================================== */

.hero-content {

    padding: 30px 0;

}


.hero-label {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color: #FFD54F;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2.5px;

}


.hero-label span {

    width: 35px;

    height: 2px;

    background: #FFD54F;

}


/* =====================================================
   TITLE
===================================================== */

.hero-content h1 {

    font-family:
        'Playfair Display',
        serif;

    color: #fff;

    font-size: 68px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: -2px;

}


.hero-content h1 strong {

    display: block;

    color: #fff;

}


.hero-content h2 {

    margin-top: 12px;

    margin-bottom: 22px;

    color: #FFD54F;

    font-size: 27px;

    font-weight: 500;

}


.hero-content p {

    max-width: 610px;

    color: #e2eee7;

    font-size: 14px;

    line-height: 1.9;

}


/* =====================================================
   BUTTON
===================================================== */

.hero-buttons {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-top: 30px;

}


.btn-primary {

    display: inline-flex;

    align-items: center;

    gap: 15px;

    padding: 14px 24px;

    border-radius: 7px;

    background: #0b6b43;

    color: #fff;

    font-size: 12px;

    font-weight: 700;

    transition: .3s;

}


.btn-primary span {

    font-size: 18px;

    line-height: 0;

}


.btn-primary:hover {

    background: #FFD54F;

    color: #0b6b43;

    transform:
        translateY(-3px);

}


.btn-outline {

    display: inline-block;

    padding: 13px 23px;

    border:
        1px solid rgba(255, 255, 255, .7);

    border-radius: 7px;

    color: #fff;

    font-size: 12px;

    font-weight: 600;

    transition: .3s;

}


.btn-outline:hover {

    background: #fff;

    color: #0b6b43;

    transform:
        translateY(-3px);

}


/* =====================================================
   LOCATION
===================================================== */

.location-info {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 34px;

    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, .15);

    max-width: 530px;

}


.location-icon {

    width: 35px;

    height: 35px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255, 213, 79, .12);

    font-size: 14px;

}


.location-info small {

    display: block;

    margin-bottom: 3px;

    color: #9db5a7;

    font-size: 7px;

    letter-spacing: 1.5px;

    font-weight: 700;

}


.location-info strong {

    display: block;

    color: #e8f1ec;

    font-size: 10px;

    font-weight: 500;

}


/* =====================================================
   DASHBOARD
===================================================== */

.dashboard {

    width: 100%;

    max-width: 450px;

    margin-left: auto;

    padding: 25px;

    border:
        1px solid rgba(255, 255, 255, .20);

    border-radius: 22px;

    background:
        rgba(4, 48, 31, .78);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, .42);

    animation:
        dashboardAppear .8s ease;

}


@keyframes dashboardAppear {

    from {

        opacity: 0;

        transform:
            translateY(25px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* =====================================================
   DASHBOARD HEADER
===================================================== */

.dashboard-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 17px;

    border-bottom:
        1px solid rgba(255, 255, 255, .12);

}


.dashboard-header>div:first-child span {

    color: #FFD54F;

    font-size: 8px;

    letter-spacing: 2px;

    font-weight: 700;

}


.dashboard-header h3 {

    margin-top: 3px;

    color: #fff;

    font-family:
        'Playfair Display',
        serif;

    font-size: 23px;

}


/* =====================================================
   ONLINE
===================================================== */

.online {

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 6px 9px;

    border-radius: 20px;

    background:
        rgba(83, 215, 105, .10);

    color: #8ee39b;

    font-size: 8px;

    font-weight: 600;

}


.online i {

    width: 6px;

    height: 6px;

    display: block;

    border-radius: 50%;

    background: #53d769;

    box-shadow:
        0 0 0 4px rgba(83, 215, 105, .10);

}


/* =====================================================
   CLOCK CARD
===================================================== */

.clock-card {

    margin: 18px 0;

    padding: 20px 15px;

    text-align: center;

    border-radius: 15px;

    background:
        rgba(0, 0, 0, .18);

}


.clock-top {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

}


.clock-top>span:first-child {

    color: #9bb4a6;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 2px;

}


.timezone {

    padding: 3px 6px;

    border-radius: 4px;

    background:
        rgba(255, 213, 79, .13);

    color: #FFD54F;

    font-size: 6px;

    font-weight: 700;

}


.digital-clock {

    margin-top: 6px;

    color: #FFD54F;

    font-size: 38px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 3px;

    font-variant-numeric:
        tabular-nums;

}


.current-date {

    margin-top: 5px;

    color: #f2f6f3;

    font-size: 9px;

}


/* =====================================================
   STATISTICS
===================================================== */

.statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-card {
    min-height: 100px;
}

@media (max-width: 750px) {

    .statistics {
        grid-template-columns: 1fr;
    }

}

.stat-card.product-card {
    grid-column: span 2;

    background:
        linear-gradient(135deg,
            rgba(255, 213, 79, .14),
            rgba(255, 255, 255, .06));

    border-color:
        rgba(255, 213, 79, .25);
}

.stat-card.product-card .stat-icon {
    background: #FFD54F;
    color: #0b6b43;
}

/* =====================================================
   STAT CARD
===================================================== */

.stat-card {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px;

    min-height: 76px;

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, .07);

    transition: .3s;

}


.stat-card:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(255, 213, 79, .35);

    background:
        rgba(255, 213, 79, .10);

}


.stat-icon {

    width: 38px;

    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background:
        rgba(255, 213, 79, .12);

    font-size: 17px;

}


.stat-info span {

    display: block;

    color: #91aa9d;

    font-size: 6.5px;

    letter-spacing: .5px;

    font-weight: 700;

}


.stat-info strong {

    display: inline-block;

    margin-top: 2px;

    color: #fff;

    font-size: 19px;

    line-height: 1;

}


.stat-info small {

    margin-left: 3px;

    color: #9db2a7;

    font-size: 7px;

}

/* =====================================================
   DASHBOARD FOOTER / STATUS PORTAL
===================================================== */

.dashboard-footer {
    margin-top: 18px;

    padding-top: 18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.12);

    display: grid;

    grid-template-columns:
        1fr 1.4fr;

    gap: 15px;

    align-items: center;
}


/* =====================================================
   PORTAL STATUS
===================================================== */

.portal-status {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 14px;

    border-radius: 12px;

    background:
        rgba(25, 135, 84, 0.12);

    border:
        1px solid rgba(25, 135, 84, 0.25);
}


.status-dot {
    width: 10px;

    height: 10px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #45d483;

    box-shadow:
        0 0 0 4px rgba(69, 212, 131, 0.12),
        0 0 12px rgba(69, 212, 131, 0.5);
}


.status-text {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.status-text strong {
    color: #ffffff;

    font-size: 13px;

    font-weight: 700;
}


.status-text small {
    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;
}


/* =====================================================
   INFORMASI DESA
===================================================== */

.portal-info {
    display: flex;

    align-items: center;

    gap: 11px;

    padding: 12px 14px;

    border-radius: 12px;

    background:
        rgba(255, 213, 79, 0.08);

    border:
        1px solid rgba(255, 213, 79, 0.18);
}


.info-icon {
    width: 30px;

    height: 30px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #FFD54F;

    color: #0b6b43;

    font-weight: 800;

    font-size: 14px;
}


.portal-info>div {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.portal-info strong {
    color: #ffffff;

    font-size: 12px;

    font-weight: 700;
}


.portal-info small {
    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;

    line-height: 1.5;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .dashboard-footer {
        grid-template-columns: 1fr;

    }

}


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

footer {

    padding: 17px;

    text-align: center;

    background: #075b39;

    color: #bcd3c5;

    font-size: 9px;

}


footer span {

    color: #FFD54F;

    font-weight: 600;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1050px) {


    .navbar-container {

        width: 94%;

    }


    .menu {

        gap: 17px;

    }


    .menu li a {

        font-size: 11px;

    }


    .hero-container {

        width: 94%;

        grid-template-columns:
            1fr 1fr;

        gap: 30px;

    }


    .hero-content h1 {

        font-size: 54px;

    }


    .hero-content h2 {

        font-size: 23px;

    }


    .dashboard {

        max-width: 400px;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 750px) {


    .navbar {

        position: relative;

        height: auto;

        padding: 15px 0;

    }


    .navbar-container {

        flex-direction: column;

        gap: 17px;

    }


    .menu {

        flex-direction: column;

        gap: 13px;

    }


    .menu li a {

        font-size: 12px;

    }


    .menu li a.active::after {

        display: none;

    }


    .hero {

        padding-top: 0;

        min-height: 1000px;

    }


    .hero-container {

        width: 90%;

        min-height: 1000px;

        padding:
            60px 0 80px;

        grid-template-columns: 1fr;

        gap: 35px;

        text-align: center;

    }


    .hero-content {

        padding: 0;

    }


    .hero-label {

        justify-content: center;

        font-size: 8px;

        letter-spacing: 1.5px;

    }


    .hero-label span {

        width: 20px;

    }


    .hero-content h1 {

        font-size: 45px;

        letter-spacing: -1px;

    }


    .hero-content h2 {

        font-size: 21px;

    }


    .hero-content p {

        font-size: 12px;

        line-height: 1.8;

    }


    .hero-buttons {

        justify-content: center;

        flex-wrap: wrap;

    }


    .location-info {

        margin-left: auto;

        margin-right: auto;

        text-align: left;

        max-width: 400px;

    }


    .dashboard {

        width: 100%;

        max-width: 440px;

        margin: auto;

        padding: 20px;

    }


    .digital-clock {

        font-size: 31px;

    }


    .scroll-indicator {

        display: none;

    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 430px) {


    .logo-text h2 {

        font-size: 17px;

    }


    .logo-text span {

        font-size: 8px;

    }


    .logo img {

        width: 48px;

        height: 48px;

    }


    .hero-content h1 {

        font-size: 39px;

    }


    .hero-content h2 {

        font-size: 19px;

    }


    .statistics {

        grid-template-columns: 1fr;

    }


    .dashboard-footer {

        align-items: flex-start;

        flex-direction: column;

        gap: 7px;

    }


    .update-text {

        margin-left: 14px;

    }

}

/* =====================================================
   NAVBAR RESPONSIVE - MOBILE
===================================================== */

/* Tombol hamburger disembunyikan di desktop */
.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #087443;
    font-size: 22px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.2s ease;
}

.menu-toggle:hover {
    background: #e8f5ec;
}


/* =====================================================
   TABLET & HP
===================================================== */

@media (max-width: 768px) {

    .navbar {
        min-height: 70px;
        padding: 10px 18px;
        position: relative;
        z-index: 1000;
    }

    /* LOGO */
    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

    .logo-text h2 {
        font-size: 17px;
        margin: 0;
    }

    .logo-text span {
        font-size: 9px;
    }


    /* TOMBOL HAMBURGER */
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }


    /* NAVIGASI */
    .navbar nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;

        background: #ffffff;

        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }


    /* MENU AKTIF */
    .navbar nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }


    /* UL */
    .navbar .menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        padding: 8px 0;
        margin: 0;

        gap: 0;
    }


    /* LI */
    .navbar .menu li {
        width: 100%;
        list-style: none;
    }


    /* LINK */
    .navbar .menu li a {
        display: flex;
        align-items: center;

        width: 100%;
        min-height: 45px;

        padding: 10px 22px;

        color: #123c2d;
        text-decoration: none;

        font-size: 13px;
        font-weight: 600;

        transition: 0.2s ease;
    }


    .navbar .menu li a:hover {
        background: #e8f5ec;
        color: #087443;
    }


    /* LOGIN ADMIN */
    .navbar .menu li .login-btn {
        width: calc(100% - 36px);
        margin: 8px 18px;

        justify-content: center;

        background: #ffd54f;
        color: #123c2d;

        border-radius: 8px;

        min-height: 40px;
    }

    .navbar .menu li .login-btn:hover {
        background: #fbcf32;
        color: #123c2d;
    }

    .navbar .menu li .login-btn i {
        margin-right: 7px;
    }

}


/* =====================================================
   HP KECIL
===================================================== */

@media (max-width: 480px) {

    .navbar {
        min-height: 66px;
        padding: 9px 15px;
    }

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

    .logo-text h2 {
        font-size: 15px;
    }

    .logo-text span {
        font-size: 8px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .navbar nav {
        top: 66px;
    }

    .navbar .menu li a {
        min-height: 43px;
        padding: 9px 18px;
        font-size: 12px;
    }

}