/* Typing animation */
    .typing-text::after {
    content: "with Automation & Optimization";
    font-size: 2.5rem;
    background: linear-gradient(90deg, #2a5298 0%, #1e3c72 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: typing 5s ease-in-out infinite;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes typing {
    0% { 
        width: 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        width: 100%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}


/* Services Section */
.services {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.subtitle {
  color: #666;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Service Card */
.service-card {
  perspective: 1000px;
  height: 400px; /* Fixed height for consistency */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 15px;
}

.service-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.card-front {
  background: linear-gradient(135deg, #6e8efb 0%, #4a6cf7 100%);
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-back {
  background: white;
  transform: rotateY(180deg);
  overflow-y: auto; /* Allows scrolling if content is long */
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
}

.card-front h3 {
  font-size: 1.5rem;
  margin: 0;
}

.card-back p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features {
  padding-left: 20px;
  margin: 0;
}

.service-features li {
  color: #444;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Delay animations for staggered effect */
.service-card[data-delay="0.2"] { transition-delay: 0.2s; }
.service-card[data-delay="0.4"] { transition-delay: 0.4s; }
.service-card[data-delay="0.6"] { transition-delay: 0.6s; }
.service-card[data-delay="0.8"] { transition-delay: 0.8s; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services {
    padding: 60px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .service-card {
    height: 380px;
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .card-front, .card-back {
    padding: 25px;
  }
}