:root {
    /* Palet Terang (Light Mode) */
    --light-bg: #ffffff;
    --light-sec: #fff7ed; /* Putih dengan rona oren sangat tipis */
    --text-dark: #431407; /* Coklat Kopi Tua banget buat teks */
    /* --text-muted-dark: #8c5230; */
    --text-muted-dark: #7f5539;
    
    /* Palet Gelap WARM ESPRESSO (Deep & Premium) */
    --dark-bg: #431407;    /* Coklat Kopi Tua (Espresso) */
    --dark-sec: #7c2d12;   /* Coklat Karamel/Rust (Buat kartu/box) */
    
    --text-light: #fff7ed;
    --text-muted-light: #fb923c; /* Oren kalem (Ga terlalu terang, nyaman dibaca) */

    /* Aksen Warna KUNING & OREN (Energetic & Warm) */
    --primary-color: #ea580c; /* Oren Solid (Aksen utama yang mantap) */
    --accent-color: #d97706;  /* Kuning Emas / Mustard (Aksen pelengkap) */
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
    scroll-behavior: smooth; 
}

/* Default Body (Terang) */
body { 
    background: var(--light-bg); 
    color: var(--text-dark); 
    overflow-x: hidden; 
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    width: 100%; 
}

/* Teks Gradasi (Oren ke Kuning) */
.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar Terang Kaca */
.header { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; 
    padding: 20px 0; 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(12px); 
    z-index: 1000; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); 
    transition: var(--transition); 
}
.header .container { display: flex; justify-content: space-between; align-items: center; padding: 0 20px;}
.logo { font-size: 26px; font-weight: 800; text-decoration: none; color: var(--text-dark); }
.logo span { color: var(--primary-color); }
.navbar a { font-size: 15px; font-weight: 500; color: var(--text-muted-dark); text-decoration: none; margin-left: 35px; transition: var(--transition); }
.navbar a:hover, .navbar a.active { color: var(--primary-color); }

/* Global Section Setup */
section { min-height: 100vh; padding: 120px 20px 80px; }
.heading { font-size: 42px; margin-bottom: 60px; font-weight: 800; text-align: center; color: var(--text-dark); }

/* Tombol Elegan (Warm Orange) */
.btn { display: inline-block; padding: 12px 30px; background: var(--primary-color); color: #fff; border-radius: 30px; text-decoration: none; font-weight: 600; transition: var(--transition); border: none; box-shadow: 0 10px 20px rgba(234, 88, 12, 0.2); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(234, 88, 12, 0.4); background: var(--accent-color); color: #fff;}
.btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); box-shadow: none; margin-left: 15px; }
.btn-outline:hover { background: rgba(234, 88, 12, 0.05); transform: translateY(-3px); color: var(--primary-color); border-color: var(--primary-color); box-shadow: 0 10px 20px rgba(234, 88, 12, 0.2); }

/* =========================================
   1. HOME
   ========================================= */
#home { 
    position: relative;
    background: url('../img/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 150px;
}

.hero-bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(234, 88, 12, 0.75),
        rgba(255, 247, 237, 0.6),
        var(--light-bg)
    );
    z-index: 1;
}

.hero-wrapper-center { position: relative; z-index: 2; max-width: 850px; margin: 0 auto; }

.badge-hero {
    display: inline-block; padding: 8px 24px; background: rgba(234, 88, 12, 0.1);
    color: var(--primary-color); border-radius: 30px; font-weight: 600; font-size: 14px; margin-bottom: 25px; border: 1px solid rgba(234, 88, 12, 0.2);
}

.badge2 {
    display: inline-block; 
    padding: 8px 24px; 
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-radius: 30px; 
    font-weight: 700;
    font-size: 14px; 
    margin-bottom: 25px; 
    border: 1px solid rgba(234, 88, 12, 0.3);
    box-shadow: 0 8px 20px rgba(67, 20, 7, 0.1);
}

.hero-text-center h1 { font-size: 64px; font-weight: 800; line-height: 1.15; margin: 10px 0 20px; color: var(--text-dark); }
.hero-text-center p { font-size: 17px; color: var(--text-muted-dark); margin-bottom: 40px; line-height: 1.8; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; }

@media (max-width: 768px) {
    .hero-text-center h1 { font-size: 38px; }
    .hero-buttons { flex-direction: column; }
    .btn-outline { margin-left: 0; margin-top: 10px; }
}

/* =========================================
   2. ABOUT (Bento Box)
   ========================================= */
#about { background: var(--light-sec); }
.about-bento { display: flex; background: #fff; border-radius: 30px; box-shadow: 0 20px 40px rgba(67, 20, 7, 0.05); overflow: hidden; border: 1px solid rgba(67, 20, 7, 0.05); }
.bento-photo { flex: 0 0 40%; background: var(--light-bg); padding: 50px; display: flex; align-items: center; justify-content: center; }
.photo-frame { width: 100%; max-width: 320px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(234, 88, 12, 0.15); border: 8px solid #fff; transform: rotate(-3deg); transition: var(--transition); }
.photo-frame:hover { transform: rotate(0deg) scale(1.03); }
.photo-frame img { width: 100%; height: auto; display: block; object-fit: cover; }

.bento-content { flex: 1; padding: 60px 60px 60px 20px; display: flex; flex-direction: column; justify-content: center; }
.bento-badge { display: inline-block; padding: 6px 16px; background: rgba(234, 88, 12, 0.1); color: var(--primary-color); border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 25px; width: fit-content; }
.bento-content h3 { font-size: 32px; color: var(--text-dark); margin-bottom: 20px; line-height: 1.3; }
.bento-content p { color: var(--text-muted-dark); font-size: 16px; line-height: 1.8; margin-bottom: 40px; }

.lang-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 15px; }
.lang-badge-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; }
.lang-badge { display: flex; align-items: center; gap: 15px; background: #fff; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(0, 0, 0, 0.1); transition: 0.3s; width: 100%; box-sizing: border-box;}
.lang-badge:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(234, 88, 12, 0.05); border-color: rgba(234, 88, 12, 0.2); }
.badge-icon img { width: 32px; height: auto; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: block; transition: 0.3s; }
.lang-badge:hover .badge-icon img { transform: scale(1.1) rotate(3deg); }
.badge-text { display: flex; flex-direction: column; gap: 2px; }
.badge-text p { font-size: 15px; font-weight: 700; color: var(--text-dark); margin: 0; }
.badge-text span { font-size: 12px; color: var(--text-muted-dark); font-weight: 500; }

.lang-badge.active-glow { border: 1.5px solid rgba(234, 88, 12, 0.3); background: rgba(234, 88, 12, 0.02); }
.lang-badge.active-glow:hover { border-color: var(--primary-color); box-shadow: 0 10px 25px rgba(234, 88, 12, 0.15); }

@media (max-width: 768px) {
    .about-bento { flex-direction: column; }
    .bento-photo { padding: 30px; }
    .bento-content { padding: 40px 20px; text-align: center; }
    .lang-badge-wrapper { grid-template-columns: 1fr; }
}

/* =========================================
   3. SKILLS (Warm Espresso Background)
   ========================================= */
#skills { background: var(--dark-bg); color: var(--text-light); }
#skills .heading { color: #fff; }

.tech-grid-4x2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; width: 100%; max-width: 1100px; margin: 0 auto; }
.tech-card-big { background: var(--dark-sec); border-radius: 20px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.03); transition: var(--transition); cursor: pointer; }
.tech-card-big i { font-size: 75px; color: var(--text-muted-light); transition: var(--transition); }
.tech-card-big span { font-size: 18px; font-weight: 700; color: #fff; transition: var(--transition); }

.tech-card-big:hover {
    transform: translateY(-10px) scale(1.03); 
    background: rgba(234, 88, 12, 0.05); 
    box-shadow: 0 20px 50px rgba(234, 88, 12, 0.2); 
    border-color: rgba(234, 88, 12, 0.3);
}
.tech-card-big:hover i { color: var(--primary-color); filter: drop-shadow(0 0 15px var(--primary-color)); transform: scale(1.15); }
.tech-card-big:hover span { color: var(--primary-color); letter-spacing: 1px; }

@media (max-width: 900px) {
    .tech-grid-4x2 { grid-template-columns: repeat(2, 1fr); gap: 20px; } 
    .tech-card-big { padding: 30px 15px; }
    .tech-card-big i { font-size: 60px; }
    .tech-card-big span { font-size: 16px; }
}

/* =========================================
   4. PORTOFOLIO
   ========================================= */
#portofolio { background: var(--dark-bg); color: var(--text-light); }
#portofolio .heading { color: var(--text-light); }
.project-showcase { display: flex; flex-direction: column; gap: 100px; }
.project-row { display: flex; align-items: center; gap: 60px; }
.project-row.reverse { flex-direction: row-reverse; }
.proj-visual { flex: 1; height: 280px; background: var(--dark-sec); border-radius: 24px; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; border: 1px solid #ea580c; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.proj-visual i { font-size: 100px; color: var(--accent-color); opacity: 0.2; }
.proj-desc { flex: 1; }
.proj-desc h3 { font-size: 32px; margin-bottom: 15px; color: var(--text-light); }
.proj-desc p { color: var(--text-muted-light); line-height: 1.8; margin-bottom: 25px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tags span { font-size: 12px; padding: 6px 15px; border-radius: 20px; background: rgba(234, 88, 12, 0.1); color: var(--text-muted-light); font-weight: 500; border: 1px solid rgba(234, 88, 12, 0.2); }

/* =========================================
   5. ARTIKEL
   ========================================= */
#articles { background: var(--light-bg); }
.article-swiper { padding: 20px 0; }
.article-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); transition: var(--transition); height: 100%; }
.article-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(234, 88, 12, 0.1); border-color: rgba(234, 88, 12, 0.2); }

.art-banner { width: 100%; height: 220px; overflow: hidden; }
.art-banner img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.article-card:hover .art-banner img { transform: scale(1.08); }

.art-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.art-meta { font-size: 13px; color: var(--primary-color); font-weight: 700; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.art-title { font-size: 20px; font-weight: 700; color: var(--text-dark); transition: var(--transition); line-height: 1.4; margin-bottom: 20px; }
.article-card:hover .art-title { color: var(--primary-color); }

.art-readmore { font-size: 14px; font-weight: 600; color: var(--text-muted-dark); display: flex; align-items: center; gap: 5px; transition: var(--transition); margin-top: auto; }
.article-card:hover .art-readmore { color: var(--primary-color); gap: 10px; }

.swiper-pagination-bullet-active { background: var(--primary-color) !important; }
.swiper-button-next, .swiper-button-prev { color: var(--primary-color) !important; background: #fff; width: 45px !important; height: 45px !important; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); transition: var(--transition); }
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--primary-color); color: #fff !important; transform: scale(1.1); }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 18px !important; font-weight: 800; }
.swiper-button-prev { left: -10px !important; }
.swiper-button-next { right: -10px !important; }

/* =========================================
   6. EXPERIENCE & EDUCATION (Timeline)
   ========================================= */
#experience { background: var(--light-sec); }
.timeline-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1000px; margin: 0 auto; }
.timeline-title { font-size: 24px; color: var(--text-dark); margin-bottom: 40px; display: flex; align-items: center; gap: 12px; }
.timeline-title i { color: var(--primary-color); font-size: 28px; background: #fff; padding: 10px; border-radius: 12px; box-shadow: 0 10px 20px rgba(234, 88, 12, 0.1); }
.timeline-box { border-left: 2px dashed rgba(234, 88, 12, 0.3); padding-left: 35px; }
.timeline-item { position: relative; margin-bottom: 40px; background: #fff; padding: 35px 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.04); transition: var(--transition); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(234, 88, 12, 0.1); border-color: rgba(234, 88, 12, 0.2); }

.time-dot { position: absolute; left: -45px; top: 35px; width: 18px; height: 18px; background: var(--light-sec); border: 4px solid var(--primary-color); border-radius: 50%; transition: var(--transition); }
.timeline-item:hover .time-dot { background: var(--primary-color); box-shadow: 0 0 15px var(--primary-color); transform: scale(1.3); }

.time-date { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary-color); background: rgba(234, 88, 12, 0.1); padding: 6px 16px; border-radius: 20px; margin-bottom: 15px; }
.timeline-item h4 { font-size: 20px; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.time-loc { font-size: 14px; font-weight: 600; color: var(--text-muted-dark); margin-bottom: 15px; }
.time-desc { font-size: 14px; color: var(--text-muted-dark); line-height: 1.7; }

@media (max-width: 900px) {
    .timeline-wrapper { grid-template-columns: 1fr; gap: 60px; }
}

/* =========================================
   7. CONTACT (Interactive Warm Glow)
   ========================================= */
#contact { background: var(--light-bg); padding-bottom: 120px; }
.contact-box { background: var(--dark-bg); border-radius: 30px; padding: 80px 40px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.1); z-index: 1; }
.contact-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.15) 0%, transparent 60%);
    z-index: -1; animation: rotateGlow 15s linear infinite;
}
@keyframes rotateGlow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.contact-box .heading { color: #fff; margin-bottom: 20px; font-size: 42px; }
.contact-box p { color: var(--text-muted-light); font-size: 16px; max-width: 600px; margin: 0 auto 40px; line-height: 1.8; }
.contact-links { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }

.btn-contact { display: flex; align-items: center; gap: 10px; padding: 15px 40px; background: linear-gradient(to right, var(--primary-color), var(--accent-color)); color: #fff; border-radius: 30px; font-size: 18px; font-weight: 700; text-decoration: none; transition: var(--transition); box-shadow: 0 15px 30px rgba(234, 88, 12, 0.3); }
.btn-contact:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 20px 40px rgba(234, 88, 12, 0.5); color: #fff; }

.social-interactive { display: flex; gap: 15px; }
.social-btn { width: 55px; height: 55px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); color: #fff; border-radius: 50%; font-size: 24px; text-decoration: none; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(255,255,255,0.1); }
.social-btn:hover { background: var(--primary-color); transform: translateY(-10px) rotate(360deg); box-shadow: 0 10px 20px rgba(234, 88, 12, 0.4); border-color: var(--primary-color); color: #fff; }

@media (max-width: 768px) {
    .contact-box { padding: 50px 20px; }
    .contact-box .heading { font-size: 32px; }
    .contact-links { flex-direction: column; gap: 20px; }
}

/* =========================================
   8. CERTIFICATIONS
   ========================================= */
#certifications { background: var(--light-bg); overflow: hidden; padding-bottom: 80px; }
.cert-swiper { width: 100%; padding-top: 50px; padding-bottom: 50px; }
.cert-swiper .swiper-slide { width: 380px; height: 270px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); overflow: hidden; position: relative; background: #fff; transition: all 0.4s ease; }
.cert-card { width: 100%; height: 100%; position: relative; }
.cert-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; border: none; }

.cert-info { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(67, 20, 7, 0.95); backdrop-filter: blur(8px); padding: 20px; color: #fff; transform: translateY(100%); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-top: 1px solid rgba(255,255,255,0.1); }
.cert-swiper .swiper-slide-active .cert-info { transform: translateY(0); }
.cert-info h4 { font-size: 16px; margin-bottom: 5px; color: var(--accent-color); font-weight: 700; }
.cert-info p { font-size: 13px; color: var(--text-light); margin: 0; }

@media (max-width: 768px) {
    .cert-swiper .swiper-slide { width: 280px; height: 200px; }
    .cert-info { padding: 15px; }
    .cert-info h4 { font-size: 14px; }
}
.cert-swiper .swiper-slide:not(.swiper-slide-active) { opacity: 0.4; filter: blur(2px); }
.cert-swiper .swiper-slide-active { opacity: 1; filter: blur(0px); }

/* =========================================
   9. FOOTER (Warm Espresso Mode)
   ========================================= */
.footer { background: var(--dark-bg); color: #fff; padding: 80px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; font-size: 14px; }
.footer p { margin: 0; }

.footer-content { display: grid; grid-template-columns: 1.5fr 2fr 1.2fr; gap: 60px; margin-bottom: 60px; align-items: start; }
.footer-about, .footer-nav, .footer-social { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

.footer-logo { font-size: 24px; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
.footer-logo span { color: var(--primary-color); }
.footer-about p { color: var(--text-muted-light); line-height: 1.8; font-size: 14px; margin: 0; }
.footer-nav h4, .footer-social h4 { font-size: 14px; font-weight: 700; margin-bottom: 25px; color: #fff; text-transform: uppercase; letter-spacing: 2px; }

.footer-nav-links { display: flex; gap: 60px; width: 100%; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav ul li { margin-bottom: 12px; }
.footer-nav ul li a { color: var(--text-muted-light); text-decoration: none; font-size: 14px; transition: var(--transition); display: block; }
.footer-nav ul li a:hover { color: var(--primary-color); transform: translateX(5px); }

.social-icons-footer { display: flex; gap: 12px; justify-content: flex-start; }
.social-icons-footer a { width: 42px; height: 42px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; border-radius: 10px; color: #fff; font-size: 18px; transition: var(--transition); border: 1px solid rgba(255, 255, 255, 0.1); }
.social-icons-footer a:hover { background: var(--primary-color); border-color: var(--primary-color); transform: translateY(-5px); }

.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted-light); }

@media (max-width: 992px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-about, .footer-nav, .footer-social { align-items: center; text-align: center; }
    .footer-nav-links { justify-content: center; }
    .social-icons-footer { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; }
}