/* Visual Background Fiber Optic Cyberpunk */
.cyber-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-color: #03050d;
    background-image: 
        linear-gradient(to bottom, rgba(5, 7, 15, 0.85), rgba(3, 5, 13, 0.95)),
        url('https://images.unsplash.com/photo-1544256718-3bcf237f3974?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    /* Dihapus background-attachment: fixed agar scrolling mobile sangat lancar */
}

/* Garis Grid Laser Cyberpunk */
.cyber-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    will-change: transform;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 60px; }
}

/* Orbs Cahaya Pendar Neon Optimized */
.neon-glow-core {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    filter: blur(40px); /* Dioptimasi dari 80px */
}

.neon-glow-secondary {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: -10%;
    filter: blur(30px); /* Dioptimasi dari 60px */
}

/* Glassmorphism Ringan & Cepat Tanpa Backdrop-Blur Berat */
.cyber-glass {
    background: rgba(10, 15, 30, 0.88);
    border: 1px solid rgba(6, 182, 212, 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.cyber-glass:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
    transform: translateY(-4px);
}

/* Animasi Kemunculan Kartu */
.card-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-animate.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0;
    background: #06b6d4;
    box-shadow: 0 0 10px #06b6d4;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

/* Transisi Antar Halaman SPA Ramah HP */
.page-view {
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.page-view.hidden {
    display: none;
}

@keyframes fadeInUpSub {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUpSub 0.3s ease forwards;
}

/* Khusus Tampilan Layar HP / Komputer Lama */
@media (max-width: 1023px) {
    main {
        padding-bottom: 80px;
    }
    #wa-widget {
        bottom: 76px;
    }
    /* Matikan animasi berulang yang membuat HP lama panas/lemot */
    .animate-float, .cyber-grid-overlay {
        animation: none !important;
    }
}

.mobile-nav-btn {
    transition: color 0.3s ease;
}