/* =========================================
   1. RESET & GLOBAL VARIABLES
   ========================================= */
   :root {
    /* Warna Tema (PCR Blue vibes) */
    --primary-color: #2563eb;    /* Biru Utama */
    --secondary-color: #1e40af;  /* Biru Gelap */
    --accent-color: #dbeafe;     /* Biru Muda (Background Badge) */
    
    /* Warna Teks & Background */
    --text-dark: #1f2937;        /* Hitam Abu */
    --text-light: #6b7280;       /* Abu-abu Text */
    --bg-light: #f9fafb;         /* Background Section */
    --white: #ffffff;
    
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { width: 100%; display: block; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: 80px 0; }

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 4px;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 15px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo .dot { color: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-color); }

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.btn-nav:hover { background: var(--secondary-color); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #f8fafc, #edf2f7);
    padding-top: 80px; /* offset for fixed navbar */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons { display: flex; gap: 15px; margin-bottom: 30px; }

.btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); }

.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }

.social-hero a {
    font-size: 1.6rem;
    margin-right: 20px;
    color: var(--text-dark);
    transition: var(--transition);
}
.social-hero a:hover { color: var(--primary-color); transform: scale(1.1); }

.img-box {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 20px 20px 0px var(--accent-color);
}
.img-box img { height: 100%; object-fit: cover; }

/* =========================================
   4. ABOUT & EDUCATION (BAGIAN PENTING!)
   ========================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Kolom kanan lebih lebar */
    gap: 60px;
    align-items: start;
}

/* Kolom Kiri (Text & Skills) */
.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: justify;
}

.skills-box h3 { margin-bottom: 15px; font-size: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Kolom Kanan (Education Box) - PERBAIKAN UTAMA */
.education-box {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Shadow halus */
    border-left: 6px solid var(--primary-color); /* Garis biru di kiri */
}

.education-box h3 {
    margin-bottom: 30px;
    font-size: 1.4rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Item Pendidikan */
.edu-item {
    position: relative;
}

/* Badge Tahun (Supaya terlihat kotak biru muda) */
.time-badge {
    display: inline-block;
    background-color: #e0e7ff; /* Biru sangat muda */
    color: #3730a3; /* Biru teks gelap */
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.edu-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.edu-item .prodi {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.edu-item .desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Garis Pembatas antar item */
.divider {
    height: 1px;
    background-color: #e5e7eb; /* Warna garis abu-abu */
    margin: 25px 0;
    width: 100%;
    display: block;
}

/* =========================================
   5. PROJECTS
   ========================================= */
.bg-light { background-color: var(--bg-light); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-img { height: 220px; overflow: hidden; }
.card-img img { height: 100%; object-fit: cover; transition: var(--transition); }
.project-card:hover .card-img img { transform: scale(1.05); }

.card-body { padding: 25px; }
.card-body h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }

.link-icon {
    margin-right: 15px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}
.link-icon:hover { text-decoration: underline; }

/* =========================================
   6. EXPERIENCE TIMELINE
   ========================================= */
.timeline {
    border-left: 3px solid #e5e7eb;
    margin-left: 10px;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px; /* Geser buletan ke garis */
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-content h3 { font-size: 1.1rem; margin-bottom: 5px; }
.timeline-content .date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
    font-style: italic;
}

/* =========================================
   7. GALLERY & FOOTER
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition);
}
.gallery-grid img:hover { transform: scale(1.02); }

footer {
    background: #111827;
    color: #f3f4f6;
    text-align: center;
    padding: 60px 0 30px;
}
.social-big { margin: 30px 0; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;}
.soc-btn {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    color: white;
}
.linkedin { background: #0077b5; }
.instagram { background: #e1306c; }
.email { background: #374151; }
.copyright { border-top: 1px solid #374151; padding-top: 20px; margin-top: 40px; font-size: 0.9rem; color: #9ca3af; }

/* =========================================
   8. RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 70px; right: 0; width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        display: none; /* Default hide */
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-links.active { display: flex; }
    
    .hero-container { flex-direction: column-reverse; text-align: center; }
    .img-box { width: 280px; height: 280px; margin: 0 auto; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-buttons { justify-content: center; }
    
    .about-content { grid-template-columns: 1fr; }
    .education-box { padding: 25px; }
}

/* --- TAMBAHAN UNTUK PROYEK --- */

/* Style untuk container gambar agar badge bisa ditaruh di atasnya */
.project-card .card-img {
    position: relative; 
}

/* Badge Status (Misal: Sedang Dikerjakan) */
.badge-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Warna Kuning/Oranye untuk status Progress */
.badge-status.progress {
    background-color: #f59e0b; /* Amber/Orange */
}

/* Style untuk Tags Teknologi (Laravel, MySQL, Figma, dll) */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background-color: #eff6ff; /* Biru sangat muda */
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #dbeafe;
}