@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Rajdhani:wght@400;500;600;700&display=swap');

/* === BASE STYLES & VARIABLES === */
:root {
    --bg-main: #0a0f1d;
    --bg-panel: #11192d;
    --neon-cyan: #00f2fe;
    --neon-blue: #4facfe;
    --neon-purple: #a855f7;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-border: rgba(0, 242, 254, 0.2);
    --glow-shadow: rgba(0, 242, 254, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* === ROBOT PRELOADER === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Ubah vw ke % agar aman dari scrollbar bug */
    height: 100vh;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.robot-loader {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-head {
    width: 60px;
    height: 52px;
    border: 3px solid var(--neon-cyan);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 0 15px var(--glow-shadow), inset 0 0 10px rgba(0, 242, 254, 0.2);
    animation: robotFloat 2s ease-in-out infinite;
}

.robot-antenna {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 15px;
    background: var(--neon-cyan);
}

.robot-antenna::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -3.5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: blink 1s infinite alternate;
}

.robot-eye {
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: scanEye 1.6s infinite ease-in-out;
}

.loading-text {
    margin-top: 25px;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    font-size: 0.9rem;
    text-shadow: 0 0 8px var(--glow-shadow);
    text-align: center; /* Pastikan teks rata tengah */
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes scanEye {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.2); }
}

@keyframes blink {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* === TYPOGRAPHY & HEADER === */
h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

header {
    position: fixed;
    top: 0; 
    width: 100%;
    background: rgba(10, 15, 29, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px 50px; 
    transition: all 0.3s ease;
}

/* === LOGO STYLING (NEW) === */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 55px; 
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.logo img:hover {
    transform: scale(1.05); 
    filter: drop-shadow(0 0 12px var(--neon-cyan)); 
}

/* === NAVIGATION === */
nav ul { 
    list-style: none; 
    display: flex; 
    gap: 25px; 
    align-items: center;
}

nav ul li { 
    position: relative; 
}

nav ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    padding: 10px 5px;
    transition: 0.3s;
    display: inline-block;
}

nav ul li a::after {
    content: '';
    position: absolute; 
    width: 0; 
    height: 2px;
    bottom: 0; 
    left: 0;
    background-color: var(--neon-cyan);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--neon-cyan);
}

nav ul li a:hover::after, nav ul li a.active::after { 
    width: 100%; 
}

nav ul li a:hover, nav ul li a.active { 
    color: var(--neon-cyan); 
    text-shadow: 0 0 8px var(--neon-cyan); 
}

/* Dropdown Menu */
.dropdown-content {
    display: none; 
    position: absolute;
    background: rgba(17, 25, 45, 0.97);
    backdrop-filter: blur(12px);
    min-width: 220px; 
    top: 100%; 
    left: 0;
    border: 1px solid var(--glass-border);
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.dropdown-content a { 
    display: block; 
    padding: 12px 20px; 
    font-size: 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    color: var(--text-main);
}

.dropdown-content a:hover { 
    background: rgba(0, 242, 254, 0.12); 
    padding-left: 24px; 
    color: var(--neon-cyan); 
}

.dropdown:hover .dropdown-content { 
    display: block; 
    animation: fadeIn 0.3s ease forwards; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(-10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Custom CSS Scrollbar untuk Menu Panjang */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}
.dropdown-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}
.dropdown-content::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 4px;
}

/* === SECTIONS === */
section {
    padding: 130px 50px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scroll-anim { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.scroll-anim.show { 
    opacity: 1; 
    transform: translateY(0); 
}

p { 
    font-size: 1.05rem; 
    line-height: 1.6; 
    letter-spacing: 0.5px; 
    margin-bottom: 15px; 
    color: var(--text-muted); 
}

strong { 
    color: var(--text-main); 
}

/* Poster Cards */
.poster-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.poster-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 15px; 
    padding: 30px; 
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.poster-card::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 50%; 
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 242, 254, 0.1), transparent);
    transform: skewX(-25deg); 
    transition: 0.5s;
}

.poster-card:hover::before { 
    left: 125%; 
}

.poster-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 30px var(--glow-shadow); 
    border-color: var(--neon-cyan); 
}

.poster-card h3 { 
    color: var(--neon-cyan); 
    margin-bottom: 12px; 
}

.poster-card p { 
    color: var(--text-muted); 
}

/* Video Frame */
.video-container { 
    margin: 35px 0; 
    border: 2px solid var(--glass-border); 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
    background: #000;
}

/* Gambar Responsif */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* === FOOTER === */
footer {
    background: #070a14;
    border-top: 2px solid var(--neon-cyan);
    padding: 50px; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    gap: 40px;
    box-shadow: 0 -10px 30px rgba(0, 242, 254, 0.05);
}

.footer-info, .footer-map { 
    flex: 1; 
    min-width: 300px; 
}

.footer-info p { 
    color: var(--text-muted); 
}

.footer-info a { 
    color: var(--neon-cyan); 
    text-decoration: none; 
    font-weight: 600; 
    transition: 0.3s; 
}

.footer-info a:hover { 
    color: var(--neon-blue); 
    text-shadow: 0 0 8px var(--neon-blue); 
}

/* Ripple */
.click-effect {
    position: absolute; 
    border-radius: 50%; 
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    animation: ripple 0.6s ease-out forwards; 
    pointer-events: none; 
    z-index: 9999;
}

@keyframes ripple {
    0% { width: 0; height: 0; opacity: 1; margin-left: 0; margin-top: 0; }
    100% { width: 150px; height: 150px; opacity: 0; margin-left: -75px; margin-top: -75px; }
}

/* ====================================================
   RESPONSIVE MEDIA QUERIES (PERBAIKAN UNTUK HP)
   ==================================================== */

/* Untuk Tablet dan HP secara umum */
@media (max-width: 768px) {
    /* Perbaikan Header & Navigasi */
    header {
        padding: 15px; /* Mengurangi padding di kiri kanan */
        flex-direction: column;
        gap: 15px;
    }
    
    .logo img {
        height: 45px; /* Sedikit mengecilkan logo di HP */
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    nav ul li a {
        font-size: 14px; /* Teks menu disesuaikan */
        padding: 6px 8px; /* Area klik diperlebar */
    }

    /* Perbaikan Sections */
    section {
        padding: 130px 20px 60px; /* Jarak padding kiri kanan lebih kecil (20px) */
    }

    /* Perbaikan Grid Poster */
    .poster-grid {
        grid-template-columns: 1fr; /* Memaksa kotak menjadi 1 kolom ke bawah */
        gap: 20px;
    }

    /* Perbaikan Footer */
    footer {
        padding: 30px 20px;
        flex-direction: column; /* Info dan map bertumpuk */
        gap: 30px;
    }

    .footer-info, .footer-map {
        min-width: 100%; /* Memenuhi lebar layar HP */
    }
    
    /* Penyesuaian Preloader di HP */
    .robot-head {
        width: 50px;
        height: 40px;
    }
    
    .robot-antenna {
        top: -12px;
        height: 12px;
    }
    
    .loading-text {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
}

/* Khusus untuk HP dengan layar sangat kecil (seperti iPhone SE) */
@media (max-width: 480px) {
    header {
        padding: 10px;
    }
    
    nav ul {
        gap: 5px;
    }
    
    nav ul li a {
        font-size: 12px; /* Teks lebih kecil lagi agar muat */
        padding: 4px;
    }
    
    section {
        padding: 140px 15px 40px;
    }
}