/* MAINERMEDIA Animation Library */

/* ===== MAINE STATE CHART ANIMATIONS ===== */

/* Chart bar grow animations */
@keyframes chart-grow-1 {
  0% { height: 0; }
  100% { height: 40px; }
}
@keyframes chart-grow-2 {
  0% { height: 0; }
  100% { height: 58px; }
}
@keyframes chart-grow-3 {
  0% { height: 0; }
  100% { height: 76px; }
}
@keyframes chart-grow-4 {
  0% { height: 0; }
  100% { height: 90px; }
}

.chart-bar-1 { 
  animation: chart-grow-1 1.5s ease-out 0.5s forwards; 
  height: 0;
}
.chart-bar-2 { 
  animation: chart-grow-2 1.5s ease-out 0.8s forwards; 
  height: 0;
}
.chart-bar-3 { 
  animation: chart-grow-3 1.5s ease-out 1.1s forwards; 
  height: 0;
}
.chart-bar-4 { 
  animation: chart-grow-4 1.5s ease-out 1.4s forwards; 
  height: 0;
}

/* Growth line draw animation */
@keyframes line-draw {
  0% { stroke-dashoffset: 300; }
  100% { stroke-dashoffset: 0; }
}

.growth-line { 
  stroke-dasharray: 300; 
  stroke-dashoffset: 300;
  animation: line-draw 2s ease-out 1s forwards; 
}

/* Maine state glow pulse */
@keyframes maine-glow-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.maine-glow { 
  animation: maine-glow-pulse 3s ease-in-out infinite; 
}

/* Location pin pulse */
@keyframes pin-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0.1; }
}

.pin-pulse {
  animation: pin-pulse 2s ease-in-out infinite;
}

/* ===== NEW HOMEPAGE ANIMATIONS ===== */

/* Slow pulse for background elements */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

/* Slow spin for decorative circles */
@keyframes spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 30s linear infinite;
}

@keyframes spin-slow-reverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

.animate-spin-slow-reverse {
  animation: spin-slow-reverse 25s linear infinite;
}

/* Float animation for geometric shapes */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(5deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
  75% { transform: translateY(-20px) rotate(-5deg); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Slow bounce for badges */
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
  animation: bounce-slow 3s ease-in-out infinite;
}

/* Marquee scroll animation - Continuous seamless scrolling */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Marquee Wrapper - Single Line Continuous Scroll */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 25s linear infinite;
}

/* Pause animation on hover for readability */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* Gradient shift for backgrounds */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Glow pulse for highlights */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.6); }
}

.animate-glow {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Scale in animation */
@keyframes scale-in {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.animate-scale-in {
  animation: scale-in 0.5s ease-out forwards;
}

/* Draw line animation */
@keyframes draw-line {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.animate-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-line 2s ease-out forwards;
}

/* ===== READING PROGRESS INDICATOR ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  width: 0%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.reading-progress-percentage {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9998;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reading-progress-percentage.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .reading-progress-percentage {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* Hide on very short pages */
.reading-progress.short-page {
  display: none;
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== TYPING ANIMATION ===== */
@keyframes typewriter {
  from { 
    width: 0; 
    border-right: 3px solid #059669;
  }
  to { 
    width: 100%; 
    border-right: 3px solid #059669;
  }
}

@keyframes blink {
  0%, 50% { border-right-color: #059669; }
  51%, 100% { border-right-color: transparent; }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid transparent;
  animation: typewriter 3s steps(40) 0.5s both, blink 1s infinite 3.5s;
  width: 0;
  max-width: 100%;
}

/* Responsive typewriter - disable on mobile for better UX */
@media (max-width: 768px) {
  .typewriter {
    animation: none;
    width: auto;
    white-space: normal;
    border-right: none;
    overflow: visible;
  }
}

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

/* ===== PROGRESS BAR ANIMATIONS ===== */
@keyframes progressFill {
  from { width: 0%; }
}

.progress-bar {
  position: relative;
  background: #f3f4f6;
  border-radius: 9999px;
  overflow: hidden;
  height: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #059669, #10b981);
  border-radius: 9999px;
  transition: width 2s ease-out;
  animation: progressFill 2s ease-out;
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}

.float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}

/* ===== HOVER ANIMATIONS ===== */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover-glow {
  transition: all 0.3s ease;
  position: relative;
}

.hover-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(45deg, #059669, #10b981, #374151);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hover-glow:hover::before {
  opacity: 1;
}

/* Prevent hover effects on touch devices to avoid sticky hover states */
@media (hover: none) {
  .hover-lift:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  .hover-glow:hover::before {
    opacity: 0;
  }
}

/* ===== BUTTON ANIMATIONS ===== */
.btn-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.btn-shake {
  transition: transform 0.3s ease;
}

.btn-shake:hover {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #059669;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

/* ===== GRADIENT ANIMATIONS ===== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient {
  background: linear-gradient(-45deg, #059669, #10b981, #374151, #000000);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

/* ===== FUTURISTIC BACKGROUNDS ===== */
@keyframes futuristicGrid {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0.3;
  }
  25% {
    transform: translateX(-10px) translateY(-5px);
    opacity: 0.6;
  }
  50% {
    transform: translateX(5px) translateY(-10px);
    opacity: 0.4;
  }
  75% {
    transform: translateX(-5px) translateY(5px);
    opacity: 0.7;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 0.3;
  }
}

@keyframes gridPulse {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
}

.futuristic-grid {
  background-image: 
    /* Main grid pattern */
    linear-gradient(rgba(5, 150, 105, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.1) 1px, transparent 1px),
    /* Accent lines */
    linear-gradient(rgba(55, 65, 81, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 65, 81, 0.05) 1px, transparent 1px);
  background-size: 
    50px 50px,
    50px 50px,
    200px 200px,
    200px 200px;
  background-position:
    0 0,
    0 0,
    25px 25px,
    25px 25px;
  animation: futuristicGrid 20s ease-in-out infinite;
  position: relative;
}

.futuristic-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(5, 150, 105, 0.15) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 80% 60%,
    rgba(55, 65, 81, 0.1) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 20% 80%,
    rgba(16, 185, 129, 0.12) 0%,
    transparent 50%
  );
  animation: gridPulse 8s ease-in-out infinite;
}

.futuristic-grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Scanning lines effect */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 98px,
      rgba(5, 150, 105, 0.03) 100px
    );
  animation: scanLines 15s linear infinite;
}

@keyframes scanLines {
  0% {
    transform: translateX(-100px);
  }
  100% {
    transform: translateX(100px);
  }
}

/* ===== PARTICLE SYSTEM ===== */
@keyframes float-particles {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
    opacity: 1;
  }
  66% {
    transform: translateY(10px) rotate(240deg);
    opacity: 0.8;
  }
}

.futuristic-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.futuristic-particles::before,
.futuristic-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(5, 150, 105, 0.6);
  border-radius: 50%;
  animation: float-particles 12s ease-in-out infinite;
}

.futuristic-particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.futuristic-particles::after {
  top: 60%;
  right: 15%;
  animation-delay: 6s;
  background: rgba(16, 185, 129, 0.4);
}

/* Enhanced grid with data streams */
@keyframes dataStream {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 50px;
  }
}

.futuristic-grid-enhanced {
  background-image: 
    /* Data stream lines */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(5, 150, 105, 0.05) 2px,
      rgba(5, 150, 105, 0.05) 4px
    ),
    /* Main grid */
    linear-gradient(rgba(5, 150, 105, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.08) 1px, transparent 1px);
  background-size: 
    100px 100px,
    50px 50px,
    50px 50px;
  animation: 
    dataStream 20s linear infinite,
    futuristicGrid 15s ease-in-out infinite;
}

/* ===== PARALLAX EFFECTS ===== */
.parallax-slow {
  transform: translateZ(0);
  transition: transform 0.1s ease-out;
}

/* ===== STAGGER ANIMATIONS ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }

/* Fix for stagger items that are also typewriter */
.stagger-item.typewriter {
  opacity: 1; /* Override stagger opacity for typewriter */
}

/* Ensure stagger items show up if animation fails */
.stagger-container.loaded .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ICON ANIMATIONS ===== */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-8px);
  }
  70% {
    transform: translateY(-4px);
  }
  90% {
    transform: translateY(-2px);
  }
}

.icon-bounce {
  animation: bounce 2s ease infinite;
}

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

.icon-rotate {
  animation: rotate 3s linear infinite;
}

/* ===== SLIDE ANIMATIONS ===== */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInFromLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInFromRight 0.8s ease-out;
}

/* ===== TEXT EFFECTS ===== */
.text-glow {
  text-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
  transition: text-shadow 0.3s ease;
}

.text-glow:hover {
  text-shadow: 0 0 20px rgba(5, 150, 105, 0.8);
}

/* Enhanced text glow for hero */
.hero-text-glow {
  text-shadow: 
    0 0 5px rgba(5, 150, 105, 0.3),
    0 0 10px rgba(5, 150, 105, 0.2),
    0 0 15px rgba(5, 150, 105, 0.1);
  transition: text-shadow 0.3s ease;
}

.hero-text-glow:hover {
  text-shadow: 
    0 0 8px rgba(5, 150, 105, 0.5),
    0 0 16px rgba(5, 150, 105, 0.3),
    0 0 24px rgba(5, 150, 105, 0.2);
}

/* Prevent text overflow issues */
.hero-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
  white-space: normal;
  line-height: 1.1;
}

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

/* ===== INTERSECTION OBSERVER HELPERS ===== */
.fade-in-section {
  opacity: 0;
  transform: translateY(20vh);
  visibility: hidden;
  transition: opacity 0.8s ease-out, transform 1.2s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* ===== FALLBACK FOR FAILED ANIMATIONS ===== */
.typewriter {
  min-height: 1.2em; /* Ensure space is reserved */
}

/* Ensure animations don't break on page load */
.no-js .typewriter,
.typewriter:not(.animating) {
  animation: none !important;
  width: auto !important;
  white-space: normal !important;
  border-right: none !important;
  overflow: visible !important;
}

/* Progressive enhancement - show content if JS fails */
@media (prefers-reduced-motion: reduce) {
  .typewriter {
    animation: none !important;
    width: auto !important;
    white-space: normal !important;
    border-right: none !important;
  }
}
/* ===== ROADMAP STYLES ===== */
.roadmap-container {
  position: relative;
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.roadmap-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 4rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  opacity: 1;
  transform: translateY(0px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.roadmap-step:nth-child(odd) {
  border-color: #10b981;
}

.roadmap-step:nth-child(even) {
  border-color: #374151;
}

.roadmap-step.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: show roadmap elements after 3 seconds if animations haven't triggered */
.roadmap-container .roadmap-step {
  animation: roadmapFallback 0.1s ease-in-out 3s forwards;
}

@keyframes roadmapFallback {
  from { opacity: 1; }
  to { opacity: 1; transform: translateY(0); }
}

.roadmap-step:nth-child(1) { transition-delay: 0.1s; }
.roadmap-step:nth-child(2) { transition-delay: 0.2s; }
.roadmap-step:nth-child(3) { transition-delay: 0.3s; }
.roadmap-step:nth-child(4) { transition-delay: 0.4s; }

.roadmap-step:not(:last-child)::after {
  display: none;
}

.roadmap-step:nth-child(even):not(:last-child)::after {
  background: linear-gradient(to bottom, #374151, #1f2937);
}

.roadmap-icon {
  position: relative;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  z-index: 2;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.roadmap-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.15);
}

.roadmap-icon.step-1 {
  background: linear-gradient(135deg, #10b981, #059669);
}

.roadmap-icon.step-2 {
  background: linear-gradient(135deg, #374151, #1f2937);
}

.roadmap-icon.step-3 {
  background: linear-gradient(135deg, #10b981, #374151);
}

.roadmap-icon.step-4 {
  background: linear-gradient(135deg, #059669, #1f2937);
}

.roadmap-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.1);
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.roadmap-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px -5px rgba(0, 0, 0, 0.15);
}

.roadmap-content.step-1 {
  border-left-color: #10b981;
}

.roadmap-content.step-2 {
  border-left-color: #374151;
}

.roadmap-content.step-3 {
  border-left-color: #10b981;
}

.roadmap-content.step-4 {
  border-left-color: #059669;
}

.roadmap-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.roadmap-description {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.6;
  font-weight: 300;
}

.roadmap-step-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 1rem;
}

.roadmap-step:nth-child(even) .roadmap-step-badge {
  background: rgba(55, 65, 81, 0.1);
  color: #374151;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .roadmap-step {
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
  }
  
  .roadmap-step:not(:last-child)::after {
    height: 3rem;
    top: 4rem;
  }
  
  .roadmap-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }
  
  .roadmap-content {
    padding: 1.5rem;
  }
  
  .roadmap-title {
    font-size: 1.25rem;
  }
  
  .roadmap-description {
    font-size: 1rem;
  }
}

/* ===== STAT CARD ANIMATIONS ===== */
.stat-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card.animate,
.stagger-item.animate .stat-card,
.stagger-container.loaded .stat-card {
  opacity: 1;
  transform: translateY(0);
}

/* Counter number animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter {
  animation: countUp 0.5s ease-out forwards;
}

/* ===== PROBLEM CARD ANIMATIONS ===== */
.problem-card {
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-card:hover {
  transform: translateY(-4px);
}

/* ===== PROCESS CARD ANIMATIONS ===== */
.process-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-card.animate,
.stagger-item.animate.process-card,
.stagger-container.loaded .process-card {
  opacity: 1;
  transform: translateY(0);
}

/* ===== AUDIT ITEM ANIMATIONS ===== */
.audit-item {
  opacity: 0;
  transform: translateX(20px);
  animation: slideInRight 0.5s ease-out forwards;
}

.audit-item:nth-child(1) { animation-delay: 0.1s; }
.audit-item:nth-child(2) { animation-delay: 0.2s; }
.audit-item:nth-child(3) { animation-delay: 0.3s; }
.audit-item:nth-child(4) { animation-delay: 0.4s; }
.audit-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== PRINCIPLE CARD ANIMATIONS ===== */
.principle-card {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.principle-card.animate,
.stagger-item.animate.principle-card,
.stagger-container.loaded .principle-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== ENGAGEMENT CARD ANIMATIONS ===== */
.engagement-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.engagement-card.animate,
.stagger-item.animate.engagement-card,
.stagger-container.loaded .engagement-card {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PING ANIMATION ===== */
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ===== PULSE ANIMATION ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== SCALE HOVER EFFECT ===== */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ===== GLOW EFFECT ===== */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.3), 0 0 10px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 30px rgba(16, 185, 129, 0.3);
  }
}

.glow-animation {
  animation: glow 2s ease-in-out infinite;
}

/* ===== SHIMMER EFFECT ===== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ===== ENHANCED HERO ANIMATIONS ===== */

/* Growing bar animation for chart */
@keyframes growBar {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Radial gradient background */
.bg-gradient-radial {
  background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Animated gradient text */
@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-gradient-text {
  background-size: 200% auto;
  animation: gradientText 3s ease infinite;
}

/* Enhanced float with rotation */
@keyframes floatRotate {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
    opacity: 0.6;
  }
  25% { 
    transform: translateY(-20px) rotate(10deg);
    opacity: 0.8;
  }
  50% { 
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }
  75% { 
    transform: translateY(-25px) rotate(-10deg);
    opacity: 0.7;
  }
}

.animate-float-rotate {
  animation: floatRotate 8s ease-in-out infinite;
}

/* Subtle scale animation */
@keyframes subtleScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.animate-subtle-scale {
  animation: subtleScale 4s ease-in-out infinite;
}

/* Orbit animation */
@keyframes orbit {
  from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

.animate-orbit {
  animation: orbit 20s linear infinite;
}

/* Morph shape animation */
@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

.animate-morph {
  animation: morph 8s ease-in-out infinite;
}

/* Ripple effect */
@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.animate-ripple {
  animation: ripple 2s ease-out infinite;
}

/* Line drawing animation */
@keyframes draw-line {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

/* Fade in up with scale */
@keyframes fadeInUpScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in-up-scale {
  animation: fadeInUpScale 0.8s ease-out forwards;
}

/* Counter tick animation */
@keyframes counterTick {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.counter-animate {
  animation: counterTick 0.3s ease-out;
}

/* Glow pulse enhanced */
@keyframes glowPulseEnhanced {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4),
                0 0 40px rgba(16, 185, 129, 0.2),
                0 0 60px rgba(16, 185, 129, 0.1);
  }
  50% { 
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6),
                0 0 60px rgba(16, 185, 129, 0.4),
                0 0 90px rgba(16, 185, 129, 0.2);
  }
}

.glow-animation-enhanced {
  animation: glowPulseEnhanced 2s ease-in-out infinite;
}

/* Breathing animation */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

.animate-breathe {
  animation: breathe 4s ease-in-out infinite;
}

/* Perspective card hover */
.perspective-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.perspective-card:hover {
  transform: rotateY(5deg) rotateX(2deg);
}

/* Glassmorphism enhancement */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Neon text glow */
.neon-text {
  text-shadow: 
    0 0 5px rgba(16, 185, 129, 0.5),
    0 0 10px rgba(16, 185, 129, 0.4),
    0 0 20px rgba(16, 185, 129, 0.3),
    0 0 40px rgba(16, 185, 129, 0.2);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .stat-card,
  .process-card,
  .principle-card,
  .engagement-card {
    opacity: 1;
    transform: none;
  }
  
  .animate-ping {
    animation: none;
  }
  
  /* Reduce animations on mobile for performance */
  .animate-morph,
  .animate-orbit,
  .animate-float-rotate {
    animation: none;
  }
  
  .glow-animation,
  .glow-animation-enhanced {
    animation: none;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  }
}
