/* ===== EMOCOM ANIMATIONS & EFFECTS ===== */
/* Smooth, professional animations for modern user experience */

/* === KEYFRAME DEFINITIONS === */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: rotate(0deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === ANIMATION CLASSES === */

.fade-up {
  opacity: 1; /* Show by default, hide only when JS is working */
  animation: fadeUp var(--duration-700) var(--ease-out) forwards;
}

/* Only hide if JavaScript is enabled and scroll effects are working */
.js-enabled .fade-up:not(.in-view) {
  opacity: 0;
}

/* Ensure content is visible after a delay even if JS fails */
.fade-up {
  animation-delay: 0.1s;
}

.fade-in {
  opacity: 0;
  animation: fadeIn var(--duration-500) var(--ease-out) forwards;
}

.slide-in-left {
  opacity: 0;
  animation: slideInLeft var(--duration-500) var(--ease-out) forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slideInRight var(--duration-500) var(--ease-out) forwards;
}

.scale-in {
  opacity: 0;
  animation: scaleIn var(--duration-500) var(--ease-out) forwards;
}

.bounce-in {
  opacity: 0;
  animation: bounceIn var(--duration-700) var(--ease-bounce) forwards;
}

.slide-down {
  opacity: 0;
  animation: slideDown var(--duration-500) var(--ease-out) forwards;
}

.rotate-in {
  opacity: 0;
  animation: rotateIn var(--duration-500) var(--ease-out) forwards;
}

/* === ANIMATION DELAYS === */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* === HOVER ANIMATIONS === */

.hover-float:hover {
  animation: float 2s ease-in-out infinite;
}

.hover-scale {
  transition: transform var(--transition-medium);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-lift {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hover-glow {
  transition: box-shadow var(--transition-medium);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(30, 64, 175, 0.4);
}

/* === INTERACTIVE ANIMATIONS === */

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--duration-700);
}

.btn:hover::before {
  left: 100%;
}

/* Navigation link underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* === SCROLL ANIMATIONS === */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-700) var(--ease-out),
              transform var(--duration-700) var(--ease-out);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* === LOADING ANIMATIONS === */

.loading-shimmer {
  background: linear-gradient(
    90deg,
    var(--light-gray) 0%,
    #e2e8f0 50%,
    var(--light-gray) 100%
  );
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-gray);
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === TEXT ANIMATIONS === */

.typing-animation {
  overflow: hidden;
  border-right: 2px solid var(--primary-blue);
  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(--primary-blue); }
}

.text-reveal {
  background: linear-gradient(
    to right,
    var(--primary-blue) 0%,
    var(--primary-blue) 50%,
    var(--text-primary) 50%,
    var(--text-primary) 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textReveal 2s ease-in-out forwards;
}

@keyframes textReveal {
  to {
    background-position: 0 0;
  }
}

/* === COUNTER ANIMATIONS === */

.counter {
  display: inline-block;
}

.counter.counting {
  animation: countUp var(--duration-1000) var(--ease-out) forwards;
}

/* === PARALLAX EFFECTS === */

.parallax {
  transform: translateZ(0);
  transition: transform var(--duration-100) linear;
}

/* === SCROLL PROGRESS BAR === */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: var(--z-fixed);
  transition: width var(--duration-100) linear;
}

/* === MODAL ANIMATIONS === */

.modal-backdrop {
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.modal-backdrop.show {
  opacity: 1;
}

.modal {
  opacity: 0;
  transform: scale(0.9) translateY(-20px);
  transition: opacity var(--transition-medium),
              transform var(--transition-medium);
}

.modal.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* === STAGGER ANIMATIONS === */

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp var(--duration-500) var(--ease-out) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 100ms; }
.stagger-children > *:nth-child(3) { animation-delay: 200ms; }
.stagger-children > *:nth-child(4) { animation-delay: 300ms; }
.stagger-children > *:nth-child(5) { animation-delay: 400ms; }
.stagger-children > *:nth-child(6) { animation-delay: 500ms; }

/* === MICRO INTERACTIONS === */

.interactive-card {
  transition: all var(--transition-medium);
  cursor: pointer;
}

.interactive-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.interactive-card:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

/* Icon bounce on hover */
.icon-bounce:hover {
  animation: iconBounce var(--duration-500) var(--ease-bounce);
}

@keyframes iconBounce {
  0%, 20%, 60%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(-5px);
  }
}

/* === HERO SPECIFIC ANIMATIONS === */

.hero-background img {
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.hero-badge {
  animation: fadeUp var(--duration-700) var(--ease-out) forwards;
  animation-delay: 200ms;
}

.hero-title {
  animation: fadeUp var(--duration-700) var(--ease-out) forwards;
  animation-delay: 400ms;
}

.hero-description {
  animation: fadeUp var(--duration-700) var(--ease-out) forwards;
  animation-delay: 600ms;
}

.hero-stats {
  animation: fadeUp var(--duration-700) var(--ease-out) forwards;
  animation-delay: 800ms;
}

.stat-number {
  animation: countUp var(--duration-1000) var(--ease-out) forwards;
  animation-delay: 1200ms;
}

/* === TIMELINE ANIMATIONS === */

.timeline-item {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft var(--duration-500) var(--ease-out) forwards;
}

.timeline-item:nth-child(1) { animation-delay: 200ms; }
.timeline-item:nth-child(2) { animation-delay: 400ms; }
.timeline-item:nth-child(3) { animation-delay: 600ms; }

/* === VALUE ITEMS ANIMATION === */

.value-item {
  transition: all var(--transition-medium);
}

.value-item:hover .value-letter {
  animation: pulse 1s ease-in-out infinite;
}

/* === LEADERSHIP SECTION ANIMATIONS === */

.leader-photo {
  transition: transform var(--transition-slow);
}

.leader-image:hover .leader-photo {
  transform: scale(1.05);
}

.expertise-tag {
  transition: all var(--transition-base);
}

.expertise-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30, 64, 175, 0.2);
}

/* === PERFORMANCE OPTIMIZATIONS === */

.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* === ACCESSIBILITY 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;
  }
  
  .parallax {
    transform: none !important;
  }
  
  .hero-background img {
    animation: none !important;
  }
  
  .typing-animation {
    animation: none !important;
    border-right: none !important;
    width: auto !important;
  }
}

/* === PRINT STYLES === */

@media print {
  .fade-up,
  .animate-on-scroll,
  .scale-in,
  .bounce-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}









/* ===== EMOCOM ENHANCED ANIMATIONS ===== */
/* Advanced animations for the WOW homepage experience */

/* === ADVANCED KEYFRAMES === */

@keyframes morphBackground {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

@keyframes dataFlow {
  0% {
    transform: translateX(-100%) scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }
}

@keyframes holographicGlow {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(59, 130, 246, 0.3),
      0 0 40px rgba(59, 130, 246, 0.2),
      0 0 60px rgba(59, 130, 246, 0.1);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(249, 115, 22, 0.3),
      0 0 60px rgba(249, 115, 22, 0.2),
      0 0 90px rgba(249, 115, 22, 0.1);
  }
}

@keyframes quantumParticle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  25% {
    transform: translate(100px, -50px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50px, -100px) scale(0.8);
    opacity: 0.6;
  }
  75% {
    transform: translate(-100px, 50px) scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes digitalRain {
  0% {
    transform: translateY(-100vh);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

@keyframes energyPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes magneticFloat {
  0%, 100% {
    transform: translateY(0) rotateX(0deg);
  }
  25% {
    transform: translateY(-10px) rotateX(5deg);
  }
  50% {
    transform: translateY(-5px) rotateX(-3deg);
  }
  75% {
    transform: translateY(-15px) rotateX(7deg);
  }
}

@keyframes textGlitch {
  0%, 100% {
    transform: translate(0);
    filter: hue-rotate(0deg);
  }
  20% {
    transform: translate(-2px, 2px);
    filter: hue-rotate(90deg);
  }
  40% {
    transform: translate(-2px, -2px);
    filter: hue-rotate(180deg);
  }
  60% {
    transform: translate(2px, 2px);
    filter: hue-rotate(270deg);
  }
  80% {
    transform: translate(2px, -2px);
    filter: hue-rotate(360deg);
  }
}

@keyframes liquidMorph {
  0%, 100% {
    border-radius: 50% 70% 30% 40% / 60% 30% 70% 40%;
    transform: rotate(0deg);
  }
  33% {
    border-radius: 30% 40% 70% 60% / 40% 70% 30% 50%;
    transform: rotate(120deg);
  }
  66% {
    border-radius: 70% 30% 50% 40% / 30% 60% 40% 70%;
    transform: rotate(240deg);
  }
}

@keyframes neuralNetwork {
  0% {
    stroke-dasharray: 0 100;
  }
  50% {
    stroke-dasharray: 50 50;
  }
  100% {
    stroke-dasharray: 100 0;
  }
}

@keyframes crystalline {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
    filter: brightness(1);
  }
  25% {
    transform: rotateX(90deg) rotateY(90deg);
    filter: brightness(1.2);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg);
    filter: brightness(0.8);
  }
  75% {
    transform: rotateX(270deg) rotateY(270deg);
    filter: brightness(1.1);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
    filter: brightness(1);
  }
}

/* === HERO SECTION ADVANCED EFFECTS === */

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 40% 60%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
  animation: morphBackground 15s ease-in-out infinite;
  z-index: 1;
}

/* Advanced floating elements */
.floating-elements::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, transparent 40%, rgba(59, 130, 246, 0.1) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(249, 115, 22, 0.1) 50%, transparent 60%);
  animation: dataFlow 8s linear infinite;
  pointer-events: none;
}

/* Enhanced dashboard animations */
.dashboard-preview {
  position: relative;
  overflow: hidden;
}

.dashboard-preview::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    #3b82f6, #f97316, #10b981, #8b5cf6);
  background-size: 400% 400%;
  border-radius: var(--radius-2xl);
  z-index: -1;
  animation: holographicGlow 4s ease-in-out infinite;
  filter: blur(8px);
}

.dashboard-preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: scanLine 3s ease-in-out infinite;
  border-radius: var(--radius-2xl);
}

@keyframes scanLine {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Enhanced metric card animations */
.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: left 0.8s ease;
}

.metric-card:hover::before {
  left: 100%;
}

.metric-card:hover {
  animation: magneticFloat 2s ease-in-out infinite;
}

/* === SOLUTION CARDS ADVANCED EFFECTS === */

.solution-card {
  position: relative;
  perspective: 1000px;
}

.solution-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(249, 115, 22, 0.1) 50%,
    rgba(16, 185, 129, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-2xl);
  pointer-events: none;
}

.solution-card:hover::after {
  opacity: 1;
}

.solution-icon svg {
  animation: crystalline 6s linear infinite;
  transform-style: preserve-3d;
}

.solution-card:hover .solution-icon svg {
  animation-play-state: paused;
}

/* Neural network effect for AI solution */
.solution-card[data-solution="ai"] .solution-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: energyPulse 2s ease-out infinite;
}

/* Data flow effect for automation solution */
.solution-card[data-solution="automation"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 10px,
      rgba(249, 115, 22, 0.1) 10px,
      rgba(249, 115, 22, 0.1) 20px
    );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-2xl);
  animation: dataFlow 4s linear infinite;
}

.solution-card[data-solution="automation"]:hover::before {
  opacity: 1;
}

/* Network pulse for network solution */
.solution-card[data-solution="network"] .solution-icon {
  position: relative;
}

.solution-card[data-solution="network"] .solution-icon::before,
.solution-card[data-solution="network"] .solution-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: energyPulse 2s ease-out infinite;
}

.solution-card[data-solution="network"] .solution-icon::after {
  animation-delay: 1s;
  width: 90px;
  height: 90px;
  border-color: rgba(16, 185, 129, 0.2);
}

/* Fleet tracking lines for fleet solution */
.solution-card[data-solution="fleet"]::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  right: 10%;
  bottom: 20%;
  background: 
    linear-gradient(45deg, transparent 40%, rgba(30, 64, 175, 0.2) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(30, 64, 175, 0.2) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-xl);
  animation: neuralNetwork 3s ease-in-out infinite;
}

.solution-card[data-solution="fleet"]:hover::before {
  opacity: 1;
}

/* === SUCCESS CARDS ADVANCED EFFECTS === */

.success-card {
  position: relative;
  overflow: hidden;
}

.success-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(59, 130, 246, 0.1) 90deg,
    transparent 180deg,
    rgba(249, 115, 22, 0.1) 270deg,
    transparent 360deg
  );
  animation: liquidMorph 8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.success-card:hover::before {
  opacity: 1;
}

/* === TYPING EFFECT ENHANCEMENTS === */

.typing-text {
  position: relative;
  display: inline-block;
  min-width: 400px; /* Fixed minimum width to prevent layout shifts */
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #60a5fa 0%,
    #f97316 25%,
    #10b981 50%,
    #8b5cf6 75%,
    #60a5fa 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

.typing-text::after {
  content: '|';
  display: inline-block;
  color: #f97316;
  animation: blink 1s infinite;
  margin-left: 2px;
}

.typing-text.glitch {
  animation: textGlitch 0.3s ease-in-out;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* === BUTTON ADVANCED EFFECTS === */

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.btn-glow:hover::after {
  width: 200px;
  height: 200px;
}

/* Quantum button effect */
.btn-quantum {
  position: relative;
}

.btn-quantum::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 70%);
  transform: translateX(-100%) skewX(-25deg);
  transition: transform 0.6s ease;
}

.btn-quantum:hover::before {
  transform: translateX(100%) skewX(-25deg);
}

/* === PARTICLE SYSTEM === */

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(59, 130, 246, 0.6);
  border-radius: 50%;
  animation: quantumParticle 8s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; background: rgba(249, 115, 22, 0.6); }
.particle:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; background: rgba(16, 185, 129, 0.6); }
.particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 3s; background: rgba(139, 92, 246, 0.6); }
.particle:nth-child(5) { top: 40%; left: 60%; animation-delay: 4s; }

/* === SCROLL TRIGGERED ANIMATIONS === */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.revealed {
  opacity: 1;
  transform: scale(1);
}

/* === LOADING ANIMATIONS === */

.loading-skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* === MICRO-INTERACTIONS === */

.interactive-element {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.interactive-element:hover {
  transform: translateY(-2px);
}

.interactive-element:active {
  transform: translateY(0);
}

/* Magnetic effect for large elements */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* === ADVANCED HOVER EFFECTS === */

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(10deg) rotateY(10deg);
}

.glow-on-hover {
  position: relative;
  transition: all 0.3s ease;
}

.glow-on-hover::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #3b82f6, #f97316, #10b981, #8b5cf6);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.glow-on-hover:hover::before {
  opacity: 1;
}

/* === PERFORMANCE OPTIMIZATIONS === */

/* GPU acceleration for animations */
.gpu-accelerated {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Reduce animations on low-end devices */
@media (max-width: 768px) {
  .floating-element,
  .particle {
    animation-duration: 4s;
  }
  
  .morphBackground,
  .liquidMorph {
    animation-duration: 8s;
  }
  
  .typing-text {
    min-width: 280px; /* Smaller min-width for mobile */
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .typing-text {
    min-width: 220px; /* Even smaller min-width for very small screens */
    font-size: 0.85em;
  }
}

/* === ACCESSIBILITY ENHANCEMENTS === */

@media (prefers-reduced-motion: reduce) {
  .floating-element,
  .particle,
  .hero-section::before,
  .dashboard-preview::before,
  .dashboard-preview::after,
  .solution-icon svg,
  .typing-text {
    animation: none !important;
  }
  
  .solution-card::before,
  .solution-card::after,
  .success-card::before {
    display: none;
  }
  
  .btn-glow::before,
  .btn-glow::after {
    display: none;
  }
}

/* === DARK MODE ANIMATIONS === */

@media (prefers-color-scheme: dark) {
  .particle {
    background: rgba(96, 165, 250, 0.8);
  }
  
  .particle:nth-child(2) { background: rgba(251, 146, 60, 0.8); }
  .particle:nth-child(3) { background: rgba(52, 211, 153, 0.8); }
  .particle:nth-child(4) { background: rgba(167, 139, 250, 0.8); }
}

/* === SPECIAL EFFECTS === */

/* Matrix rain effect for tech sections */
.matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.matrix-drop {
  position: absolute;
  top: -100%;
  color: rgba(0, 255, 0, 0.5);
  font-family: monospace;
  font-size: 14px;
  animation: digitalRain 3s linear infinite;
}

.matrix-drop:nth-child(1) { left: 10%; animation-delay: 0s; }
.matrix-drop:nth-child(2) { left: 20%; animation-delay: 0.5s; }
.matrix-drop:nth-child(3) { left: 30%; animation-delay: 1s; }
.matrix-drop:nth-child(4) { left: 40%; animation-delay: 1.5s; }
.matrix-drop:nth-child(5) { left: 50%; animation-delay: 2s; }
.matrix-drop:nth-child(6) { left: 60%; animation-delay: 2.5s; }
.matrix-drop:nth-child(7) { left: 70%; animation-delay: 3s; }
.matrix-drop:nth-child(8) { left: 80%; animation-delay: 3.5s; }
.matrix-drop:nth-child(9) { left: 90%; animation-delay: 4s; }

/* Holographic text effect */
.holographic-text {
  background: linear-gradient(
    45deg,
    #3b82f6,
    #f97316,
    #10b981,
    #8b5cf6,
    #ef4444
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  position: relative;
}

.holographic-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 2px;
  background: linear-gradient(45deg, #ff0080, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  z-index: -1;
}

.holographic-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: -2px;
  background: linear-gradient(45deg, #ffff00, #ff8000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  z-index: -1;
}