/* ============================================================
   ANIMATIONS.CSS — Aurora, Particles, Scroll Reveals, Parallax
   WL Platform © Stacklabz
   ============================================================ */

/* ══════════════════════════════════════════════════
   AURORA EFFECT
   ══════════════════════════════════════════════════ */
.aurora-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: auroraMove 12s ease-in-out infinite;
  mix-blend-mode: screen;
}
.aurora-1 {
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.7) 0%, transparent 70%);
  top: -20%; left: -15%;
  animation-duration: 14s;
}
.aurora-2 {
  width: 50vw; height: 50vw;
  max-width: 750px; max-height: 750px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.6) 0%, transparent 70%);
  top: -10%; right: -10%;
  animation-duration: 18s;
  animation-delay: -6s;
}
.aurora-3 {
  width: 45vw; height: 45vw;
  max-width: 680px; max-height: 680px;
  background: radial-gradient(ellipse, rgba(6,182,212,0.5) 0%, transparent 70%);
  bottom: -15%; left: 20%;
  animation-duration: 16s;
  animation-delay: -3s;
}
.aurora-4 {
  width: 35vw; height: 35vw;
  max-width: 520px; max-height: 520px;
  background: radial-gradient(ellipse, rgba(244,63,94,0.3) 0%, transparent 70%);
  bottom: -5%; right: 5%;
  animation-duration: 20s;
  animation-delay: -9s;
}

@keyframes auroraMove {
  0%   { transform: translate(0, 0)    rotate(0deg)   scale(1); }
  25%  { transform: translate(3%, 5%)  rotate(90deg)  scale(1.05); }
  50%  { transform: translate(-3%, 8%) rotate(180deg) scale(0.95); }
  75%  { transform: translate(5%, -3%) rotate(270deg) scale(1.08); }
  100% { transform: translate(0, 0)    rotate(360deg) scale(1); }
}

/* Grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Noise texture */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════
   GRADIENT ORB EFFECT
   ══════════════════════════════════════════════════ */
.gradient-bg { background: var(--color-bg); }
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbFloat 10s ease-in-out infinite;
}
.gradient-orb-1 {
  width: 500px; height: 500px;
  background: rgba(99,102,241,0.5);
  top: -200px; left: -100px;
}
.gradient-orb-2 {
  width: 400px; height: 400px;
  background: rgba(139,92,246,0.4);
  top: -100px; right: -100px;
  animation-delay: -5s;
}
.gradient-orb-3 {
  width: 350px; height: 350px;
  background: rgba(6,182,212,0.3);
  bottom: -150px; left: 30%;
  animation-delay: -2s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 15px) scale(0.95); }
}

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--header-height) 0 5rem;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-image {
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,15,0.6), rgba(10,10,15,0.85));
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4em 1em;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-light);
  letter-spacing: 0.05em;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(99,102,241,0); }
}

.hero-title {
  font-size: clamp(2.25rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-top: 0.5rem;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}
.stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-suffix {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}
.stat-label { font-size: 0.72rem; color: var(--color-text-muted); font-weight: 500; }
.hero-stat-divider {
  width: 1px; height: 40px;
  background: var(--color-border);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: wheelScroll 1.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
@keyframes wheelScroll {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════ */
[class*="reveal-"] {
  opacity: 0;
  will-change: opacity, transform;
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-zoom  { transform: scale(0.9); }

.revealed {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

/* ══════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════ */
.cta { text-align: center; }
.cta-gradient {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.05));
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-text), var(--color-text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-bg-effect { position: absolute; inset: 0; pointer-events: none; }
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.cta-orb-1 {
  width: 400px; height: 400px;
  background: var(--color-primary);
  top: -200px; left: -100px;
}
.cta-orb-2 {
  width: 300px; height: 300px;
  background: var(--color-secondary);
  bottom: -150px; right: -50px;
}

/* ══════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item--open { border-color: rgba(99,102,241,0.4); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  gap: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--color-primary); }
.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--color-primary);
  transition: transform 0.25s ease;
}
.faq-item--open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; }
.faq-answer p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   COUNTER ANIMATION
   ══════════════════════════════════════════════════ */
.counter { display: inline-block; }

/* ══════════════════════════════════════════════════
   CURSOR CUSTOM
   ══════════════════════════════════════════════════ */
.cursor-dot, .cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--color-primary);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(99,102,241,0.5);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 48px; height: 48px;
  background: rgba(99,102,241,0.1);
}

/* ══════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox--open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}
.lightbox-caption {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -2.5rem; right: 0;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }

/* ══════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-layout-left .about-image-wrap { order: -1; }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-layout-left .about-image-wrap { order: 0; }
}
.about-content .section-title { text-align: left; }
.about-content .section-tag   { display: inline-block; margin-bottom: 1rem; }
.about-text {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.about-pillar-icon { font-size: 1.4rem; flex-shrink: 0; }
.about-pillar strong { display: block; font-size: 0.85rem; color: var(--color-text); margin-bottom: 0.2rem; }
.about-pillar span  { font-size: 0.8rem;  color: var(--color-text-muted); }

.about-image-container {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.about-image-deco {
  position: absolute;
  bottom: -12px; right: -12px;
  width: 80%; height: 80%;
  border: 2px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-card);
  z-index: -1;
}
.about-image-placeholder {
  aspect-ratio: 4/3;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.placeholder-inner {
  text-align: center;
  color: var(--color-text-muted);
}
.placeholder-inner span { display: block; font-weight: 600; }
.placeholder-inner p    { font-size: 0.8rem; margin-top: 0.5rem; opacity: 0.7; }
.mvv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 640px) { .mvv-grid { grid-template-columns: 1fr; } }
.mvv-card { text-align: center; }
.mvv-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.mvv-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.mvv-card p  { font-size: 0.9rem; color: var(--color-text-muted); }
