/* =========================================
   1. PENGATURAN DASAR & VARIABEL
   ========================================= */
:root {
    --bg-dark: #070a13;
    --primary: #00f2fe;
    --secondary: #4facfe;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
    color: var(--text-main);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    overflow: hidden; 
    position: relative;
    min-height: 100vh;
}

/* Kustomisasi Scrollbar Web */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(0, 242, 254, 0.5); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =========================================
   2. SIGNATURE BACKGROUND (GLOWING ORBS)
   ========================================= */
#tsparticles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2; pointer-events: none;
}

.bg-glow {
    position: fixed; border-radius: 50%;
    filter: blur(120px); z-index: -1;
    opacity: 0.3; animation: float 10s infinite alternate ease-in-out;
}

.glow-1 { width: 400px; height: 400px; background: #00f2fe; top: -100px; left: -100px; }
.glow-2 { width: 300px; height: 300px; background: #4facfe; bottom: 10%; right: -50px; animation-delay: -5s; }
.glow-3 { width: 250px; height: 250px; background: #667eea; top: 40%; left: 40%; animation-delay: -2s; opacity: 0.15; }

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* =========================================
   3. FASE 1: LAYAR SAMBUTAN (SPLASH SCREEN)
   ========================================= */
#splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 100;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background-color: rgba(7, 10, 19, 0.85); 
    backdrop-filter: blur(5px);
    transition: transform 1.5s ease-in-out, opacity 1.2s ease-in-out;
    perspective: 1000px; 
}

#threejs-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; 
    pointer-events: none; 
    opacity: 0.9;
}

.animated-logo {
    font-size: 5.5rem; letter-spacing: 12px; font-weight: 700;
    color: #ffffff; text-transform: uppercase; text-align: center;
    z-index: 10; position: relative;
    animation: logoFloat3D 4s ease-in-out infinite;
}

@keyframes logoFloat3D {
    0%, 100% {
        transform: translateY(0) scale(1) rotateX(0deg);
        text-shadow: 
            0 1px 0 #0099cc, 0 2px 0 #0088bb, 0 3px 0 #0077aa, 
            0 4px 0 #006699, 0 5px 0 #005588, 
            0 6px 1px rgba(0,0,0,0.1), 
            0 0 15px rgba(0, 242, 254, 0.5), 0 0 30px rgba(0, 242, 254, 0.3);
    }
    50% {
        transform: translateY(-18px) scale(1.03) rotateX(8deg);
        text-shadow: 
            0 1px 0 #0099cc, 0 2px 0 #0088bb, 0 3px 0 #0077aa, 
            0 4px 0 #006699, 0 5px 0 #005588, 
            0 25px 15px rgba(0,0,0,0.4), 
            0 0 25px rgba(0, 242, 254, 0.9), 0 0 50px rgba(0, 242, 254, 0.7); 
    }
}

.splash-terminal {
    margin: 25px 0 45px; height: 30px;
    text-align: center; max-width: 80%;
    z-index: 10; position: relative;
}
.splash-terminal p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.15rem; color: #88c0d0;
    letter-spacing: 1.5px;
    text-shadow: 0 0 5px rgba(136, 192, 208, 0.5);
}
.blink-cursor { animation: blink 1s infinite; color: var(--primary); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.neon-button {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 15px 50px;
    font-size: 1.3rem; font-weight: 700;
    border-radius: 8px; cursor: pointer;
    letter-spacing: 5px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2), inset 0 0 10px rgba(0, 242, 254, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10; position: relative;
}
.neon-button:hover {
    background: var(--primary); color: var(--bg-dark);
    box-shadow: 0 0 40px var(--primary), inset 0 0 20px var(--bg-dark);
    transform: scale(1.08) translateY(-5px);
}

/* =========================================
   4. TATA LETAK PUSAT KOMANDO & NAVBAR
   ========================================= */
.hidden {
    opacity: 0; pointer-events: none;
    position: absolute; transform: scale(1.1);
}

#main-dashboard {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    transition: all 1.5s ease-in-out;
}

/* --- PERBAIKAN: EFEK 3D GLASSMORPHISM TIMBUL --- */
.glass-nav, .glass-panel {
    background: linear-gradient(135deg, rgba(25, 30, 45, 0.65) 0%, rgba(10, 15, 25, 0.85) 100%);
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    
    box-shadow: 
        10px 10px 30px rgba(0, 0, 0, 0.6), 
        inset 2px 2px 10px rgba(255, 255, 255, 0.05), 
        inset -2px -2px 15px rgba(0, 0, 0, 0.8); 
}

/* NAVIGASI RESPONSIF */
.glass-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; 
    margin-bottom: 60px;
    position: sticky; top: 20px; z-index: 50;
}

.nav-brand .logo-text { font-size: 1.6rem; font-weight: 700; letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.glass-nav a { text-decoration: none; font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; transition: 0.3s; }
.glass-nav a:hover, .nav-highlight { color: var(--primary); text-shadow: 0 0 10px var(--primary); }
.menu-toggle { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; transition: transform 0.3s ease; }

/* Panel Profil */
.profile-panel {
    padding: 70px 40px; 
    text-align: center; 
    margin-bottom: 80px; 
}
.profile-panel h2 {
    font-size: 3.5rem; color: var(--primary); margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}
.typing-container h3 { font-size: 1.8rem; color: #bbbbbb; margin-bottom: 30px; font-weight: 400; }
.neon-text { color: var(--primary); font-weight: 600; text-shadow: 0 0 8px var(--primary); }
.profil-desc { font-size: 1.25rem; color: #eeeeee; line-height: 1.9; max-width: 900px; margin: 0 auto; }

/* =========================================
   5. KARTU DETAIL FASE PROYEK (1 KOLOM FULL WIDTH)
   ========================================= */
.detailed-phases {
    display: flex;
    flex-direction: column; 
    gap: 80px; 
    margin-bottom: 120px;
    width: 100%;
}

.detail-card {
    width: 100%; 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 50px 60px; 
    display: flex; 
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, border-color 0.4s ease;
}

.card-header {
    display: flex; align-items: center; gap: 25px; margin-bottom: 35px;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 25px;
}
.phase-icon { font-size: 3.5rem; color: var(--text-muted); transition: 0.4s; }
.header-text h2 { font-size: 2.2rem; letter-spacing: 1px; }
.phase-badge {
    background: rgba(255,255,255,0.1); padding: 6px 15px;
    border-radius: 6px; font-size: 1rem; font-weight: 600; letter-spacing: 3px;
}

.card-body p { 
    font-size: 1.25rem; 
    color: var(--text-muted); 
    line-height: 1.8; 
    margin-bottom: 35px; 
}
.tech-list { list-style: none; margin-bottom: 40px; display: flex; flex-direction: column; gap: 15px;}
.tech-list li { font-size: 1.15rem; display: flex; align-items: center; gap: 15px; color: #cccccc; }
.tech-list i { color: var(--primary); font-size: 1.3rem; }

.btn-action {
    align-self: flex-start; text-decoration: none; font-weight: 600; font-size: 1.2rem;
    padding: 15px 40px; border-radius: 8px; border: 1px solid transparent;
    transition: 0.3s; display: flex; align-items: center; gap: 12px;
}

/* --- INTERAKSI HOVER 3D --- */
.web-theme:hover { 
    border-top-color: #00d2ff; border-left-color: rgba(0, 210, 255, 0.5); 
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.2), inset 2px 2px 15px rgba(0, 210, 255, 0.1), inset -2px -2px 15px rgba(0, 0, 0, 0.8);
    transform: translateY(-10px) scale(1.02); 
}
.web-theme:hover .phase-icon { color: #00d2ff; text-shadow: 0 0 15px #00d2ff; }
.btn-web { background: rgba(0, 210, 255, 0.1); color: #00d2ff; border-color: #00d2ff; }
.btn-web:hover { background: #00d2ff; color: var(--bg-dark); box-shadow: 0 0 20px #00d2ff; }

.build-theme:hover { 
    border-top-color: #ffd700; border-left-color: rgba(255, 215, 0, 0.5); 
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2), inset 2px 2px 15px rgba(255, 215, 0, 0.1), inset -2px -2px 15px rgba(0, 0, 0, 0.8);
    transform: translateY(-10px) scale(1.02); 
}
.build-theme:hover .phase-icon { color: #ffd700; text-shadow: 0 0 15px #ffd700; }
.btn-build { background: rgba(255, 215, 0, 0.1); color: #ffd700; border-color: #ffd700; }
.btn-build:hover { background: #ffd700; color: var(--bg-dark); box-shadow: 0 0 20px #ffd700; }

.ai-theme:hover { 
    border-top-color: #00ffaa; border-left-color: rgba(0, 255, 170, 0.5); 
    box-shadow: 0 15px 40px rgba(0, 255, 170, 0.2), inset 2px 2px 15px rgba(0, 255, 170, 0.1), inset -2px -2px 15px rgba(0, 0, 0, 0.8);
    transform: translateY(-10px) scale(1.02); 
}
.ai-theme:hover .phase-icon { color: #00ffaa; text-shadow: 0 0 15px #00ffaa; }
.btn-ai { background: rgba(0, 255, 170, 0.1); color: #00ffaa; border-color: #00ffaa; }
.btn-ai:hover { background: #00ffaa; color: var(--bg-dark); box-shadow: 0 0 20px #00ffaa; }

.store-theme:hover { 
    border-top-color: #00ffff; border-left-color: rgba(0, 255, 255, 0.5); 
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2), inset 2px 2px 15px rgba(0, 255, 255, 0.1), inset -2px -2px 15px rgba(0, 0, 0, 0.8);
    transform: translateY(-10px) scale(1.02); 
}
.store-theme:hover .phase-icon { color: #00ffff; text-shadow: 0 0 15px #00ffff; }
.btn-store { background: rgba(0, 255, 255, 0.1); color: #00ffff; border-color: #00ffff; }
.btn-store:hover { background: #00ffff; color: var(--bg-dark); box-shadow: 0 0 20px #00ffff; }

.sec-theme:hover { 
    border-top-color: #ff003c; border-left-color: rgba(255, 0, 60, 0.5); 
    box-shadow: 0 15px 40px rgba(255, 0, 60, 0.2), inset 2px 2px 15px rgba(255, 0, 60, 0.1), inset -2px -2px 15px rgba(0, 0, 0, 0.8);
    transform: translateY(-10px) scale(1.02); 
}
.sec-theme:hover .phase-icon { color: #ff003c; text-shadow: 0 0 15px #ff003c; }
.btn-sec { background: rgba(255, 0, 60, 0.1); color: #ff003c; border-color: #ff003c; }
.btn-sec:hover { background: #ff003c; color: var(--bg-dark); box-shadow: 0 0 20px #ff003c; }


/* =========================================
   6. PANEL KONTAK & FOOTER
   ========================================= */
.contact-panel {
    padding: 60px 40px; text-align: center; margin-bottom: 60px;
    border: 1px solid rgba(0, 242, 254, 0.3);
}
.contact-panel h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.contact-panel p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 45px; max-width: 700px; margin-inline: auto; line-height: 1.7; }

.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; }
.contact-btn {
    text-decoration: none; font-size: 1.2rem; font-weight: 600;
    padding: 15px 30px; border-radius: 8px; display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s ease;
}

.wa-btn:hover { background: #25D366; color: #000; border-color: #25D366; box-shadow: 0 0 20px rgba(37, 211, 102, 0.5); transform: translateY(-3px); }
.email-btn:hover { background: #ea4335; color: #fff; border-color: #ea4335; box-shadow: 0 0 20px rgba(234, 67, 53, 0.5); transform: translateY(-3px); }
.ig-btn:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff; border-color: transparent; box-shadow: 0 0 20px rgba(220, 39, 67, 0.5); transform: translateY(-3px);
}

.dashboard-footer { text-align: center; padding: 30px 0; color: #666; font-size: 1rem; letter-spacing: 1px; }

/* =========================================
   7. RESPONSIVE DESIGN (HP & TABLET)
   ========================================= */
@media (max-width: 992px) {
    .detailed-phases { gap: 60px; }
    .profile-panel h2 { font-size: 3rem; }
    .animated-logo { font-size: 4.5rem; }
}

@media (max-width: 768px) {
    .glass-nav { padding: 15px 25px; position: sticky; top: 15px; margin-bottom: 40px; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: calc(100% + 15px); left: 0; width: 100%;
        background: linear-gradient(135deg, rgba(25, 30, 45, 0.95) 0%, rgba(10, 15, 25, 0.98) 100%);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border); border-radius: 16px;
        padding: 25px 0; gap: 20px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    }
    .nav-links.active { display: flex; animation: fadeInDown 0.3s ease forwards; }

    @keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

    .animated-logo { font-size: 3.2rem; }
    .splash-terminal p { font-size: 0.9rem; }
    
    .profile-panel { padding: 40px 20px; }
    .profile-panel h2 { font-size: 2.3rem; }
    .typing-container h3 { font-size: 1.4rem; }
    
    /* Penyesuaian Detail Card di HP agar tidak terlalu terdesak */
    .detailed-phases { gap: 50px; margin-bottom: 80px; }
    .detail-card { padding: 35px 25px; }
    .card-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .header-text h2 { font-size: 1.6rem; }
    
    .contact-btn { width: 100%; justify-content: center; }
}