/* ===============================
   GLOBAL FONT
================================ */
* {
  font-family: "Open Sans", sans-serif;
}

.roboto {
  font-family: "Roboto Mono";
}

/* ===============================
   COLOR VARIABLES
================================ */
:root {
  --color-primary: #457B9D;
  --color-primary-dark: #3b6a88;
  --color-white: #ffffff;
  --color-text-dark: #1f2937;
}

/* ===============================
   NAVBAR
================================ */
.navbar.scrolled #nav-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.navbar.scrolled a {
  color: var(--color-text-dark);
}

.navbar.scrolled a:hover {
  color: var(--color-primary);
}


/* ===============================
   LINKS
================================ */
a {
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

/* ===============================
   BUTTONS
================================ */
.btn-primary,
#ctaBtn {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover,
#ctaBtn:hover {
  background-color: var(--color-primary-dark);
}

/* ===============================
   TEXT UTILITIES
================================ */
.text-primary {
  color: var(--color-primary);
}

.bg-primary {
  background-color: var(--color-primary);
}

/* SPIN ANIMATION */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 8s linear infinite;
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay halus */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* Hover micro-interaction */
.reveal img {
  transition: transform 0.3s ease;
}

.reveal:hover img {
  transform: translateY(-4px) scale(1.03);
}

.no-reveal-hover:hover img {
  transform: none;
}

.bubble {
  position: absolute;
  bottom: -30px;
  border-radius: 9999px;
  animation: floatUp 7s linear infinite;
  opacity: 0;
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  60% {
    opacity: 1;
  }

  80% {
    opacity: 0;
  }

  100% {
    transform: translateY(-350px);
    /* TIDAK sampai paragraf */
    opacity: 0;
  }
}


/* Delay Variations */
.delay-1 {
  animation-delay: 1s;
}

.delay-2 {
  animation-delay: 2s;
}

.delay-3 {
  animation-delay: 3s;
}

.delay-4 {
  animation-delay: 4s;
}

.delay-5 {
  animation-delay: 5s;
}

.delay-6 {
  animation-delay: 6s;
}
