/* Reset & Variables */
: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; /* Mencegah scroll horizontal */
}

/* === 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;
}

/* === MAIN LAYOUT === */
.main-content {
    margin-top: var(--nav-height);
}

.section-block {
    padding: 80px 20px;
    width: 100%;
    min-height: auto;
    display: flex;
    justify-content: center;
}

.section-block.gray-bg {
    background-color: var(--gray-bg);
}

.container {
    max-width: 1100px;
    width: 100%;
}

/* --- 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;
}

.black-bar {
    background: black;
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 25px;
}

.hero-desc {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

/* --- TOMBOL (UPDATED) --- */
.btn-group {
    display: flex;
    align-items: center;
    gap: 15px; /* Jarak antar tombol */
}

.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;
}

.btn-black:hover {
    background: var(--primary-yellow);
    color: black;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Jarak icon dan teks */
    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);
}

.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;
}

/* --- COMMON HEADERS --- */
.section-header {
    margin-bottom: 50px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

/* Khusus Header Resume agar tombol ada di kanan */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.center-header {
    text-align: center;
    border-bottom: none;
}

.section-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 45px;
    text-transform: uppercase;
    color: #222;
    position: relative;
    display: inline-block;
}

.center-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-yellow);
    margin: 10px auto 0;
}

/* Tombol Download Kecil di Resume */
.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;
}

/* --- 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); }

/* --- SECTION: RESUME --- */
.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; }

/* --- SECTION: PORTFOLIO --- */
.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); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.p-item img {
    width: 100%; height: 250px; object-fit: cover; border-radius: 8px; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.p-item:hover img { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

/* --- SECTION: CONTACT --- */
.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; }
.info-item i { width: 50px; height: 50px; font-size: 20px; }

/* --- FOOTER --- */
footer { background: #111; color: #666; text-align: center; padding: 20px; font-size: 12px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .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; }
    .portfolio-grid, .testimonials-grid { grid-template-columns: 1fr; }
    
    .filter-nav { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 15px; float: none; }
    .filter-btn { margin: 5px 10px; }
    
    .resume-header { flex-direction: column; gap: 10px; } /* Stack title dan button di HP */
}