/* ==============================================
   SERVICES SECTION - MODERN GRID LAYOUT
   ============================================== */

.services-section {
  background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 800px;
  height: 800px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  z-index: 1;
}

.services-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  z-index: 1;
}

/* Title Styles */
.services-title {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.5px;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
  border-radius: 2px;
  position: relative;
  z-index: 2;
}

.services-subtitle {
  font-size: 16px;
  font-weight: 300;
  position: relative;
  z-index: 2;
}

/* Grid Layout */
.services-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  margin-bottom: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Service Card */
.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 102, 204, 0.25);
}

/* Image Wrapper */
.service-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f0f0f0;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 204, 0.7) 0%,
    rgba(0, 74, 153, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
  opacity: 1;
}

/* Service Number */
.service-number {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
  z-index: 3;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-number {
  opacity: 1;
  transform: scale(1);
}

/* Service Content */
.service-content {
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Service Title */
.service-title {
  font-size: 22px;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 15px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: #004a99;
}

/* Service Description */
.service-description {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Service Footer */
.service-footer {
  margin-top: auto;
}

/* Service Button */
.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid #0066cc;
}

.btn-service:hover {
  background: linear-gradient(135deg, #004a99 0%, #003366 100%);
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn-service:hover .btn-arrow {
  transform: translateX(3px);
}

/* CTA Button */
.btn-lg.btn-theme {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  border: none;
  padding: 15px 50px;
  font-size: 16px;
  font-weight: 700;
  color: #fff !important;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 2;
}

.btn-lg.btn-theme:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 152, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-title {
    font-size: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-card {
    margin-bottom: 0;
  }

  .service-image-wrapper {
    height: 240px;
  }

  .service-content {
    padding: 30px 25px;
  }

  .service-title {
    font-size: 18px;
  }

  .service-description {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .services-section {
    padding: 60px 0;
  }

  .services-title {
    font-size: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-image-wrapper {
    height: 180px;
  }

  .service-content {
    padding: 20px 15px;
  }

  .service-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .service-description {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .btn-lg.btn-theme {
    padding: 12px 30px;
    font-size: 14px;
  }
}

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

.service-card {
  animation: slideInUp 0.6s ease backwards;
}

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