/* Modern Background System */
body.modern-bg {
  background: 
    linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 25%, #f0f9ff 50%, #f5f3ff 75%, #f0fdf4 100%);
  background-size: 400% 400%;
  animation: backgroundShift 20s ease infinite;
  position: relative;
  min-height: 100vh;
}

body.modern-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: floatBackground 15s ease-in-out infinite;
}

body.modern-bg::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(30deg, transparent 48%, rgba(255, 255, 255, 0.05) 49%, rgba(255, 255, 255, 0.05) 51%, transparent 52%),
    linear-gradient(60deg, transparent 48%, rgba(255, 255, 255, 0.03) 49%, rgba(255, 255, 255, 0.03) 51%, transparent 52%);
  background-size: 60px 60px, 60px 60px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

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

@keyframes floatBackground {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
    opacity: 0.9;
  }
  66% {
    transform: translate(-15px, 15px) scale(0.95);
    opacity: 0.95;
  }
}

/* Grid Pattern Overlay */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(14, 165, 164, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 164, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Enhanced Custom Styles - Modern Design */
.nav-link { 
  color: #0f172a; 
  text-decoration: none; 
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0;
  font-weight: 500;
}
.nav-link:hover { 
  color: #0ea5a4; 
  transform: translateY(-2px); 
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0ea5a4, #06b6d4, #8b5cf6);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after {
  width: 100%;
}

.card { 
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem; 
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5a4, #06b6d4, #8b5cf6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(14, 165, 164, 0.1),
    0 0 40px rgba(14, 165, 164, 0.1);
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(14, 165, 164, 0.2);
}

.hero-gradient { 
  background: linear-gradient(135deg, 
    rgba(14,165,164,0.1), 
    rgba(99,102,241,0.08), 
    rgba(236,72,153,0.05),
    rgba(6,182,212,0.08)); 
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(14,165,164,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(99,102,241,0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(6,182,212,0.1) 0%, transparent 50%);
  animation: float 8s ease-in-out infinite;
  filter: blur(60px);
}

.hero-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 60% 80%, rgba(139,92,246,0.08) 0%, transparent 35%),
    radial-gradient(circle at 40% 20%, rgba(236,72,153,0.06) 0%, transparent 35%);
  animation: float 10s ease-in-out infinite reverse;
  filter: blur(80px);
}

/* Vector Animation Styles */
.vector-animation-group {
  opacity: 1;
  pointer-events: none;
}

.vector-float-1,
.vector-float-2,
.vector-float-3 {
  filter: blur(0.5px);
  transition: opacity 0.3s ease;
}

.vector-pulse-1,
.vector-pulse-2 {
  filter: blur(1px);
}

.vector-wave-1,
.vector-wave-2 {
  filter: blur(0.5px);
  stroke-linecap: round;
}

.vector-rotate {
  filter: blur(0.5px);
}

.vector-dots circle {
  filter: blur(0.5px);
}

/* Enhanced vector animations */
@media (prefers-reduced-motion: no-preference) {
  .vector-animation-group {
    animation: vectorFadeIn 2s ease-in;
  }
}

@keyframes vectorFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive adjustments for vector animations */
@media (max-width: 768px) {
  .vector-animation-group {
    opacity: 0.9;
  }
  
  .vector-float-1,
  .vector-float-2,
  .vector-float-3,
  .vector-pulse-1,
  .vector-pulse-2 {
    filter: blur(1px);
  }
}

.modal-backdrop { 
  background: rgba(2,6,23,0.6); 
  backdrop-filter: blur(4px);
}

/* Enhanced Modern Animations */
@keyframes float {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1); 
    opacity: 1;
  }
  33% { 
    transform: translate(30px, -30px) rotate(2deg) scale(1.05); 
    opacity: 0.9;
  }
  66% { 
    transform: translate(-20px, 20px) rotate(-1deg) scale(0.95); 
    opacity: 0.95;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.08);
    opacity: 0.8;
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { 
    transform: translate3d(0,0,0) scale(1); 
  }
  40%, 43% { 
    transform: translate3d(0,-10px,0) scale(1.02); 
  }
  70% { 
    transform: translate3d(0,-5px,0) scale(1.01); 
  }
  90% { 
    transform: translate3d(0,-2px,0) scale(1.005); 
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

/* Modern Animation Classes */
.animate-fadeInUp {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

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

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

.animate-slideInScale {
  animation: slideInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

/* Intersection Observer Animation Classes */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Animation Delays */
.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-700 { animation-delay: 0.7s; }
.animation-delay-800 { animation-delay: 0.8s; }

/* Enhanced Focus States */
:focus { 
  outline: 3px solid rgba(14,165,164,0.3); 
  outline-offset: 2px; 
  box-shadow: 0 0 0 3px rgba(14,165,164,0.1);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0ea5a4, #06b6d4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0d9488, #0891b2);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #0ea5a4, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #0ea5a4, #06b6d4, #8b5cf6);
  background-size: 200% 200%;
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(14, 165, 164, 0.3);
  animation: gradientShift 3s ease infinite;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(14,165,164,0.4);
  background-position: right center;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top: 3px solid #ffffff;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Glassmorphism Effects */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modern Gradient Text */
.gradient-text-modern {
  background: linear-gradient(135deg, #0ea5a4, #06b6d4, #8b5cf6, #ec4899);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

/* Hover Glow Effect */
.hover-glow {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
  box-shadow: 
    0 0 20px rgba(14, 165, 164, 0.3),
    0 0 40px rgba(6, 182, 212, 0.2),
    0 0 60px rgba(139, 92, 246, 0.1);
  transform: translateY(-4px);
}

/* Smooth Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(14, 165, 164, 0.5);
  border-radius: 25px;
  opacity: 0.7;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #0ea5a4;
  border-radius: 50%;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0.5;
  }
}

/* Process/Workflow Animations */
.process-line-animation {
  animation: processLineFlow 3s ease-in-out infinite;
}

/* Color-specific classes for process steps */
.process-card-emerald:hover { border-color: rgb(16, 185, 129); }
.process-glow-emerald { background: linear-gradient(135deg, rgb(52, 211, 153), rgb(5, 150, 105)); }
.process-icon-emerald { background: linear-gradient(135deg, rgb(16, 185, 129), rgb(5, 150, 105)); }
.process-ring-emerald { background-color: rgb(52, 211, 153); }
.process-dot-emerald { background-color: rgb(16, 185, 129); }
.process-number-emerald { color: rgb(5, 150, 105); }
.process-bar-emerald { background: linear-gradient(90deg, rgb(52, 211, 153), rgb(5, 150, 105)); }

.process-card-cyan:hover { border-color: rgb(6, 182, 212); }
.process-glow-cyan { background: linear-gradient(135deg, rgb(34, 211, 238), rgb(8, 145, 178)); }
.process-icon-cyan { background: linear-gradient(135deg, rgb(6, 182, 212), rgb(8, 145, 178)); }
.process-ring-cyan { background-color: rgb(34, 211, 238); }
.process-dot-cyan { background-color: rgb(6, 182, 212); }
.process-number-cyan { color: rgb(8, 145, 178); }
.process-bar-cyan { background: linear-gradient(90deg, rgb(34, 211, 238), rgb(8, 145, 178)); }

.process-card-teal:hover { border-color: rgb(20, 184, 166); }
.process-glow-teal { background: linear-gradient(135deg, rgb(45, 212, 191), rgb(13, 148, 136)); }
.process-icon-teal { background: linear-gradient(135deg, rgb(20, 184, 166), rgb(13, 148, 136)); }
.process-ring-teal { background-color: rgb(45, 212, 191); }
.process-dot-teal { background-color: rgb(20, 184, 166); }
.process-number-teal { color: rgb(13, 148, 136); }
.process-bar-teal { background: linear-gradient(90deg, rgb(45, 212, 191), rgb(13, 148, 136)); }

.process-card-purple:hover { border-color: rgb(168, 85, 247); }
.process-glow-purple { background: linear-gradient(135deg, rgb(192, 132, 252), rgb(147, 51, 234)); }
.process-icon-purple { background: linear-gradient(135deg, rgb(168, 85, 247), rgb(147, 51, 234)); }
.process-ring-purple { background-color: rgb(192, 132, 252); }
.process-dot-purple { background-color: rgb(168, 85, 247); }
.process-number-purple { color: rgb(147, 51, 234); }
.process-bar-purple { background: linear-gradient(90deg, rgb(192, 132, 252), rgb(147, 51, 234)); }

.process-dot-animation {
  animation: processDotMove 3s ease-in-out infinite;
}

@keyframes processLineFlow {
  0% {
    width: 0%;
    opacity: 0.5;
  }
  50% {
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0.5;
  }
}

@keyframes processDotMove {
  0% {
    left: 0%;
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  50% {
    left: 100%;
    transform: translateY(-50%) translateX(-100%) scale(1.2);
    opacity: 1;
  }
  100% {
    left: 100%;
    transform: translateY(-50%) translateX(-100%) scale(1);
    opacity: 0.8;
  }
}

.process-arrow-container {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.arrow-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0;
}

.arrow-head {
  opacity: 0;
  transform: translateX(-20px);
}

@keyframes arrowDraw {
  0% {
    stroke-dashoffset: 200;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes arrowHeadFade {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.process-icon-container {
  position: relative;
}

.process-pulse-ring {
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.process-connector-dot {
  animation: connectorPulse 2s ease-in-out infinite;
  animation-delay: 0.5s;
}

@keyframes connectorPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(14, 165, 164, 0.7);
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 10px rgba(14, 165, 164, 0);
  }
}

.process-card {
  position: relative;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, transparent, rgba(14, 165, 164, 0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-card:hover::before {
  opacity: 1;
}

.process-progress-bar {
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0% !important;
}

.process-step.visible .process-number {
  animation: numberPop 0.5s ease-out;
}

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

/* Staggered animation for process steps */
.process-step {
  opacity: 0;
  transform: translateY(40px) scale(0.85);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: stepFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes stepFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.85);
  }
  60% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: whatsappFloat 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  color: white;
  z-index: 2;
  position: relative;
}

.whatsapp-icon svg {
  width: 100%;
  height: 100%;
  fill: white;
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.6);
  animation: whatsappPulse 2s ease-out infinite;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.9);
}

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

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
  
  .whatsapp-tooltip {
    font-size: 12px;
    padding: 6px 10px;
    right: 65px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-icon {
    width: 26px;
    height: 26px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

/* FAQ Section Enhancements */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateX(4px);
}

.faq-item .card {
  position: relative;
}

.faq-item .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0ea5a4, #06b6d4);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.faq-item:hover .card::after {
  transform: scaleY(1);
}

/* Smooth collapse animation */
[x-cloak] { 
  display: none !important; 
}

/* Modern Section Backgrounds */
.section-bg-modern {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 253, 250, 0.8) 100%);
  backdrop-filter: blur(10px);
  position: relative;
}

.section-bg-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.bg-gradient-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 25%, #e0e7ff 50%, #f0fdf4 75%, #f8fafc 100%);
  background-size: 400% 400%;
  animation: backgroundShift 15s ease infinite;
}

/* Animated gradient mesh */
.mesh-gradient {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

.mesh-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
    radial-gradient(circle, rgba(6, 182, 212, 0.15) 50%, transparent 50%),
    radial-gradient(circle, rgba(139, 92, 246, 0.1) 100%, transparent 50%);
  animation: meshMove 20s ease-in-out infinite;
  filter: blur(60px);
}

@keyframes meshMove {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* Dot pattern background */
.dots-pattern {
  background-image: radial-gradient(circle, rgba(14, 165, 164, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.6;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .card {
    margin: 0 1rem;
    border-radius: 1.25rem;
  }
  
  .hero-gradient {
    padding: 2rem 0;
  }
  
  .hero-gradient::before,
  .hero-gradient::after {
    filter: blur(40px);
  }
  
  body.modern-bg::before {
    filter: blur(30px);
  }
  
  .nav-link {
    padding: 0.5rem 0;
  }
  
  .card:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .btn-primary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }
  
  .nav-link::after {
    display: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .nav-link:hover {
    text-decoration: underline;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-gradient::before {
    animation: none;
  }
}

/* UI refresh styles */
:root {
  --ink-900: #0b1220;
  --ink-700: #1f2937;
  --muted-500: #4b5563;
  --brand-emerald: #0f766e;
  --brand-cyan: #0e7490;
  --brand-sand: #d97706;
  --panel-bg: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(148, 163, 184, 0.35);
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink-900);
}

h1, h2, h3, h4, .hero-title {
  font-family: "Playfair Display", "Times New Roman", serif;
}

body.modern-bg {
  background: radial-gradient(circle at top left, #f0fdfa 0%, #f8fafc 45%, #fff7ed 100%);
  background-size: cover;
}

body.modern-bg::before {
  background:
    radial-gradient(circle at 18% 28%, rgba(16, 185, 129, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 78% 68%, rgba(14, 116, 144, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.08) 0%, transparent 55%);
}

.hero-shell {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(14, 116, 144, 0.12), rgba(217, 119, 6, 0.08));
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-orbs .orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.5;
}

.orb-emerald {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -40px;
  background: rgba(16, 185, 129, 0.4);
}

.orb-cyan {
  width: 320px;
  height: 320px;
  bottom: -120px;
  right: -60px;
  background: rgba(14, 116, 144, 0.35);
}

.orb-sand {
  width: 240px;
  height: 240px;
  top: 35%;
  right: 15%;
  background: rgba(217, 119, 6, 0.3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-emerald);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  color: var(--ink-900);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted-500);
  max-width: 38rem;
}

.chip {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0f766e, #0e7490);
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(15, 118, 110, 0.3);
}

.btn-secondary {
  background: #fff;
  color: var(--brand-emerald);
  border: 1px solid rgba(15, 118, 110, 0.35);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-900);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted-500);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 1.1rem;
  padding: 1.5rem;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

.hero-image-wrap {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-image-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.caption-title {
  font-weight: 700;
  color: var(--ink-900);
  font-size: 0.95rem;
}

.caption-sub {
  font-size: 0.8rem;
  color: var(--muted-500);
}

.hero-panel-grid {
  display: grid;
  gap: 0.8rem;
}

.panel-card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.panel-title {
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.25rem;
}

.panel-text {
  font-size: 0.9rem;
  color: var(--muted-500);
}

.card {
  border-radius: 1rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.section-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--ink-900);
}

.section-subtitle {
  color: var(--muted-500);
  font-size: 1.05rem;
}

.tech-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 116, 144, 0.4), transparent);
}

.sharp-card {
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.12);
  color: #0e7490;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-panel {
    padding: 1.25rem;
  }
}

/* Mobile optimization */
@media (max-width: 640px) {
  .hero-shell {
    padding-top: 0.5rem;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-image {
    height: 240px;
  }

  .hero-panel {
    padding: 1rem;
  }

  .hero-panel-grid {
    gap: 0.6rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
  }

  .chip {
    font-size: 0.78rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .card,
  .sharp-card,
  .glass-card {
    border-radius: 0.85rem;
  }
}

/* Color refresh overrides */
.gradient-text-modern {
  background: linear-gradient(135deg, #0f766e, #0e7490, #d97706);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link::after,
.card::before {
  background: linear-gradient(90deg, #0f766e, #0e7490, #d97706);
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(14, 116, 144, 0.1), rgba(217, 119, 6, 0.08));
}

.hero-gradient::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(15, 118, 110, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(14, 116, 144, 0.12) 0%, transparent 40%);
}

.hero-gradient::after {
  background:
    radial-gradient(circle at 60% 80%, rgba(217, 119, 6, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 40% 20%, rgba(15, 118, 110, 0.08) 0%, transparent 35%);
}
