/* ==========================================================================
   DENIS BELL ZAHNARZT — Animation System
   Scroll Reveals · Chromatic Aberration · Lens Effects · Micro-interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SCROLL-REVEAL KEYFRAMES & CLASSES
   -------------------------------------------------------------------------- */

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

@keyframes revealDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealRotate {
  from {
    opacity: 0;
    transform: rotate(-3deg) translateY(30px);
  }
  to {
    opacity: 1;
    transform: rotate(0) translateY(0);
  }
}

/* Base reveal state — hidden by default */
.reveal,
.reveal-up,
.reveal-down,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  will-change: transform, opacity;
}

/* Triggered states */
.reveal.is-revealed,
.reveal-up.is-revealed {
  animation: revealUp 0.8s var(--ease-out-expo) forwards;
}

.reveal-down.is-revealed {
  animation: revealDown 0.8s var(--ease-out-expo) forwards;
}

.reveal-left.is-revealed {
  animation: revealLeft 0.9s var(--ease-out-expo) forwards;
}

.reveal-right.is-revealed {
  animation: revealRight 0.9s var(--ease-out-expo) forwards;
}

.reveal-scale.is-revealed {
  animation: revealScale 0.7s var(--ease-out-expo) forwards;
}

/* Stagger delays — applied via JS or manually */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }
.stagger-9 { animation-delay: 0.45s; }
.stagger-10 { animation-delay: 0.5s; }


/* --------------------------------------------------------------------------
   2. CHROMATIC ABERRATION KEYFRAMES
   -------------------------------------------------------------------------- */

/* Subtle idle chromatic shimmer */
@keyframes chromaticShimmer {
  0%, 100% {
    text-shadow:
      -0.5px 0 0 var(--chroma-red),
      0.5px 0 0 var(--chroma-blue);
  }
  25% {
    text-shadow:
      -1px 0 0 var(--chroma-red),
      1px 0 0 var(--chroma-blue);
  }
  50% {
    text-shadow:
      -0.5px 0.5px 0 var(--chroma-red),
      0.5px -0.5px 0 var(--chroma-blue);
  }
  75% {
    text-shadow:
      -1px -0.3px 0 var(--chroma-red),
      1px 0.3px 0 var(--chroma-blue);
  }
}

/* Chromatic pulse — for hover / focus states */
@keyframes chromaticPulse {
  0% {
    text-shadow:
      0 0 0 var(--chroma-red),
      0 0 0 var(--chroma-blue);
  }
  50% {
    text-shadow:
      -2px 0 0 var(--chroma-red),
      2px 0 0 var(--chroma-blue);
  }
  100% {
    text-shadow:
      0 0 0 var(--chroma-red),
      0 0 0 var(--chroma-blue);
  }
}

/* Box-shadow based chromatic aberration for containers */
@keyframes chromaticBorder {
  0%, 100% {
    box-shadow:
      -1px 0 0 var(--chroma-red),
      1px 0 0 var(--chroma-blue),
      0 -1px 0 var(--chroma-green);
  }
  33% {
    box-shadow:
      -2px 0 0 var(--chroma-red),
      2px 0 0 var(--chroma-blue),
      0 -1px 0 var(--chroma-green);
  }
  66% {
    box-shadow:
      -1px 1px 0 var(--chroma-red),
      1px -1px 0 var(--chroma-blue),
      0 1px 0 var(--chroma-green);
  }
}

/* Chromatic glitch — for special emphasis moments */
@keyframes chromaticGlitch {
  0%, 90%, 100% {
    text-shadow: none;
    transform: translate(0);
  }
  92% {
    text-shadow:
      -3px 0 0 var(--chroma-red),
      3px 0 0 var(--chroma-blue);
    transform: translate(-1px, 1px);
  }
  94% {
    text-shadow:
      2px 0 0 var(--chroma-red),
      -2px 0 0 var(--chroma-blue);
    transform: translate(1px, -1px);
  }
  96% {
    text-shadow:
      -1px 1px 0 var(--chroma-red),
      1px -1px 0 var(--chroma-blue);
    transform: translate(0);
  }
}

/* Apply classes */
.chroma-text {
  animation: chromaticShimmer 6s ease-in-out infinite;
}

.chroma-text-hover:hover {
  animation: chromaticPulse 0.6s ease-out;
}

.chroma-border {
  animation: chromaticBorder 8s ease-in-out infinite;
}

/* Chromatic image edge effect */
.chroma-image {
  position: relative;
}

.chroma-image::before,
.chroma-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-slow) ease;
}

.chroma-image::before {
  box-shadow: inset -3px 0 6px -3px var(--chroma-red),
              inset 3px 0 6px -3px var(--chroma-blue);
}

.chroma-image::after {
  box-shadow: inset 0 -3px 6px -3px var(--chroma-green),
              inset 0 3px 6px -3px rgba(200,100,255,0.3);
}

.chroma-image:hover::before,
.chroma-image:hover::after {
  opacity: 0.6;
}

/* Edge vignette with chromatic split */
@keyframes chromaticEdge {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.chroma-edge {
  position: relative;
}

.chroma-edge::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg,
      var(--chroma-red) 0%,
      transparent 8%,
      transparent 92%,
      var(--chroma-blue) 100%
    );
  opacity: 0.12;
  mix-blend-mode: screen;
}


/* --------------------------------------------------------------------------
   3. LENS FLARE & LIGHT EFFECTS
   -------------------------------------------------------------------------- */

/* Lens flare pseudo-element */
@keyframes lensFlareFloat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.6;
  }
}

@keyframes lensFlareRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.lens-flare {
  position: relative;
  overflow: hidden;
}

.lens-flare::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  top: 20%;
  left: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse,
    rgba(201,168,76,0.15) 0%,
    rgba(201,168,76,0.05) 30%,
    transparent 60%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: lensFlareFloat 5s ease-in-out infinite;
  mix-blend-mode: screen;
}

/* Secondary flare streak */
.lens-flare::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 2px;
  top: 30%;
  left: 30%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.03) 20%,
    rgba(201,168,76,0.08) 50%,
    rgba(255,255,255,0.03) 80%,
    transparent 100%
  );
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 2;
  animation: lensFlareFloat 7s ease-in-out infinite 1s;
}

/* Prismatic light spot */
@keyframes prismaticShift {
  0%, 100% {
    background: radial-gradient(
      circle,
      rgba(201,168,76,0.12) 0%,
      rgba(37,99,235,0.06) 40%,
      transparent 70%
    );
  }
  33% {
    background: radial-gradient(
      circle,
      rgba(255,80,80,0.1) 0%,
      rgba(201,168,76,0.06) 40%,
      transparent 70%
    );
  }
  66% {
    background: radial-gradient(
      circle,
      rgba(80,120,255,0.1) 0%,
      rgba(100,255,150,0.04) 40%,
      transparent 70%
    );
  }
}

.prismatic-spot {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  animation: prismaticShift 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  filter: blur(30px);
}


/* --------------------------------------------------------------------------
   4. PARALLAX LAYERS
   -------------------------------------------------------------------------- */

.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  inset: -20%;
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Depth layers */
.parallax-layer--deep    { z-index: 0; }
.parallax-layer--mid     { z-index: 1; }
.parallax-layer--front   { z-index: 2; }
.parallax-layer--overlay { z-index: 3; pointer-events: none; }


/* --------------------------------------------------------------------------
   5. STAGGER / LIST ANIMATIONS
   -------------------------------------------------------------------------- */

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

@keyframes staggerSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes staggerScaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Stagger container — children get auto-delayed */
.stagger-container > * {
  opacity: 0;
}

.stagger-container.is-revealed > * {
  animation: staggerFadeIn 0.6s var(--ease-out-expo) forwards;
}

.stagger-container.is-revealed > *:nth-child(1)  { animation-delay: 0.0s; }
.stagger-container.is-revealed > *:nth-child(2)  { animation-delay: 0.08s; }
.stagger-container.is-revealed > *:nth-child(3)  { animation-delay: 0.16s; }
.stagger-container.is-revealed > *:nth-child(4)  { animation-delay: 0.24s; }
.stagger-container.is-revealed > *:nth-child(5)  { animation-delay: 0.32s; }
.stagger-container.is-revealed > *:nth-child(6)  { animation-delay: 0.40s; }
.stagger-container.is-revealed > *:nth-child(7)  { animation-delay: 0.48s; }
.stagger-container.is-revealed > *:nth-child(8)  { animation-delay: 0.56s; }
.stagger-container.is-revealed > *:nth-child(9)  { animation-delay: 0.64s; }
.stagger-container.is-revealed > *:nth-child(10) { animation-delay: 0.72s; }
.stagger-container.is-revealed > *:nth-child(11) { animation-delay: 0.80s; }
.stagger-container.is-revealed > *:nth-child(12) { animation-delay: 0.88s; }

/* Slide-in variant */
.stagger-container--slide.is-revealed > * {
  animation-name: staggerSlideIn;
}

/* Scale variant */
.stagger-container--scale.is-revealed > * {
  animation-name: staggerScaleIn;
}


/* --------------------------------------------------------------------------
   6. CARD HOVER — 3D TILT + CHROMATIC RIM
   -------------------------------------------------------------------------- */

/* Tilt perspective container */
.card-tilt {
  perspective: 800px;
}

.card-tilt .card {
  transform-style: preserve-3d;
  transition: transform var(--duration-slow) var(--ease-out-expo),
              box-shadow var(--duration-slow) var(--ease-out-expo);
}

/* Tilt glow layer */
.card-tilt .card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-slow) ease;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(201,168,76,0.12) 0%,
    transparent 60%
  );
  z-index: 2;
}

.card-tilt:hover .card::after {
  opacity: 1;
}


/* --------------------------------------------------------------------------
   7. HERO TEXT ANIMATION
   -------------------------------------------------------------------------- */

/* Word-by-word reveal */
@keyframes heroWordReveal {
  from {
    opacity: 0;
    transform: translateY(100%) rotateX(-80deg);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
  }
}

.hero-text-animate {
  overflow: hidden;
  perspective: 600px;
}

.hero-text-animate .word {
  display: inline-block;
  opacity: 0;
  animation: heroWordReveal 0.7s var(--ease-out-expo) forwards;
  transform-origin: center bottom;
}

/* Cursor-style typing effect for subtitle */
@keyframes typewriterBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typewriter-cursor::after {
  content: '|';
  color: var(--color-gold);
  font-weight: var(--fw-regular);
  animation: typewriterBlink 0.8s ease-in-out infinite;
  margin-left: 2px;
}

/* Reveal from clipping */
@keyframes clipReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0% 0 0);
  }
}

.clip-reveal {
  animation: clipReveal 1s var(--ease-out-expo) forwards;
}

/* Eyebrow line-expand animation */
@keyframes eyebrowExpand {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 40px;
    opacity: 1;
  }
}

.eyebrow-animated::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  vertical-align: middle;
  margin-right: var(--space-xs);
  animation: eyebrowExpand 0.8s var(--ease-out-expo) forwards 0.3s;
  opacity: 0;
  width: 0;
}


/* --------------------------------------------------------------------------
   8. GRADIENT SHIFT ANIMATIONS
   -------------------------------------------------------------------------- */

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-animated {
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
}

/* Aurora-style background */
@keyframes auroraShift {
  0% {
    background-position: 0% 0%;
    filter: hue-rotate(0deg);
  }
  25% {
    background-position: 50% 100%;
  }
  50% {
    background-position: 100% 0%;
    filter: hue-rotate(15deg);
  }
  75% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 0% 0%;
    filter: hue-rotate(0deg);
  }
}

.aurora-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(100,120,255,0.05) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: auroraShift 15s ease-in-out infinite;
}

/* Navy depth gradient */
@keyframes depthPulse {
  0%, 100% {
    background:
      radial-gradient(ellipse at 30% 50%, rgba(19,44,84,0.8) 0%, transparent 60%),
      linear-gradient(180deg, var(--color-navy-deep), var(--color-navy));
  }
  50% {
    background:
      radial-gradient(ellipse at 70% 50%, rgba(19,44,84,0.8) 0%, transparent 60%),
      linear-gradient(180deg, var(--color-navy-deep), var(--color-navy));
  }
}


/* --------------------------------------------------------------------------
   9. PULSE / GLOW CTA EFFECTS
   -------------------------------------------------------------------------- */

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(201,168,76,0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(201,168,76,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201,168,76,0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(201,168,76,0.15);
  }
  50% {
    box-shadow: 0 0 35px rgba(201,168,76,0.3);
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: var(--color-gold);
    box-shadow: 0 0 8px rgba(201,168,76,0.2);
  }
  50% {
    border-color: var(--color-gold-light);
    box-shadow: 0 0 16px rgba(201,168,76,0.35);
  }
}

.pulse-ring {
  animation: pulseRing 2s ease-out infinite;
}

.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

.border-glow {
  animation: borderGlow 3s ease-in-out infinite;
}

/* Attention dot (e.g., "Jetzt Termin") */
@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.attention-dot {
  position: relative;
}

.attention-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -16px;
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  transform: translateY(-50%);
}

.attention-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -16px;
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: dotPulse 2s ease-out infinite;
}


/* --------------------------------------------------------------------------
   10. COUNTER / NUMBER ANIMATION
   -------------------------------------------------------------------------- */

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

.counter-animate {
  animation: countUp 0.4s var(--ease-out-expo) forwards;
}


/* --------------------------------------------------------------------------
   11. LOADING SKELETON
   -------------------------------------------------------------------------- */

@keyframes shimmerLoad {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-light-gray) 25%,
    var(--color-off-white) 37%,
    var(--color-light-gray) 63%
  );
  background-size: 200% 100%;
  animation: shimmerLoad 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton--text {
  height: 1em;
  width: 80%;
  margin-bottom: 0.5em;
}

.skeleton--title {
  height: 1.5em;
  width: 60%;
  margin-bottom: 0.75em;
}

.skeleton--image {
  aspect-ratio: 16/9;
  width: 100%;
}


/* --------------------------------------------------------------------------
   12. PAGE TRANSITION
   -------------------------------------------------------------------------- */

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

.page-transition {
  animation: pageIn 0.6s var(--ease-out-expo) forwards;
}


/* --------------------------------------------------------------------------
   13. MISC INTERACTION ANIMATIONS
   -------------------------------------------------------------------------- */

/* Button press effect */
@keyframes buttonPress {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.btn:active {
  animation: buttonPress 0.15s ease;
}

/* Link underline sweep */
@keyframes underlineSweep {
  from { width: 0; left: 50%; }
  to   { width: 100%; left: 0; }
}

/* Floating element */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.float {
  animation: float 4s ease-in-out infinite;
}

/* Rotate slow */
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.rotate-slow {
  animation: rotateSlow 20s linear infinite;
}

/* Spin for loading */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 0.8s linear infinite;
}

/* Scale breathe */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

.breathe {
  animation: breathe 4s ease-in-out infinite;
}


/* --------------------------------------------------------------------------
   14. GLASSMORPHISM ANIMATIONS
   -------------------------------------------------------------------------- */

/* --- Glass Shimmer: Light reflection sweeping across the surface --- */
@keyframes glassShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Apply periodic shimmer every 5s (infinite, slow) */
.glass-shimmer {
  position: relative;
  overflow: hidden;
}

.glass-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 35%,
    rgba(255,255,255,0.08) 42%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,255,255,0.08) 58%,
    transparent 65%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glassShimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}


/* --- Glass Pulse: Subtle blur pulsation --- */
@keyframes glassPulse {
  0%, 100% {
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
  }
  50% {
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
  }
}

.glass-pulse {
  animation: glassPulse 4s ease-in-out infinite;
}


/* --- Glass Hover Enhance: Stronger blur + brightness on hover --- */
.glass-hover-enhance {
  transition: backdrop-filter var(--duration-slow) var(--ease-out-expo),
              -webkit-backdrop-filter var(--duration-slow) var(--ease-out-expo),
              box-shadow var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo),
              background var(--duration-slow) var(--ease-out-expo);
}

.glass-hover-enhance:hover {
  backdrop-filter: blur(32px) saturate(1.7) brightness(1.05);
  -webkit-backdrop-filter: blur(32px) saturate(1.7) brightness(1.05);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transform: translateY(-2px);
}


/* --- Glass Border Glow: Animated glow around glass edges --- */
@keyframes glassBorderGlow {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(255,255,255,0.06),
      inset 0 1px 0 rgba(255,255,255,0.3);
  }
  50% {
    box-shadow:
      0 0 24px rgba(255,255,255,0.1),
      0 0 48px rgba(37,99,235,0.04),
      inset 0 1px 0 rgba(255,255,255,0.5);
  }
}

.glass-border-glow {
  animation: glassBorderGlow 4s ease-in-out infinite;
}


/* --- Glass Reveal: Fade in with glass materializing --- */
@keyframes glassReveal {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px) saturate(1);
    -webkit-backdrop-filter: blur(0px) saturate(1);
    background: rgba(255,255,255,0);
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    background: rgba(255,255,255,0.45);
    transform: translateY(0) scale(1);
  }
}

.glass-reveal {
  opacity: 0;
  will-change: transform, opacity;
}

.glass-reveal.is-revealed {
  animation: glassReveal 0.8s var(--ease-out-expo) forwards;
}


/* --- Glass Frost: Frost-over effect --- */
@keyframes glassFrost {
  0% {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: rgba(255,255,255,0);
  }
  100% {
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background: rgba(255,255,255,0.35);
  }
}

.glass-frost-in {
  animation: glassFrost 1s var(--ease-out-expo) forwards;
}


/* --- Glass Rainbow Shift: Color-shifting border --- */
@keyframes glassRainbow {
  0% {
    border-color: rgba(255,100,100,0.2);
    box-shadow: 0 0 16px rgba(255,100,100,0.06);
  }
  25% {
    border-color: rgba(255,200,50,0.2);
    box-shadow: 0 0 16px rgba(255,200,50,0.06);
  }
  50% {
    border-color: rgba(100,255,150,0.2);
    box-shadow: 0 0 16px rgba(100,255,150,0.06);
  }
  75% {
    border-color: rgba(100,150,255,0.2);
    box-shadow: 0 0 16px rgba(100,150,255,0.06);
  }
  100% {
    border-color: rgba(255,100,100,0.2);
    box-shadow: 0 0 16px rgba(255,100,100,0.06);
  }
}

.glass-rainbow {
  animation: glassRainbow 8s linear infinite;
}


/* --- Glass Depth: Parallax-like depth on hover (cards) --- */
.glass-depth {
  transition: transform var(--duration-slow) var(--ease-out-expo),
              box-shadow var(--duration-slow) var(--ease-out-expo);
  transform-style: preserve-3d;
}

.glass-depth:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.1),
    0 4px 12px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.5);
}


/* --- Glass Glow Hover: Outer glow intensifies on hover --- */
.glass-glow-hover {
  transition: box-shadow var(--duration-slow) var(--ease-out-expo);
}

.glass-glow-hover:hover {
  box-shadow:
    0 0 40px rgba(255,255,255,0.1),
    0 0 80px rgba(37,99,235,0.06),
    0 8px 32px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.5);
}


/* --------------------------------------------------------------------------
   15. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-up,
  .reveal-down,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .stagger-container > * {
    opacity: 1;
  }

  .chroma-text,
  .chroma-border,
  .lens-flare::before,
  .lens-flare::after,
  .prismatic-spot,
  .float,
  .rotate-slow,
  .breathe,
  .pulse-ring,
  .glow-pulse,
  .border-glow,
  .aurora-bg,
  .gradient-animated,
  .glass-pulse,
  .glass-border-glow,
  .glass-rainbow {
    animation: none;
  }

  .glass-shimmer::after {
    animation: none;
  }

  .glass-reveal {
    opacity: 1;
    transform: none;
  }

  .glass-reveal.is-revealed {
    animation: none;
  }

  .hero-text-animate .word {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
