/* --- 1. SETUP GLOBAL & VARIABEL (Sesuai Script Beranda Anda) --- */
:root {
    --bg-color: #eee9e7;
    --accent-color: #008080;
    --accent-light: #e0f2f1;
    /* Versi terang untuk background skill */
    --text-color: #333333;
    --text-light: #666666;
    --font-main: 'Poppins', sans-serif;
    --link-color: #04757B;
}

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);
    overflow-x: hidden;
    /* Mencegah scroll horizontal */
}

/* --- 2. NAVIGASI (Sama Persis dengan Script Beranda) --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    /* Sedikit penyesuaian padding agar lebih lega */
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    /* Fixed agar navbar tetap di atas saat scroll */
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--bg-color);
    /* Agar konten tidak terlihat di belakang nav saat scroll */
    transition: box-shadow 0.3s;
}

/* Efek bayangan saat di-scroll (opsional, agar nav jelas) */
nav.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--link-color);
}

.profile-pic-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #c7d2c3;
    border: 2px solid var(--link-color);
}

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;
    /* Sedikit lebih tebal */
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

nav .nav-links a i {
    font-size: 1.2rem;
}

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;
}

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;
}

/* --- 3. LAYOUT HALAMAN ABOUT --- */
.about-section {
    padding: 120px 40px 60px 40px;
    /* Padding top besar karena navbar fixed */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.about-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Kolom Kiri (Konten Teks) */
.left-column {
    flex: 2;
    /* Mengambil porsi 2/3 */
}

/* Kolom Kanan (Foto) */
.right-column {
    flex: 1;
    /* Mengambil porsi 1/3 */
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: 40px;
    /* Menurunkan foto sedikit agar sejajar visual */
}

/* --- 4. KOMPONEN KONTEN --- */
h1.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

h2.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--link-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #d1d5db;
    padding-bottom: 10px;
    display: inline-block;
    min-width: 200px;
}

p.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

/* Timeline Pendidikan */
.timeline {
    position: relative;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    border-left: 2px solid #ccc;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
    /* Hilangkan garis di item terakhir */
}

.timeline-dot {
    position: absolute;
    left: -6px;
    /* Agar pas di tengah garis border */
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 2px solid var(--bg-color);
    /* Efek outline */
}

.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.timeline-content .year {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.timeline-content p {
    margin: 5px 0 0;
    color: var(--text-color);
}

.gpa {
    font-size: 0.9rem;
    color: var(--link-color);
    font-weight: 600;
}

/* Skills Tags */
.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--accent-light);
    color: var(--link-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s, background-color 0.2s;
    cursor: default;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background-color: #b2dfdb;
}

/* Tools Icons */
.tools-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 2rem;
    align-items: center;
}

.tools-wrapper img {
    width: 40px;
    height: 40px;
}

.tool-icon {
    color: var(--text-light);
    transition: color 0.3s, transform 0.3s;
}

/* .tool-icon:hover */
.tools-wrapper img:hover{
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Foto Profil Besar */
.photo-container {
    position: relative;
    width: 320px;
    height: 420px;
}

/* Bentuk Dekoratif di Belakang Foto */
.photo-bg {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 40px;
    /* Rounded card style */
    z-index: 0;
    opacity: 0.2;
}

.main-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Gaya masking sedikit berbeda dari sebelumnya agar lebih modern */
}

/* --- 5. RESPONSIVE --- */
@media (max-width: 650px) {
    .about-container {
        flex-direction: column-reverse;
        /* Foto pindah ke atas di mobile */
        align-items: center;
    }

    .left-column {
        width: 100%;
    }

    .right-column {
        margin-bottom: 40px;
        margin-top: 0;
    }

    h1.page-title {
        text-align: center;
        font-size: 2.5rem;
    }

    p.intro-text {
        text-align: center;
    }

    .photo-container {
        width: 280px;
        height: 360px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .about-section {
        padding: 100px 20px 40px 20px;
    }

    h1.page-title {
        font-size: 2rem;
    }
}