/* css/hero.css - COMPLETE VERSION (Desktop & Mobile Fixed) */

/* =========================================
   1. HERO SECTION CONTAINER & BACKGROUND
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden; /* Mencegah animasi orbit keluar layar */
}

/* Background Image Gelap */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ganti URL ini jika ingin mengubah gambar background */
    background: url('https://picsum.photos/seed/cyberpunk-city/1920/1080.jpg') center/cover;
    filter: brightness(0.2) contrast(1.2) saturate(1.5);
    z-index: -1;
}

/* Overlay Gradient Dekoratif */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(157, 0, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* =========================================
   2. LOGO ANIMATION & ORBITS
   ========================================= */
.token-logo-container {
    position: relative;
    margin-bottom: 0.5rem;
    margin-top: 60px; /* Jarak default desktop */
    z-index: 10;
}

.token-logo {
    width: 200px;
    height: 200px;
    position: relative;
    /* Animasi melayang & bersinar */
    animation: float 6s ease-in-out infinite, glow-pulse 3s ease-in-out infinite;
}

.token-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Keyframes: Float (Melayang) */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Keyframes: Glow (Bercahaya) */
@keyframes glow-pulse {
    0%, 100% { 
        filter: drop-shadow(0 0 20px var(--primary-color)) drop-shadow(0 0 40px var(--secondary-color));
    }
    50% { 
        filter: drop-shadow(0 0 30px var(--primary-color)) drop-shadow(0 0 60px var(--secondary-color));
    }
}

/* ORBIT PARTICLES */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.orbit1 { animation: orbit1 8s linear infinite; }
.orbit2 { animation: orbit2 12s linear infinite; }
.orbit3 { animation: orbit3 10s linear infinite; }

/* Keyframes Orbit Desktop */
@keyframes orbit1 {
    0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}
@keyframes orbit2 {
    0% { transform: rotate(120deg) translateX(150px) rotate(-120deg); }
    100% { transform: rotate(480deg) translateX(150px) rotate(-480deg); }
}
@keyframes orbit3 {
    0% { transform: rotate(240deg) translateX(150px) rotate(-240deg); }
    100% { transform: rotate(600deg) translateX(150px) rotate(-600deg); }
}

/* =========================================
   3. HERO TEXT & TYPOGRAPHY
   ========================================= */
.hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
}

/* Heading H1 ($LORD) */
.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    /* Gradient Text */
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: glitch 5s infinite;
    position: relative;
}

/* Keyframes: Glitch Effect */
@keyframes glitch {
    0%, 100% { text-shadow: 0 0 30px rgba(0, 212, 255, 0.5); }
    25% { text-shadow: -2px 0 var(--secondary-color), 2px 0 var(--primary-color); }
    50% { text-shadow: 2px 0 var(--secondary-color), -2px 0 var(--primary-color); }
    75% { text-shadow: 0 0 30px rgba(157, 0, 255, 0.5); }
}

/* Paragraf Slogan */
.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.hero p::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

/* =========================================
   4. BUTTONS & CONTRACT ADDRESS
   ========================================= */
.button-and-contract-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 650px;
    margin: 2rem auto 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contract-wrapper {
    z-index: 5;
    position: relative;
    width: 100%;
    padding: 0 1rem;
    text-align: center;
}

/* Styling Tombol Kontrak */
.contract-display-btn {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 0.5rem; 
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(5px); 
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--neon-green);
    text-decoration: none;
    color: white; 
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.7);
    transition: all 0.3s ease-in-out;
    width: 100%; 
    max-width: 500px;
    margin: 0 auto;
}

.contract-display-btn:hover {
    background: rgba(57, 255, 20, 0.1);
    box-shadow: 0 0 25px var(--neon-green), 0 0 40px rgba(57, 255, 20, 0.5); 
    transform: translateY(-3px);
}

.contract-label {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.address-text {
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    overflow: hidden; 
    text-overflow: ellipsis;
    white-space: nowrap;
    animation: dim-pulse-white 3s infinite alternate;
}

@keyframes dim-pulse-white {
    0% { opacity: 0.8; text-shadow: 0 0 5px rgba(255, 255, 255, 0.4); }
    100% { opacity: 1; text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
}

.copy-icon {
    color: var(--primary-color);
    font-size: 1rem;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.contract-display-btn:hover .copy-icon {
    color: var(--neon-green);
}

/* =========================================
   5. MOBILE RESPONSIVE FIX (THE FIX)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Atur ulang layout Hero agar tidak terpotong Header */
    .hero {
        height: auto;
        min-height: 100vh;
        
        /* Jarak atas agar lolos dari Navbar Fixed */
        padding-top: 130px; 
        padding-bottom: 60px;
        
        /* Layout flow dari atas ke bawah */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.5rem;
    }

    /* 2. Perkecil Logo agar muat */
    .token-logo-container {
        margin-top: 0;
        transform: scale(0.9);
    }

    .token-logo {
        width: 140px;
        height: 140px;
    }

    /* 3. Perkecil Orbit agar tidak lebar ke samping */
    .orbit-container {
        width: 220px;
        height: 220px;
    }

    /* Update Keyframe Orbit untuk Mobile (Radius Putar lebih kecil: 110px) */
    @keyframes orbit1 {
        0% { transform: rotate(0deg) translateX(110px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
    }
    @keyframes orbit2 {
        0% { transform: rotate(120deg) translateX(110px) rotate(-120deg); }
        100% { transform: rotate(480deg) translateX(110px) rotate(-480deg); }
    }
    @keyframes orbit3 {
        0% { transform: rotate(240deg) translateX(110px) rotate(-240deg); }
        100% { transform: rotate(600deg) translateX(110px) rotate(-600deg); }
    }

    /* 4. Sesuaikan Ukuran Teks */
    .hero-content {
        padding: 0 1rem;
        width: 100%;
    }

    .hero h1 { 
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .hero p { 
        font-size: 1rem; 
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    .button-and-contract-wrapper {
        margin-top: 0;
        gap: 1.5rem;
    }

    /* 5. FIX Tombol Kontrak: Stack Vertikal agar Address panjang tidak rusak */
    .contract-display-btn {
        flex-direction: column; /* Label di atas, Address di tengah */
        justify-content: center;
        align-items: center;
        gap: 0.3rem;
        padding: 1rem;
        width: 100%;
        height: auto;
    }
    
    .contract-label { 
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    
    /* Buat address text bisa disingkat (...) jika layar sangat kecil */
    .address-text {
        font-size: 0.85rem;
        text-align: center;
        width: 100%;
        max-width: 260px; /* Batas lebar sebelum muncul titik-titik */
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .copy-icon {
        margin-left: 0;
        margin-top: 0.5rem;
        font-size: 1.2rem;
        padding: 5px;
    }
}