/* *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid red;
}
  */
body {
overflow-x: hidden;
} 

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

/* Circuit Animation Keyframes */
@keyframes circuitFlow {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0.2;
  }
  30% {
    opacity: 0.6;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.5;
  }
}

@keyframes circuitPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes circuitGlow {
  0%, 100% {
    filter: drop-shadow(0 0 2px #449AD5);
  }
  50% {
    filter: drop-shadow(0 0 8px #449AD5) drop-shadow(0 0 15px #449AD5);
  }
}

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

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

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

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

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Coin Animation Keyframes */
@keyframes coinFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes coinPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes coinFloatRotate {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-5px) rotate(270deg);
  }
}

@keyframes jiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-3deg);
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-play-state: paused;
  animation-name: fadeInUp; /* Default animation */
}

.animate-on-scroll.animated {
  animation-play-state: running;
}

/* Individual animation classes */
.fade-in-up {
  animation-name: fadeInUp;
}

.fade-in-down {
  animation-name: fadeInDown;
}

.fade-in-left {
  animation-name: fadeInLeft;
}

.fade-in-right {
  animation-name: fadeInRight;
}

.fade-in {
  animation-name: fadeIn;
}

.scale-in {
  animation-name: scaleIn;
}

.bounce-in {
  animation-name: bounceIn;
}

/* Coin Animation Classes */
.coin-float {
  animation: coinFloat 3s ease-in-out infinite;
}

.coin-rotate {
  animation: coinRotate 8s linear infinite;
}

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

.coin-float-rotate {
  animation: coinFloatRotate 6s ease-in-out infinite;
}

.jiggle {
  animation: jiggle 0.5s ease-in-out infinite;
}

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

/* Hero section load animation */
.hero-title, .hero-description, .hero-button, .hero-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.hero-image {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.8s ease-out;
}

.hero-loaded .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.hero-loaded .hero-description {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.hero-loaded .hero-button {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.4s;
}

.hero-loaded .hero-image {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.5s;
}

.hero-loaded .hero-card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.hero-loaded .hero-card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

.hero-loaded .hero-card:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.0s;
}

.hero-loaded .hero-card:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.2s;
}

.hero-loaded .hero-card:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.4s;
}

/* Testimonial Carousel Animation Styles */
.testimonial-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.testimonial-slide {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-carousel-animating {
  pointer-events: none;
}

.testimonial-carousel-animating .testimonial-slide {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Testimonial Navigation Button Animations */
#testimonial-prev-btn,
#testimonial-next-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

#testimonial-prev-btn:hover,
#testimonial-next-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#testimonial-prev-btn:active,
#testimonial-next-btn:active {
  transform: scale(0.95);
}

/* Disabled state during animation */
.testimonial-carousel-animating #testimonial-prev-btn,
.testimonial-carousel-animating #testimonial-next-btn {
  opacity: 0.6;
  cursor: not-allowed;
  transform: scale(1) !important;
}

.testimonial-carousel-animating #testimonial-prev-btn:hover,
.testimonial-carousel-animating #testimonial-next-btn:hover {
  transform: scale(1) !important;
  box-shadow: none !important;
}

/* Enhanced dot navigation */
.carousel-dot {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.carousel-dot:hover {
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #3B82F6 !important;
  transform: scale(1.1);
}

/* Responsive Design for Testimonial Carousel */
@media (max-width: 1024px) {
  .testimonial-card {
    width: 90vw;
    min-height: 450px;
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 95vw;
    min-height: 500px;
    margin: 0 5px;
  }

  .carousel-nav {
    width: 35px;
    height: 35px;
  }

  .carousel-nav.prev {
    left: 5px;
  }

  .carousel-nav.next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    width: 100vw;
    min-height: 550px;
    margin: 0;
  }

  .carousel-nav {
    width: 30px;
    height: 30px;
  }

  .carousel-nav.prev {
    left: 2px;
  }

  .carousel-nav.next {
    right: 2px;
  }

  .carousel-dots {
    bottom: 10px;
  }
}

/* Testimonial Carousel Styles */
.testimonial-carousel {
  user-select: none; /* Prevent text selection during drag */
}

.testimonial-slide {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth slide animation */
}

.testimonial-carousel.dragging .testimonial-slide {
  transition: none; /* Disable transition during drag for smooth feedback */
}

.carousel-dot {
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  transform: scale(1.2);
}

/* Service Provider Cards Hover Effects */
.service-provider-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.service-provider-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(35, 82, 134, 0.15);
}

.service-provider-card .provider-icon {
  transition: all 0.3s ease;
  filter: brightness(1) contrast(1);
}

.service-provider-card:hover .provider-icon {
  filter: brightness(0) invert(1) contrast(1.2);
}

/* Smooth background transition */
.service-provider-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(35, 82, 134, 1);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  z-index: -1;
}

.service-provider-card:hover::before {
  opacity: 1;
}

/* Ensure text transitions smoothly */
.service-provider-card h3,
.service-provider-card p {
  transition: color 0.3s ease;
}

.header-bg {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.75) 0, transparent 60%),
    linear-gradient(135deg, #235286 0%, #163963 50%, #0c213d 100%);
  position: relative;
  overflow: hidden;
}

.header-bg::before,
.header-bg::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(18px);
}

.header-bg::before {
  width: 260px;
  height: 260px;
  top: -80px;
  right: -60px;
}

.header-bg::after {
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: -40px;
}

/* Featured Article Styles for Carousel - Removed to ensure equal card heights */

/* Circuit Animation Styles */
.circuit-animation {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.circuit-animation.animate {
  opacity: 1;
  animation: circuitGlow 5s ease-in-out infinite;
}

.circuit-path {
  stroke: #449AD5;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0.6;
  animation: circuitFlow 8s ease-in-out infinite;
}

.circuit-path:nth-child(2n) {
  animation-delay: 0.5s;
}

.circuit-path:nth-child(3n) {
  animation-delay: 1s;
}

.circuit-path:nth-child(4n) {
  animation-delay: 1.5s;
}

.circuit-path:nth-child(5n) {
  animation-delay: 2s;
}

.circuit-path:nth-child(6n) {
  animation-delay: 2.5s;
}

.circuit-path:nth-child(7n) {
  animation-delay: 3s;
}

.circuit-node {
  fill: #449AD5;
  opacity: 0.6;
  transform-origin: center;
  animation: circuitPulse 4s ease-in-out infinite;
}

.circuit-node:nth-child(2n) {
  animation-delay: 0.3s;
}

.circuit-node:nth-child(3n) {
  animation-delay: 0.6s;
}

.circuit-node:nth-child(4n) {
  animation-delay: 0.9s;
}

.circuit-node:nth-child(5n) {
  animation-delay: 1.2s;
}

.circuit-node:nth-child(6n) {
  animation-delay: 1.5s;
}

.contact-button-attract:hover {
  animation-play-state: paused;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Shake Left-Right Animation */
.shake-lr {
-webkit-animation: shake-horizontal 4s ease-in-out infinite both;
	        animation: shake-horizontal 4s ease-in-out infinite both;
}
@-webkit-keyframes shake-horizontal {
  0%,
  40%,
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  4%,
  12%,
  20%,
  28% {
    -webkit-transform: translateX(-5px);
            transform: translateX(-5px);
  }
  8%,
  16%,
  24%,
  32% {
    -webkit-transform: translateX(5px);
            transform: translateX(5px);
  }
  36% {
    -webkit-transform: translateX(3px);
            transform: translateX(3px);
  }
  38% {
    -webkit-transform: translateX(-3px);
            transform: translateX(-3px);
  }
}
@keyframes shake-horizontal {
  0%,
  40%,
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  4%,
  12%,
  20%,
  28% {
    -webkit-transform: translateX(-5px);
            transform: translateX(-5px);
  }
  8%,
  16%,
  24%,
  32% {
    -webkit-transform: translateX(5px);
            transform: translateX(5px);
  }
  36% {
    -webkit-transform: translateX(3px);
            transform: translateX(3px);
  }
  38% {
    -webkit-transform: translateX(-3px);
            transform: translateX(-3px);
  }
}

/* FAQ Animation Styles */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.faq-answer.expanded {
  max-height: 500px; /* Adjust based on content height */
  opacity: 1;
}

/* Blog Carousel Animation Styles */
#blog-carousel {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.blog-carousel-animating {
  pointer-events: none;
}

.blog-carousel-animating #blog-carousel {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Blog Navigation Button Animations */
#blog-prev-btn,
#blog-next-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

#blog-prev-btn:hover,
#blog-next-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#blog-prev-btn:active,
#blog-next-btn:active {
  transform: scale(0.95);
}

/* Disabled state during animation */
.blog-carousel-animating #blog-prev-btn,
.blog-carousel-animating #blog-next-btn {
  opacity: 0.6;
  cursor: not-allowed;
  transform: scale(1) !important;
}

.blog-carousel-animating #blog-prev-btn:hover,
.blog-carousel-animating #blog-next-btn:hover {
  transform: scale(1) !important;
  box-shadow: none !important;
}

/* Add subtle slide-in animation for blog cards */
.blog-card-enter {
  animation: slideInFromRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Footer Gradient Animation */
@keyframes footerGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

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

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

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

/* Footer Animated Background */
.footer-animated-bg {
  background: linear-gradient(181.63deg, rgba(214, 233, 255, 0.9) 1.47%, rgba(35, 82, 134, 0.8) 40%, rgba(45, 100, 160, 0.85) 60%, rgba(35, 82, 134, 0.8) 98.72%);
  background-size: 200% 200%;
  animation: footerGradientShift 15s ease-in-out infinite;
}

/* Footer Item Animations */
.footer-logo-animate {
  animation: floatUp 3s ease-in-out infinite;
}

.footer-link-animate {
  transition: all 0.3s ease;
  position: relative;
}

.footer-link-animate:hover {
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-social-animate {
  transition: all 0.3s ease;
}

.footer-social-animate:hover {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.3));
}

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

.footer-text-shimmer {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(255, 255, 255, 0.8) 25%, 
    rgba(255, 255, 255, 1) 50%, 
    rgba(255, 255, 255, 0.8) 75%, 
    rgba(255, 255, 255, 1) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
