/* Additional Animations and Graphics for The Journey */

/* Floating Icons Background */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  color: rgba(108, 92, 231, 0.1);
  animation: float-upward 15s linear infinite;
}

.floating-icon:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { left: 25%; animation-delay: 2s; font-size: 2.5rem; }
.floating-icon:nth-child(3) { left: 40%; animation-delay: 4s; }
.floating-icon:nth-child(4) { left: 55%; animation-delay: 6s; font-size: 1.8rem; }
.floating-icon:nth-child(5) { left: 70%; animation-delay: 8s; }
.floating-icon:nth-child(6) { left: 85%; animation-delay: 10s; font-size: 2.2rem; }

@keyframes float-upward {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Glowing Border Effect */
.glow-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, var(--brand), var(--brand-2)) border-box;
  animation: glow-animation 3s ease-in-out infinite;
}

@keyframes glow-animation {
  0%, 100% {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.5);
  }
}

/* Particle Background */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0.6;
  animation: particle-float 10s infinite;
}

.particle:nth-child(odd) {
  background: var(--brand-2);
}

@keyframes particle-float {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Animated Underline */
.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.animated-underline:hover::after {
  width: 100%;
}

/* Pulsing Dot Indicator */
.pulse-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  position: relative;
  animation: pulse-ring 2s ease-out infinite;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Typewriter Effect */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--brand);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--brand); }
}

/* 3D Card Flip */
.flip-card {
  perspective: 1000px;
  width: 100%;
  height: 200px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius);
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wavy Line Animation */
.wavy-line {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand));
  background-size: 200% 100%;
  animation: wave-flow 3s ease-in-out infinite;
}

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

/* Icon Rotate on Hover */
.rotate-icon {
  transition: transform 0.3s ease;
}

.rotate-icon:hover {
  transform: rotate(360deg);
}

/* Bounce on Scroll */
.bounce-in {
  animation: bounce-in-animation 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounce-in-animation {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Sliding Text Reveal */
.text-reveal {
  position: relative;
  overflow: hidden;
}

.text-reveal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: text-shine 2s ease-in-out;
}

@keyframes text-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Neon Glow Effect */
.neon-glow {
  text-shadow: 
    0 0 5px var(--brand),
    0 0 10px var(--brand),
    0 0 20px var(--brand),
    0 0 40px var(--brand-2),
    0 0 80px var(--brand-2);
  animation: neon-flicker 1.5s infinite alternate;
}

@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.8;
  }
}

/* Stagger Animation for Lists */
.stagger-list li {
  opacity: 0;
  animation: fade-in-up 0.6s ease-out forwards;
}

.stagger-list li:nth-child(1) { animation-delay: 0.1s; }
.stagger-list li:nth-child(2) { animation-delay: 0.2s; }
.stagger-list li:nth-child(3) { animation-delay: 0.3s; }
.stagger-list li:nth-child(4) { animation-delay: 0.4s; }
.stagger-list li:nth-child(5) { animation-delay: 0.5s; }
.stagger-list li:nth-child(6) { animation-delay: 0.6s; }
.stagger-list li:nth-child(7) { animation-delay: 0.7s; }
.stagger-list li:nth-child(8) { animation-delay: 0.8s; }
.stagger-list li:nth-child(9) { animation-delay: 0.9s; }
.stagger-list li:nth-child(10) { animation-delay: 1s; }

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
