/* ==========================================================================
   SERVICES SECTION
   Dark Premium Service Directory
   ========================================================================== */

.services {
  position: relative;

  padding: 120px 24px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(99, 102, 241, 0.10),
      transparent 35%
    ),
    #0b1120;

  color: #f8fafc;
}


/* ==========================================================================
   BACKGROUND
   ========================================================================== */

.services-bg-glow {
  position: absolute;

  width: 600px;
  height: 600px;

  top: 35%;
  right: -250px;

  transform: translateY(-50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(139, 92, 246, 0.18),
      rgba(99, 102, 241, 0.06) 45%,
      transparent 72%
    );

  filter: blur(80px);

  pointer-events: none;
}

.services-bg-glow-secondary {
  top: 75%;
  right: auto;
  left: -300px;

  background:
    radial-gradient(
      circle,
      rgba(14, 165, 233, 0.10),
      transparent 70%
    );
}

.services-bg-grid {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );

  background-size: 44px 44px;

  mask-image:
    radial-gradient(
      circle at 50% 35%,
      black 15%,
      transparent 75%
    );

  -webkit-mask-image:
    radial-gradient(
      circle at 50% 35%,
      black 15%,
      transparent 75%
    );

  pointer-events: none;
}


/* ==========================================================================
   CONTAINER
   ========================================================================== */

.services-container {
  position: relative;

  z-index: 2;

  max-width: 1200px;

  margin: 0 auto;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.services-header {
  max-width: 720px;

  margin: 0 auto 60px;

  text-align: center;
}

.services-badge {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 20px;

  padding: 7px 14px;

  border-radius: 999px;

  background:
    rgba(99, 102, 241, 0.10);

  border:
    1px solid rgba(99, 102, 241, 0.25);

  color: #a5b4fc;

  font-size: 12px;

  font-weight: 700;
}

.badge-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #818cf8;

  box-shadow:
    0 0 10px rgba(129, 140, 248, 0.65);
}

.services-header h2 {
  margin: 0 0 18px;

  font-size: 42px;

  line-height: 1.15;

  font-weight: 800;

  letter-spacing: -0.03em;

  color: #f8fafc;
}

.gradient-text {
  background:
    linear-gradient(
      135deg,
      #818cf8,
      #a855f7
    );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
}

.services-sub {
  max-width: 650px;

  margin: 0 auto;

  font-size: 16px;

  line-height: 1.7;

  color: #94a3b8;
}


/* ==========================================================================
   SERVICES GRID
   ========================================================================== */

.services-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;

  margin-bottom: 60px;
}


/* ==========================================================================
   SERVICE CARD
   ========================================================================== */

.service-card {
  position: relative;

  display: flex;

  flex-direction: column;

  min-height: 390px;

  padding: 28px;

  overflow: hidden;

  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(30, 41, 59, 0.78),
      rgba(15, 23, 42, 0.82)
    );

  border:
    1px solid rgba(255, 255, 255, 0.08);

  text-decoration: none;

  color: inherit;

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.16);

  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.service-card::before {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  top: -100px;
  right: -80px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(99, 102, 241, 0.14),
      transparent 70%
    );

  opacity: 0;

  transition:
    opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-7px);

  border-color:
    rgba(129, 140, 248, 0.35);

  background:
    linear-gradient(
      145deg,
      rgba(35, 46, 68, 0.92),
      rgba(15, 23, 42, 0.95)
    );

  box-shadow:
    0 28px 55px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(99, 102, 241, 0.07);
}

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


/* ==========================================================================
   SERVICE TOP
   ========================================================================== */

.service-top {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 25px;
}

.service-icon {
  width: 50px;
  height: 50px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 13px;

  background:
    rgba(99, 102, 241, 0.11);

  border:
    1px solid rgba(99, 102, 241, 0.22);

  color: #818cf8;

  transition:
    transform 0.28s ease,
    background 0.28s ease,
    color 0.28s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-2px);

  background:
    linear-gradient(
      135deg,
      #6366f1,
      #7c3aed
    );

  border-color: transparent;

  color: #ffffff;
}

.service-arrow {
  width: 36px;
  height: 36px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.04);

  border:
    1px solid rgba(255, 255, 255, 0.07);

  color: #64748b;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

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

  background:
    rgba(99, 102, 241, 0.14);

  color: #a5b4fc;
}


/* ==========================================================================
   SERVICE CONTENT
   ========================================================================== */

.service-content {
  position: relative;

  flex: 1;
}

.service-number {
  display: block;

  margin-bottom: 8px;

  color: #475569;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.12em;
}

.service-card h3 {
  margin: 0 0 13px;

  color: #f8fafc;

  font-size: 20px;

  line-height: 1.3;

  font-weight: 750;

  letter-spacing: -0.015em;
}

.service-card p {
  margin: 0;

  color: #94a3b8;

  font-size: 14px;

  line-height: 1.7;
}


/* ==========================================================================
   SERVICE FEATURES
   ========================================================================== */

.service-features {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 24px;
}

.service-features span {
  padding: 5px 9px;

  border-radius: 7px;

  background:
    rgba(255, 255, 255, 0.035);

  border:
    1px solid rgba(255, 255, 255, 0.07);

  color: #cbd5e1;

  font-size: 10px;

  font-weight: 600;
}


/* ==========================================================================
   SERVICE LINK
   ========================================================================== */

.service-link {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  margin-top: 24px;

  color: #a5b4fc;

  font-size: 12px;

  font-weight: 700;

  transition:
    color 0.2s ease,
    gap 0.2s ease;
}

.service-card:hover .service-link {
  gap: 10px;

  color: #c4b5fd;
}


/* ==========================================================================
   SLIGHT COLOR VARIATIONS
   ========================================================================== */

.service-card-web .service-icon {
  color: #34d399;

  background:
    rgba(16, 185, 129, 0.09);

  border-color:
    rgba(16, 185, 129, 0.18);
}

.service-card-web:hover .service-icon {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669
    );

  color: #ffffff;
}

.service-card-hosting .service-icon {
  color: #38bdf8;

  background:
    rgba(14, 165, 233, 0.09);

  border-color:
    rgba(14, 165, 233, 0.18);
}

.service-card-hosting:hover .service-icon {
  background:
    linear-gradient(
      135deg,
      #0ea5e9,
      #0284c7
    );

  color: #ffffff;
}

.service-card-server .service-icon {
  color: #cbd5e1;

  background:
    rgba(148, 163, 184, 0.08);

  border-color:
    rgba(148, 163, 184, 0.16);
}

.service-card-server:hover .service-icon {
  background:
    linear-gradient(
      135deg,
      #64748b,
      #475569
    );

  color: #ffffff;
}

.service-card-advanced .service-icon {
  color: #c084fc;

  background:
    rgba(168, 85, 247, 0.09);

  border-color:
    rgba(168, 85, 247, 0.18);
}

.service-card-advanced:hover .service-icon {
  background:
    linear-gradient(
      135deg,
      #a855f7,
      #7c3aed
    );

  color: #ffffff;
}


/* ==========================================================================
   CTA
   ========================================================================== */

.services-cta {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  padding: 32px 36px;

  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      rgba(30, 41, 59, 0.88),
      rgba(30, 41, 59, 0.58)
    );

  border:
    1px solid rgba(255, 255, 255, 0.08);
}

.services-cta-content {
  max-width: 700px;
}

.services-cta-label {
  display: block;

  margin-bottom: 7px;

  color: #818cf8;

  font-size: 11px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.1em;
}

.services-cta h3 {
  margin: 0 0 7px;

  color: #ffffff;

  font-size: 22px;

  font-weight: 750;
}

.services-cta p {
  margin: 0;

  color: #94a3b8;

  font-size: 14px;

  line-height: 1.6;
}

.services-cta-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  gap: 9px;

  padding: 13px 21px;

  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      #6366f1,
      #4f46e5
    );

  color: #ffffff;

  text-decoration: none;

  font-size: 14px;

  font-weight: 700;

  box-shadow:
    0 10px 25px rgba(79, 70, 229, 0.22);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.services-cta-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 15px 30px rgba(79, 70, 229, 0.30);
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1024px) {

  .services-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {

  .services {
    padding: 85px 20px;
  }

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

  .services-header h2 {
    font-size: 32px;
  }

  .services-sub {
    font-size: 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;

    gap: 18px;

    margin-bottom: 40px;
  }

  .service-card {
    min-height: auto;

    padding: 25px;
  }

  .services-cta {
    flex-direction: column;

    align-items: stretch;

    padding: 28px 24px;

    text-align: center;
  }

  .services-cta-content {
    max-width: none;
  }

  .services-cta-button {
    width: 100%;
  }

}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

  .services {
    padding:
      70px
      16px;
  }

  .services-header h2 {
    font-size: 29px;
  }

  .service-card h3 {
    font-size: 19px;
  }

  .service-card p {
    font-size: 13px;
  }

}