html, body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: url('../images/bg.png') center center / cover no-repeat;
}

header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffff;
}

nav {
    padding: 22px 26px;
    text-align: right;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #38482f;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
}

nav ul li a.active,
nav ul li a:hover {
    color: #80918b;
}

.main-layout {
    width: 100%;
    min-height: calc(100vh - 64px); /* tinggi navbar */
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box; 
}

/* LOGO + TEXT */
.homepage {
    display: flex;
    max-width: 1200px;
    gap: 40px;

    align-items: center;
    justify-content: center;

    color: #ffffff;
}

/* LOGO */
.logo-homepage {
    width: 150px;
    height: auto;
}

/* TEXT */
.desc-homepage {
    max-width: 700px;
}

.subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 10px;
}

.title {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 24px;
}

/* BUTTON */
.btn-homepage {
    display: flex;
    gap: 16px;
}

.btn {
    text-decoration: none;
    font-weight: bold;
    color: #38482f;
    background: #ffffff;
    padding: 12px 26px;
    border-radius: 8px;
}

.btn:hover {
    background: #38482f;
    color: #ffffff;
}

/* TENTANG APLIKASI */
.about-app {
    padding: 80px 20px;
    margin-top: 150px;
}

.about-container {
    max-width: 900px;
    margin: auto;
    color: #ffffff;
    text-align: center;
}

.about-container h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.about-container p {
    font-size: 16px;
    line-height: 1.8;
}


.charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.chart-stacked {
    width: 75%;
    height: 250px;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-left: 25px;
    box-shadow: 0 4px 12px #38482f;
}

.chart-pie {
    width: 75%;
    height: 250px;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px #38482f;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    /* NAVBAR */
    nav {
        padding: 20px;
        text-align: center;
    }

    nav ul li {
        margin-left: 12px;
    }

    /* HERO */
    .main-layout {
        padding: 60px 16px;
        min-height: auto; /* biar tidak terlalu tinggi */
    }

    /* LOGO + TEXT */
    .homepage {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .logo-homepage {
        width: 120px; /* logo lebih kecil */
    }

    /* TEXT */
    .subtitle {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .title {
        font-size: 24px;  /* judul diperkecil */
        line-height: 1.4;
    }

    /* BUTTON */
    .btn-homepage {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        padding: 14px;
        width: 100%;
        max-width: 260px;
        margin: auto;
        text-align: center;
    }

    .charts-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    /* TENTANG APLIKASI */
    .about-app {
        padding: 60px 16px;
    }

    .about-container h2 {
        font-size: 24px;
    }

    .about-container p {
        font-size: 14px;
    }
}

