/* style.css - Luxury UI with Dynamic Icons & Fullscreen Iframe */

:root {
    --nav-width: 75px;
    --accent-color: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.4);
    --bg-dark: #050505;
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
}

/* 1. GLOBAL RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    background: var(--bg-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: var(--text-primary);
    overflow-x: hidden; /* Mencegah horizontal scroll yang tidak diinginkan */
    overflow-y: auto; /* Memungkinkan vertikal scroll di halaman konten */
}

/* 2. BACKGROUND DECORATION (GLOW EFFECTS) */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.08; /* Sedikit lebih transparan */
    border-radius: 50%;
    z-index: -1;
    filter: blur(120px); /* Lebih blur */
    pointer-events: none;
    animation: glowMove 15s infinite alternate ease-in-out; /* Animasi pergerakan */
}
.top-left { top: -250px; left: -250px; transform: rotate(0deg); }
.bottom-right { bottom: -250px; right: -250px; transform: rotate(180deg); }

/* 3. NAVIGATION DOCK (DESKTOP) */
.nav-dock {
    position: fixed;
    top: 0;
    left: -65px; /* Sedikit terlihat sebagai pemicu */
    width: var(--nav-width);
    height: 100vh;
    background: rgba(0, 0, 0, 0.15); /* Lebih terlihat */
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 90px 0 30px 0;
    gap: 20px;
    z-index: 2000; /* Pastikan di atas semua konten */
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-dock:hover, .nav-dock.show {
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(25px); /* Efek blur yang lebih kuat */
}
/* Area pemicu hover yang lebih mudah */
.nav-dock::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px; /* Perluas area hover ke kanan */
    width: 20px;
    height: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 18px;
    cursor: pointer;
    transition: 0.2s ease;
}
.nav-item:hover, .nav-item.selected {
    color: var(--accent-color);
    background: rgba(0, 210, 255, 0.12);
    box-shadow: 0 0 20px var(--accent-glow);
}
.nav-item i { width: 24px; height: 24px; }
.nav-item span {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* 4. MOBILE MENU BUTTON */
.menu-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #000;
    border-radius: 15px;
    display: none; /* Default tersembunyi di desktop */
    align-items: center;
    justify-content: center;
    z-index: 2500; /* Di atas navbar */
    cursor: pointer;
    box-shadow: 0 5px 20px var(--accent-glow);
}
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 1999;
    display: none;
}
.nav-overlay.active { display: block; }


/* 5. MAIN HERO SECTION (NEW & ENHANCED) */
.main-hero-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px var(--nav-width) 40px var(--nav-width); /* Padding untuk desktop */
    text-align: center;
    overflow: hidden; /* Penting untuk mencegah overflow dari ikon/glow */
}

.hero-content {
    max-width: 900px;
    animation: fadeInScale 1.2s ease-out forwards;
    padding: 0 20px;
}

.badge-wrapper {
    margin-bottom: 30px;
}
.main-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 100px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}

.dynamic-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-color), #00aaff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
    box-shadow: 0 0 40px var(--accent-glow), inset 0 0 15px rgba(255,255,255,0.2);
    animation: iconPulse 2s infinite alternate;
    position: relative;
    overflow: hidden;
}
.dynamic-icon-wrapper i {
    width: 50px;
    height: 50px;
    color: #000;
    transition: transform 0.5s ease-out; /* Animasi ikon saat berubah */
}

#greeting-text {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto 50px auto;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}
.action-button.primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #00aaff 100%);
    color: #000;
    border: none;
    padding: 18px 45px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.3);
}
.action-button.primary:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 210, 255, 0.4);
    background: linear-gradient(135deg, #00eeff 0%, #00c0ff 100%);
}
.action-button.primary i { width: 22px; height: 22px; }

.status-indicator {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.status-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 12px #00ff88;
    animation: dotPulse 2s infinite;
}

/* 6. IFRAME CORE (FULLSCREEN) */
.iframe-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1; /* Di bawah navbar (2000) */
    background: var(--bg-dark); /* Hindari flash putih saat memuat */
}
iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 7. RESPONSIVE MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .menu-btn { display: flex; } /* Tampilkan tombol menu mobile */
    .nav-dock { left: -100px; padding-top: 100px; } /* Sembunyikan navbar di mobile secara default */
    
    .main-hero-container {
        padding: 120px 20px 40px 20px; /* Sesuaikan padding untuk mobile */
    }
    .dynamic-icon-wrapper {
        width: 80px; height: 80px; margin-bottom: 25px;
    }
    .dynamic-icon-wrapper i { width: 40px; height: 40px; }

    #greeting-text { font-size: 2.5rem; margin-bottom: 20px; }
    .hero-description { font-size: 1rem; margin-bottom: 40px; }
    .action-button.primary { padding: 15px 30px; font-size: 1rem; }
    .action-button.primary i { width: 18px; height: 18px; }
    .status-indicator { font-size: 0.8rem; }
}

/* 8. KEYFRAME ANIMATIONS */
@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glowMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(100px, 50px) rotate(120deg); }
    66% { transform: translate(-50px, -80px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes iconPulse {
    0% { transform: scale(1); box-shadow: 0 0 40px var(--accent-glow), inset 0 0 15px rgba(255,255,255,0.2); }
    50% { transform: scale(1.05); box-shadow: 0 0 50px var(--accent-glow), inset 0 0 20px rgba(255,255,255,0.3); }
    100% { transform: scale(1); box-shadow: 0 0 40px var(--accent-glow), inset 0 0 15px rgba(255,255,255,0.2); }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}
/* Style tambahan untuk tombol link di dalam card */
.btn-link {
    margin-top: 20px;
    padding: 10px 25px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s;
    display: inline-block;
}

.btn-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Memastikan grid rapi di halaman ini */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin-top: 20px;
}
/* 9. HUB GRID & CARD STYLES (Untuk links.html) */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: 20px;
    perspective: 1000px;
}

.hub-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 35px 25px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hub-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 210, 255, 0.1);
}

.card-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.card-icon-box i {
    width: 30px;
    height: 30px;
}

.hub-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff;
}

.hub-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-link {
    margin-top: auto;
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-link:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}