/* ==========================================================================
   WEB PARTNER SOLUTIONS - SERVICES DIRECTORY DEDICATED STYLESHEET (services.css)
   Clean, Ultra-Modern Enterprise Software Engineering Aesthetic
   Matches the Homepage Design System Exactly
   ========================================================================== */

/* --- 1. Page Hero (Matches About Us Hero Style Exactly) --- */
.services-hero-section {
  position: relative;
  padding: 150px 0 95px;
  background-color: #060b18;
  background-image: 
    radial-gradient(circle at 85% 18%, rgba(0, 194, 203, 0.28) 0%, rgba(0, 229, 219, 0.08) 35%, transparent 65%),
    radial-gradient(circle at 10% 85%, rgba(14, 165, 233, 0.16) 0%, transparent 55%),
    linear-gradient(rgba(0, 194, 203, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 203, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  border-bottom: 1px solid rgba(0, 194, 203, 0.15);
  overflow: hidden;
}

body.dark-theme .services-hero-section {
  background-color: #050914;
  background-image: 
    radial-gradient(circle at 85% 18%, rgba(0, 194, 203, 0.32) 0%, rgba(0, 229, 219, 0.1) 35%, transparent 65%),
    radial-gradient(circle at 10% 85%, rgba(14, 165, 233, 0.2) 0%, transparent 55%),
    linear-gradient(rgba(0, 194, 203, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 203, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
}

.services-hero-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.services-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(0, 194, 203, 0.1);
  border: 1px solid rgba(0, 194, 203, 0.35);
  color: #00e5db;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

body.dark-theme .services-hero-badge {
  color: #00e5db;
  border-color: rgba(0, 229, 219, 0.4);
}

.services-hero-title {
  font-family: var(--font-heading), "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.18;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.services-hero-title .text-gradient {
  background: linear-gradient(135deg, #00c2cb 0%, #00e5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-hero-desc {
  font-family: var(--font-body), "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.08rem;
  color: #cbd5e1 !important;
  line-height: 1.75;
  margin: 0 auto 34px;
  max-width: 820px;
}

body.dark-theme .services-hero-desc {
  color: #cbd5e1 !important;
}

.services-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.services-hero-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00c2cb 0%, #00d2d3 100%);
  color: #ffffff !important;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 8px 22px -3px rgba(0, 194, 203, 0.45);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.services-hero-actions .btn-primary:hover {
  background: linear-gradient(135deg, #00d2d3 0%, #00c2cb 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -3px rgba(0, 194, 203, 0.6);
}

.services-hero-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 203, 0.04);
  color: #ffffff !important;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 194, 203, 0.35);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.services-hero-actions .btn-secondary:hover {
  background: rgba(0, 194, 203, 0.15);
  border-color: #00c2cb;
  transform: translateY(-2px);
}

/* Metric Pills Bar Matching Homepage Metric Strip */
.services-metric-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 194, 203, 0.15);
}

.metric-pill-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 194, 203, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 20px 16px;
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: center;
}

body.dark-theme .metric-pill-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 194, 203, 0.25);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.4);
}

.metric-pill-item:hover {
  transform: translateY(-4px);
  border-color: #00c2cb;
  box-shadow: 0 12px 30px -5px rgba(0, 194, 203, 0.3);
}

.metric-pill-num {
  font-family: var(--font-heading), "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #00c2cb 0%, #00e5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.metric-pill-lbl {
  font-size: 0.84rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.35;
}

/* --- 2. Capabilities Categories Grid --- */
.services-catalog-section {
  padding: 100px 0;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 194, 203, 0.12);
}

body.dark-theme .services-catalog-section {
  background-color: #060d1e;
  border-bottom-color: rgba(0, 194, 203, 0.18);
}

.services-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.service-card-item {
  background: #ffffff;
  border: 1px solid rgba(0, 194, 203, 0.22);
  border-radius: var(--border-radius-xl);
  padding: 36px 30px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 22px -5px rgba(0, 180, 216, 0.08);
}

body.dark-theme .service-card-item {
  background: #0d172e;
  border-color: rgba(0, 194, 203, 0.25);
  box-shadow: 0 6px 22px -5px rgba(0, 0, 0, 0.35);
}

.service-card-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00c2cb, #0077b6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card-item:hover {
  transform: translateY(-6px);
  border-color: #00c2cb;
  box-shadow: 0 16px 45px -8px rgba(0, 194, 203, 0.22);
}

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

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.service-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 194, 203, 0.12);
  color: #009aa2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

body.dark-theme .service-card-icon {
  color: #00e5db;
  background: rgba(0, 194, 203, 0.2);
}

.service-card-item:hover .service-card-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, #00c2cb 0%, #0077b6 100%);
  color: #ffffff;
}

.service-card-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(0, 194, 203, 0.35);
  font-family: var(--font-heading), "Poppins", sans-serif;
}

.service-card-item h3 {
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.35;
}

.service-card-item h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-card-item h3 a:hover {
  color: #00c2cb;
}

.service-card-item p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.service-card-tag {
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 194, 203, 0.08);
  border: 1px solid rgba(0, 194, 203, 0.2);
  color: #008892;
  font-size: 0.78rem;
  font-weight: 700;
}

body.dark-theme .service-card-tag {
  background: rgba(0, 194, 203, 0.15);
  color: #00e5db;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #009aa2;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: auto;
}

body.dark-theme .service-card-link {
  color: #00e5db;
}

.service-card-link:hover {
  gap: 12px;
  color: #0077b6;
}

/* --- 3. Tech Stack Grid --- */
.services-tech-section {
  padding: 95px 0;
  background-color: #f8fcfe;
  border-bottom: 1px solid rgba(0, 194, 203, 0.12);
}

body.dark-theme .services-tech-section {
  background-color: #081124;
  border-bottom-color: rgba(0, 194, 203, 0.18);
}

.tech-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.tech-card-item {
  background: #ffffff;
  border: 1px solid rgba(0, 194, 203, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 28px 18px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px -4px rgba(0, 180, 216, 0.06);
}

body.dark-theme .tech-card-item {
  background: #0d172e;
  border-color: rgba(0, 194, 203, 0.22);
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.3);
}

.tech-card-item:hover {
  transform: translateY(-5px);
  border-color: #00c2cb;
  box-shadow: 0 12px 30px -5px rgba(0, 194, 203, 0.2);
}

.tech-card-icon {
  font-size: 2.4rem;
  color: #009aa2;
  margin-bottom: 14px;
  display: inline-block;
  transition: transform 0.3s ease;
}

body.dark-theme .tech-card-icon {
  color: #00e5db;
}

.tech-card-item:hover .tech-card-icon {
  transform: scale(1.15);
}

.tech-card-item h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tech-card-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- 4. Engineering Engagement Models --- */
.services-engagement-section {
  padding: 100px 0;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 194, 203, 0.12);
}

body.dark-theme .services-engagement-section {
  background-color: #050b18;
  border-bottom-color: rgba(0, 194, 203, 0.18);
}

.engagement-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.engagement-box {
  background: #f8fcfe;
  border: 1px solid rgba(0, 194, 203, 0.22);
  border-radius: var(--border-radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: all 0.35s ease;
  box-shadow: 0 6px 24px -6px rgba(0, 180, 216, 0.08);
}

body.dark-theme .engagement-box {
  background: #0d172e;
  border-color: rgba(0, 194, 203, 0.25);
  box-shadow: 0 6px 24px -6px rgba(0, 0, 0, 0.35);
}

.engagement-box:hover {
  transform: translateY(-6px);
  border-color: #00c2cb;
  box-shadow: 0 16px 45px -8px rgba(0, 194, 203, 0.22);
}

.active-engagement {
  border-color: #00c2cb;
  background: #ffffff;
  box-shadow: 0 16px 45px -8px rgba(0, 194, 203, 0.22);
}

body.dark-theme .active-engagement {
  background: #0f1c38;
}

.engagement-featured-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(135deg, #00c2cb 0%, #0077b6 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 194, 203, 0.3);
}

.engagement-box-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(0, 194, 203, 0.12);
  color: #009aa2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 22px;
}

body.dark-theme .engagement-box-icon {
  color: #00e5db;
  background: rgba(0, 194, 203, 0.2);
}

.engagement-box h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.engagement-box p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
}

.engagement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 194, 203, 0.15);
}

.engagement-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.engagement-list li i {
  color: #00c2cb;
  font-size: 0.88rem;
}

/* --- 5. Call to Action Banner Matching Homepage Luxury Navy --- */
.services-cta-section {
  padding: 100px 0;
  background: #091328;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 194, 203, 0.2);
}

.services-cta-section::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 194, 203, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.services-cta-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.services-cta-card h2 {
  color: #ffffff !important;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.services-cta-card p {
  color: #94a3b8;
  font-size: 1.12rem;
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.services-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .tech-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .services-grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-metric-pills {
    grid-template-columns: repeat(2, 1fr);
  }
  .engagement-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .services-hero-section {
    padding: 110px 0 50px;
  }
  .services-grid-cards {
    grid-template-columns: 1fr;
  }
  .tech-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-metric-pills {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-top: 24px;
    padding-top: 20px;
  }
  .metric-pill-item {
    padding: 16px 12px !important;
    border-radius: 12px !important;
  }
  .metric-pill-num {
    font-size: 1.85rem !important;
    margin-bottom: 4px !important;
  }
  .metric-pill-lbl {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }
  .services-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .services-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .services-hero-section {
    padding: 95px 0 40px;
  }
  .services-hero-title {
    font-size: 1.95rem;
  }
  .services-hero-desc {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }
  .services-card {
    padding: 24px 18px;
  }
  .services-metric-pills {
    gap: 10px !important;
  }
  .metric-pill-item {
    padding: 14px 8px !important;
  }
  .metric-pill-num {
    font-size: 1.65rem !important;
  }
  .metric-pill-lbl {
    font-size: 0.74rem !important;
  }
  .tech-cards-grid {
    grid-template-columns: 1fr;
  }
  .engagement-box {
    padding: 22px 16px;
  }
}

/* --- Enterprise Governance, Security & IP Ownership --- */
.service-governance-section {
  padding: 95px 0;
  background-color: #f8fcfe;
  border-top: 1px solid rgba(0, 194, 203, 0.12);
  border-bottom: 1px solid rgba(0, 194, 203, 0.12);
  position: relative;
}

body.dark-theme .service-governance-section {
  background-color: #070e1c;
  border-color: rgba(0, 194, 203, 0.18);
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.governance-card {
  background: #ffffff;
  border: 1px solid rgba(0, 194, 203, 0.18);
  border-radius: var(--border-radius-lg);
  padding: 32px 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

body.dark-theme .governance-card {
  background: #0b1528;
  border-color: rgba(0, 194, 203, 0.22);
}

.governance-card:hover {
  transform: translateY(-6px);
  border-color: #00c2cb;
  box-shadow: 0 16px 36px -10px rgba(0, 194, 203, 0.22);
}

.governance-card .gov-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 194, 203, 0.1);
  border: 1px solid rgba(0, 194, 203, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00c2cb;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.governance-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.governance-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Quantifiable Business Outcomes & ROI Value Drivers --- */
.service-roi-section {
  padding: 95px 0;
  background-color: #ffffff;
  position: relative;
  border-top: 1px solid rgba(0, 194, 203, 0.12);
}

body.dark-theme .service-roi-section {
  background-color: #060c18;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.roi-card {
  background: #f8fcfe;
  border: 1px solid rgba(0, 194, 203, 0.16);
  border-radius: var(--border-radius-lg);
  padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative;
}

body.dark-theme .roi-card {
  background: #0a1324;
  border-color: rgba(0, 194, 203, 0.2);
}

.roi-card:hover {
  transform: translateY(-6px);
  border-color: #00c2cb;
  box-shadow: 0 16px 36px -10px rgba(0, 194, 203, 0.2);
}

.roi-card .roi-metric-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #00c2cb;
  font-family: var(--font-heading), "Poppins", sans-serif;
  margin-bottom: 14px;
  line-height: 1;
}

.roi-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.roi-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .governance-grid,
  .roi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Center ROI Cards on Mobile */
  .roi-card {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .roi-card .roi-metric-num {
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  .roi-card h3 {
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  .roi-card p {
    text-align: center !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 580px) {
  .governance-grid,
  .roi-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .governance-card,
  .roi-card {
    padding: 24px 18px;
  }
}
