@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.fade-in {
  animation: fade-in 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-anim { animation: float 4s ease-in-out infinite; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(0,255,255,0.4); }
  50% { box-shadow: 0 0 30px rgba(0,255,255,0.8); }
}
.pulse-glow { animation: pulse-glow 2.5s infinite ease-in-out; }

:root {
  --bg-dark: #020617;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-bg-dark: rgba(15, 23, 42, 0.7);
  --primary-cyan: #0ea5e9;
  --accent-cyan: #06b6d4;
  --text-light: #0f172a;
  --text-dim: rgba(15,23,42,0.7);
  --grid-lines: rgba(14, 165, 233, 0.05);
  --glass-blur: blur(12px);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-border-dark: rgba(255, 255, 255, 0.05);
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

/* Static Brand Gradient Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.03) 0px, transparent 50%),
    #f8fafc;
  z-index: -2;
  pointer-events: none;
}

.dark body::before {
  background: 
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
    #020617; /* Darker Slate-950 instead of blue */
}

/* Glassmorphism Utility */
.glass {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.dark .glass {
  background: var(--card-bg-dark);
  border: 1px solid var(--glass-border-dark);
}

/* Enhanced Shadows */
.shadow-premium {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.dark .shadow-premium {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hover Scale */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ===================================================
   🎨 BACKGROUND ENHANCEMENTS
   =================================================== */
.bg-hero, .bg-about, .bg-services, .bg-edukasi {
  background: transparent !important;
}

.grid-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--grid-lines) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--grid-lines) 1.5px, transparent 1.5px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

.dark .grid-pattern::before {
  --grid-lines: rgba(14, 165, 233, 0.08);
  opacity: 0.4;
}

/* Floating Animation */
@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.floating-shape {
  animation: float-subtle 6s ease-in-out infinite;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   ✨ TEKS & GLOW
   =================================================== */
.glow-text { color: var(--primary-cyan); transition: 0.2s ease; }
.glow-text:hover { opacity: 0.9; }

.soft-glow { opacity: 0.95; }

header h1 {
  letter-spacing: 3px;
  font-weight: 700;
  background: linear-gradient(90deg, #0284c7, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
}

/* ===================================================
   ⚙️ SERVICE SECTION
   =================================================== */
.service-card {
  @apply glass hover-lift shadow-premium rounded-3xl p-8 transition-all duration-500;
}

/* ===================================================
   💠 UI COMPONENTS
   =================================================== */
.btn-premium {
  @apply px-8 py-4 rounded-2xl font-bold transition-all duration-300 transform hover:-translate-y-1 hover:shadow-2xl active:scale-95 flex items-center justify-center gap-3;
}

.btn-primary {
  @apply bg-primary text-white hover:bg-sky-600 shadow-sky-500/20;
}

.btn-glass {
  @apply glass text-slate-700 dark:text-white hover:bg-white/40 dark:hover:bg-slate-800/40;
}

/* Navbar Enhancement */
#navbar.scrolled {
  @apply shadow-xl border-b-primary/10;
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) !important;
}

.dark #navbar.scrolled {
  background: rgba(2, 6, 23, 0.8) !important;
}

/* Neural Network Background Optimization */
.neural-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

.neural-node {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-cyan);
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 10px var(--primary-cyan);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-cyan), var(--accent-cyan));
  border-radius: 20px;
  border: 3px solid #f1f5f9;
}

.dark ::-webkit-scrollbar-track { background: #020617; }
.dark ::-webkit-scrollbar-thumb { border-color: #020617; }

/* ===================================================
   📱 RESPONSIVE REFINEMENTS
   =================================================== */
@media (max-width: 768px) {
  h1 { @apply text-4xl !important; }
  .section-padding { @apply py-12 !important; }
}
