/* ---------- Tokens ---------- */
:root{
  --primary:#3c3cf5;       /* Read More button base */
  --primary-dark:#0d0d91;  /* Read More hover */
  --brand:#0011ff;
  --card-radius:18px;
  --border:rgba(0,255,255,.22);
}

/* Ensure predictable sizing inside cards */
.service-card, .service-card * { box-sizing: border-box; }

/* ---------- Layout containment (prevents mobile overflow) ---------- */
.service-card-wrap{
  width:100%;
  max-width:1100px;
  margin-inline:auto;
  padding-inline:12px;     /* safe gutter on mobile */
}

/* ---------- Card Grid ---------- */
.service-card-container{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:24px;
  justify-items:center;    /* centers last row items */
}

/* ---------- Card ---------- */
.service-card{
  width:100%;
  max-width:520px;         /* hard cap so it never grows too wide */
  background:#fff;
  border:1.5px solid var(--border);
  border-radius:var(--card-radius);
  padding:22px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  /* no hover animations at all */
}

/* ---------- Image (responsive, larger) ---------- */
.service-card img{
  width: clamp(150px, 60vw, 220px);  /* scales with viewport, but capped */
  height:auto;                       /* keep aspect ratio */
  max-height: 230px;
  margin-bottom:18px;
  padding:10px;
  border:3px solid rgba(0,198,255,.35);
  border-radius:16px;
  background:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.10);
}

/* ---------- Text ---------- */
.service-card h3{
  color:var(--brand);
  margin:8px 0 6px;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight:700;
  line-height:1.25;
}

.service-card p{
  color:#333;
  font-size: clamp(.95rem, 2.6vw, 1rem);
  margin:0 8px 16px;
  line-height:1.5;
  word-break: break-word;
}

/* ---------- Read More button (blue) ---------- */
.service-card .desc-btn{
  margin-top:auto;
  background:var(--primary);
  color:#fff;
  border:none;
  border-radius:999px;
  font-weight:700;
  padding:12px 28px;
  font-size:1rem;
  text-decoration:none;
  box-shadow:none;                     /* flat like your sample */
  transition: background .15s ease;
}
.service-card .desc-btn:hover{ background:var(--primary-dark); 
    color: #fff;
}

/* ---------- Section header ---------- */
.service-header{
  width:100%;
  margin: 0 0 24px;
  text-align:center;
  padding:16px 0 10px;
  background:linear-gradient(90deg, rgba(0,212,255,.10), rgba(9,9,121,.10));
  border-radius:var(--card-radius);
  box-shadow:0 4px 24px #00c6ff33;
  border-bottom:2.5px solid #00c6ff;
}
.service-header p{
  color:#00ffff;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight:700;
  text-shadow:0 0 18px #00c6ff, 0 2px 8px #000;
  margin:0;
}

/* ---------- What You Get buttons ---------- */
.btn-group button{
  background:#6868e4;
  color:#fff;
  border:none;
  border-radius:25px;
  font-weight:600;
  padding:10px 18px;
  margin:6px;
  transition: background .2s ease;
  background: #33336d;
  color: #fff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 16px #00c6ff44;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}
.btn-group button:hover{ background:#090979; }

/* ---------- Mobile fixes ---------- */
@media (max-width: 700px){
  .service-card-container{
    grid-template-columns:1fr;      /* single column */
    gap:18px;
  }
  .service-card{
    max-width: 560px;               /* still capped */
    width: 100%;
    margin-inline:auto;
    padding:20px 16px;
  }
  .service-card-wrap{ padding-inline:14px; }
}

/* ---------- Page background (scoped) ---------- */
body.services-page{
  background: linear-gradient(120deg, #0f2027, #2c5364, #00c6ff, #0072ff);
  background-size:400% 400%;
  animation: gradientBG 18s ease infinite;
}
@keyframes gradientBG{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
