/* Reset Dasar */
@import url('https://fonts.googleapis.com/css2?family=Rubik+Distressed&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 10vh;
    background-color: #2c3e50;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h4 {
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Menu untuk Laptop/Desktop */
.nav-links {
    display: flex;
    justify-content: space-around;
    width: 40%;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

.btn-contact:hover {
    background: #2980b9 !important;
    color: white !important;
}

/* Burger Menu (Default Sembunyi) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

.home {
    height: 100vh; /* Mengambil tinggi penuh layar */
    display: flex;
    flex-direction: column; /* Biar tulisan h2 dan h1 tumpuk atas-bawah */
    justify-content: center; /* Memusatkan secara vertikal */
    align-items: center; /* Memusatkan secara horizontal */
    text-align: center; /* Biar teksnya rata tengah kalau ada baris baru */
    background: #ecf0f1; /* Warna background (bisa lu ganti gambar nanti) */
    padding: 0 20px; /* Jaga-jaga biar di HP teksnya gak nempel ke pinggir layar */
}

/* Tambahan dikit biar teksnya makin cakep */
.home a{
    font-size: 40px;
    margin: 100px;
    font-family: "Rubik Distressed", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.home h2 {
    font-size: 1.5rem;
    color: #7f8c8d;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.home h1 {
    font-size: 4rem;
    color: #2c3e50;
    font-weight: 800;
}

/* --- RESPONSIVE MOBILE (MAKS 768PX) --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 90vh;
        top: 10vh;
        background-color: #2c3e50;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%); /* Sembunyi di kanan */
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .burger {
        display: block;
    }
}

/* Class bantuan untuk JS */
.nav-active {
    transform: translateX(0%);
}

/* Animasi Burger jadi X */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}