/* css/global.css - FINAL FIXED VERSION */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #00d4ff;   /* Bright blue/cyan */
    --secondary-color: #9d00ff; /* Purple */
    --accent-color: #ff00ff;    /* Magenta */
    --text-color: #e0e0e0;      /* Light gray text */
    --dark-bg: #0a0a0f;         /* Very dark blue/black */
    --card-bg: rgba(20, 20, 35, 0.7); /* Semi-transparent card */
    --glow-color: #00ffff;      /* Cyan glow */
    --neon-green: #39ff14;      /* Warna hijau neon untuk Copy Address */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    /* FIX MOBILE: Mencegah scroll horizontal akibat animasi off-screen */
    overflow-x: hidden; 
    width: 100%;
    position: relative;
    /* FIX MOBILE: Menyesuaikan font-size default */
    font-size: 16px; 
}

/* Animated background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(157, 0, 255, 0.1) 0%, transparent 20%),
        linear-gradient(to bottom, #0a0a0f, #151520);
    z-index: -2;
}

/* Grid pattern overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Scroll Offset untuk Anchor Link (agar tidak tertutup Header) */
section[id] {
    scroll-margin-top: 100px;
}

/* Styling Ikon Judul Section (Global) */
.section-title .section-icon {
    height: 1.5em;
    width: auto;
    vertical-align: middle;
    margin-right: 0.8rem;
}

/* --- MEDIA QUERY GLOBAL --- */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Kecilkan font sedikit di HP */
    }
    
    /* FIX Jarak antar section di HP agar tidak terlalu jauh */
    section {
        padding: 3rem 5%;
    }
}