@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&display=swap');

:root {
    --bg: #070707;
    --text: #ffffff;
    --text-muted: #888888;
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-hover: rgba(255, 255, 255, 0.05);
    --accent: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* Custom Text Selection Highlight */
::selection { background: var(--text); color: var(--bg); }
::-moz-selection { background: var(--text); color: var(--bg); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

body { background-color: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.1; }
a, button { cursor: pointer; text-decoration: none; }

/* --- NOISE & AMBIENT --- */
.noise-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; opacity: 0.04; background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E'); }
.ambient-glow { position: fixed; top: -50%; left: -50%; width: 200vw; height: 200vh; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 40%); pointer-events: none; z-index: 1; }

/* --- UTILS --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2;}
.section-padding { padding: 120px 0; }
.section-header { display: flex; align-items: center; gap: 20px; margin-bottom: 50px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.section-num { font-family: 'Syne'; font-size: 1.2rem; color: var(--text-muted); font-weight: 600; }
.section-title { font-size: 1rem; color: var(--text); letter-spacing: 2px; text-transform: uppercase; font-family: 'Inter'; font-weight: 500; }

/* --- NAVBAR & SOCIALS --- */
.nav { position: fixed; top: 0; width: 100%; padding: 30px 50px; display: flex; justify-content: space-between; align-items: center; z-index: 100; mix-blend-mode: difference; }
.logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; color: white; letter-spacing: -1px; }
.nav-links { display: flex; gap: 30px; background: rgba(0,0,0,0.5); padding: 10px 25px; border-radius: 50px; backdrop-filter: blur(10px); border: 1px solid var(--border); }
.nav a { color: var(--text-muted); font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav a:hover { color: var(--text); }
.social-fixed { position: fixed; left: 40px; bottom: 40px; display: flex; flex-direction: column; gap: 20px; z-index: 90; mix-blend-mode: difference; }
.social-fixed a { color: white; font-size: 1.2rem; transition: transform 0.3s; opacity: 0.5; }
.social-fixed a:hover { opacity: 1; transform: translateY(-5px); }

/* --- HERO SECTION --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.status-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 50px; border: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 30px; background: var(--card-bg); }
.status-dot { width: 8px; height: 8px; background-color: #00ff88; border-radius: 50%; box-shadow: 0 0 10px #00ff88; }
.display-text { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -2px; margin-bottom: 10px; }
.hero-role { font-family: 'Inter'; font-weight: 300; font-size: 1.5rem; color: var(--text-muted); margin-bottom: 30px; }
.hero-desc { line-height: 1.8; color: #aaaaaa; font-size: 1.1rem; max-width: 500px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 20px; }
.btn-primary { padding: 15px 30px; background: var(--text); color: var(--bg); border-radius: 4px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.btn-primary:hover { background: #dddddd; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 4px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.btn-secondary:hover { background: var(--card-bg); }

.hero-img-box { display: flex; justify-content: flex-end; }
.img-frame { width: 100%; max-width: 450px; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); padding: 10px; background: var(--card-bg); }
.hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; filter: grayscale(100%); transition: 0.5s ease; }
.img-frame:hover .hero-img { filter: grayscale(0%); }

/* --- ABOUT (SERVICES, SKILLS, EXP) --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.clean-card { background: var(--card-bg); border: 1px solid var(--border); padding: 40px; border-radius: 8px; margin-bottom: 20px; transition: 0.3s ease; }
.clean-card:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.15); }
.card-icon { font-size: 1.8rem; color: var(--text); margin-bottom: 25px; }
.card-title { font-size: 1.3rem; margin-bottom: 10px; font-family: 'Inter'; font-weight: 600; }
.card-desc { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
.timeline-card { padding: 30px 40px; }
.timeline-year { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 10px; }

.skills-container { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-tag { background: var(--card-bg); border: 1px solid var(--border); color: var(--text-muted); padding: 10px 18px; border-radius: 50px; font-size: 0.85rem; font-family: 'Inter', sans-serif; letter-spacing: 0.5px; transition: 0.3s ease; }
.skill-tag:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-3px); }

/* --- WORKS LIST (TEXT ONLY & FILTER) --- */
.filter-container { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 8px 20px; border-radius: 50px; font-family: 'Inter', sans-serif; font-size: 0.85rem; transition: 0.3s ease; }
.filter-btn.active, .filter-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.work-item { transition: opacity 0.4s ease, transform 0.4s ease; }

.works-list { display: flex; flex-direction: column; }
.work-list-header { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 20px 30px; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); }
.work-list-item { display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 35px 30px; border-bottom: 1px solid var(--border); color: var(--text); transition: 0.3s ease; align-items: center; }
.work-list-item:hover { background: var(--card-hover); padding-left: 40px; padding-right: 20px; }
.w-title { font-family: 'Syne'; font-size: 1.8rem; font-weight: 600; }
.w-category { color: var(--text-muted); font-size: 1rem; }
.w-year { display: flex; justify-content: flex-end; align-items: center; gap: 15px; color: var(--text-muted); }
.w-icon { opacity: 0; transform: translateX(-10px); transition: 0.3s ease; color: var(--text); font-size: 1rem; }
.work-list-item:hover .w-icon { opacity: 1; transform: translateX(0); }

/* --- CERTIFICATES GRID (IMAGES) --- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.cert-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: 0.4s ease; padding: 15px; }
.cert-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.2); background: var(--card-hover); }
.cert-img-container { width: 100%; aspect-ratio: 16/11; overflow: hidden; border-radius: 8px; }
.cert-img-container img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: filter 0.5s ease, transform 0.5s ease; }
.cert-card:hover .cert-img-container img { filter: brightness(1); transform: scale(1.05); }
.cert-info { padding: 25px 15px 10px 15px; }
.cert-year { display: block; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.cert-title { font-size: 1.3rem; font-family: 'Inter'; font-weight: 600; color: var(--text); }

/* --- STATS --- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat-box { border-left: 1px solid var(--border); padding-left: 30px; }
.stat-number { font-family: 'Syne'; font-size: 3.5rem; color: var(--text); font-weight: 800; line-height: 1; display: block; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 15px; display: block; }

/* --- TIME WIDGET & FOOTER --- */
.time-widget-box { background: transparent; border: 1px solid var(--border); padding: 40px; border-radius: 12px; position: relative; overflow: hidden; }
.time-widget-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%); pointer-events: none; }
.widget-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 20px; }
.widget-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; letter-spacing: 1px; }
.widget-location { color: var(--text); font-size: 0.85rem; font-weight: 500; }
.time-display { font-family: 'Syne', sans-serif; font-size: 3.5rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 10px; }
.widget-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; }
.direct-contact { display: flex; gap: 20px; }
.direct-contact a { color: var(--text); font-size: 0.9rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; transition: 0.3s ease; display: flex; align-items: center; gap: 5px; }
.direct-contact a:hover { border-bottom-color: var(--text); gap: 8px; }

.scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--text); z-index: 9999; }
.back-to-top { position: fixed; bottom: 40px; right: 40px; width: 45px; height: 45px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--border); color: var(--text); font-size: 1rem; z-index: 90; opacity: 0; pointer-events: none; transition: 0.3s ease; display: flex; justify-content: center; align-items: center; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--text); color: var(--bg); }

footer { padding: 80px 0; text-align: center; border-top: 1px solid var(--border); }
.footer-subtitle { color: var(--text-muted); margin-bottom: 20px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; }
.footer-link { font-size: 3rem; font-family: 'Syne'; font-weight: 800; color: var(--text); transition: opacity 0.3s; display: inline-block; }
.footer-link:hover { opacity: 0.7; }
.footer-copyright { margin-top: 60px; color: #555; font-size: 0.9rem; }

/* --- RESPONSIVE --- */
@media(max-width: 992px) {
    /* Menurunkan ukuran teks judul di hero section agar muat di HP */
    .display-text { font-size: clamp(2.5rem, 8vw, 3.5rem); letter-spacing: -1px; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: left; }
    .hero-img-box { justify-content: flex-start; }
    .img-frame { max-width: 100%; aspect-ratio: 16/9; }
    .about-grid, .stats-grid { grid-template-columns: 1fr; gap: 40px; }
    
    /* Menyembunyikan header tabel karya karena di HP bentuknya bukan tabel lagi */
    .work-list-header { display: none; }
    
    /* PERUBAHAN UTAMA: Membuat daftar karya menyusun ke bawah di HP */
    .work-list-item { 
        display: flex; 
        flex-direction: column; 
        align-items: flex-start; /* Meratakan teks ke kiri */
        gap: 8px; 
        padding: 25px 20px; 
    }
    .work-list-item:hover { padding-left: 20px; padding-right: 20px; background: var(--card-hover); }
    
    .w-title { font-size: 1.5rem; }
    .w-category { font-size: 0.9rem; margin-bottom: 5px; }
    
    /* Memaksa tahun berada di kiri bawah, bukan di kanan */
    .w-year { 
        justify-content: flex-start; 
        width: 100%; 
        font-size: 0.85rem;
    }
    
    /* Memastikan tombol filter bisa membungkus ke baris baru jika layarnya sempit */
    .filter-container { justify-content: flex-start; }
    
    .nav { padding: 20px; }
    .nav-links { display: none; }
    .social-fixed { display: none; }
    .stat-box { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 20px; }
    
    /* Menyesuaikan ukuran teks di footer untuk HP */
    .footer-link { font-size: 2rem; }
}
