/* ======================================
   WARNA UTAMA — MEMANCARKAN KEPERCAYAAN DIRI
   Biru Tua (#0A2463) → tegas, dapat diandalkan, profesional
   Emas (#EFCB68)     → berharga, berkualitas, berprestasi
   Putih/Biru Muda   → bersih, terbuka, jelas
   ====================================== */

:root {
    --biru-tegas: #0A2463;
    --biru-terang: #1E40AF;
    --emas: #EFCB68;
    --emas-terang: #F6D365;
    --latar: #F8FAFC;
    --teks: #1E293B;
    --abu-lembut: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: var(--teks);
    line-height: 1.6;
}

/* Header & Navigasi */
header {
    background: linear-gradient(90deg, var(--biru-tegas) 0%, var(--biru-terang) 100%);
    color: white;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 14px rgba(10, 36, 99, 0.25);
    border-bottom: 3px solid var(--emas);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--emas);
}

/* Tombol Hamburger (Garis Tiga) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: white;
}

.menu-toggle:hover {
    transform: scale(1.1);
    color: var(--emas);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover {
    border-bottom: 2px solid var(--emas);
    color: var(--emas);
}

/* Bagian Foto & Perkenalan */
.hero {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.foto-profil {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--emas) 0%, #FDE68A 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--biru-tegas);
    box-shadow: 0 8px 24px rgba(10, 36, 99, 0.2);
    border: 5px solid white;
}

.hero-text h1 {
    font-size: 2.2rem;
    color: var(--biru-tegas);
    margin-bottom: 0.5rem;
}

.hero-text .gelar {
    font-size: 1.2rem;
    color: var(--biru-terang);
    font-weight: 700;
    margin-bottom: 1rem;
    border-left: 4px solid var(--emas);
    padding-left: 12px;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--teks);
    text-align: justify;
}

.hero-text strong {
    color: var(--biru-tegas);
}

/* Konten Utama */
main {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 5%;
}

section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(10, 36, 99, 0.1);
    border-left: 5px solid var(--emas);
}

section h2 {
    color: var(--biru-tegas);
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--abu-lembut);
    font-size: 1.4rem;
    font-weight: 700;
}

/* Daftar Keahlian */
.keahlian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.keahlian-item {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    color: var(--biru-tegas);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.keahlian-item:hover {
    transform: translateY(-5px);
    background: white;
    border-color: var(--emas);
    box-shadow: 0 6px 16px rgba(10, 36, 99, 0.15);
}

/* Pengalaman Kerja */
.timeline-item {
    margin-bottom: 1.4rem;
    padding-left: 1.2rem;
    border-left: 3px solid var(--biru-tegas);
    transition: padding-left 0.3s ease;
}

.timeline-item:hover {
    padding-left: 1.5rem;
    border-left-color: var(--emas);
}

.timeline-item h3 {
    font-size: 1.05rem;
    color: var(--biru-tegas);
    font-weight: 700;
}

.timeline-item .periode {
    font-size: 0.9rem;
    color: var(--biru-terang);
    font-weight: 600;
}

.timeline-item p {
    color: #475569;
}

/* Footer */
footer {
    background: linear-gradient(90deg, var(--biru-tegas) 0%, var(--biru-terang) 100%);
    color: white;
    padding: 3rem 5% 1.5rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--emas), #F59E0B, var(--emas-terang), #F59E0B, var(--emas));
    background-size: 200% 100%;
    animation: rainbow 4s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--emas);
    font-weight: 700;
}

.footer-col p, .footer-col a {
    color: #E2E8F0;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--emas);
}

.footer-col i {
    color: var(--emas);
    margin-right: 8px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--emas);
    color: var(--biru-tegas);
    transform: translateY(-4px);
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: #CBD5E1;
}

.footer-bottom strong {
    color: var(--emas);
}

/* === RESPONSIF — untuk HP & Tablet === */
@media (max-width: 768px) {
    /* Tampilkan tombol garis tiga di HP */
    .menu-toggle {
        display: block;
    }

    /* Sembunyikan menu secara default di HP */
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, var(--biru-terang), var(--biru-tegas));
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    nav ul.active {
        max-height: 400px;
    }

    nav ul li {
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    nav ul li a {
        display: block;
        padding: 1rem 5%;
        border-bottom: none;
    }

    nav ul li a:hover {
        background: rgba(255,255,255,0.1);
        border-bottom: none;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .foto-profil {
        max-width: 240px;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text .gelar {
        border-left: none;
        padding-left: 0;
        border-bottom: 3px solid var(--emas);
        display: inline-block;
        padding-bottom: 6px;
    }

    section {
        padding: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .keahlian-grid {
        grid-template-columns: 1fr 1fr;
    }
}