/* --- Base Setup --- */
:root {
    --color-primary: #0F172A; /* Navy Gelap */
    --color-accent: #0EA5E9;  /* Cyan */
    --color-code-bg: #1E1E1E; /* Warna background editor */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* --- Glassmorphism --- */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- Tech Background --- */
.bg-tech-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
}

/* --- Text Gradients --- */
.text-gradient {
    background: linear-gradient(to right, #0F172A, #0EA5E9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- API Code Block Styles --- */
.code-window {
    background: var(--color-code-bg);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    font-family: 'Consolas', 'Monaco', monospace;
}
.code-header {
    background: #252526;
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.code-body {
    padding: 20px;
    color: #d4d4d4;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
}
.keyword { color: #569CD6; }
.string { color: #CE9178; }
.property { color: #9CDCFE; }
.number { color: #B5CEA8; }
.comment { color: #6A9955; }

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Go To Top */
#goTopBtn {
    transition: all 0.3s ease;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
#goTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}