@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* PENGATURAN WARNA TERANG & GELAP */
:root {
    --bg-body: #fafafa;
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-heading: #111111;
    --text-muted: #666666;
    --border-color: #eaeaea;
    --btn-bg: #111111;
    --btn-text: #ffffff;
    --btn-hover: #333333;
}
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-header: #1e1e1e;
    --bg-card: #1e1e1e;
    --text-main: #e0e0e0;
    --text-heading: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --btn-bg: #ffffff;
    --btn-text: #111111;
    --btn-hover: #dddddd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--text-main); background-color: var(--bg-body); transition: 0.3s; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* HEADER & NAVIGASI */
header { background-color: var(--bg-header); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; transition: 0.3s; }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo a { font-size: 1.5rem; font-weight: 700; color: var(--text-heading); }
nav { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links li a { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); transition: 0.3s; }
.nav-links li a:hover { color: var(--text-heading); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.theme-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-heading); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--text-heading); border-radius: 3px; transition: 0.3s; }

/* HERO SECTION (SLIDER BACKGROUND) */
.hero { position: relative; padding: 140px 0; text-align: center; overflow: hidden; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transform: translateX(100%); transition: transform 1s ease-in-out, opacity 1s ease-in-out; }
.slide.active { opacity: 1; transform: translateX(0); }
.slide.prev { opacity: 0; transform: translateX(-100%); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); z-index: 2; }
.hero-content { position: relative; z-index: 3; }
.hero-content h2 { font-size: 2.8rem; margin-bottom: 20px; font-weight: 700; color: #ffffff; }
.hero-content p { font-size: 1.1rem; color: #ffffff; max-width: 600px; margin: 0 auto 35px auto; }

/* TOMBOL */
.btn { display: inline-block; padding: 10px 24px; background-color: var(--btn-bg); color: var(--btn-text); border-radius: 4px; font-weight: 600; font-size: 0.9rem; transition: 0.3s; border: 1px solid var(--border-color); }
.btn:hover { background-color: var(--btn-hover); }
.center-btn { text-align: center; margin-top: 30px; }

/* GRID BLOG & PORTOFOLIO */
.section-pad { padding: 60px 0; }
.section-pad.small-bottom { padding-bottom: 20px; } /* Jarak Blog & Portofolio diperkecil */
.section-pad.small-top { padding-top: 20px; }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 40px; font-weight: 700; color: var(--text-heading); }
.card-grid, .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* KARTU BLOG */
.card { background-color: var(--bg-card); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card-image { height: 180px; background-position: center; background-size: cover; }
.card-body { padding: 25px; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--text-heading); }
.card-body p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }
.read-more { font-weight: 600; color: var(--text-heading); font-size: 0.9rem; }

/* KARTU PORTOFOLIO */
.portfolio-item { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; opacity: 0; transition: 0.3s; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { transform: translateY(20px); transition: 0.3s; font-size: 1.4rem; }
.portfolio-item:hover .portfolio-overlay h3 { transform: translateY(0); }

/* HALAMAN BACA BLOG (UKURAN PAS) */
.single-blog-container { padding: 40px 20px; max-width: 800px; margin: 0 auto; min-height: 70vh; }
.single-blog-title { font-size: 2.2rem; color: var(--text-heading); margin-bottom: 15px; font-weight: 700; line-height: 1.3; }
.single-blog-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; display: block; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.single-blog-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 30px; }
.single-blog-content p { font-size: 1.05rem; color: var(--text-main); margin-bottom: 20px; line-height: 1.8; }

/* HALAMAN ABOUT & PRESTASI */
.about-wrapper { display: flex; align-items: center; gap: 60px; }
.about-image { flex: 1; }
.about-image img { width: 100%; max-width: 450px; border-radius: 12px; }
.about-text { flex: 1.2; }
.about-text h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--text-heading); }
.about-text p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.8; }
.prestasi-wrapper { display: flex; align-items: center; gap: 50px; margin-bottom: 40px; background-color: var(--bg-card); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); }
.prestasi-image { flex: 1; }
.prestasi-image img { width: 100%; border-radius: 8px; }
.prestasi-text { flex: 1.2; }
.prestasi-text h3 { font-size: 1.6rem; color: var(--text-heading); margin-bottom: 10px; }
.date-badge { display: inline-block; background-color: var(--btn-bg); color: var(--btn-text); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; margin-bottom: 15px; }

/* --- DESAIN HALAMAN ABOUT (RESUME & SKILLS) --- */
.resume-container {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.resume-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.resume-box h3 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 25px;
}

/* Timeline Pendidikan & Pengalaman */
.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    border-left: 2px solid var(--border-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-heading);
    transition: 0.3s;
}

.timeline-item h4 {
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 5px;
}

.timeline-item .date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-body);
    background-color: var(--text-heading);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Progress Bar Keahlian */
.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.skill-per {
    display: block;
    height: 100%;
    background-color: var(--text-heading);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* Tombol CTA di Halaman About */
.cta-about {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.cta-about .btn {
    margin: 10px;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-heading);
    border: 2px solid var(--text-heading);
}

.btn-outline:hover {
    background-color: var(--text-heading);
    color: var(--bg-body);
}

/* Responsif Mobile untuk Resume */
@media (max-width: 768px) {
    .resume-row {
        gap: 30px;
    }
}

/* --- DESAIN HALAMAN KONTAK KHUSUS (REKRUT SAYA) --- */
.contact-page-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-info-box {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
}

.contact-form-box {
    flex: 1.5;
    min-width: 300px;
}

.contact-page-wrapper h3 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    background-color: var(--border-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 {
    color: var(--text-heading);
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsif Mobile untuk Halaman Kontak */
@media (max-width: 768px) {
    .contact-page-wrapper {
        padding: 20px;
        flex-direction: column;
    }
    .contact-info-box {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 30px;
    }
}

/* --- DESAIN POP-UP SUKSES MENGIRIM PESAN --- */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: 0.3s ease;
}

/* Class ini akan ditambahkan oleh JavaScript saat tombol diklik */
.popup-overlay.show {
    opacity: 1; visibility: visible;
}

.popup-content {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.popup-overlay.show .popup-content {
    transform: scale(1); /* Efek zoom-in membesar saat muncul */
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.popup-content h3 {
    color: var(--text-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.popup-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.popup-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.popup-close:hover {
    color: var(--text-heading);
}

.popup-btn {
    width: 100%;
}

/* FOOTER & FORMULIR */
footer { background-color: var(--bg-header); border-top: 1px solid var(--border-color); padding: 60px 0 20px 0; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.footer-col { flex: 1; min-width: 300px; }
.footer-col h4 { color: var(--text-heading); margin-bottom: 20px; font-size: 1.2rem; font-weight: 700; }
.footer-col p, .footer-col a { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 10px; display: block; }
.social-links a { display: inline-block; margin-right: 15px; font-weight: 600; color: var(--text-heading); }
.feedback-form form { display: flex; flex-direction: column; gap: 15px; }
.feedback-form input, .feedback-form textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 0.95rem; background-color: var(--bg-body); color: var(--text-main); outline: none; transition: 0.3s; }
.feedback-form input:focus, .feedback-form textarea:focus { border-color: var(--text-heading); }
.btn-submit { background-color: var(--btn-bg); color: var(--btn-text); padding: 12px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-submit:hover { opacity: 0.8; }
.footer-bottom { text-align: center; font-size: 0.85rem; color: var(--text-muted); }

/* RESPONSIF LAYAR HP */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background-color: var(--bg-header); border-bottom: 1px solid var(--border-color); padding: 20px 0; text-align: center; }
    .nav-links.active { display: flex; }
    .hero-content h2 { font-size: 2rem; }
    .about-wrapper, .prestasi-wrapper { flex-direction: column; }
    .footer-container { flex-direction: column; }
    .single-blog-title { font-size: 1.8rem; }
}