/* Variabel CSS dan Global Reset */
:root {
    /* Warna krem */
    --bg-color: #eee9e7;
    /* Warna teal */
    --accent-color: #008080;
    --text-color: #333333;
    --font-main: 'Poppins', sans-serif;
    --link-color: #04757B;
    /* Warna link/teal gelap */
    /* Variabel gelombang dikembalikan */
    --wave-color-dark: #008080;
    --wave-color-light: #fbf6f3;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    /* Menggunakan overflow: hidden; untuk menyembunyikan semua scrollbar */
    overflow: hidden;
}

/* --- Navigasi Utama (Kunci Flexbox) --- */
nav {
    display: flex;
    /* KUNCI: Mendorong Logo (kiri) dan Nav-Links (kanan) terpisah jauh */
    justify-content: space-between;
    align-items: center;
    /* Padding horizontal sudah 20px (rapat ke tepi) */
    padding: 30px 40px;
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

/* Logo dan Nama */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--link-color);
}

/* Gambar Profil */
.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #c7d2c3;
    border: 2px solid var(--link-color);
}

/* --- Navigasi Links (Kolom Kanan) --- */
nav .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

nav .nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--link-color);
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

nav .nav-links a i {
    font-size: 1.2rem;
}

/* Buat garis bawah (hover effect) */
nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

/* Tampilkan garisnya saat di-hover ATAU saat link-nya 'active' */
nav .nav-links a:hover::after,
nav .nav-links a.active::after {
    transform: scaleX(1);
}

/* -------------------------------------- */
/* --- DROPDOWN MENU (NEW) --- */
/* -------------------------------------- */
.dropdown-trigger {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    /* Position right below the link */
    left: 50%;
    transform: translateX(-50%);
    /* Center the dropdown */
    min-width: 150px;
    background-color: white;
    /* Memberikan kontras dengan background krem */
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 30;
    display: flex;
    flex-direction: column;
}

.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    color: var(--link-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: background-color 0.2s;
    display: block;
    /* Memastikan link mengisi lebar menu */
    /* Reset padding-bottom to avoid extra space */
    padding-bottom: 0.5rem;
}

.dropdown-menu a:hover {
    background-color: var(--bg-color);
    /* Efek hover lembut */
    color: var(--link-color);
}

.dropdown-menu a::after {
    display: none;
    /* Menghilangkan animasi underline di dalam dropdown */
}

.dropdown-menu .separator {
    height: 1px;
    background-color: #ddd;
    margin: 0.5rem 0;
}

/* --- Konten Utama (Hero Section) --- */
.hero-section {
    /* Mengatur tinggi menjadi 100vh */
    height: 100vh;

    position: relative;
    /* Hapus padding-top karena akan dipusatkan */
    padding-top: 0;
    /* Padding horizontal sudah 20px (rapat ke tepi) */
    padding-left: 40px;
    padding-right: 40px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    /* KUNCI: Pusatkan konten secara vertikal */
    justify-content: center;
    /* KUNCI: Biarkan konten rata kiri secara default di dalam padding 20px */
    align-items: flex-start;

    padding-bottom: 0;
    z-index: 10;
}

/* Kontainer untuk menampung teks dan ikon sosial */
.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    /* PERBAIKAN: Hapus max-width dan margin: 0 auto; untuk membuatnya meregang penuh di dalam padding 20px */
    max-width: unset;
    margin: 0;

    z-index: 10;
}

.hero-text {
    /* Agar mengambil ruang yang lebih besar */
    flex-grow: 1;
    /* PERBAIKAN: Berikan batas maksimal yang lebih kecil agar ikon sosial lebih dekat */
    max-width: 550px;
    /* Agar teks rata kiri pada desktop */
    text-align: left;
}

.hero-text h1 {
    /* Hi, I'm Luh Ayu */
    font-size: 3rem;
    font-weight: 800;
    /* Extra bold */
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.hero-text h2 {
    /* GIS ANALYST & PROGRAMMER */
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 0 0 20px 0;
    line-height: 1.1;
    /* KUNCI: Memaksa teks agar selalu dalam satu baris (Desktop) */
    white-space: nowrap;
}

.hero-text p {
    /* Deskripsi singkat */
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Tombol Resume */
.btn-resume {
    display: inline-block;
    background-color: var(--link-color);
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    /* Efek bayangan ringan */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-resume:hover {
    background-color: #006060;
    /* Teal sedikit lebih gelap */
    transform: translateY(-2px);
}

/* Ikon Media Sosial (ditempatkan di kanan bawah) */
.social-icons {
    display: flex;
    flex-direction: column;
    /* Ikon vertikal */
    gap: 10px;
    /* Memposisikan ke kanan bawah area hero */
    align-self: flex-end;
    padding-bottom: 0;
    z-index: 20;
}

.social-icons a {
    color: var(--link-color);
    font-size: 1.8rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Media Query untuk Responsivitas (Mobile) */
@media (max-width: 600px) {
    nav {
        padding: 15px 20px;
    }

    nav .nav-links {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

    .hero-section {
        /* Padding atas dikembalikan agar tidak menempel di nav */
        padding-top: 75px;
        /* Pusatkan juga di mobile */
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-content-wrapper {
        flex-direction: column;
        /* Tumpuk konten dan medsos di HP */
        align-items: center;
        /* Hapus margin-bottom besar */
        margin-bottom: 0;
    }

    /* Pada mobile, konten teks harus di tengah */
    .hero-text {
        text-align: center;
        align-self: center;
    }

    .hero-text h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 2.5rem;
        text-align: center;
        /* Hapus nowrap pada mobile agar tidak melebihi layar */
        white-space: normal;
    }

    .hero-text p {
        text-align: center;
    }

    .social-icons {
        flex-direction: row;
        /* Ikon horizontal di HP di bawah tombol */
        margin-top: 30px;
        align-self: center;
    }
}