/* ==========================================================================
   1. SETUP FONT & VARIABEL GLOBAL
   Penjelasan: Mengimpor font Poppins dan menyimpan semua warna dasar website.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --bg-gradient: radial-gradient(circle at top left, #0f0c29, #302b63, #24243e);
    --text-color: #ffffff;
    --text-muted: #b0b0d0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15); 
    --navbar-bg: rgba(15, 12, 41, 0.6); 
    --primary-neon: #00f3ff; 
    --secondary-neon: #bc13fe; 
    --accent-neon: #ff0055; 
    --shadow-color: rgba(0, 0, 0, 0.37);
    --filter-icon: drop-shadow(0 0 5px rgba(255,255,255,0.5));
    --cert-bg: #000;
    --mobile-menu-bg: #0f0c29; 
}

/* Pengaturan warna saat tombol mode terang (Light Mode) ditekan */
body.light-mode {
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --text-color: #333333;
    --text-muted: #555555;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: 1px solid rgba(255, 255, 255, 0.9);
    --glass-highlight: rgba(255, 255, 255, 1);
    --navbar-bg: rgba(255, 255, 255, 0.8); 
    --primary-neon: #0061f2; 
    --secondary-neon: #6900c7;
    --accent-neon: #d63031;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --filter-icon: none; 
    --cert-bg: #f0f0f0;
    --mobile-menu-bg: #ffffff;
}

/* ==========================================================================
   2. RESET GLOBAL & SCROLLBAR
   Penjelasan: Mengatur desain dasar seluruh website dan tampilan batang scroll.
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* Desain Batang Scroll di sebelah kanan layar */
::-webkit-scrollbar { 
    width: 10px; 
}

::-webkit-scrollbar-track { 
    background: #0f0c29; 
}

::-webkit-scrollbar-thumb { 
    background: linear-gradient(var(--primary-neon), var(--secondary-neon)); 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: var(--primary-neon); 
}

/* Mencegah halaman meluber secara horizontal */
html, 
body { 
    width: 100%; 
    max-width: 100%;
    overflow-x: hidden; 
}

/* Latar Belakang Website */
body {
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; 
    position: relative;
    padding-top: 0; 
}

.container { 
    max-width: 1200px; 
    width: 100%; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ==========================================================================
   3. DESAIN NAVBAR (MENU NAVIGASI) & LOGO
   ========================================================================== */

.navbar-container { 
    position: fixed; 
    top: 20px; 
    z-index: 9999; 
    padding: 0 10px; 
    width: 100%;
    max-width: 1300px; 
    margin: 0 auto; 
    left: 50%;
    transform: translateX(-50%);
}

.navbar {
    background: var(--navbar-bg); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    height: 70px; 
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px; 
    margin-top: 0; 
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    position: relative;
    width: 100%; 
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    height: 45px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img { 
    height: 250%; 
    width: auto; 
    object-fit: contain; 
    border-radius: 0; 
    filter: none !important; 
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.logo-container:hover img { 
    transform: none !important; 
    cursor: default;
}

/* ==========================================================================
   3B. NAV-LINKS (MENU TEKS) & EFEK NEON NAVBAR
   ========================================================================== */

.nav-links ul { 
    display: flex; 
    list-style: none; 
    gap: 10px; 
    align-items: center; 
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 4px; 
    text-decoration: none; 
    color: var(--text-color);
    font-weight: 600; 
    font-size: 0.7rem; 
    text-transform: uppercase;
    letter-spacing: 0.3px; 
    transition: all 0.3s;
    position: relative; 
    padding: 5px 0;
    white-space: nowrap; 
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-neon);
    transition: width 0.3s ease-out;
    box-shadow: 0 0 10px var(--primary-neon);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover { 
    color: #fff; 
    text-shadow: 0 0 8px var(--primary-neon), 0 0 20px var(--secondary-neon);
    transform: translateY(-2px);
}

/* ==========================================================================
   3C. PENGATURAN KHUSUS FOTO / IKON DI DALAM NAVBAR
   Penjelasan: Di sini letak untuk mengatur Besar/Kecil Ikon di Navbar.
   Ubah angka "width" dan "height" sesuai kebutuhan Anda.
   ========================================================================== */

.nav-links a img {
    display: block;
    margin: 0 !important; 
    padding: 0 !important;
    filter: invert(1) brightness(200%); 
    transition: filter 0.3s ease;
}

body.light-mode .nav-links a img {
    filter: none; 
}

/* Pengaturan Ukuran Masing-masing Ikon Navbar */
.nav-links a img[src*="home.png"] { 
    width: 18px !important; 
    height: 18px !important; 
}

.nav-links a img[src*="profil.png"] { 
    width: 18px !important; 
    height: 18px !important; 
}

.nav-links a img[src*="skill.png"] { 
    width: 18px !important; 
    height: 18px !important; 
}

.nav-links a img[src*="proyek.png"] { 
    width: 18px !important; 
    height: 18px !important; 
}

.nav-links a img[src*="sertif.png"] { 
    width: 24px !important; 
    height: 24px !important; 
}

.nav-links a img[src*="tentang kami.png"] { 
    width: 18px !important; 
    height: 18px !important; 
}

.nav-links a img[src*="komen&rate.png"] { 
    width: 24px !important; 
    height: 18px !important; 
}

.nav-links a img[src*="kontak.png"] { 
    width: 24px !important; 
    height: 24px !important; 
}

.nav-links a img[src*="dasbor.png"] { 
    width: 30px !important; 
    height: 30px !important; 
}

/* ==========================================================================
   3D. TOMBOL KONTROL & HAMBURGER MENU (MOBILE)
   ========================================================================== */

.controls { 
    display: flex; 
    gap: 5px; 
    align-items: center; 
    margin-left: 5px; 
}

.control-btn {
    background: rgba(255, 255, 255, 0.1) !important; 
    border: 1px solid rgba(255, 255, 255, 0.2) !important; 
    color: var(--text-color); 
    padding: 5px 10px; 
    border-radius: 30px;
    cursor: pointer; 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    font-weight: bold; 
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 3px;
    height: 30px; 
    font-size: 0.7rem;
}

.control-btn:hover { 
    background: rgba(255, 255, 255, 0.25) !important; 
    transform: translateY(-2px); 
    border-color: var(--primary-neon) !important; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

body.light-mode .control-btn {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important; 
    color: #333;
}

body.light-mode .control-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--primary-neon) !important;
}

.hamburger { 
    display: none; 
    flex-direction: column; 
    justify-content: space-between;
    width: 30px; 
    height: 20px; 
    cursor: pointer; 
    z-index: 2000; 
    background: transparent; 
    border: none; 
    padding: 0;
}

.hamburger span {
    display: block; 
    width: 100%; 
    height: 3px; 
    background-color: #fff; 
    border-radius: 3px; 
    transition: 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) { 
    transform: translateY(8px) rotate(45deg); 
}

.hamburger.active span:nth-child(2) { 
    opacity: 0; 
}

.hamburger.active span:nth-child(3) { 
    transform: translateY(-9px) rotate(-45deg); 
}

/* ==========================================================================
   4. SECTION UTAMA & EFEK KARTU KACA
   ========================================================================== */

section { 
    padding: 100px 20px; 
    min-height: 85vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    overflow: hidden; 
}

section#home.hidden {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

h2, 
.neon-title, 
.neon-title-blue { 
    text-align: center; 
    margin-bottom: 50px; 
    font-size: 2.5rem; 
    text-transform: uppercase; 
    text-shadow: 0 0 10px var(--secondary-neon); 
    color: var(--text-color);
}

.neon-title-blue { 
    text-shadow: 0 0 10px var(--primary-neon); 
}

body.light-mode h2, 
body.light-mode .neon-title { 
    text-shadow: none; 
    color: var(--secondary-neon); 
}

body.light-mode .neon-title-blue { 
    text-shadow: none; 
    color: var(--primary-neon); 
}

/* ==========================================================================
   4B. ANIMASI 10D HERO REVEAL 
   ========================================================================== */

.hero { 
    margin-top: 80px; 
    perspective: 3000px; 
    transform-style: preserve-3d;
    overflow: visible; 
}

.hero h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    line-height: 1.1; 
    color: var(--text-color); 
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.4); 
    opacity: 0; 
    transform-origin: center center;
    animation: hero10DReveal 3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.2s; 
}

body.light-mode .hero h1 { 
    text-shadow: none; 
    color: #333; 
}

.hero p { 
    font-size: 1.3rem; 
    color: var(--text-muted); 
    max-width: 700px; 
    font-weight: 300; 
    opacity: 0; 
    transform-origin: center center;
    animation: hero10DReveal 3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.6s; 
}

/* ==========================================================================
   4C. PENGATURAN KARTU (CARD) & EFEK 3D HOVER
   ========================================================================== */

.profil-card, 
.tech-item, 
.project-card, 
.cert-card, 
.vm-card {
    background: var(--card-bg); 
    border: 1px solid var(--card-border);
    backdrop-filter: blur(15px); 
    border-radius: 20px; 
    color: var(--text-color);
    box-shadow: 0 0 20px var(--shadow-color); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.profil-card { 
    padding: 50px; 
    width: 100%; 
    max-width: 700px; 
    text-align: left; 
    position: relative; 
    z-index: 2; 
    margin-left: auto; 
    margin-right: auto;
}

.profil-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 0 50px var(--secondary-neon); 
}

.profil-card h2 { 
    text-align: center; 
    margin: 0 auto 30px auto; 
    border-bottom: 2px solid var(--secondary-neon); 
    display: table; 
    padding-bottom: 10px; 
}

.detail-row { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--card-border); 
    padding-bottom: 10px; 
}

.detail-label { 
    font-weight: bold; 
    color: var(--primary-neon); 
}

.profil-bg-decoration { 
    position: absolute; 
    width: 120%; 
    height: 120%; 
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 60%); 
    z-index: 1; 
    pointer-events: none; 
}

@media (min-width: 769px) {
    .project-card:hover, 
    .cert-card:hover, 
    .profil-card:hover, 
    .vm-card:hover { 
        transform: translateY(-15px) scale(1.02) rotateX(5deg); 
        box-shadow: 0 30px 60px rgba(0, 243, 255, 0.25); 
        border-color: var(--primary-neon);
        z-index: 10;
    }

    .project-card:hover .project-img img, 
    .cert-card:hover .cert-img-box img {
        transform: scale(1.15) translateY(-5px);
    }
}                  

/* ==========================================================================
   5. BAGIAN KEMAMPUAN / SKILLS 
   ========================================================================== */

.skill-section { 
    padding: 60px 0; 
    width: 100%; 
    max-width: 100%; 
    overflow: hidden; 
    margin-left: auto; 
    margin-right: auto; 
    position: relative;
}

.marquee-wrapper { 
    display: flex; 
    width: 100%; 
    overflow: hidden; 
    margin-bottom: 40px; 
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
}

.marquee-content { 
    display: flex; 
    flex-wrap: nowrap;
    gap: 3rem; 
    padding-right: 3rem; 
    align-items: center; 
    width: max-content; 
    will-change: transform;
}

.tech-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    width: 160px; 
    height: 160px; 
    padding: 15px; 
    flex-shrink: 0; 
    opacity: 1 !important; 
    transform: none !important;
    animation: none !important;
    background: var(--card-bg); 
    border: 1px solid var(--card-border);
    backdrop-filter: blur(15px); 
    border-radius: 20px; 
    transition: all 0.3s ease;
}

.tech-item img { 
    width: 100px; 
    height: 100px; 
    object-fit: contain; 
    margin-bottom: 10px; 
    filter: var(--filter-icon); 
    border-radius: 20px; 
    background: rgba(255, 255, 255, 0.1); 
    padding: 10px; 
}

.tech-item:hover { 
    background: rgba(188, 19, 254, 0.2); 
    transform: scale(1.1) !important; 
    border-color: var(--secondary-neon); 
    box-shadow: 0 0 15px var(--secondary-neon); 
}

.scroll-left { 
    animation: scrollLeft 25s linear infinite !important; 
}

.scroll-right { 
    animation: scrollRight 25s linear infinite !important; 
}

.marquee-wrapper:hover .scroll-left, 
.marquee-wrapper:hover .scroll-right { 
    animation-play-state: running !important; 
}

/* ==========================================================================
   6. BAGIAN PROYEK & SERTIFIKAT
   ========================================================================== */

.project-grid, 
.cert-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    width: 100%; 
    max-width: 1200px; 
    margin-left: auto; 
    margin-right: auto; 
}

.project-card, 
.cert-card { 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    text-align: left; 
    height: 100%; 
    position: relative; 
}

.project-img, 
.cert-img-box {
     width: 100%; 
     height: 200px; 
     background-color: #333; 
     overflow: hidden; 
     position: relative; 
     border-radius: 20px 20px 0 0; 
}

.cert-img-box { 
    background: var(--cert-bg); 
    height: 250px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.project-img img, 
.cert-img-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

.cert-img-box img { 
    object-fit: contain; 
}

.project-info, 
.cert-content { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.project-info h3, 
.cert-content h4 { 
    color: var(--primary-neon); 
    margin-bottom: 10px; 
    font-size: 1.4rem; 
}

.project-info p, 
.cert-content p { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin-bottom: 15px; 
}

/* ==========================================================================
   6B. DESAIN TOMBOL LINK
   ========================================================================== */

.btn-view { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 10px 25px; 
    background: transparent; 
    border: 1px solid var(--secondary-neon); 
    color: var(--text-color); 
    border-radius: 50px; 
    text-decoration: none; 
    font-size: 0.85rem; 
    cursor: pointer; 
    width: fit-content; 
    position: relative; 
    overflow: hidden; 
    transition: color 0.4s ease; 
    z-index: 1; 
}

.btn-view::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 0%; 
    height: 100%; 
    background: var(--secondary-neon); 
    z-index: -1; 
    transition: width 0.4s ease-in-out; 
}

.btn-view:hover::before { 
    width: 100%; 
}

.btn-view:hover { 
    color: #fff; 
    box-shadow: 0 0 15px var(--secondary-neon); 
}

.arrow-icon { 
    margin-right: 8px; 
    transition: transform 0.3s ease; 
}

.btn-view:hover .arrow-icon { 
    transform: translateX(5px); 
}

/* ==========================================================================
   7. BAGIAN ABOUT (VISI MISI & TENTANG SAYA)
   ========================================================================== */

#about { 
    position: relative; 
    padding: 80px 20px; 
    min-height: auto; 
    overflow: hidden; 
    width: 100%; 
}

.about-profile-img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 0; 
    margin: 0; 
    padding: 0; 
    display: block; 
    pointer-events: none; 
}

.about-profile-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
    opacity: 0.01; 
    border-radius: 0; 
    border: none; 
    box-shadow: none; 
    filter: grayscale(100%); 
    transition: all 0.5s ease; 
    max-width: none; 
}

#about:hover .about-profile-img img { 
    opacity: 0.25; 
    transform: scale(1.02); 
}

#about h2, 
.visi-misi-container, 
.about-us-container { 
    position: relative; 
    z-index: 2; 
}

.visi-misi-container { 
    display: flex; 
    gap: 30px; 
    max-width: 900px; 
    margin-bottom: 40px; 
    width: 100%; 
    justify-content: center; 
    margin-left: auto; 
    margin-right: auto; 
}

.vm-card { 
    flex: 1; 
    background: linear-gradient(145deg, rgba(15, 32, 39, 0.9), rgba(32, 58, 67, 0.9)); 
    padding: 30px; 
    text-align: center; 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    transition: 0.3s; 
    backdrop-filter: blur(5px); 
}

.vm-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary-neon); 
}

.vm-card h3 { 
    color: var(--primary-neon); 
    font-size: 1.8rem; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
}

.vm-card p { 
    font-size: 1rem; 
    line-height: 1.6; 
    color: #ddd; 
}

/* ==========================================================================
   7B. PENGATURAN TENTANG SAYA (RIWAYAT / HISTORY)
   ========================================================================== */

.about-us-container { 
    width: 100%; 
    max-width: 900px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-left: auto; 
    margin-right: auto; 
}

.about-us-header { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    width: 100%; 
    cursor: pointer; 
    margin-bottom: 40px; 
}

.about-us-header h3 { 
    font-size: 2rem; 
    color: var(--primary-neon); 
    text-transform: uppercase; 
    margin: 0; 
    font-weight: 800; 
}

.line { 
    height: 3px; 
    flex-grow: 1; 
    background: var(--primary-neon); 
}

.history-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.1s ease-out; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 40px; 
}

.history-content.active { 
    max-height: 5000px; 
    padding-top: 10px; 
    animation: slideDownAbout 0.6s ease-out; 
}

.history-item { 
    position: relative; 
    display: flex; 
    align-items: center; 
    width: 100%; 
    min-height: 350px; 
    padding: 40px; 
    border-radius: 20px; 
    border: none; 
    overflow: hidden; 
    background: transparent; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    transition: 0.3s; 
}

.history-item:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary-neon); 
}

.hist-img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 0; 
    margin: 0; 
    padding: 0; 
    border-radius: 0; 
}

.hist-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 1; 
    filter: brightness(60%); 
    transition: transform 0.6s ease, filter 0.3s ease; 
}

.history-item:hover .hist-img img { 
    transform: scale(1.1); 
    filter: brightness(80%); 
}

.hist-text { 
    position: relative; 
    z-index: 2; 
    width: 50%; 
    padding: 30px; 
    background: transparent; 
    border-radius: 0; 
    backdrop-filter: none; 
    -webkit-backdrop-filter: none; 
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1), -2px -2px 8px rgba(0,0,0,1); 
}

.history-item:nth-child(odd) { 
    justify-content: flex-start; 
}

.history-item:nth-child(odd) .hist-text { 
    text-align: left; 
    border-left: 5px solid var(--primary-neon); 
    margin-right: auto; 
}

.history-item:nth-child(even) { 
    justify-content: flex-end; 
}

.history-item:nth-child(even) .hist-text { 
    text-align: left; 
    border-right: 5px solid var(--secondary-neon); 
    margin-left: auto; 
}

.hist-text h4 { 
    font-size: 3.5rem; 
    color: var(--primary-neon); 
    margin-bottom: 10px; 
    font-weight: 900; 
}

.hist-text p { 
    font-size: 1.2rem; 
    line-height: 1.6; 
    color: #fff; 
    font-weight: 600; 
}

/* ==========================================================================
   8. DASBOR STATISTIK (PENGUNJUNG & GITHUB)
   ========================================================================== */

.dashboard-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.stat-card { 
    background: var(--card-bg); 
    border: 1px solid var(--card-border); 
    backdrop-filter: blur(15px); 
    border-radius: 20px; 
    padding: 40px 30px; 
    text-align: center; 
    box-shadow: 0 0 20px var(--shadow-color); 
    transition: all 0.3s ease; 
}

.stat-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary-neon); 
}

.stat-title { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
}

.primary-neon-text { 
    color: var(--primary-neon); 
}

.secondary-neon-text { 
    color: var(--secondary-neon); 
}

.stat-number { 
    font-size: 4.5rem; 
    color: #fff; 
    margin: 10px 0; 
}

.primary-neon-shadow { 
    text-shadow: 0 0 20px var(--primary-neon); 
}

.secondary-neon-shadow { 
    text-shadow: 0 0 15px var(--secondary-neon); 
}

.stat-desc { 
    color: var(--text-muted); 
    font-size: 1rem; 
}

.github-stats-row { 
    display: flex; 
    justify-content: space-around; 
    margin-bottom: 25px; 
}

.github-stat-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.github-stat-number { 
    font-size: 2.5rem; 
    color: #fff; 
    margin: 0; 
}

.github-stat-label { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

.github-chart-title { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    margin-bottom: 10px; 
}

.github-chart-container { 
    background: rgba(0,0,0,0.3); 
    padding: 15px; 
    border-radius: 10px; 
    /* Mencegah gambar grafik meluber, memungkinkannya di-scroll */
    overflow-x: auto; 
    width: 100%; 
}

.github-chart-img { 
    width: 100%; 
    min-width: 500px; 
    filter: none !important; 
    display: block; 
}

body.light-mode .stat-number, 
body.light-mode .github-stat-number { 
    color: #333; 
    text-shadow: none; 
}

body.light-mode .github-chart-container { 
    background: rgba(255,255,255,0.5); 
}

/* ==========================================================================
   9. KOMENTAR & RATING BINTANG
   ========================================================================== */

.star-rating { 
    display: flex; 
    flex-direction: row-reverse; 
    justify-content: flex-end; 
    gap: 5px; 
    font-size: 1.8rem; 
    margin-bottom: 10px; 
}

.star-rating input { 
    display: none; 
}

.star-rating label { 
    cursor: pointer; 
    color: #444; 
    transition: 0.2s; 
}

.star-rating input:checked ~ label { 
    color: #ffcc00; 
}

.star-rating label:hover, 
.star-rating label:hover ~ label { 
    color: #ffeb3b; 
}

/* ==========================================================================
   10. FOOTER (BAGIAN BAWAH WEBSITE)
   ========================================================================== */

footer { 
    background-color: rgba(0,0,0,0.8); 
    padding: 50px 20px; 
    border-top: 1px solid var(--card-border); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    width: 100%; 
}

footer p { 
    text-align: center; 
    width: 100%; 
    margin: 0; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

.social-links { 
    margin-bottom: 30px; 
    display: flex; 
    justify-content: center; 
    gap: 25px; 
    width: 100%; 
}

.social-icon-btn { 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    border: 2px solid var(--primary-neon); 
    color: var(--text-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.6rem; 
    text-decoration: none; 
    transition: 0.3s; 
    position: relative; 
}

.social-icon-btn:hover { 
    background: var(--primary-neon); 
    color: #000; 
    box-shadow: 0 0 25px var(--primary-neon); 
    transform: translateY(-5px); 
}

.social-icon-btn::after { 
    content: attr(data-name); 
    position: absolute; 
    top: -40px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--primary-neon); 
    color: #000; 
    padding: 5px 12px; 
    border-radius: 5px; 
    font-size: 0.85rem; 
    font-weight: bold; 
    opacity: 0; 
    pointer-events: none; 
    transition: 0.3s; 
    white-space: nowrap; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
}

.social-icon-btn::before { 
    content: ''; 
    position: absolute; 
    top: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
    border-width: 6px; 
    border-style: solid; 
    border-color: var(--primary-neon) transparent transparent transparent; 
    opacity: 0; 
    transition: 0.3s; 
}

.social-icon-btn:hover::after { 
    opacity: 1; 
    top: -50px; 
}

.social-icon-btn:hover::before { 
    opacity: 1; 
    top: -14px; 
}

body.light-mode footer { 
    background-color: #ffffff; 
    border-top: 1px solid #ddd; 
    color: #333; 
}

body.light-mode .social-icon-btn { 
    border-color: var(--primary-neon); 
    color: var(--primary-neon); 
}

body.light-mode .social-icon-btn:hover { 
    background-color: var(--primary-neon); 
    color: #fff; 
}

/* ==========================================================================
   11. MEDIA QUERIES (OPTIMASI KHUSUS TAMPILAN HANDPHONE)
   Penjelasan: Kode di bawah ini berguna untuk MENCEGAH TAMPILAN MELUBER di HP.
   ========================================================================== */

@media (max-width: 768px) {
    .navbar { 
        height: auto; 
        padding: 15px 20px; 
        background: var(--navbar-bg); 
        backdrop-filter: blur(15px); 
        -webkit-backdrop-filter: blur(15px);
        flex-wrap: wrap; 
        justify-content: space-between; 
        align-items: center; 
        border-radius: 20px 20px 0 0; 
        border-bottom: none; 
    }
    
    .hamburger { 
        display: flex !important; 
        margin-left: auto; 
    }
    
    .nav-links { 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--mobile-menu-bg); 
        border: 1px solid var(--card-border); 
        border-top: none; 
        border-radius: 0 0 20px 20px; 
        flex-direction: column; 
        padding: 20px; 
        display: none; 
        z-index: 999; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    
    .nav-links.active { 
        display: flex; 
        animation: slideDown 0.3s ease forwards; 
    }

    .nav-links ul { 
        flex-direction: column; 
        width: 100%; 
        gap: 15px; 
    }

    .controls { 
        margin-top: 20px; 
        justify-content: center; 
        width: 100%; 
    }

    .hero h1 { 
        font-size: 2.2rem !important; 
    }

    /* --- MENGATUR KOTAK SKILL DI HP --- */
    .tech-item { 
        width: 115px !important; 
        min-height: 120px !important; 
        height: auto !important; 
        padding: 15px 10px !important; 
        justify-content: flex-start !important; 
    }
    
    .tech-item img { 
        width: 55px !important; 
        height: 55px !important; 
        margin-bottom: 8px !important; 
    }

    .tech-item span {
        font-size: 0.75rem !important; 
        line-height: 1.2 !important;
        white-space: normal !important; 
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }

    .tech-item.long-text-box {
        padding: 10px 5px !important; 
    }

    .tech-item.long-text-box img {
        width: 45px !important; 
        height: 45px !important; 
        margin-bottom: 5px !important; 
    }

    .tech-item.long-text-box span {
        font-size: 0.6rem !important; 
        line-height: 1.1 !important; 
    }

    /* --- MENCEGAH DASBOR MELUBER DI HP --- */
    #dashboard .profil-card h3,
    #dashboard .stat-title {
        font-size: 1.1rem !important;
        display: flex !important;
        /* Memaksa ikon di atas, teks di bawah */
        flex-direction: column !important; 
        justify-content: center !important;
        align-items: center !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center !important;
        gap: 8px !important;
    }

    #dashboard .stat-card {
        padding: 25px 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        overflow: hidden !important; 
    }

    #visitor-count { 
        font-size: 2.8rem !important; 
    }

    .dashboard-grid { 
        grid-template-columns: 1fr; 
    }

    .stat-number { 
        font-size: 3rem !important; 
    }

    .github-stat-number { 
        font-size: 2rem !important; 
    }

    .stat-title { 
        font-size: 1.2rem; 
    }

    .github-stats-row { 
        gap: 10px; 
    }

    .marquee-content { 
        gap: 1.5rem; 
    }

    section { 
        padding: 60px 15px; 
        min-height: auto; 
        overflow-x: hidden; 
    }

    .profil-card { 
        padding: 30px; 
        width: 100%; 
    }

    .detail-row { 
        flex-direction: column; 
        gap: 5px; 
        text-align: center; 
    }

    .project-grid, 
    .cert-container { 
        grid-template-columns: 1fr; 
    }

    .visi-misi-container { 
        flex-direction: column; 
    }

    .about-profile-img img { 
        width: 90%; 
        opacity: 0.4; 
    }
    
    .history-item { 
        min-height: 250px; 
        padding: 20px; 
        width: 100%; 
        flex-direction: column; 
        justify-content: center; 
        text-align: left;
    }
    
    .history-item:nth-child(odd) .hist-text, 
    .history-item:nth-child(even) .hist-text {
        width: 100%; 
        text-align: left; 
        border-left: 5px solid var(--primary-neon); 
        border-right: none; 
        margin: 0;
    }
                      
    .hist-text h4 { 
        font-size: 1.8rem; 
        margin-bottom: 10px; 
    }

    .hist-text p { 
        font-size: 0.95rem; 
    }

    .project-card, 
    .cert-card, 
    .vm-card, 
    .history-item { 
        animation-delay: 0s !important; 
    }

    .project-card:nth-child(odd).show, 
    .cert-card:nth-child(odd).show { 
        animation: slideInLeft 0.8s ease-out forwards; 
    }

    .project-card:nth-child(even).show, 
    .cert-card:nth-child(even).show { 
        animation: slideInRight 0.8s ease-out forwards; 
    }

    .vm-card:first-child.show { 
        animation: slideInLeft 0.8s ease-out forwards; 
    }

    .vm-card:last-child.show { 
        animation: slideInRight 0.8s ease-out forwards; 
    }

    .history-item.show { 
        animation: fadeInUp 1s ease-out forwards; 
    }
}

/* ==========================================================================
   12. SISTEM ANIMASI SCROLL & KEYFRAMES GLOBAL
   ========================================================================== */

.project-card, 
.cert-card, 
.vm-card, 
.history-item, 
.profil-card, 
section h2 { 
    opacity: 0; 
}

.show { 
    animation: fadeInUp 1s ease-out forwards; 
}

@keyframes scrollLeft { 
    0% { 
        transform: translateX(0); 
    } 
    100% { 
        transform: translateX(-50%); 
    } 
}

@keyframes scrollRight { 
    0% { 
        transform: translateX(-50%); 
    } 
    100% { 
        transform: translateX(0); 
    } 
}

@keyframes fadeInUp { 
    from { 
        opacity: 0; 
        transform: translateY(50px); 
        filter: blur(5px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
        filter: blur(0); 
    } 
}

@keyframes slideInLeft { 
    from { 
        opacity: 0; 
        transform: translateX(-100px); 
        filter: blur(5px); 
    } 
    to { 
        opacity: 1; 
        transform: translateX(0); 
        filter: blur(0); 
    } 
}

@keyframes slideInRight { 
    from { 
        opacity: 0; 
        transform: translateX(100px); 
        filter: blur(5px); 
    } 
    to { 
        opacity: 1; 
        transform: translateX(0); 
        filter: blur(0); 
    } 
}

@keyframes slideDown { 
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

@keyframes slideDownAbout { 
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

@media (min-width: 769px) {
    .project-card:nth-child(1) { 
        animation-delay: 0.3s; 
    }
    .project-card:nth-child(2) { 
        animation-delay: 0.4s; 
    }
    .project-card:nth-child(3) { 
        animation-delay: 0.5s; 
    }
    .project-card:nth-child(4) { 
        animation-delay: 0.6s; 
    }
    .project-card:nth-child(5) { 
        animation-delay: 0.7s; 
    }
    .project-card:nth-child(6) { 
        animation-delay: 0.8s; 
    }
}

@keyframes gradientBG { 
    0% { 
        background-position: 0% 50%; 
    } 
    50% { 
        background-position: 100% 50%; 
    } 
    100% { 
        background-position: 0% 50%; 
    } 
}

@keyframes hero10DReveal {
    0% { 
        opacity: 0; 
        transform: perspective(3000px) rotateX(80deg) rotateY(45deg) rotateZ(-30deg) translateZ(-2000px) translateY(800px) scale(0.1); 
        filter: blur(50px) brightness(0); 
    }
    40% { 
        opacity: 0.6; 
        transform: perspective(3000px) rotateX(40deg) rotateY(20deg) rotateZ(-10deg) translateZ(-500px) translateY(200px) scale(0.6); 
        filter: blur(20px) brightness(1.5); 
    }
    70% { 
        transform: perspective(3000px) rotateX(-10deg) rotateY(-5deg) rotateZ(2deg) translateZ(100px) translateY(-50px) scale(1.1); 
        filter: blur(5px) brightness(1.2); 
    }
    100% { 
        opacity: 1; 
        transform: perspective(3000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0) translateY(0) scale(1); 
        filter: blur(0) brightness(1); 
    }
}