/* --- Reset Dasar & Gaya Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Palet Warna Aesthetic Soft */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f4f7f9; /* Latar belakang soft blue-gray */
    color: #3a3f44; /* Warna teks utama yang lebih lembut */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

/* --- Header --- */
header {
    background: #ffffff; /* Header tetap putih bersih */
    padding: 1rem 0;
    border-bottom: 1px solid #e8ecef; /* Border yang lebih halus */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none; /* Menghilangkan garis bawah dari link */
}

.logo-img {
    height: 50px; /* Atur tinggi logo, lebar akan menyesuaikan */
    width: auto;
    margin-right: 15px; /* Memberi jarak antara logo dan teks */
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #2c3a47; /* Warna teks logo yang lebih gelap dan soft */
}

/* --- Gaya Navigasi Desktop --- */
header nav ul {
    list-style: none;
    display: flex;
}

header nav li {
    margin-left: 25px;
}

header nav a {
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #000000;
}

.menu-btn {
    display: none; /* Sembunyikan di desktop */
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
    z-index: 1001; /* Pastikan di atas segalanya */
}

.menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #2c3a47;
    transition: all 0.3s ease-in-out;
}

/* --- Bagian Hero --- */
.hero {
    text-align: center;
    padding: 20px;
    background: linear-gradient(rgba(59, 59, 66, 0.4), rgba(55, 55, 65, 0.6)), url('Image/background.png') no-repeat center center/cover;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* --- Bagian Konten Umum --- */
section {
    padding: 80px 0;
    border-bottom: 1px solid #e8ecef;
}

section:last-of-type {
    border-bottom: none;
}

section h3 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    font-family: 'Poppins', sans-serif;
    color: #2c3a47;
}

/* --- Gaya Khusus untuk About Me & My Friend --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    max-width: 900px;
    margin: auto;
}

.about-content img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.about-content.reverse {
    flex-direction: row-reverse;
}

/* --- Gaya Khusus untuk Peta Kontak --- */
.map-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Footer --- */
footer {
    background-color: #2c3a47;
    color: #e8ecef;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* --- Media Query untuk Responsif --- */
@media (max-width: 768px) {
    .menu-btn {
        display: block; /* Tampilkan tombol hamburger di mobile */
    }

    header nav {
        /* Sembunyikan menu di luar layar */
        position: fixed;
        top: 0;
        right: -100%; /* Mulai dari luar layar sebelah kanan */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        padding-top: 80px;
    }

    /* Saat menu aktif, geser ke dalam layar */
    header nav.active {
        right: 0;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    header nav li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }

    header nav a {
        font-size: 1.2rem;
    }

    /* Animasi tombol hamburger menjadi 'X' */
    .menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Penyesuaian lain untuk mobile */
    .hero h2 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    section {
        padding: 60px 20px;
    }
    .about-content,
    .about-content.reverse {
        flex-direction: column;
        text-align: center;
    }
}
