/* Services Section - Modern Design 2025 */

:root {
  --services-primary: #0aa5a6;
  --services-secondary: #14c4c5;
  --services-accent: #e6a919;
  --services-dark: #0d0d0d;
  --services-card: #151515;
  --services-card-hover: #1a1a1a;
  --services-text-light: #ffffff;
  --services-text-secondary: #b0b0b0;
  --services-gradient: linear-gradient(
    135deg,
    var(--services-primary),
    var(--services-secondary)
  );
  --services-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  --services-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Main section styling */
.services-section {
  position: relative;
  padding: 120px 0;
  background-color: var(--services-dark);
  color: var(--services-text-light);
  overflow: hidden;
}

/* Background image and overlay */
.services-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/xpdef.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.15;
  z-index: 0;
}

.services-section-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.9) 0%,
    rgba(13, 13, 13, 0.8) 100%
  );
}

/* Services container */
.services-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

/* Section title styling */
.services-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 15px;
  background: var(--services-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(10, 165, 166, 0.3);
}

.services-title::after {
  content: '';
  position: absolute;
  width: 0;
  height: 4px;
  background: var(--services-gradient);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(20, 196, 197, 0.5);
  animation: expandWidth 1s ease forwards 0.3s;
}

.services-header {
  text-align: center;
  position: relative;
  margin-bottom: 70px;
}

.services-header p {
  font-size: 1.1rem;
  color: var(--services-text-secondary);
  max-width: 700px;
  margin: 25px auto 0;
  line-height: 1.6;
}

/* Service cards grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* Service card styling */
.service-card {
  position: relative;
  background: rgba(21, 21, 21, 0.7);
  border-radius: 20px;
  padding: 40px 30px;
  transition: var(--services-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(0);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.1s + 0.2s);
}

/* Glass effect on cards */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 20px;
  z-index: -1;
}

/* Hover effects */
.service-card:hover {
  transform: translateY(-12px);
  background: rgba(26, 26, 26, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(10, 165, 166, 0.1),
    0 0 20px rgba(10, 165, 166, 0.05);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--services-primary);
  text-shadow: 0 0 20px rgba(10, 165, 166, 0.4);
}

.service-card:hover h3 {
  color: var(--services-primary);
}

/* Service icon styling */
.service-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  transition: var(--services-transition);
  position: relative;
  height: 70px;
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 165, 166, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.5;
}

/* Service content styling */
.service-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 15px;
  transition: var(--services-transition);
  color: var(--services-text-light);
}

.service-card p {
  font-size: 1rem;
  color: var(--services-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Learn more button */
.service-card .service-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--services-primary);
  text-decoration: none;
  border: 1px solid rgba(10, 165, 166, 0.3);
  padding: 8px 16px;
  border-radius: 30px;
  transition: var(--services-transition);
  margin-top: auto;
  width: fit-content;
  background: rgba(10, 165, 166, 0.05);
}

.service-card .service-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-btn {
  background: rgba(10, 165, 166, 0.15);
  border-color: rgba(10, 165, 166, 0.5);
}

.service-card:hover .service-btn i {
  transform: translateX(4px);
}

/* Accent elements */
.service-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--services-gradient);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: var(--services-transition);
  opacity: 0.3;
  border-radius: 0 0 20px 20px;
}

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

/* Service features list - shown on hover */
.service-features {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
  list-style: none;
  padding: 0;
}

.service-card:hover .service-features {
  max-height: 150px;
  opacity: 1;
  margin-top: 15px;
  margin-bottom: 20px;
}

.service-features li {
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
  color: var(--services-text-secondary);
  font-size: 0.9rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--services-primary);
  font-size: 0.8rem;
}

/* Category badges */
.service-category {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(10, 165, 166, 0.15);
  color: var(--services-primary);
}

/* Featured service highlight */
.service-card.featured {
  border: 1px solid rgba(10, 165, 166, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(10, 165, 166, 0.2),
    0 0 30px rgba(10, 165, 166, 0.1);
}

/* Service type tabs navigation */
.service-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.service-tab {
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(21, 21, 21, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--services-text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--services-transition);
  backdrop-filter: blur(5px);
}

.service-tab:hover {
  background: rgba(21, 21, 21, 0.9);
  color: var(--services-text-light);
}

.service-tab.active {
  background: var(--services-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(10, 165, 166, 0.3);
}

/* CTA section */
.services-cta {
  text-align: center;
  margin-top: 70px;
  padding: 40px;
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.services-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10, 165, 166, 0.05) 0%,
    rgba(20, 196, 197, 0.05) 100%
  );
  z-index: -1;
}

.services-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--services-text-light);
}

.services-cta p {
  color: var(--services-text-secondary);
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--services-gradient);
  color: white;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--services-transition);
  box-shadow: 0 10px 25px rgba(10, 165, 166, 0.3);
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(10, 165, 166, 0.4);
}

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

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* Floating animations for icons */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.service-icon {
  animation: float 5s ease-in-out infinite;
}

/* Pulse animation for featured card */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(10, 165, 166, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(10, 165, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(10, 165, 166, 0);
  }
}

.service-card.featured {
  animation: pulse 2s infinite;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }

  .services-section {
    padding: 100px 0;
  }
}

@media (max-width: 992px) {
  .services-title {
    font-size: 2.5rem;
  }

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

  .service-icon {
    font-size: 2.5rem;
    height: 60px;
    width: 60px;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }
}

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

  .services-title {
    font-size: 2.2rem;
  }

  .services-header {
    margin-bottom: 50px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .services-cta {
    padding: 30px 20px;
  }

  .services-cta h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .services-title {
    font-size: 2rem;
  }

  .services-header p {
    font-size: 1rem;
  }

  .service-tabs {
    gap: 10px;
  }

  .service-tab {
    padding: 6px 15px;
    font-size: 0.8rem;
  }
}
