@font-face {
    font-family: 'CustomFullname';
    src: url('../assets/fonts/fullname.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'CustomDefault';
    src: url('../assets/fonts/default.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'CustomLine';
    src: url('../assets/fonts/line.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'CustomHighlight';
    src: url('../assets/fonts/highlighname.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'CustomCode';
    src: url('../assets/fonts/code.otf') format('opentype');
    font-display: swap;
}

.font-custom-line { font-family: 'CustomLine', sans-serif; }
.font-custom-highlight { font-family: 'CustomHighlight', sans-serif; }
.font-custom-code { font-family: 'CustomCode', monospace; }

body {
    font-family: 'CustomDefault', 'Inter', sans-serif; 
    background-color: #100f2f; 
    color: #ffffff;
    overflow-x: hidden;
}

#galaxy-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: #100f2f;
}

#galaxy-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

section {
    position: relative;
    z-index: 10;
}

.bg-grid-elegant {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(135, 82, 250, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(135, 82, 250, 0.05) 1px, transparent 1px);
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(205, 130, 255, 0.5);
}

@media (min-width: 768px) {
    .text-outline { -webkit-text-stroke: 2px rgba(205, 130, 255, 0.5); }
}

::-webkit-scrollbar { width: 8px; background: #100f2f; }
::-webkit-scrollbar-track { background: #0a091f; }
::-webkit-scrollbar-thumb { 
    background: #4500f9; 
    border-radius: 4px; 
    border: 2px solid #0a091f;
}
::-webkit-scrollbar-thumb:hover { 
    background: #cd82ff; 
}

.glass-card {
    background: rgba(16, 15, 47, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    border-color: #4500f9;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(69, 0, 249, 0.15); 
}

.perspective-1000 {
    perspective: 1000px;
}

@keyframes smoothUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes text-shimmer-fast {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes expandWidth {
    0% { width: 0; opacity: 0; }
    100% { width: 100%; opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float-slow { animation: float 6s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }

.glass-premium-2026 {
    background: rgba(16, 15, 47, 0.75); 
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.1); 
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden; 
    z-index: 50;
}

.nav-state-hidden {
    top: -100px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.nav-state-circle {
    top: 48px !important; 
    width: 48px !important; 
    height: 48px !important;
    border-radius: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(16, 15, 47, 0.85) !important; 
    backdrop-filter: blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 0 !important;
}

.nav-state-expanded {
    top: 0.75rem;
    width: 94%;
    height: auto;
    min-height: 80px;
    border-radius: 1rem;
    padding: 0;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .nav-state-expanded {
        top: 1.5rem;
        width: 90%; 
        max-width: 1280px; 
        height: 88px !important;
    }
}

@keyframes float-3d {
    0% { transform: translateY(0) rotate(0deg) translateX(0); }
    33% { transform: translateY(-12px) rotate(2deg) translateX(5px); }
    66% { transform: translateY(8px) rotate(-1deg) translateX(-3px); }
    100% { transform: translateY(0) rotate(0deg) translateX(0); }
}

@keyframes float-3d-reverse {
    0% { transform: translateY(0) rotate(0deg) translateX(0); }
    50% { transform: translateY(15px) rotate(-2deg) translateX(-5px); }
    100% { transform: translateY(0) rotate(0deg) translateX(0); }
}

.animate-float-3d { animation: float-3d 8s ease-in-out infinite; }
.animate-float-3d-slow { animation: float-3d-reverse 12s ease-in-out infinite; }
.animate-float-3d-delay { animation: float-3d 10s ease-in-out 1s infinite; }

.ide-card-premium {
    background: #0a091f; 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5); 
    overflow: hidden;
    position: relative;
}

.glass-vscode-dark {
    background: rgba(2, 6, 23, 0.75); 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.group:hover .glass-vscode-dark {
    border-color: rgba(69, 0, 249, 0.3);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(69, 0, 249, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.glass-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-gutter {
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-tab-active {
    background: rgba(69, 0, 249, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}
.content-hidden { opacity: 0 !important; pointer-events: none; }
.content-visible { opacity: 1 !important; pointer-events: auto; }

@keyframes softPastelFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-pastel-lux {
    background: linear-gradient(
        90deg,
        #ffffff 0%, 
        #cd82ff 30%, 
        #4500f9 50%, 
        #cd82ff 70%, 
        #ffffff 100% 
    );
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease;
    background-position: 0% 50%; 
    font-weight: 700;
}

.group:hover .text-pastel-lux {
    animation: softPastelFlow 3s ease infinite;
    text-shadow: 0 0 25px rgba(69, 0, 249, 0.6);
}

.social-glass-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #cd82ff; 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-glass-btn:hover {
    background: #4500f9; 
    color: #ffffff;
    border-color: #4500f9;
    box-shadow: 0 0 20px rgba(69, 0, 249, 0.6);
    transform: scale(1.1) rotate(5deg);
}

.nav-link-pastel {
    position: relative;
    font-weight: 600;
    color: #cbd5e1; 
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link-pastel:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.nav-link-pastel::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #4500f9, #cd82ff, transparent);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 10px #4500f9;
}

.nav-link-pastel:hover::after {
    width: 100%;
}

.nav-hidden { transform: translateY(-150%); opacity: 0; }
.nav-visible { transform: translateY(0); opacity: 1; }

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Add to css/style.css */

.animate-spin-slow {
    animation: spin 15s linear infinite;
}

.perspective-1000 {
    perspective: 1000px;
}

.rotate-y-2 {
    transform: rotateY(10deg);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateY(0);
        height: 8px;
    }
    50% {
        height: 12px; /* Sedikit memanjang saat bergerak */
    }
    100% {
        opacity: 0;
        transform: translateY(20px); /* Bergerak ke bawah lalu hilang */
        height: 4px;
    }
}

.animate-scroll-wheel {
    animation: scroll-wheel 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}


/* --- SYSTEM V7 STYLES (PRECISION) --- */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- 1. MAIN STICKY BAR (THE GLASS HEADER) --- */
.glass-nav-container {
    background: rgba(2, 1, 5, 0.75); /* Gelap tapi tembus pandang */
    backdrop-filter: blur(16px) saturate(180%); /* EFEK KACA BURAM KUAT */
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- 2. MAIN CATEGORY BUTTONS (NO BG, JUST GLOW) --- */
.nav-tab {
    position: relative;
    padding: 1.2rem 0;
    margin: 0 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: transparent !important; /* SESUAI REQUEST: NO BG */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-tab:hover {
    color: #e2e8f0;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Garis Neon Bawah */
.nav-tab::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: #4500f9;
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 10px #4500f9;
}

.nav-tab.active {
    color: #fff;
    text-shadow: 0 0 15px rgba(69,0,249,0.8);
}
.nav-tab.active::after {
    transform: scaleX(1);
}

/* --- 3. SUB-FILTER PANEL (THE GLASS PANE) --- */
.glass-panel {
    background: rgba(5, 4, 10, 0.6); /* Lebih transparan */
    backdrop-filter: blur(12px); /* Blur konten di belakangnya */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 10px 20px -10px rgba(0,0,0,0.8); /* Shadow dalam agar terlihat dalam */
}

/* Grid Layout (Justified & Rapi) */
.sub-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 Kolom */
    gap: 10px;
    width: 100%;
}
@media (min-width: 768px) { .sub-filter-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sub-filter-grid { grid-template-columns: repeat(6, 1fr); } }

/* --- 4. SUB-CATEGORY BUTTONS (GLASS CHIPS) --- */
.tech-pill-select {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 0.8rem 0.5rem;
    
    font-family: 'Fira Code', monospace; font-size: 0.7rem;
    color: #94a3b8;
    
    /* GLASS EFFECT PADA BUTTON */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    
    cursor: pointer; transition: all 0.3s ease;
    text-transform: uppercase;
}

.tech-pill-select:hover {
    background: rgba(255, 255, 255, 0.08); /* Sedikit lebih terang saat hover */
    border-color: rgba(69, 0, 249, 0.5); /* Border jadi ungu neon */
    color: white;
    box-shadow: 0 0 15px rgba(69, 0, 249, 0.15); /* Glow halus */
    transform: translateY(-1px);
}

.tech-pill-select.active {
    background: rgba(69, 0, 249, 0.15); /* Ungu transparan */
    border-color: #4500f9;
    color: #fff;
    box-shadow: 0 0 20px rgba(69, 0, 249, 0.3); /* Strong Glow */
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* --- CLEAN GLASS CARD (V8.0) --- */

.holo-card {
    position: relative;
    background: rgba(8, 7, 15, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex; flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
}

/* Hover State */
.holo-card:hover {
    background: rgba(15, 12, 41, 0.8);
    border-color: rgba(69, 0, 249, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}

/* Image Section */
.holo-media {
    position: relative;
    width: 100%; 
    aspect-ratio: 16/9; 
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.holo-media::after {
    /* Grid sangat halus hanya untuk tekstur, bukan dekorasi berat */
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.holo-img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.5s ease;
}

.holo-card:hover .holo-img {
    filter: grayscale(0%) contrast(1.05);
    transform: scale(1.05);
}

/* Content Section */
.holo-content {
    padding: 1.5rem; 
    display: flex; flex-direction: column; flex: 1;
    position: relative;
    z-index: 5;
}

/* Typography */
.holo-domain {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem; 
    color: #4500f9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    display: block;
}

.holo-title {
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 1.35rem; font-weight: 700;
    color: #e2e8f0; 
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.holo-card:hover .holo-title { color: #fff; }

/* Rating Badge */
.holo-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(251, 191, 36, 0.1); /* Gold tint background */
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #fbbf24; /* Gold text */
}

.holo-desc {
    font-size: 0.85rem; 
    color: #94a3b8; 
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    /* Clean description without decorations */
}

/* Footer elements */
.tech-tag {
    display: inline-block;
    padding: 3px 6px;
    margin-right: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.6rem; font-family: 'Fira Code', monospace;
    color: #64748b;
}

/* Precision Corner (Tetap dipertahankan agar tidak terlalu 'flat', tapi minimalis) */
.card-hud-corner {
    position: absolute; width: 6px; height: 6px;
    border-color: rgba(255,255,255,0.2);
    border-style: solid;
    transition: all 0.3s ease;
    z-index: 10;
}
.c-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.c-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.c-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.c-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.holo-card:hover .card-hud-corner {
    border-color: #4500f9;
    width: 10px; height: 10px;
}

/* 4. METRICS & ACTION ROW (Grid Layout) */
.holo-footer {
    margin-top: auto;
    display: grid; grid-template-columns: 1fr auto;
    align-items: center; gap: 1rem;
    padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
}

/* Tech Stack Text */
.holo-stack {
    font-family: 'Fira Code', monospace; font-size: 0.65rem; color: #64748b;
    text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* CYBER BUTTON (Replaces old ugly button) */
.btn-cyber-launch {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.6rem 1.2rem;
    background: #0f0c29;
    border: 1px solid rgba(69, 0, 249, 0.3);
    color: white;
    font-family: 'Fira Code', monospace; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    transition: all 0.3s ease;
    overflow: hidden;
}
.btn-cyber-launch:hover {
    background: #4500f9;
    border-color: #4500f9;
    box-shadow: 0 0 20px rgba(69, 0, 249, 0.4);
}
.btn-cyber-launch::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-cyber-launch:hover::before { left: 100%; }

.btn-cyber-lock {
    background: transparent; border: 1px solid rgba(255,255,255,0.1); color: #64748b;
    padding: 0.6rem 1.2rem; font-family: 'Fira Code', monospace; font-size: 0.7rem;
    cursor: not-allowed;
}

/* Animation Loader */
@keyframes scan-vertical { 0% { top: -50%; } 100% { top: 150%; } }
.animate-scan-vertical { animation: scan-vertical 2s linear infinite; }
.animate-slide-down { animation: slideDown 0.3s ease-out forwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- PAGINATION BUTTONS --- */
#pagination-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

.btn-cyber-pagination {
    position: relative;
    padding: 0.8rem 2rem;
    background: rgba(69, 0, 249, 0.1);
    border: 1px solid rgba(69, 0, 249, 0.3);
    color: #fff;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-cyber-pagination:hover {
    background: rgba(69, 0, 249, 0.3);
    border-color: #4500f9;
    box-shadow: 0 0 20px rgba(69, 0, 249, 0.4);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Style khusus untuk tombol "Reached End" (Reset) */
.btn-cyber-reset {
    background: rgba(205, 130, 255, 0.05);
    border-color: rgba(205, 130, 255, 0.3);
    color: #cd82ff;
}

.btn-cyber-reset:hover {
    background: rgba(205, 130, 255, 0.15);
    border-color: #cd82ff;
    box-shadow: 0 0 20px rgba(205, 130, 255, 0.3);
    color: #fff;
}

/* Style untuk indikator statis (saat kartu sedikit) */
.btn-cyber-static {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: #64748b; /* Slate-500 */
    cursor: default; /* Cursor biasa, bukan pointer */
    pointer-events: none; /* Tidak bisa diklik */
}

.btn-cyber-static:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    text-shadow: none;
}