/* ---
File CSS Kustom Profesional
Versi: 3.0 (Redesign "Aurora")
--- */

/* --- 1. Impor Google Font (Inter & Playfair Display) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&display=swap');

/* --- 2. Variabel Warna (Root) --- */
:root {
    --pr-blue: #2563eb; /* Blue-600 */
    --pr-blue-hover: #1d4ed8; /* Blue-700 */

    /* Palet Warna Light Mode (BARU) */
    --bg-light: #f1f5f9; /* slate-100 */
    --card-light: #ffffff; /* white */
    --text-light-primary: #0f172a; /* slate-900 */
    --text-light-secondary: #475569; /* slate-600 */
    --border-light: #e2e8f0; /* slate-200 */
    --navbar-light: rgba(255, 255, 255, 0.7); /* white/70 */

    /* Palet Warna Dark Mode (BARU) */
    --bg-dark: #0f172a; /* slate-900 */
    --card-dark: #1e293b; /* slate-800 */
    --text-dark-primary: #f1f5f9; /* slate-100 */
    --text-dark-secondary: #94a3b8; /* slate-400 */
    --border-dark: #334155; /* slate-700 */
    --navbar-dark: rgba(15, 23, 42, 0.7); /* slate-900/70 */
}

/* --- 3. Pengaturan Tema Dark Mode --- */
html.dark {
    --bg-main: var(--bg-dark);
    --bg-card: var(--card-dark);
    --bg-navbar: var(--navbar-dark);
    --text-primary: var(--text-dark-primary);
    --text-secondary: var(--text-dark-secondary);
    --border-color: var(--border-dark);
}

html:not(.dark) {
    --bg-main: var(--bg-light);
    --bg-card: var(--card-light);
    --bg-navbar: var(--navbar-light);
    --text-primary: var(--text-light-primary);
    --text-secondary: var(--text-light-secondary);
    --border-color: var(--border-light);
}

/* --- 4. Style Dasar & Scrollbar --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0f172a; /* bg-slate-900 */
}
::-webkit-scrollbar-thumb {
    background-color: var(--pr-blue); 
    border-radius: 10px;
    border: 2px solid #0f172a;
}

/* --- 5. Tipografi (Font Pairing) --- */
h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    font-weight: 700;
}

/* --- 6. Navbar (BARU) --- */
.navbar-sticky {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.3s ease;
}
/* Animasi Link Navbar */
.navbar-link {
    position: relative;
    padding-bottom: 6px;
    color: var(--text-secondary);
    transition: color 0.3s ease-in-out;
}
.navbar-link:hover {
    color: var(--pr-blue);
}
.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--pr-blue);
    transition: width 0.3s ease-in-out;
}
.navbar-link:hover::after {
    width: 100%;
}

/* --- 7. Judul Section --- */
main h2 {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 4rem; /* mb-16 */
    /* Pusatkan judul */
    left: 50%;
    transform: translateX(-50%);
}
main h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--pr-blue);
    border-radius: 2px;
}

/* --- 8. Latar Belakang "Aurora" (BARU & MEWAH) --- */
.aurora-background {
    position: fixed; /* Tetap di layar */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10; /* Di belakang semua konten */
    overflow: hidden; /* Sembunyikan blur-overflow */
    opacity: 0.5; /* Buat lebih subtle */
}
/* Mode Gelap: Aurora Biru */
html.dark .aurora-background::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    top: -20%;
    left: -20%;
    animation: aurora-move-1 20s infinite alternate ease-in-out;
}
html.dark .aurora-background::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    bottom: -20%;
    right: -20%;
    animation: aurora-move-2 25s infinite alternate ease-in-out;
}

/* Mode Terang: Aurora Biru dan Abu-abu */
html:not(.dark) .aurora-background::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    top: -20%;
    left: -20%;
    animation: aurora-move-1 20s infinite alternate ease-in-out;
}
html:not(.dark) .aurora-background::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 117, 125, 0.1), transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    bottom: -20%;
    right: -20%;
    animation: aurora-move-2 25s infinite alternate ease-in-out;
}

/* Animasi Gerakan Aurora */
@keyframes aurora-move-1 {
    from { transform: translate(-20%, -20%) rotate(0deg); }
    to { transform: translate(20%, 20%) rotate(45deg); }
}
@keyframes aurora-move-2 {
    from { transform: translate(20%, 20%) rotate(0deg); }
    to { transform: translate(-20%, -20%) rotate(-45deg); }
}

/* --- 9. Animasi Timeline Dot --- */
@keyframes dotPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.timeline-dot {
    animation: dotPulse 2s infinite;
    position: absolute;
    top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--pr-blue);
    border-radius: 9999px;
    border: 4px solid var(--bg-main);
    /* Atur posisi kiri berdasarkan ukuran layar */
    left: -1.8rem; /* Mobile */
}
@media (min-width: 768px) { /* md: */
    .timeline-dot {
        left: -2rem; /* Desktop */
    }
}

/* --- 10. Kartu Timeline (Pengalaman & Pendidikan) --- */
.timeline-card {
    background-color: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}
.timeline-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
    border-left-color: var(--pr-blue);
}

/* --- 11. Kartu Keahlian (Progress Bar) --- */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.skill-item {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.skill-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.skill-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
}
.skill-level {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.skill-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
}
.skill-bar-fill {
    width: 0%; /* Diisi oleh JS */
    height: 100%;
    background-color: var(--pr-blue);
    border-radius: 9999px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- 12. Tipografi Responsif (BARU) --- */

/* * Style Dasar (Mobile-First):
 * Ukuran font di bawah ini adalah untuk layar HP.
 */

/* Ukuran Judul Section (H2) di Mobile */
main h2 {
    font-size: 1.875rem; /* 30px */
    line-height: 2.25rem; /* 36px */
}

/* Ukuran Judul Kartu (H3) di Mobile */
.timeline-card h3 {
    font-size: 1.25rem; /* 20px */
    line-height: 1.75rem; /* 28px */
}

/* Ukuran Judul Kartu Keahlian (H4) di Mobile */
.skill-item h4 {
    font-size: 1.25rem; /* 20px */
}

/* Ukuran Nama Keahlian di Mobile */
.skill-name {
    font-size: 1rem; /* 16px */
}


/* * Style Layar Menengah (Tablet / md: 768px ke atas)
 * Kita perbesar sedikit font-nya.
 */
@media (min-width: 768px) {
    main h2 {
        font-size: 2.25rem; /* 36px (kembali ke ukuran asli) */
        line-height: 2.5rem; /* 40px */
    }
    
    .timeline-card h3 {
        font-size: 1.5rem; /* 24px */
    }
    
    .skill-item h4 {
        font-size: 1.5rem; /* 24px */
    }

    .skill-name {
        font-size: 1.125rem; /* 18px (kembali ke ukuran asli) */
    }
}