/* ============================================================
   DENTWIDE — Animations
   ============================================================ */

/* ── REVEAL ON SCROLL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal--left  { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--scale { transform: scale(0.92); }

.reveal--left.revealed,
.reveal--right.revealed { transform: translateX(0); }
.reveal--scale.revealed { transform: scale(1); }

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-navy-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(201,169,110,.10) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(26,39,68,.8) 0%, transparent 60%),
    linear-gradient(160deg, #0d1526 0%, #1a2744 50%, #243357 100%);
}

/* Animated geometric pattern overlay */
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--color-gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-gold) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: patternShift 20s linear infinite;
}

@keyframes patternShift {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(201,169,110,.12);
  border: 1px solid rgba(201,169,110,.25);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  animation: heroFadeUp 0.8s ease 0.2s both;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  animation: heroFadeUp 0.8s ease 0.4s both;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255,255,255,.72);
  line-height: var(--line-height-loose);
  margin-bottom: var(--space-10);
  animation: heroFadeUp 0.8s ease 0.6s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s ease 0.8s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: heroFadeUp 0.8s ease 1.2s both;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  width: 100%;
  top: -100%;
  height: 100%;
  background: var(--color-gold);
  animation: scrollLine 1.8s ease infinite;
}

@keyframes scrollLine {
  from { top: -100%; }
  to   { top: 100%; }
}

.hero__scroll-text {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: horizontal-tb;
}

/* ── FLOATING ACCENT SHAPES ──────────────────────────────── */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: float 8s ease-in-out infinite;
}

.hero__shape--1 {
  width: 600px;
  height: 600px;
  background: var(--color-gold);
  top: -200px;
  right: -150px;
  animation-delay: 0s;
}

.hero__shape--2 {
  width: 300px;
  height: 300px;
  background: var(--color-navy-light);
  bottom: -50px;
  left: 30%;
  animation-delay: -4s;
  opacity: 0.08;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(3deg); }
}

/* ── LOADING ─────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── PAGE TRANSITION ─────────────────────────────────────── */
.page-fade {
  animation: pageFade 0.4s ease both;
}

@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
