/* ==================== ONTOH Common Styles ==================== */

/* Base */
html { font-size: 17px; }
* { word-break: keep-all; }
* { transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }

/* ==================== Keyframes ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(2rem); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes chevronFade {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

/* ==================== Scroll Reveal ==================== */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(4px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.stagger-1 { animation-delay: 80ms; }
.stagger-2 { animation-delay: 160ms; }
.stagger-3 { animation-delay: 240ms; }
.stagger-4 { animation-delay: 320ms; }
.stagger-5 { animation-delay: 400ms; }
.stagger-6 { animation-delay: 480ms; }

/* ==================== Spring Transition ==================== */
.spring {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== Navigation ==================== */
.nav-transparent {
  background: transparent;
}
.nav-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(27, 46, 106, 0.06);
  box-shadow: 0 1px 20px rgba(27, 46, 106, 0.06);
}

/* ==================== Noise Overlay ==================== */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ==================== Double Bezel Cards ==================== */
.double-bezel {
  background: rgba(27, 46, 106, 0.03);
  padding: 3px;
  border-radius: 1.5rem;
  box-shadow: 0 0 0 1px rgba(27, 46, 106, 0.06);
}
.double-bezel-inner {
  background: #ffffff;
  border-radius: calc(1.5rem - 3px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 30px -8px rgba(27, 46, 106, 0.06);
  padding: 2rem;
}

/* ==================== Section Spacing ==================== */
.section-spacious {
  padding-top: 7rem;
  padding-bottom: 7rem;
}
@media (min-width: 768px) {
  .section-spacious {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
}

/* ==================== CTA Arrow ==================== */
.cta-arrow {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .cta-arrow {
  transform: translateX(4px);
}

/* ==================== Mobile Menu ==================== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu .menu-link {
  opacity: 0;
  transform: translateY(1.5rem);
}
.mobile-menu.open .menu-link {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
