/* ============================================
   EULAMO FUTURE LABS - Animations
   Matte Black & White Theme
   ============================================ */

/* ============================================
   CINEMATIC INTRO SEQUENCE
   ============================================ */

.intro-sequence {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-primary);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-sequence.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-text {
  font-size: var(--text-lg);
  color: var(--color-text-tertiary);
  opacity: 0;
  text-align: center;
  animation: introFadeIn 1.5s ease forwards;
}

.intro-text.question {
  font-size: var(--text-5xl);
  font-weight: var(--font-black);
  color: var(--color-text-primary);
  animation-delay: 2s;
}

.intro-logo {
  opacity: 0;
  transform: scale(0.8);
  animation: logoReveal 1.2s ease forwards;
  animation-delay: 4s;
}

.intro-logo img {
  height: 100px;
  filter: invert(1);
}

@keyframes introFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   PARTICLE NETWORK - WHITE DOTS
   ============================================ */

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   GLOWING ORB - SUBTLE WHITE
   ============================================ */

.glowing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
  animation: orbFloat 8s ease-in-out infinite;
  background: white;
}

.glowing-orb--1 {
  width: 400px;
  height: 400px;
}

.glowing-orb--2 {
  width: 300px;
  height: 300px;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(20px, 10px) scale(1.05);
  }
}

/* ============================================
   SCROLL TRIGGERED ANIMATIONS
   ============================================ */

[data-animate] {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-animate="fade-up"] {
  transform: translateY(60px);
}

[data-animate="fade-up"].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-down"] {
  transform: translateY(-60px);
}

[data-animate="fade-down"].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(-60px);
}

[data-animate="fade-left"].animated {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="fade-right"] {
  transform: translateX(60px);
}

[data-animate="fade-right"].animated {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="scale"] {
  transform: scale(0.9);
}

[data-animate="scale"].animated {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   LINE ANIMATIONS
   ============================================ */

.line-reveal {
  position: relative;
  overflow: hidden;
}

.line-reveal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.line-reveal:hover::after {
  transform: translateX(0);
}

/* ============================================
   IMAGE REVEAL
   ============================================ */

.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-primary);
  z-index: 1;
  transform: translateX(0);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.image-reveal.revealed::before {
  transform: translateX(100%);
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.hover-lift {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
}

.hover-border {
  position: relative;
}

.hover-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color 0.3s ease;
}

.hover-border:hover::before {
  border-color: var(--color-text-primary);
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.02;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-tertiary) 25%,
    var(--color-bg-elevated) 50%,
    var(--color-bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}

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

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-border-primary);
  border-top-color: var(--color-text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
