/* =========================================
   1. GLOBAL RESET & BASE STYLES
   ========================================= */
body {
  background-color: #020617; /* Slate 950 */
  color: #f8fafc; /* Slate 50 */
  font-family: "Outfit", sans-serif;
  overflow-x: hidden; /* Mencegah horizontal scroll */
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar (Chrome/Safari/Edge) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* =========================================
   2. GLASSMORPHISM SYSTEM
   ========================================= */
/* Glass Standard (Card, Widget) */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); /* Safari Support */
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Glass Strong (Navbar, Sticky Elements) */
.glass-strong {
  background: rgba(15, 23, 42, 0.7); /* Lebih gelap */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Interactive Glass Card (Hover Effects) */
.glass-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2); /* Indigo Shadow Glow */
}

/* =========================================
   3. BACKGROUND ANIMATION (MOVING BLOBS)
   ========================================= */
.blob-cont {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px); /* Blur tinggi untuk efek halus */
  opacity: 0.5;
  will-change: transform; /* Optimasi performa */
}

/* Blob 1: Indigo (Top Left) */
.blob-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: #4f46e5;
  animation: blob-bounce 25s infinite ease-in-out alternate;
}

/* Blob 2: Pink (Bottom Right) */
.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: #db2777;
  animation: blob-bounce 30s infinite ease-in-out alternate-reverse;
}

/* Blob 3: Purple (Center/Floating) */
.blob-3 {
  top: 30%;
  left: 30%;
  width: 400px;
  height: 400px;
  background: #7c3aed;
  animation: blob-pulse 20s infinite ease-in-out alternate;
}

/* =========================================
   4. UTILITIES & TYPOGRAPHY
   ========================================= */
/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(to right, #818cf8, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 3D Perspective Container */
.perspective-1000 {
  perspective: 1000px;
}

/* Code Window Styling */
.code-window {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 50px rgba(0, 0, 0, 0.5);
}

/* =========================================
   5. INTERACTIVE ANIMATIONS
   ========================================= */

/* A. Infinite Marquee Scroll */
.scroll-track {
  display: flex;
  width: calc(250px * 14); /* Sesuaikan dengan jumlah item */
  animation: scroll 40s linear infinite;
}

.scroll-track:hover {
  animation-play-state: paused;
}

/* B. Scroll Reveal (Fade Up) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* C. Floating Elements */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 8s ease-in-out infinite 2s; /* Delay start */
}

/* D. Spinner Slow */
.animate-spin-slow {
  animation: spin 12s linear infinite;
}

/* =========================================
   6. KEYFRAMES DEFINITIONS
   ========================================= */

/* Blob Movement (Bounce/Wander) */
@keyframes blob-bounce {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Blob Pulse (Breathing) */
@keyframes blob-pulse {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, 50px) scale(1.2);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.8);
  }
  100% {
    transform: translate(20px, -20px) scale(1);
  }
}

/* Floating Vertical */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Infinite Horizontal Scroll */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 7));
  } /* Adjust value based on item width */
}

/* Rotate Spin */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Scanner Effect (untuk Gear Section) */
@keyframes scan {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(400%);
    opacity: 0;
  }
}

/* Fade Sides for Testimonial Slider */
.fade-sides {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}
