/* ================================================================
   UKRAINIAN DEFENCE HUB - Visual Effects & Animations
   freedomua.tech — css/effects.css
   Buttons are styled in main.css
   ================================================================ */

/* ================================================================
   1. GOLDEN GRADIENT / GLOW TEXT
   ================================================================ */

.text-golden {
  background: linear-gradient(135deg, #C5A059 0%, #E8D8B8 40%, #C5A059 70%, #A88A3D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.heading-glow {
  color: #E8D8B8;
  text-shadow:
    0 0 20px rgba(197,160,89,0.4),
    0 0 40px rgba(197,160,89,0.2),
    0 0 80px rgba(197,160,89,0.1);
}

.text-shimmer {
  background: linear-gradient(90deg,
    #C5A059 0%, #E8D8B8 25%, #FFFFFF 50%, #E8D8B8 75%, #C5A059 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

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

/* ================================================================
   2. VOLUMETRIC LIGHT RAYS
   ================================================================ */

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 30%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent 0deg,
    rgba(197,160,89,0.03) 30deg,
    transparent 60deg,
    rgba(197,160,89,0.02) 90deg,
    transparent 120deg,
    rgba(197,160,89,0.04) 180deg,
    transparent 210deg,
    rgba(197,160,89,0.02) 270deg,
    transparent 300deg,
    rgba(197,160,89,0.03) 330deg,
    transparent 360deg
  );
  animation: rotateRays 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotateRays {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================================================================
   3. SCROLL REVEAL
   ================================================================ */

.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stagger-child {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-child.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   4. PAGE TRANSITIONS
   ================================================================ */

body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.page-loaded { opacity: 1; }

body.page-exit {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
}

/* ================================================================
   5. EMBER CANVAS
   ================================================================ */

.ember-overlay,
#ember-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* ================================================================
   6. IMAGE CINEMATIC ZOOM
   ================================================================ */

.image-cinematic {
  overflow: hidden;
  border-radius: 8px;
}

.image-cinematic img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s;
}

.image-cinematic:hover img {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.05);
}
