/* 2026 Design Refresh — Shared Animation System */

/* ── Keyframes ─────────────────────────────────── */

@keyframes orb-drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(6%, 4%) scale(1.08); }
  66%  { transform: translate(-4%, 7%) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes orb-drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-5%, -6%) scale(1.06); }
  66%  { transform: translate(5%, -3%) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Word cycling — 3 words × 3 s = 9 s loop */
@keyframes word-cycle {
  0%    { opacity: 0; transform: translateY(10px); filter: blur(6px); }
  8%    { opacity: 1; transform: translateY(0);    filter: blur(0); }
  28%   { opacity: 1; transform: translateY(0);    filter: blur(0); }
  36%   { opacity: 0; transform: translateY(-10px); filter: blur(6px); }
  100%  { opacity: 0; transform: translateY(-10px); filter: blur(6px); }
}

/* Scroll reveal */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Floating Orbs ─────────────────────────────── */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  will-change: transform;
}
.orb-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #22d3ee, #0891b2);
  top: -12%;
  right: -8%;
  animation: orb-drift-a 18s ease-in-out infinite;
}
.orb-b {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #0891b2, #0c4a6e);
  bottom: -10%;
  left: -6%;
  animation: orb-drift-b 22s ease-in-out infinite;
}

/* ── Cycling Hero Keyword ──────────────────────── */
.hero-keyword-wrap {
  position: relative;
  height: 1.4em;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.hero-word {
  position: absolute;
  inset: 0;
  color: #22d3ee;
  font-weight: 700;
  font-size: inherit;
  opacity: 0;
  animation: word-cycle 9s ease-in-out infinite;
}
.hero-word:nth-child(1) { animation-delay: 0s; }
.hero-word:nth-child(2) { animation-delay: 3s; }
.hero-word:nth-child(3) { animation-delay: 6s; }

/* ── Mobile Header: primary teal (blue teal brand color) ─── */
.mobile-header {
  background: #0891b2 !important;
  transition: box-shadow 0.35s ease;
}
.mobile-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

/* ── Scroll Reveal ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Tactile Card Hover ────────────────────────── */
.tactile-card {
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.45s cubic-bezier(0.16,1,0.3,1) !important;
  will-change: transform;
}
.tactile-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 16px 40px rgba(8, 145, 178, 0.14) !important;
}

/* ── Sidebar Glassmorphism ─────────────────────── */
.sidebar {
  background: rgba(12, 54, 90, 0.96) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-right: 1px solid rgba(255,255,255,0.07);
}

/* ── Typography Polish ─────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-style: normal;
}
p {
  font-style: normal;
}
/* Body text max-width for comfortable reading line length */
.section-title p,
.hero-content p,
.benefit-card p,
.service-card p,
.process-step p,
.cta-content p,
.about-content p,
.feature-text p,
.content-grid p,
.section > .container > p {
  max-width: 680px;
}
.section {
  padding: 5rem 0;
}

/* ── prefers-reduced-motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
  .hero-word { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tactile-card:hover { transform: none !important; }
  .mobile-header { transition: none !important; }
}
