/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-yellow: #f8c43a;
    --dark-bg: #1a1a1a;
    --text-color: #333;
    --light-bg: #ffffff;
    --gray-bg: #f4f4f4;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    color: var(--text-color);
    overflow-x: hidden;
}

/* =========================================
   2. GLOBAL LAYOUT & UTILITIES
   ========================================= */
.main-content {
    margin-top: var(--nav-height);
}

.container {
    max-width: 1100px;
    width: 100%;
}

.section-block {
    padding: 80px 20px;
    width: 100%;
    min-height: auto;
    display: flex;
    justify-content: center;
}

.section-block.gray-bg {
    background-color: var(--gray-bg);
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 50px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.section-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 45px;
    text-transform: uppercase;
    color: #222;
    position: relative;
    display: inline-block;
}

.center-header {
    text-align: center;
    border-bottom: none;
}

.center-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-yellow);
    margin: 10px auto 0;
}

/* =========================================
   3. GLOBAL BUTTONS & UI ELEMENTS
   ========================================= */
.btn-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-black {
    background: black;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-block;
    border: none; 
    cursor: pointer;
}

.btn-black:hover {
    background: var(--primary-yellow);
    color: black;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000;
    border: 2px solid #000;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-download:hover {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: #fff;
    transform: translateY(-2px);
}

.btn-download-small {
    font-size: 12px;
    text-decoration: none;
    color: #555;
    border: 1px solid #ccc;
    padding: 5px 15px;
    border-radius: 20px;
    transition: 0.3s;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-download-small:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.yellow-pill {
    background: var(--primary-yellow);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: bold;
}

.black-bar {
    background: black;
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 25px;
}

/* =========================================
   4. TOP NAVBAR
   ========================================= */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--primary-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #000;
    transition: 0.3s;
    letter-spacing: 1px;
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* =========================================
   5. SECTION: HOME
   ========================================= */
.home-container {
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.greeting {
    color: var(--primary-yellow);
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 1px 1px 0 #333;
}

.name-title {
    font-family: 'Oswald', sans-serif;
    font-size: 70px;
    line-height: 1;
    color: #000;
    margin-bottom: 10px;
}

.subtitle-tag {
    background: var(--primary-yellow);
    display: inline-block;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 25px;
    color: #000;
}

.hero-desc {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 15px solid #ffffff;
    box-shadow: 0 20px 50px rgba(12, 12, 12, 0.15);
    background-color: #ddd;
}

.hero-circle img {
    width: 100%;
    height: 130%;
    object-fit: cover;
}

/* =========================================
   6. SECTION: ABOUT
   ========================================= */
.about-intro {
    margin-bottom: 40px;
}

.about-intro.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.about-intro h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    margin-bottom: 15px;
}

.light-text {
    font-weight: 300;
    color: #666;
}

.about-grid {
    display: flex;
    gap: 50px;
}

.what-i-do, .fun-facts {
    flex: 1;
}

.service-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.service-item i {
    font-size: 24px;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
    padding: 10px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.fact-bubble {
    background: black;
    color: white;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.fact-bubble:hover {
    transform: scale(1.05);
    background: var(--primary-yellow);
    color: #000;
    cursor: pointer;
}

.fact-bubble strong {
    font-size: 28px;
    color: var(--primary-black);
}

/* =========================================
   7. SECTION: RESUME
   ========================================= */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resume-grid {
    display: flex;
    gap: 60px;
}

.resume-col {
    flex: 1;
}

.resume-cat {
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-item {
    border-left: 2px solid #ccc;
    padding-left: 25px;
    padding-bottom: 40px;
    position: relative;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary-yellow);
    border-radius: 50%;
}

.year-pill {
    background: black;
    color: white;
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
}

/* =========================================
   8. SECTION: PORTFOLIO (GRID LAYOUT)
   ========================================= */
.filter-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.section-header .filter-nav {
    float: right;
    margin-top: 10px;
}

.filter-btn {
    font-size: 12px;
    font-weight: bold;
    margin-left: 20px;
    cursor: pointer;
    color: #999;
    padding-bottom: 2px;
}

.filter-btn.active, 
.filter-btn:hover {
    color: var(--primary-yellow);
    border-bottom: 2px solid var(--primary-yellow);
}

/* --- GRID SYSTEM: 2 KOLOM SEJAJAR --- */
.portfolio-grid {
    display: grid;
    /* Ini kuncinya: Memaksa 2 kolom sama besar */
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    width: 100%;
}

.p-item {
    width: 100%;
    position: relative; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #fff;
}

/* Gaya Gambar */
.p-item img {
    width: 100%;
    height: auto; 
    display: block; 
    transition: transform 0.3s ease; 
}

/* Efek Hover */
.p-item:hover img {
    transform: scale(1.03); 
}


/* =========================================
   RESPONSIVE (HP / TABLET)
   ========================================= */
@media (max-width: 900px) {

    /* Di HP, kita bisa ubah jadi 1 kolom agar gambar besar */
    .portfolio-grid {
        grid-template-columns: repeat(1, 1fr); 
        gap: 15px;
    }

    .p-item {
        margin-bottom: 10px; 
    }
    .filter-btn {
        margin: 5px;
        font-size: 11px; 
    }
    .top-navbar {
        padding: 0 20px;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-icon {
        display: block;
    }
    .home-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
    }
    .hero-content {
        padding-right: 0;
        margin-top: 30px;
    }
    .hero-circle {
        width: 250px;
        height: 250px;
        border-width: 8px;
    }
    .name-title {
        font-size: 40px;
    }
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    .btn-black, .btn-download {
        width: 100%;
        justify-content: center;
    }
    .about-grid, 
    .resume-grid, 
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .filter-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
        float: none;
    }
    .resume-header {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================
   9. CONTACT & FOOTER & ANIMATION
   ========================================= */
.contact-wrapper {
    display: flex;
    gap: 60px;
}

.contact-form {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, 
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: 1px solid var(--primary-yellow);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Pastikan info-item menggunakan flex agar logo dan teks sejajar */
.info-item {
    display: flex;
    align-items: center;
    gap: 15px; /* Jarak antara icon/logo dengan teks */
}

/* Styling untuk Icon Font (email, wa, linkedin, dll) */
.info-item i {
    width: 50px;
    height: 50px;
    font-size: 20px;
    /* PENTING: Tambahkan flex center agar icon font ada di tengah kotak 50x50 */
    display: flex; 
    justify-content: center;
    align-items: center;
}

/* Styling untuk Logo Gambar Jurnal (agar sama persis dgn icon) */
.info-item .contact-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain; /* Agar gambar tidak gepeng */
    display: block;
}

footer {
    background: #111;
    color: #666;
    text-align: center;
    padding: 20px;
    font-size: 12px;
}

/* Class untuk menyembunyikan item */
.hidden-item {
    display: none !important;
}

/* Agar tombol Load More ada di tengah bawah */
.load-more-container {
    text-align: center;
    margin-top: 30px;
    width: 100%;
}

/* Animasi saat item muncul (Show More) */
.reveal-animation {
    animation: slideDownFade 0.8s ease forwards;
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}