/* --- GENERAL STYLING --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px 0;
}

h1, h2, h3 { color: #2c3e50; }

a { text-decoration: none; color: inherit; }

/* --- HEADER & NAVIGATION --- */
header {
    background: #fff;
    border-bottom: 1px solid #e7e7e7;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    overflow: visible;
    position: relative; /* Penting untuk positioning mobile menu */
}

header #logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
    width: 100;
}

header img {
    
    width: 200px;
}

/* Navigasi Desktop Default */
header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex; /* Menggunakan Flexbox */
    align-items: center;
}

header nav ul li {
    margin-left: 20px;
    position: relative;
}

header nav a.nav-link, 
header nav a.dropbtn {
    color: #333;
    font-weight: 500;
    padding: 10px 5px;
    cursor: pointer;
    transition: color 0.3s;
}

header nav a:hover,
header nav a.dropbtn.active {
    color: #3498db;
}

/* Hamburger Menu Icon (Hidden on Desktop) */
.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

/* --- DROPDOWN CSS --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 9999;
    top: 100%;
    left: 0; /* Default align left */
    border-radius: 4px;
    padding: 5px 0;
    margin-top: 10px;
    border-top: 3px solid #3498db;
}

/* Animasi Dropdown */
.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

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

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    display: block;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 1px solid #f4f4f4;
}

.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: #f4f7f9; color: #3498db; }

/* --- HERO SECTION --- */
.hero {
    background: #f4f7f9;
    padding: 80px 0;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 30px auto; }

/* Buttons */
.btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}
.btn:hover { background: #2980b9; }

/* --- SECTIONS (Services, Why Us, CTA) --- */
.section-padding { padding: 60px 0; }
.text-center { text-align: center; }
.bg-light { background: #f4f7f9; }
.bg-primary { background: #3498db; color: #fff; }

.bg-primary h2 { color: #fff; }
.bg-primary .btn { background: #fff; color: #3498db; }
.bg-primary .btn:hover { background: #ecf0f1; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* --- FOOTER --- */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* =========================================
    RESPONSIVE CSS (MOBILE & TABLET)
    ========================================= */
@media screen and (max-width: 768px) {
    .container { width: 90%; } /* Lebarkan container di HP */
    
    /* Tampilkan Icon Hamburger */
    .menu-icon { display: block; }

    /* Sembunyikan Menu Navigasi Default */
    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; /* Tinggi header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 10px 0;
        align-items: flex-start; /* Rata kiri */
    }

    /* Class untuk menampilkan menu saat hamburger diklik */
    header nav ul.nav-active {
        display: flex;
    }

    header nav ul li {
        width: 100%;
        margin: 0;
    }

    header nav a.nav-link, 
    header nav a.dropbtn {
        padding: 15px 20px;
        display: block;
        width: 100%;
        box-sizing: border-box; /* Agar padding tidak merusak width */
        border-bottom: 1px solid #f0f0f0;
    }

    /* Modifikasi Dropdown untuk Mobile (Accordion Style) */
    .dropdown-content {
        position: relative; /* Tidak lagi floating/absolute */
        box-shadow: none;
        top: 0;
        margin-top: 0;
        background-color: #f9f9f9; /* Warna sedikit beda untuk membedakan sub-menu */
        border-top: none;
        width: 100%;
    }
    
    .dropdown-content a {
        padding-left: 40px; /* Indentasi untuk sub-menu */
        font-size: 0.9rem;
    }

    /* Typography Adjustments */
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
}