/* ==========================================================================
   STYLE MASTER PREMIUM AVANT-GARDE - CYBER ROBOTIC ECO-SYSTEM (100% EXCLUSIVE)
   Skema Warna: Rich Cyber Black, Neural Forest Green, & Liquid Gold Aurora
   ========================================================================== */

:root {
    --bg-black: #030805;
    --bg-deep-green: #06120a;
    --bg-card: #091a0f;
    --dark-green: #102e1b;
    --mid-green: #19472a;
    --light-green: #286e41;
    --gold-primary: #e5c158;
    --gold-glow: #fbf5b7;
    --gold-gradient: linear-gradient(135deg, #b38728 0%, #fbf5b7 50%, #daa520 100%);
    --green-gradient: linear-gradient(135deg, #030805 0%, #102e1b 100%);
    --gold-btn-gradient: linear-gradient(135deg, #c59b27 0%, #ecc863 100%);
    --text-light: #e6f0ea;
    --text-muted: #789685;
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Cinzel', serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-deep-green);
    /* Struktur Grid Sirkuit Komputer - Pola Garis Halus Seperti Chip Robot */
    background-image: 
        radial-gradient(circle at 50% 0%, var(--dark-green) 0%, var(--bg-black) 85%),
        linear-gradient(rgba(40, 110, 65, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 110, 65, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(229, 193, 88, 0.04) 2px, transparent 2px),
        linear-gradient(90deg, rgba(229, 193, 88, 0.04) 2px, transparent 2px);
    background-size: 100% 100%, 30px 30px, 30px 30px, 150px 150px, 150px 150px;
    color: var(--text-light);
    font-family: var(--font-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ==========================================================================
   ANIMASI UTAMA: MATRIKS RADAR ROBOTIK BERGERAK (LANGKA)
   ========================================================================== */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Garis Laser Pemindai Mengalir dari Atas ke Bawah */
.bg-glow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(40, 110, 65, 0.4) 20%, 
        var(--gold-primary) 50%, 
        rgba(40, 110, 65, 0.4) 80%, 
        transparent);
    filter: drop-shadow(0 0 12px var(--gold-primary));
    opacity: 0.7;
    animation: roboticScannerLine 8s infinite linear;
}

/* Titik-Titik Cahaya Simpul Saraf AI */
.bg-glow::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(2px 2px at 50px 100px, var(--gold-primary) 100%, transparent),
        radial-gradient(2px 2px at 150px 300px, rgba(40, 110, 65, 0.8) 100%, transparent),
        radial-gradient(3px 3px at 250px 150px, var(--gold-glow) 100%, transparent),
        radial-gradient(2px 2px at 350px 450px, rgba(229, 193, 88, 0.5) 100%, transparent);
    background-size: 400px 400px;
    animation: neuralNetworkNodes 40s linear infinite;
    opacity: 0.4;
}

@keyframes roboticScannerLine {
    0% { top: -10px; opacity: 0; }
    5% { opacity: 0.8; }
    95% { opacity: 0.8; }
    100% { top: 102%; opacity: 0; }
}

@keyframes neuralNetworkNodes {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-20px); }
    100% { transform: rotate(0deg) translateY(0); }
}

/* Navigasi / Header Glassmorphism */
.main-header {
    background: rgba(3, 8, 5, 0.8);
    border-bottom: 1px solid rgba(229, 193, 88, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(229, 193, 88, 0.3);
}

.navbar { display: flex; gap: 15px; }

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 6px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
    background: rgba(16, 46, 27, 0.4);
    border-color: rgba(229, 193, 88, 0.2);
    box-shadow: inset 0 0 10px rgba(40, 110, 65, 0.3);
}

/* Tata Letak Konten */
.content-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* Upgraded Kartu Beranda (Glassmorphism Cyber) */
.hero-card {
    background: linear-gradient(135deg, rgba(9, 26, 15, 0.7) 0%, rgba(3, 8, 5, 0.85) 100%);
    border: 1px solid rgba(229, 193, 88, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 70px 50px;
    max-width: 900px;
    margin: 20px auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(40, 110, 65, 0.15);
}

/* Ornamen Sudut Mekanik Robot */
.corner-ornament {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid var(--gold-primary);
    transition: var(--transition-smooth);
}
.top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.hero-card:hover .corner-ornament {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 12px var(--gold-primary));
}

.hero-section { text-align: center; }
.hero-section h1 { font-family: var(--font-display); font-size: 3.2rem; margin: 25px 0; letter-spacing: 1px; line-height: 1.2; }
.gold-badge { background: rgba(16, 46, 27, 0.6); color: var(--gold-glow); border: 1px solid var(--gold-primary); padding: 8px 18px; font-size: 0.78rem; font-weight: 700; border-radius: 30px; display: inline-block; text-transform: uppercase; letter-spacing: 1.5px; box-shadow: 0 0 15px rgba(40, 110, 65, 0.4); }
.gold-gradient-text { background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 10px rgba(229,193,88,0.2)); }
.subtitle { color: var(--text-muted); font-size: 1.15rem; max-width: 700px; margin: 0 auto 40px auto; line-height: 1.7; }

/* Statistik Modul Robotik */
.hero-stats { display: flex; justify-content: center; align-items: center; gap: 40px; margin: 40px 0; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; margin-bottom: 6px; text-shadow: 0 0 10px rgba(229,193,88,0.3); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.stat-border { width: 1px; height: 45px; background: linear-gradient(to bottom, transparent, var(--gold-primary), transparent); opacity: 0.4; }

/* Komponen Aksi Tombol & Animasi Click Feedback */
.cta-actions { display: flex; gap: 20px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 35px; font-weight: 700; font-size: 0.95rem; border-radius: 6px; cursor: pointer; text-decoration: none; border: none; position: relative; overflow: hidden; transition: var(--transition-smooth); }
.btn-primary { background: var(--gold-btn-gradient); color: var(--bg-black); box-shadow: 0 4px 20px rgba(229, 193, 88, 0.25); }
.btn-secondary { background: rgba(3, 8, 5, 0.6); color: var(--gold-primary); border: 1px solid var(--mid-green); box-shadow: inset 0 0 15px rgba(16, 46, 27, 0.4); }

/* Efek Gerak Dinamis */
.btn-animated:hover, .btn-animated-back:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(229, 193, 88, 0.4); }
.btn-animated:active, .btn-animated-back:active { transform: scale(0.94) translateY(2px); }

/* Komponen Halaman Tentang */
.profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center; }
.profile-image-wrapper { width: 100%; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; border: 2px solid rgba(229, 193, 88, 0.3); background: var(--bg-black); display: flex; justify-content: center; align-items: center; box-shadow: 0 15px 35px rgba(0,0,0,0.6); transition: var(--transition-smooth); }
.profile-image-wrapper:hover { border-color: var(--gold-primary); transform: scale(1.02); filter: drop-shadow(0 0 15px rgba(40,110,65,0.4)); }
.profile-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { font-size: 6rem; color: var(--mid-green); }
.profile-info h2 { font-family: var(--font-display); margin-bottom: 10px; font-size: 2rem; }
.separator { height: 2px; background: var(--gold-gradient); width: 100px; margin-bottom: 30px; }
.bio-table { width: 100%; border-collapse: collapse; }
.bio-table td { padding: 16px 8px; border-bottom: 1px solid rgba(40, 110, 65, 0.25); font-size: 1rem; }
.label-info { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.badge-status { background: var(--dark-green); border: 1px solid var(--gold-primary); color: var(--gold-glow); padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; box-shadow: 0 0 10px rgba(40,110,65,0.3); }

/* Komponen Halaman Kontak */
.contact-card { background: linear-gradient(135deg, rgba(9, 26, 15, 0.7) 0%, rgba(3, 8, 5, 0.85) 100%); border: 1px solid rgba(229, 193, 88, 0.15); border-radius: 16px; padding: 60px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.7); }
.contact-card h2 { font-family: var(--font-display); margin: 20px 0; font-size: 2.2rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 45px; }
.contact-item-link { text-decoration: none; color: inherit; display: block; }
.contact-item { background: rgba(3, 8, 5, 0.6); padding: 40px 30px; border-radius: 10px; border: 1px solid rgba(40, 110, 65, 0.4); transition: var(--transition-smooth); position: relative; overflow: hidden; }
.contact-item:hover { border-color: var(--gold-primary); transform: translateY(-6px); box-shadow: 0 15px 30px rgba(16, 46, 27, 0.5); }
.contact-icon { font-size: 2.8rem; margin-bottom: 20px; filter: drop-shadow(0 0 8px rgba(255,255,255,0.1)); }
.contact-item h3 { font-size: 1.2rem; margin-bottom: 10px; font-family: var(--font-primary); }
.action-hint { display: block; margin-top: 20px; font-size: 0.78rem; font-weight: 700; color: var(--gold-primary); text-transform: uppercase; opacity: 0.5; letter-spacing: 1px; }
.contact-item-link:hover .action-hint { opacity: 1; }

/* Tombol Akselerasi Scroll Ke Atas */
.scroll-btn { position: fixed; bottom: 35px; right: 35px; background: var(--gold-gradient); color: var(--bg-black); border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: none; justify-content: center; align-items: center; font-size: 1.3rem; z-index: 99; transition: var(--transition-smooth); box-shadow: 0 8px 25px rgba(0,0,0,0.6); }
.scroll-btn:hover { transform: translateY(-5px); background: #fff; color: var(--bg-black); box-shadow: 0 12px 30px rgba(229,193,88,0.5); }
.scroll-btn:active { transform: scale(0.9); }

/* Footer Sistem */
.main-footer { background: #020503; text-align: center; padding: 25px; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid rgba(40, 110, 65, 0.3); letter-spacing: 0.5px; }

/* Animasi Entrance Efek Lembut */
.fade-in { animation: customFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes customFadeIn {
    from { opacity: 0; transform: translateY(30px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Penyesuaian Responsif Kuantum (Mobile Friendly) */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 20px; padding: 15px; }
    .navbar { width: 100%; justify-content: center; gap: 10px; }
    .nav-link { padding: 8px 12px; font-size: 0.85rem; }
    .hero-section h1 { font-size: 2.3rem; }
    .hero-card { padding: 40px 20px; }
    .hero-stats { flex-direction: column; gap: 25px; margin: 30px 0; }
    .stat-border { width: 60%; height: 1px; }
    .profile-grid { grid-template-columns: 1fr; gap: 35px; }
    .contact-card { padding: 35px 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .cta-actions { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
    .btn { width: 100%; justify-content: center; }
}