/* ============================================================
   SKYLIUM — ANIMATIONS CSS
   Scroll reveals, hero entrances, hover micro-interactions
============================================================ */

/* ============================================================
   SCROLL REVEAL BASE
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity   0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay variants */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.52s; }

/* Direction variants */
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-scale { transform: scale(0.92); }
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  transform: translateX(0) scale(1);
}

/* ============================================================
   HERO ENTRANCE ANIMATIONS
============================================================ */
@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-badge       { animation: heroFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-headline    { animation: heroFadeUp   0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.hero-lead        { animation: heroFadeUp   0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.40s both; }
.hero-actions     { animation: heroFadeUp   0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }
.hero-scroll-hint { animation: heroFadeIn   1s   linear                         1.1s  both; }

/* ============================================================
   PULSING DOT
============================================================ */
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--teal-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 180, 166, 0.5);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(0, 180, 166, 0.55); opacity: 1; }
  70%  { box-shadow: 0 0 0 8px rgba(0, 180, 166, 0); opacity: 0.7; }
  100% { box-shadow: 0 0 0 0 rgba(0, 180, 166, 0); opacity: 1; }
}

/* ============================================================
   SCROLL INDICATOR
============================================================ */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.45;
}
.scroll-indicator__text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.scroll-indicator__line {
  width: 1.5px;
  height: 44px;
  position: relative;
  background: rgba(0, 180, 166, 0.2);
  overflow: hidden;
  border-radius: 2px;
}
.scroll-indicator__line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 50%;
  background: var(--teal);
  border-radius: 2px;
  animation: scrollDrop 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes scrollDrop {
  0%   { top: -50%; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* ============================================================
   LOADING SHIMMER (skeleton)
============================================================ */
.shimmer-loading {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(0, 180, 166, 0.08) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 200% 100%;
  animation: shimmerLoad 1.8s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmerLoad {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ============================================================
   TEAL GLOW PULSE (decorative elements)
============================================================ */
.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(0, 180, 166, 0.2); }
  50%       { box-shadow: 0 0 32px rgba(0, 180, 166, 0.5), 0 0 64px rgba(0, 180, 166, 0.15); }
}

/* ============================================================
   PAGE TRANSITION
============================================================ */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-in-out);
}
.page-transition-overlay.active { opacity: 1; pointer-events: all; }

/* ============================================================
   CANVAS HERO FADE
============================================================ */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: heroFadeIn 1.5s ease 0.2s forwards;
}

/* ============================================================
   STAT NUMBER COUNT ANIMATION SUPPORT
============================================================ */
.stat-counting {
  display: inline-block;
  min-width: 1ch;
}

/* ============================================================
   TESTIMONIAL STARS
============================================================ */
.star-rating {
  display: flex;
  gap: 3px;
  margin-bottom: 0.75rem;
}
.star-rating svg { color: #FFB800; }

/* ============================================================
   NOTIFICATION / TOAST
============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(8, 24, 50, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-in-out);
  min-width: 280px;
  max-width: 380px;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast__icon { font-size: 1.2rem; flex-shrink: 0; }
.toast__text { font-size: 0.88rem; color: var(--text-primary); line-height: 1.5; }

/* ============================================================
   SECTION DIVIDER
============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-border) 30%, var(--teal-border) 70%, transparent);
  margin-block: 0;
}

/* ============================================================
   HOVER TILT (micro-interaction for cards)
============================================================ */
.tilt-card {
  transition: transform 0.2s var(--ease-out);
  transform-style: preserve-3d;
}

/* ============================================================
   TYPING CURSOR (hero)
============================================================ */
.cursor-blink {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--teal-bright);
  margin-left: 2px;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ============================================================
   DECORATIVE GRID LINES (background element)
============================================================ */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 180, 166, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 166, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ============================================================
   ADMIN BAR OFFSET
============================================================ */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
}
