/* Services Section - Modern Styling */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #edf2ff;
  --secondary: #3f37c9;
  --text: #2b2d42;
  --text-light: #6c757d;
  --light: #f8f9fa;
  --gray: #adb5bd;
  --dark-gray: #495057;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Section Container */
.services-section {
  padding: 5rem 1.5rem;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Typography */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Cards Grid Layout */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
}

/* Individual Card Styling */
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  transition: var(--transition);
}

/* Card Hover Effects */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  height: 10px;
  background: var(--secondary);
}

/* Icon Styling */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  transition: var(--transition);
}

.service-card:hover .icon-box {
  transform: rotate(15deg) scale(1.1);
}

.mobile-icon {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.software-icon {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.web-icon {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

/* Card Content */
.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Service List */
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.service-card ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--dark-gray);
  transition: var(--transition);
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  transition: var(--transition);
}

.service-card:hover ul li::before {
  background: var(--secondary);
  transform: scale(1.2);
}

.service-card a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 0.25rem 0;
}

.service-card a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* Animations */
.animate-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.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;
}

/* Responsive Design */
@media (max-width: 992px) {
  .service-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-card ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }
}
