/* ============================================
   agntec.com - Animations Stylesheet
   Intro animations, particles, sparkles, and scroll effects
   ============================================ */

/* ============================================
   Intro Screen Animations
   ============================================ */

.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #acb6e2 0%, #9bdee7 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.intro-screen.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.intro-logo {
  width: 500px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  animation: fadeInScale 0.3s ease-out;
  margin-bottom: 3rem;
}

.intro-text {
  text-align: center;
  color: white;
}

.intro-line {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInFade 1s ease-out forwards;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.1em;
  margin-top: 1.2rem;
  font-size: 3rem;
  font-weight: 300;
}

.intro-line-1 {
  animation-delay: 0.8s;
}

.intro-line-2 {
  animation-delay: 1.6s;
}

/* Main content fade in after intro */
.main-content {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.main-content.visible {
  opacity: 1;
}

/* ============================================
   Particle Effects
   ============================================ */

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  width: 20px;
  height: 20px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 15px;
  height: 15px;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  width: 25px;
  height: 25px;
  top: 80%;
  left: 20%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  width: 12px;
  height: 12px;
  top: 30%;
  left: 70%;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  width: 18px;
  height: 18px;
  top: 70%;
  left: 60%;
  animation-delay: 3s;
}

/* ============================================
   Scroll Animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for multiple items */
.fade-in:nth-child(1) {
  transition-delay: 0s;
}

.fade-in:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-in:nth-child(3) {
  transition-delay: 0.2s;
}

.fade-in:nth-child(4) {
  transition-delay: 0.3s;
}

.fade-in:nth-child(5) {
  transition-delay: 0.4s;
}

.fade-in:nth-child(6) {
  transition-delay: 0.5s;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .intro-screen,
  .intro-logo,
  .intro-line,
  .particle {
    animation: none;
    transition: none;
  }

  .main-content {
    opacity: 1;
  }
}

/* ============================================
   Keyframe Animations
   ============================================ */

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

@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes sparkle {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

/* ============================================
   Responsive Animation Adjustments
   ============================================ */

@media (max-width: 768px) {
  .intro-logo {
    width: 400px;
  }

  .intro-line {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .intro-logo {
    width: 320px;
  }

  .intro-line {
    font-size: 1.8rem;
  }
}
