/* =========================================
   1. PENGATURAN DASAR & VARIABEL
   ========================================= */
:root {
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --accent-gold: #eab308;
    --glass-bg: rgba(15, 23, 42, 0.45); 
    --glass-border: rgba(255, 255, 255, 0.15);
    --bg-dark: #0f172a;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body.no-scroll { overflow: hidden; height: 100vh; }

/* =========================================
   2. LAYAR OPENING (INTRO SCREEN)
   ========================================= */
#intro-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: var(--bg-dark); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}
.intro-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.intro-profile-pic { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-gold); box-shadow: 0 0 40px rgba(234, 179, 8, 0.4); margin-bottom: 20px; }
.intro-logo { font-size: 2.5rem; font-weight: 800; letter-spacing: 5px; color: var(--text-main); text-align: center; }
.intro-hidden { opacity: 0; pointer-events: none; transform: scale(1.1); }

/* =========================================
   3. BACKGROUND & OVERLAY
   ========================================= */
.bg-image { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: url('backgroundhome.jpg') no-repeat center center/cover; z-index: -3; }
.bg-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(10, 15, 28, 0.6) 100%); z-index: -2; }

/* =========================================
   4. SOSIAL MEDIA SIDEBAR
   ========================================= */
.social-sidebar { position: fixed; left: 40px; bottom: 0; display: flex; flex-direction: column; gap: 25px; z-index: 100; }
.social-sidebar a { color: var(--text-muted); font-size: 1.5rem; transition: 0.3s ease; }
.social-sidebar a:hover { color: var(--accent-gold); transform: translateY(-5px) scale(1.1); }
.social-sidebar::after { content: ''; width: 2px; height: 90px; background: var(--text-muted); margin: 0 auto; opacity: 0.5; }

/* =========================================
   5. NAVIGASI HEADER
   ========================================= */
header { display: flex; justify-content: space-between; align-items: center; padding: 30px 8%; position: fixed; top: 0; width: 100%; z-index: 100; transition: all 0.4s ease; background: linear-gradient(to bottom, rgba(10, 15, 28, 0.9), transparent); }
header.scrolled { padding: 20px 8%; background: rgba(10, 15, 28, 0.95); backdrop-filter: blur(10px); box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.logo { font-size: 2rem; font-weight: 800; letter-spacing: 2px; }
.dot-gold { color: var(--accent-gold); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 400; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }
.menu-toggle { display: none; cursor: pointer; z-index: 101; }
.menu-toggle .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-main); transition: 0.3s; }

/* =========================================
   6. KOMPONEN UMUM KACA (GLASS)
   ========================================= */
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); padding: 50px; border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); max-width: 650px;
    border-top: 1px solid rgba(255,255,255,0.3); border-left: 1px solid rgba(255,255,255,0.3);
}

.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); padding: 40px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); width: 100%;
    border-top: 1px solid rgba(255,255,255,0.2); border-left: 1px solid rgba(255,255,255,0.2);
}

/* =========================================
   7. HERO SECTION
   ========================================= */
.hero { display: flex; align-items: center; justify-content: space-between; min-height: 100vh; padding: 100px 8% 0 12%; gap: 50px; position: relative; }
.greeting { color: var(--accent-gold); font-weight: 600; margin-bottom: 10px; }
.hero-text h2 { font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.1; margin-bottom: 25px; font-weight: 800; }
.highlight { background: linear-gradient(to right, #fff, var(--accent-gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.roles { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.role-badge { background: rgba(234, 179, 8, 0.2); color: var(--accent-gold); padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; border: 1px solid rgba(234, 179, 8, 0.5); display: flex; align-items: center; gap: 8px; }
.description { font-size: clamp(1rem, 1.2vw, 1.1rem); color: var(--text-main); line-height: 1.8; margin-bottom: 40px; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }

.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 14px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; }
.btn-primary { background: var(--accent-gold); color: var(--bg-dark); box-shadow: 0 10px 20px rgba(234, 179, 8, 0.3); }
.btn-primary:hover { transform: translateY(-3px); background: #facc15; }
.btn-secondary { background: rgba(0,0,0,0.4); color: var(--text-main); border: 2px solid var(--text-muted); }
.btn-secondary:hover { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(0,0,0,0.6); }

.hero-visual { position: relative; width: 400px; height: 400px; display: flex; justify-content: center; align-items: center; }
.circle-gong { width: 280px; height: 280px; border-radius: 50%; background: rgba(15, 23, 42, 0.5); border: 2px solid var(--accent-gold); display: flex; justify-content: center; align-items: center; box-shadow: 0 0 50px rgba(234, 179, 8, 0.2); backdrop-filter: blur(5px); }
.inner-circle { width: 200px; height: 200px; border-radius: 50%; background: linear-gradient(135deg, rgba(234,179,8,0.8), rgba(138,109,28,0.8)); display: flex; justify-content: center; align-items: center; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.center-icon { font-size: 5rem; color: var(--bg-dark); }
.orbit-icon { position: absolute; font-size: 1.8rem; color: var(--accent-gold); background: var(--glass-bg); padding: 15px; border-radius: 50%; border: 1px solid var(--glass-border); animation: float 4s ease-in-out infinite; backdrop-filter: blur(8px); }
.icon-1 { top: 0; left: 10%; animation-delay: 0s; } .icon-2 { bottom: 10%; right: 0; animation-delay: 1s; } .icon-3 { top: 20%; right: -10%; animation-delay: 2s; } .icon-4 { bottom: 0; left: 0; animation-delay: 3s; }

.scroll-down { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.8; }
.scroll-down p { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.mouse { width: 26px; height: 42px; border: 2px solid var(--text-muted); border-radius: 20px; position: relative; }
.mouse::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--accent-gold); border-radius: 4px; animation: scrollWheel 2s infinite; }

/* =========================================
   8. TENTANG SAYA & PENDIDIKAN
   ========================================= */
.about-section, .skills-section { padding: 100px 8% 50px 12%; position: relative; z-index: 10; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; font-weight: 800; }
.section-title-left { text-align: left; margin-bottom: 40px; }
.section-title-left h2 { font-size: 2rem; font-weight: 800; }
.line-gold { width: 60px; height: 4px; background-color: var(--accent-gold); margin: 15px auto 0; border-radius: 2px; }

/* About Panel */
.about-container { max-width: 900px; margin: 0 auto; }
.about-container .glass-panel p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }
.about-container .glass-panel p:last-child { margin-bottom: 0; }
.about-container .glass-panel strong { color: var(--accent-gold); font-weight: 600; }

/* Skills & Education Grid */
.skills-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1100px; margin: 0 auto; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 30px; }
.timeline-item { border-left: 4px solid var(--accent-gold); padding: 30px; transition: transform 0.3s ease; }
.timeline-item:hover { transform: translateX(10px); }
.timeline-item .date { display: inline-block; background: rgba(234, 179, 8, 0.2); color: var(--accent-gold); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; margin-bottom: 15px; }
.timeline-item h3 { font-size: 1.5rem; margin-bottom: 5px; color: var(--text-main); }
.timeline-item h4 { color: var(--text-muted); font-weight: 400; margin-bottom: 15px; }
.timeline-item p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* Skills Grid */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.skill-box { padding: 25px 15px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 15px; transition: 0.3s; }
.skill-box:hover { transform: translateY(-10px); border-color: var(--accent-gold); box-shadow: 0 15px 30px rgba(234, 179, 8, 0.2); }
.skill-box i { font-size: 2.5rem; color: var(--accent-gold); }
.skill-box span { font-weight: 600; font-size: 0.95rem; color: var(--text-main); }

/* =========================================
   9. FOOTER COPYRIGHT
   ========================================= */
footer {
    position: relative;
    z-index: 10;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 5% 80px 5%;
    text-align: center;
    margin-top: 50px;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* =========================================
   10. KUMPULAN KEYFRAMES ANIMASI
   ========================================= */
.animate-float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }
.animate-fade-up { opacity: 0; animation: fadeUp 1s forwards ease-out; }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes scrollWheel { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 15px); opacity: 0; } }

/* =========================================
   11. MEDIA QUERIES (UNTUK HP & TABLET)
   ========================================= */

@media screen and (max-width: 968px) {
    /* Responsive Header & Menu */
    header { padding: 20px 5%; background: rgba(10, 15, 24, 0.95); backdrop-filter: blur(10px); }
    
    /* TAMBAHKAN KODE INI UNTUK MENGECILKAN LOGO DI HP */
    .logo { font-size: 1.3rem; letter-spacing: 1px; }
    
    .social-sidebar { display: none; }
    /* ... (sisa kode di bawahnya biarkan saja) ... */
    
    /* Responsive Hero */
    .hero { flex-direction: column-reverse; padding: 120px 5% 80px 5%; text-align: center; justify-content: center; gap: 30px; }
    .glass-card { padding: 30px 20px; max-width: 100%; }
    .roles, .hero-buttons { justify-content: center; }
    .hero-visual { width: 250px; height: 250px; margin: 0 auto; }
    .circle-gong { width: 180px; height: 180px; }
    .inner-circle { width: 120px; height: 120px; }
    .center-icon { font-size: 2.5rem; }
    .orbit-icon { padding: 10px; font-size: 1rem; }
    .scroll-down { bottom: 10px; }

    /* Responsive About & Skills */
    .about-section, .skills-section { padding: 60px 5%; }
    /* Memastikan konten mengisi layar di HP dan kolom menumpuk */
    .skills-container { grid-template-columns: 1fr; gap: 60px; max-width: 100%; } 
    .section-title-left { text-align: center; }
    .glass-panel { padding: 25px; }

    /* Menu HP */
    .menu-toggle { display: block; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: rgba(10, 15, 28, 0.98); flex-direction: column; justify-content: center; transition: 0.4s; z-index: 99; }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 1.5rem; justify-content: center; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Footer Responsif */
   footer { padding: 20px 5% 80px 5%; }
}
/* =========================================
   12. STYLING PORTOFOLIO
   ========================================= */
.portfolio-section {
    padding: 100px 8%;
    background: rgba(10, 15, 28, 0.3);
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 1.1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: translateY(-15px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.portfolio-item h3 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.portfolio-item p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    color: var(--accent-gold);
}

/* Desain Tombol Portofolio Baru */
.btn-project {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(234, 179, 8, 0.05); /* Latar belakang transparan emas */
    color: var(--accent-gold); /* Teks warna emas */
    border: 1px solid var(--accent-gold); /* Garis pinggir emas */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: fit-content; /* Ukuran tombol menyesuaikan panjang teks */
}

/* Efek saat tombol disorot mouse (Hover) */
.btn-project:hover {
    background: var(--accent-gold); /* Tombol terisi warna emas */
    color: var(--bg-dark); /* Teks berubah gelap agar kontras */
    transform: translateY(-4px); /* Tombol sedikit terangkat */
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3); /* Muncul bayangan bercahaya */
}

/* Animasi Ikon Panah di dalam tombol */
.btn-project i {
    transition: transform 0.3s ease;
}

.btn-project:hover i {
    transform: translateX(5px); /* Ikon panah bergeser ke kanan */
}

.more-works {
    margin-top: 80px;
    text-align: center;
}

.more-works p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Penyesuaian Responsif untuk Tablet/HP */
@media screen and (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
.portfolio-page .portfolio-content {
    padding-top: 150px;
    padding-bottom: 50px;
    min-height: 100vh;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 8%;
    margin-top: 50px;
}

.portfolio-item {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

/* =========================================
   13. STYLING LIST KESENIAN (ART PAGE)
   ========================================= */
.list-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.list-category {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.art-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.art-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.art-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-gold);
    background: rgba(234, 179, 8, 0.05);
}

.art-year {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.art-event {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.art-detail {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.arrow-icon {
    font-size: 1.2rem;
    color: var(--glass-border);
    transition: 0.3s;
}

.art-item:hover .arrow-icon {
    color: var(--accent-gold);
    transform: translateX(5px);
}

/* Responsif untuk HP */
@media screen and (max-width: 768px) {
    .art-event { font-size: 1.1rem; }
    .art-item { padding: 20px !important; }
    .arrow-icon { display: none; }
}

/* Responsif untuk HP */
@media screen and (max-width: 768px) {
    .art-event { font-size: 1.1rem; }
    .art-item { padding: 20px !important; }
    .arrow-icon { display: none; }
}

/* =========================================
   14. STYLING TOMBOL RESUME / CV
   ========================================= */
.btn-download-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 24px;
    background: rgba(234, 179, 8, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-download-cv:hover {
    background: var(--accent-gold);
    color: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(234, 179, 8, 0.3);
}

/* =========================================
   15. PORTFOLIO TABS & VIDEO EMBED
   ========================================= */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.tab-btn.active {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3);
}

.tab-content {
    display: none; /* Sembunyikan semua konten secara default */
    animation: fadeInTab 0.5s ease-in-out forwards;
}

.tab-content.active {
    display: block; /* Tampilkan hanya yang aktif */
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Wadah Video Responsif (Biar di HP tidak terpotong) */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Rasio 16:9 untuk YouTube/Video */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Wadah Khusus untuk Instagram Embed (Diperbarui untuk Reels) */
/* Wadah Khusus untuk Instagram Embed (Mode Potong Komentar) */
.ig-container {
    position: relative;
    width: 100%;
    padding-bottom: 115%; /* <--- UBAH ANGKA INI, turunkan menjadi 115% atau 120% */
    border-radius: 10px;
    overflow: hidden; /* Ini yang bertugas memotong bagian putih di bawah */
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    background: #ffffff;
}
.ig-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Container khusus untuk memotong bagian hitam Google Drive */
.drive-fix-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 62%; /* Sedikit lebih tinggi dari 16:9 untuk membuang UI Google */
    overflow: hidden;
    background: #000;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.drive-fix-container iframe {
    position: absolute;
    top: -5%; /* Menggeser ke atas untuk membuang judul file */
    left: -10%; /* Menggeser ke kiri untuk membuang margin hitam */
    width: 110%; /* Memperbesar lebar agar margin hitam terpotong */
    height: 110%; /* Memperbesar tinggi agar tombol-tombol atas tersembunyi */
    border: 0;
}

/* Menggeser Tombol Translate ke Atas */
.gtranslate_wrapper {
    position: relative;
    bottom: 60px !important; /* <--- Ubah angka ini. Makin besar angkanya, makin naik tombolnya */
    z-index: 9999;
}

/* =========================================
   16. BERITA & KARYA TULIS (News & Horizontal Scroll)
   ========================================= */

/* Wadah Berita Geser Samping */
.news-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important; /* Paksa berbaris ke samping */
    gap: 25px;
    overflow-x: auto;
    padding: 10px 5px 30px 5px; /* Memberi ruang agar shadow tidak terpotong */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Desain Scrollbar Emas di Laptop */
.news-wrapper::-webkit-scrollbar {
    height: 8px;
}
.news-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.news-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

/* Memaksa Desain Kotak (Bukan Memanjang) */
.news-card {
    flex: 0 0 auto !important; /* Paksa jangan melar menutupi layar */
    width: 350px !important; /* Ukuran lebar pas untuk 3 kotak di laptop */
    max-width: 85vw !important; /* Di HP: kartu akan muat 85% layar agar kartu sebelahnya "mengintip" */
    scroll-snap-align: start;
    border-left: 4px solid var(--accent-gold) !important; 
    padding: 25px !important;
    background: var(--glass-bg);
    border-radius: 15px;
    box-sizing: border-box; /* Pastikan padding tidak membuat kotak membesar */
    white-space: normal; /* Memastikan teks tetap rapi turun ke bawah */
}

/* Merapikan jarak elemen di dalam kartu berita */
.news-card h3 {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    font-size: 1.25rem;
}

.news-card p {
    font-size: 0.95rem;
    margin-bottom: 20px !important;
}

/* Garis Pemisah Antar Section */
.section-divider {
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.4), transparent);
    margin: 40px auto 70px auto; /* 70px jarak bawah agar lega */
}

/* =========================================
   DESAIN BERITA RAMPING (COMPACT)
   ========================================= */
.news-card-compact {
    flex: 0 0 auto !important;
    width: 260px !important; /* Jauh lebih ramping */
    max-width: 75vw !important;
    scroll-snap-align: start;
    border-left: 3px solid var(--accent-gold) !important; 
    padding: 15px 20px !important; /* Padding atas bawah dikecilkan */
    background: var(--glass-bg);
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.news-card-compact .news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.news-card-compact .news-badge {
    background: transparent;
    color: var(--accent-gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    border: 1px solid var(--accent-gold);
    margin: 0;
}

.news-card-compact h3 {
    font-size: 1.05rem !important; /* Judul tidak terlalu besar */
    margin: 5px 0 10px 0 !important;
    line-height: 1.3;
    white-space: normal;
}

.news-card-compact .news-link {
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    transition: 0.3s ease;
}

.news-card-compact .news-link:hover {
    letter-spacing: 1px;
}

/* =========================================
   PENDIDIKAN & KEAHLIAN MINIMALIS
   ========================================= */

/* Pendidikan Timeline Bersih */
.timeline-minimal {
    position: relative;
    border-left: 2px solid rgba(234, 179, 8, 0.3);
    padding-left: 25px;
    margin-left: 10px;
}

.timeline-item-minimal {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item-minimal::before {
    content: '';
    position: absolute;
    left: -32px; /* Menempatkan titik tepat di atas garis */
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.date-minimal {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.timeline-item-minimal h3 {
    font-size: 1.15rem;
    margin: 0 0 5px 0;
    color: var(--text-main);
}

.timeline-item-minimal h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 0 8px 0;
}

.timeline-item-minimal p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Keahlian Gaya Kapsul (Pills) */
.skills-pills {
    display: flex;
    flex-wrap: wrap; /* Jika penuh, otomatis turun ke bawah */
    gap: 12px;
}

.skill-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 50px; /* Membuat bentuk kapsul bulat */
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-pill i {
    color: var(--accent-gold);
    font-size: 1rem;
}

.skill-pill:hover {
    background: rgba(234, 179, 8, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(234, 179, 8, 0.15);
}

/* =========================================
   PERBAIKAN TAMPILAN KEAHLIAN DI HP
   ========================================= */
@media (max-width: 768px) {
    /* 1. Paksa Keahlian menjadi 2 Kolom menyamping */
    .skills-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* 2. Kurangi ketebalan kotak agar tidak sesak */
    .skill-box {
        padding: 15px 10px !important;
        min-height: auto !important;
    }

    /* 3. Sesuaikan ukuran Ikon dan Teks */
    .skill-box i {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }

    .skill-box span {
        font-size: 0.85rem !important;
        line-height: 1.2;
    }
}

/* --- RESPONSIVE DESIGNS UNTUK HP --- */
@media (max-width: 768px) {
    /* Merapikan Tab Utama (Digital, Musik, Edukasi, Writings) */
    .portfolio-tabs {
        display: flex;
        flex-wrap: wrap; /* Agar otomatis pindah baris jika penuh */
        justify-content: center;
        gap: 10px; /* Jarak antar tombol */
        padding: 0 10px;
    }

    .tab-btn {
        flex: 1 1 45%; /* Membuat tombol menjadi 2 kolom (45% lebar per kolom) */
        padding: 12px 5px !important;
        font-size: 0.85rem !important;
        margin: 0 !important; /* Menghapus margin bawaan agar tidak berantakan */
    }

    /* Merapikan Sub-Tab (Esai & Opini, Artikel Akademis) */
    .sub-tabs-container {
        display: flex;
        flex-wrap: nowrap; /* Tetap satu baris agar terlihat seperti sub-menu */
        justify-content: center;
        gap: 8px;
        margin-bottom: 30px !important;
    }

    .sub-tab-btn {
        flex: 1; /* Lebar seimbang */
        padding: 10px 5px !important;
        font-size: 0.8rem !important;
        white-space: nowrap; /* Mencegah teks turun ke bawah */
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}