/* =====================================================
   RESET & BASE
===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: #ffffff;
    color: #1f2937;
}

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

/* =====================================================
   CONTAINER & COMMON
===================================================== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

section > div {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   BUTTON
===================================================== */
.btn {
    display: inline-block;
    padding: 10px 16px;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.btn:hover {
    background: #15803d;
}

/* =====================================================
   TABLE
===================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    border: 1px solid #e5e7eb;
    padding: 10px;
    text-align: center;
}

th {
    background: #f1f5f9;
}

/* =====================================================
   CARD
===================================================== */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* =====================================================
   FEATURES
===================================================== */
.features-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #f8fbff, #eef5ff);
}

.features-header {
    text-align: center;
    margin-bottom: 50px;
}

.features-header h2 {
    font-size: 32px;
    font-weight: 800;
}

.features-header p {
    color: #6b7280;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e0ecff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

/* =====================================================
   HERO
===================================================== */
#hero {
    padding: 120px 20px;
}

#hero h1 {
    font-size: 44px;
    line-height: 1.2;
}

#hero p {
    font-size: 18px;
}

#hero img {
    width: 72px;
    margin: 0 auto 16px;
}

/* NAVIGATION (DESKTOP) */
.nav-link {
    position: relative;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: 0.25s;
}

.nav-link:hover {
    background: #e0ebff;
    color: #234fbf;
}

.nav-link.active {
    background: #cfe0ff;
    color: #234fbf;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: #234fbf;
    transition: 0.3s;
    transform: translateX(-50%);
}

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

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 60px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-meta {
    color: #494b51;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px; /* jarak antar footer-meta dan elemen di atasnya */
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
    /* HERO */
    #hero {
        padding: 90px 16px;
    }

    #hero h1 {
        font-size: 28px;
    }

    #hero p {
        font-size: 15px;
    }

    /* FEATURES */
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 24px;
    }

    #hero p {
        font-size: 14px;
    }
}

/* MOBILE NAVIGATION */
@media (max-width: 768px) {
    #menuToggle {
        display: block !important;
    }

    #mainNav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        gap: 8px;
        display: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }

    #mainNav.open {
        display: flex !important;
    }

    /* MATIKAN TOTAL ACTIVE DI MOBILE */
    #mainNav .nav-link,
    #mainNav .nav-link.active {
        background: transparent !important;
        color: #1f2937 !important;
    }

    #mainNav .nav-link::after {
        display: none !important;
    }
}

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonial-card img {
    transition: transform 0.3s ease;
}
.testimonial-card:hover img {
    transform: scale(1.08);
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #ccc;
}
.image-preview img {
    cursor: pointer;
    max-width: 100px;
    max-height: 100px;
    margin-right: 5px;
    margin-bottom: 5px;
    object-fit: cover;
}
