/* ===== ADVANCED ANIMATIONS - BLACK & WHITE THEME ===== */

/* Pulse animation for CTAs - WHITE PULSE */
@keyframes pulse-green {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 255, 255, 0.4);
  }
}

.pulse {
  animation: pulse-green 2s ease-in-out infinite;
}

/* Advanced glow effect */
@keyframes glow-green {

  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  }

  50% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
  }
}

.glow-animate {
  animation: glow-green 3s ease-in-out infinite;
}

/* Shake animation for errors */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* Slide in from left with white trail */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
    filter: drop-shadow(-10px 0 10px rgba(255, 255, 255, 0.3));
  }

  to {
    opacity: 1;
    transform: translateX(0);
    filter: drop-shadow(0 0 0 transparent);
  }
}

.slide-in-left {
  opacity: 0;
  /* Force invisible start */
  animation: slideInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation-fill-mode: both;
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
    filter: drop-shadow(10px 0 10px rgba(255, 255, 255, 0.3));
  }

  to {
    opacity: 1;
    transform: translateX(0);
    filter: drop-shadow(0 0 0 transparent);
  }
}

.slide-in-right {
  opacity: 0;
  /* Force invisible start */
  animation: slideInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation-fill-mode: both;
}

/* Bounce in with white effect */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
}

.bounce-in {
  opacity: 0;
  /* Force invisible start */
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation-fill-mode: both;
}

/* Fade in up with green glow */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: drop-shadow(0 -10px 10px rgba(255, 255, 255, 0.2));
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: drop-shadow(0 0 0 transparent);
  }
}

.fade-in-up {
  opacity: 0;
  /* Force invisible start */
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

/* Fade in down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
    /* Increased distance for more drama */
    filter: drop-shadow(0 10px 10px rgba(255, 255, 255, 0.2));
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: drop-shadow(0 0 0 transparent);
  }
}

/* FLOATING CARDS SENKRON - Scoped to parent trigger */
.impact-drop .floating-card {
  opacity: 0;
  animation: floatIn 0.8s ease-out forwards;
}

.fade-in-down {
  opacity: 0;
  /* Force invisible start */
  animation: fadeInDown 1s ease-out;
  /* Slower for drama */
  animation-fill-mode: both;
}

/* Rotate continuously with green trail */
@keyframes rotate-green {
  from {
    transform: rotate(0deg);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  }

  to {
    transform: rotate(360deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  }
}

.rotate {
  animation: rotate-green 2s linear infinite;
}

/* Floating animation - enhanced */
@keyframes floating-green {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    filter: drop-shadow(0 5px 10px rgba(255, 255, 255, 0.3));
  }

  25% {
    transform: translateY(-10px) rotate(1deg);
  }

  75% {
    transform: translateY(-5px) rotate(-1deg);
  }

  50% {
    transform: translateY(-15px) rotate(0deg);
    filter: drop-shadow(0 15px 20px rgba(255, 255, 255, 0.5));
  }
}

.floating {
  animation: floating-green 4s ease-in-out infinite;
}

/* Typewriter effect with green cursor */
@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-cursor {

  0%,
  100% {
    border-color: #ffffff;
  }

  50% {
    border-color: transparent;
  }
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid #ffffff;
  white-space: nowrap;
  animation:
    typewriter 3s steps(40) 1s both,
    blink-cursor 0.75s step-end infinite;
}

/* Gradient background animation - GREEN THEME */
@keyframes gradientShift-green {
  0% {
    background-position: 0% 50%;
    background: linear-gradient(-45deg, #0a1929, #ffffff, #ffffff, #ffffff);
  }

  25% {
    background-position: 50% 50%;
    background: linear-gradient(-45deg, #ffffff, #ffffff, #ffffff, #0a1929);
  }

  50% {
    background-position: 100% 50%;
    background: linear-gradient(-45deg, #ffffff, #ffffff, #0a1929, #ffffff);
  }

  75% {
    background-position: 50% 50%;
    background: linear-gradient(-45deg, #ffffff, #0a1929, #ffffff, #ffffff);
  }

  100% {
    background-position: 0% 50%;
    background: linear-gradient(-45deg, #0a1929, #ffffff, #ffffff, #ffffff);
  }
}

.gradient-animate {
  background: linear-gradient(-45deg, #0a1929, #ffffff, #ffffff, #ffffff);
  background-size: 400% 400%;
  animation: gradientShift-green 15s ease infinite;
}

/* Staggered children animations with delay */
.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-fill-mode: both;
}

.stagger-children>*:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
  animation-delay: 0.6s;
}

.stagger-children>*:nth-child(7) {
  animation-delay: 0.7s;
}

.stagger-children>*:nth-child(8) {
  animation-delay: 0.8s;
}

/* Hover lift effect with green shadow */
.hover-lift {
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal),
    filter var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 10px 15px rgba(255, 255, 255, 0.3));
}

/* Glow effect - enhanced */
.glow {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: all var(--transition-normal);
}

.glow:hover {
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.6),
    0 0 60px rgba(255, 255, 255, 0.3);
}

/* Border animation with green flow */
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.animated-border {
  position: relative;
  overflow: hidden;
}

.animated-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, #ffffff, transparent);
  background-size: 200% 100%;
  animation: borderFlow 2s linear infinite;
}

/* Ripple effect with green waves */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Text glow - green version */
.text-glow {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7),
    0 0 20px rgba(255, 255, 255, 0.5);
  transition: text-shadow 0.3s ease;
}

.text-glow:hover {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9),
    0 0 30px rgba(255, 255, 255, 0.7),
    0 0 45px rgba(255, 255, 255, 0.5);
}

/* Scale in with green pulse */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
}

.scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Attention seeker - green version */
@keyframes attention {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  }

  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
  }
}

.attention {
  animation: attention 1.5s ease-in-out infinite;
}

/* Progress bar animation - green theme */
@keyframes progress-green {
  from {
    width: 0%;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }

  to {
    width: 100%;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  }
}

.progress-animate {
  animation: progress-green 2s ease-in-out;
}

/* Blink animation with green light */
@keyframes blink-green {

  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
  }

  50% {
    opacity: 0.6;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
  }
}

.blink {
  animation: blink-green 1s ease-in-out infinite;
}

/* Spin animation with trail */
@keyframes spin-trail {
  from {
    transform: rotate(0deg);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  }

  to {
    transform: rotate(360deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
  }
}

.spin {
  animation: spin-trail 1s linear infinite;
}

/* Fade out with green trail */
@keyframes fadeOut {
  from {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  }

  to {
    opacity: 0;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    transform: scale(0.9);
  }
}

.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

/* Slide out to left with green trail */
@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-50px);
    filter: drop-shadow(-20px 0 20px rgba(255, 255, 255, 0.4));
  }
}

.slide-out-left {
  animation: slideOutLeft 0.5s ease-out forwards;
}

/* Slide out to right */
@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(50px);
    filter: drop-shadow(20px 0 20px rgba(255, 255, 255, 0.4));
  }
}

.slide-out-right {
  animation: slideOutRight 0.5s ease-out forwards;
}

/* Zoom out with green effect */
@keyframes zoomOut {
  from {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
  }

  to {
    opacity: 0;
    transform: scale(0.8);
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
  }
}

.zoom-out {
  animation: zoomOut 0.5s ease-out forwards;
}

/* Flip animation with green backface */
@keyframes flip-green {
  0% {
    transform: perspective(400px) rotateY(0);
  }

  50% {
    transform: perspective(400px) rotateY(180deg);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }

  100% {
    transform: perspective(400px) rotateY(360deg);
  }
}

.flip {
  animation: flip-green 2s ease-in-out;
}

/* Jello animation */
@keyframes jello {

  0%,
  100% {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, 0.95, 1);
  }
}

.jello {
  animation: jello 1s ease-in-out;
}

/* Tada animation with green sparkle */
@keyframes tada {
  0% {
    transform: scale3d(1, 1, 1);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }

  10%,
  20% {
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }

  30%,
  50%,
  70%,
  90% {
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
  }

  40%,
  60%,
  80% {
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  100% {
    transform: scale3d(1, 1, 1);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
}

.tada {
  animation: tada 1.2s ease-in-out;
}

/* Wobble animation */
@keyframes wobble {

  0%,
  100% {
    transform: translateX(0%);
  }

  15% {
    transform: translateX(-25%) rotate(-5deg);
  }

  30% {
    transform: translateX(20%) rotate(3deg);
  }

  45% {
    transform: translateX(-15%) rotate(-3deg);
  }

  60% {
    transform: translateX(10%) rotate(2deg);
  }

  75% {
    transform: translateX(-5%) rotate(-1deg);
  }
}

.wobble {
  animation: wobble 1s ease-in-out;
}

/* Heartbeat animation with green pulse */
@keyframes heartbeat {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
  }

  14% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
  }

  28% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
  }

  42% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
  }

  70% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
  }
}

.heartbeat {
  animation: heartbeat 1.3s ease-in-out;
}

/* Rubber band animation */
@keyframes rubberBand {
  0% {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, 0.95, 1);
  }

  100% {
    transform: scale3d(1, 1, 1);
  }
}

.rubber-band {
  animation: rubberBand 1s ease-in-out;
}

/* Light speed in with green trail */
@keyframes lightSpeedIn {
  0% {
    transform: translate3d(100%, 0, 0) skewX(-30deg);
    opacity: 0;
    filter: drop-shadow(20px 0 20px rgba(255, 255, 255, 0.5));
  }

  60% {
    transform: skewX(20deg);
    opacity: 1;
  }

  80% {
    transform: skewX(-5deg);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
  }

  100% {
    transform: none;
    opacity: 1;
    filter: drop-shadow(0 0 0 transparent);
  }
}

.light-speed-in {
  animation: lightSpeedIn 1s ease-out;
}

/* Light speed out */
@keyframes lightSpeedOut {
  0% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  }

  100% {
    transform: translate3d(100%, 0, 0) skewX(30deg);
    opacity: 0;
    filter: drop-shadow(20px 0 30px rgba(255, 255, 255, 0.8));
  }
}

.light-speed-out {
  animation: lightSpeedOut 1s ease-in;
}

/* Roll in with green trail */
@keyframes rollIn {
  0% {
    opacity: 0;
    transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
    filter: drop-shadow(20px 0 20px rgba(255, 255, 255, 0.4));
  }

  100% {
    opacity: 1;
    transform: none;
    filter: drop-shadow(0 0 0 transparent);
  }
}

.roll-in {
  animation: rollIn 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* Roll out */
@keyframes rollOut {
  0% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  }

  100% {
    opacity: 0;
    transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
    filter: drop-shadow(20px 0 30px rgba(255, 255, 255, 0.8));
  }
}

.roll-out {
  animation: rollOut 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* Hinge animation */
@keyframes hinge {
  0% {
    transform: rotate(0);
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }

  20%,
  60% {
    transform: rotate(80deg);
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }

  40% {
    transform: rotate(60deg);
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }

  80% {
    transform: rotate(60deg) translateY(0);
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }

  100% {
    transform: translateY(700px);
  }
}

.hinge {
  animation: hinge 2s ease-in-out;
}

/* Jack in the box with green pop */
@keyframes jackInTheBox {
  0% {
    opacity: 0;
    transform: scale(0.1) rotate(30deg);
    transform-origin: center bottom;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
  }

  50% {
    transform: rotate(-10deg);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
  }

  70% {
    transform: rotate(3deg);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
}

.jack-in-the-box {
  animation: jackInTheBox 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* ===== NEW ADVANCED ANIMATIONS ===== */

/* Particle rain animation */
@keyframes particle-rain {
  0% {
    transform: translateY(-100px) translateX(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) translateX(20px) rotate(360deg);
    opacity: 0;
  }
}

.particle-rain {
  position: absolute;
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, #ffffff, transparent);
  animation: particle-rain 3s linear infinite;
}

/* Neon flicker effect */
@keyframes neon-flicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    text-shadow:
      0 0 5px #ffffff,
      0 0 10px #ffffff,
      0 0 15px #ffffff,
      0 0 20px #ffffff,
      0 0 35px #ffffff,
      0 0 40px #ffffff;
  }

  20%,
  24%,
  55% {
    text-shadow: none;
  }
}

.neon-flicker {
  animation: neon-flicker 1.5s infinite alternate;
}

/* Wave animation */
@keyframes wave {

  0%,
  100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-10px);
  }

  50% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(10px);
  }
}

.wave {
  animation: wave 2s ease-in-out infinite;
}

/* Color shift animation */
@keyframes color-shift {
  0% {
    color: #ffffff;
    border-color: #ffffff;
  }

  33% {
    color: #ffffff;
    border-color: #ffffff;
  }

  66% {
    color: #ffffff;
    border-color: #ffffff;
  }

  100% {
    color: #ffffff;
    border-color: #ffffff;
  }
}

.color-shift {
  animation: color-shift 3s ease-in-out infinite;
}

/* Morph animation */
@keyframes morph {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

.morph {
  animation: morph 10s ease-in-out infinite;
  background: linear-gradient(45deg, #ffffff, #ffffff);
}

/* Shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.shimmer {
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.2),
      transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

/* 3D flip card */
@keyframes flip-3d {
  0% {
    transform: perspective(1000px) rotateY(0);
  }

  50% {
    transform: perspective(1000px) rotateY(180deg);
  }

  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}

.flip-3d {
  animation: flip-3d 4s ease-in-out infinite;
}

/* Bounce shadow */
@keyframes bounce-shadow {

  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
  }

  50% {
    transform: translateY(-20px);
    box-shadow: 0 20px 30px rgba(255, 255, 255, 0.5);
  }
}

.bounce-shadow {
  animation: bounce-shadow 2s ease-in-out infinite;
}

/* Gradient border animation */
@keyframes gradient-border {
  0% {
    border-image: linear-gradient(45deg, #ffffff, #ffffff, #ffffff) 1;
  }

  33% {
    border-image: linear-gradient(45deg, #ffffff, #ffffff, #ffffff) 1;
  }

  66% {
    border-image: linear-gradient(45deg, #ffffff, #ffffff, #ffffff) 1;
  }

  100% {
    border-image: linear-gradient(45deg, #ffffff, #ffffff, #ffffff) 1;
  }
}

.gradient-border {
  border: 3px solid transparent;
  animation: gradient-border 3s linear infinite;
}

/* NEW: Green energy field effect */
@keyframes energy-field {
  0% {
    box-shadow:
      0 0 10px #ffffff,
      inset 0 0 10px rgba(255, 255, 255, 0.3);
  }

  50% {
    box-shadow:
      0 0 30px #ffffff,
      inset 0 0 20px rgba(255, 255, 255, 0.5),
      0 0 40px rgba(255, 255, 255, 0.2);
  }

  100% {
    box-shadow:
      0 0 10px #ffffff,
      inset 0 0 10px rgba(255, 255, 255, 0.3);
  }
}

.energy-field {
  animation: energy-field 2s ease-in-out infinite;
}

/* NEW: Green pulse wave */
@keyframes pulse-wave {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.8;
  }
}

.pulse-wave {
  position: relative;
}

.pulse-wave::before,
.pulse-wave::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-wave 3s linear infinite;
}

.pulse-wave::after {
  animation-delay: 1.5s;
}

/* NEW: Green trail effect for mouse followers */
@keyframes trail {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0);
  }
}

.trail-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  animation: trail 0.5s ease-out forwards;
}

/* Utility classes for quick animations */
.animate-on-hover:hover {
  animation: pulse-green 1s ease-in-out;
}

.animate-on-click:active {
  animation: scaleIn 0.3s ease-out;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Performance optimized animations */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================= */
/* HERO SEQUENCE (ISOLATED) */
/* ============================= */

.hero .animate-hidden {
  opacity: 0;
}

.hero .animate-text-in {
  animation: heroTextIn 0.9s ease-out forwards;
}

.hero .animate-visual-in {
  animation: heroVisualIn 1.1s ease-out forwards;
}

.hero .animate-stats-in {
  animation: heroStatsIn 0.9s ease-out forwards;
}

@keyframes heroTextIn {
  from {
    transform: translateX(-60px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes heroVisualIn {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes heroStatsIn {
  from {
    transform: translateY(60px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================= */
/* NAVBAR INTRO ANIMATION */
/* ============================= */

.navbar.nav-hidden {
  opacity: 0;
  transform: translateY(-30px);
  filter: blur(6px);
}

.navbar.nav-in {
  animation: navbarIn 0.8s ease-out forwards;
}

@keyframes navbarIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ============================= */
/* STAGGER ITEMS */
/* ============================= */

.navbar .nav-logo,
.navbar .nav-links a,
.navbar .nav-auth,
.navbar .nav-left-controls {
  opacity: 0;
  transform: translateY(-10px);
}

.navbar.nav-items-in .nav-logo {
  animation: navItemIn 0.4s ease-out forwards;
}

.navbar.nav-items-in .nav-links a {
  animation: navItemIn 0.4s ease-out forwards;
}

.navbar.nav-items-in .nav-links a:nth-child(1) {
  animation-delay: 0.15s;
}

.navbar.nav-items-in .nav-links a:nth-child(2) {
  animation-delay: 0.25s;
}

.navbar.nav-items-in .nav-links a:nth-child(3) {
  animation-delay: 0.35s;
}

.navbar.nav-items-in .nav-links a:nth-child(4) {
  animation-delay: 0.45s;
}

.navbar.nav-items-in .nav-links a:nth-child(5) {
  animation-delay: 0.55s;
}

.navbar.nav-items-in .nav-auth {
  animation: navItemIn 0.4s ease-out forwards;
  animation-delay: 0.6s;
}

/* Mobile & Left controls stagger */
.navbar.nav-items-in .nav-left-controls {
  animation: navItemIn 0.4s ease-out forwards;
}

@keyframes navItemIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================= */
/* SCROLLED STATE */
/* ============================= */

.navbar.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}