/* Services Section Styles */
.services {
  background-color: var(--bg-dark);
  position: relative;
}

.services.section-padding {
  padding-top: 56px;
}

.services .text-center.mb-5 {
  margin-bottom: 2.2rem !important;
}

.services .text-gray.mx-auto {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: -6px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.service-card {
  background: rgba(18, 18, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 35px 28px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card.highlight-card {
  border-color: rgba(0, 112, 243, 0.4);
  background: radial-gradient(circle at top right, rgba(0, 112, 243, 0.12), rgba(18, 18, 24, 0.95));
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #4facfe);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 112, 243, 0.2);
  border-color: rgba(0, 112, 243, 0.5);
}

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

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.service-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(0, 112, 243, 0.15), rgba(79, 172, 254, 0.25));
  color: #60a5fa;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 112, 243, 0.2);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-color), #4facfe);
  color: var(--text-light);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 112, 243, 0.4);
}

.service-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.badge-popular {
  background: rgba(0, 112, 243, 0.15);
  color: #60a5fa;
  border-color: rgba(0, 112, 243, 0.3);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-light);
}

.service-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-gray);
  margin-bottom: 25px;
}

.service-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: auto;
  margin-bottom: 10px;
}

.service-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 9px 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
}

.service-chip i {
  font-size: 0.8rem;
  color: #60a5fa;
  flex-shrink: 0;
}

.service-chip:hover {
  background: rgba(0, 112, 243, 0.15);
  border-color: rgba(0, 112, 243, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.service-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  margin-top: 25px;
  border-radius: 12px;
  background: rgba(0, 112, 243, 0.1);
  color: #60a5fa;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(0, 112, 243, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}

.service-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), #4facfe);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(0, 112, 243, 0.4);
  transform: translateY(-2px);
}

.btn-highlight {
  background: linear-gradient(135deg, var(--primary-color), #4facfe);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 112, 243, 0.3);
}

.btn-highlight:hover {
  box-shadow: 0 8px 30px rgba(0, 112, 243, 0.5);
}

/* All responsive breakpoints are handled in css/responsive.css */

/* Service Detail Modal Styles */
.service-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* The modal must sit above the fixed navbar and mobile drawer. */
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.service-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.service-modal-card {
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(0, 112, 243, 0.35);
  border-radius: 24px;
  padding: 35px;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 112, 243, 0.25);
  transform: scale(0.9) translateY(20px);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-modal-overlay.active .service-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: rgba(240, 62, 62, 0.2);
  color: #ff6b6b;
  border-color: rgba(240, 62, 62, 0.4);
  transform: rotate(90deg);
}

.modal-header-badge {
  margin-bottom: 15px;
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-title-box .service-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.modal-title-box h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.modal-description {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #d4d4d8;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.02);
  padding: 15px 18px;
  border-radius: 12px;
  border-left: 3px solid var(--primary-color);
}

.modal-features-box h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-features-box ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.modal-features-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-features-box li i {
  margin-top: 3px;
  flex-shrink: 0;
}

.modal-actions {
  margin-top: 10px;
}
