/* ==========================================================================
   SERVICES PAGE — page-specific styles only.
   Tokens, header, footer, buttons, forms, modal, cursor, industry-cards,
   marquee and project-card are all inherited from assets/style.css and
   assets/projects.css and intentionally NOT duplicated here.
========================================================================== */

/* ---------- SHARED SECTION LABEL ---------- */
.svc-label{ text-align:left; margin-bottom:64px; max-width:640px; }
.svc-label h2{ font-size:clamp(30px, 4.2vw, 52px); font-weight:500; margin-top:18px; }
.svc-label.center{ text-align:center; margin-left:auto; margin-right:auto; }
.svc-label.center .eyebrow{ justify-content:center; }

/* ---------- 01 · HERO ---------- */
.svc-hero{
  padding-top:calc(var(--section-y) + 60px);
  padding-bottom:40px;
  position:relative;
  overflow:hidden;
}
.svc-hero-bg{
  position:absolute; inset:-10% -10% auto -10%; height:130%;
  z-index:-1;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(0,91,252,0.14), transparent 60%),
    radial-gradient(500px 380px at 85% 10%, rgba(93,159,255,0.16), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(0,91,252,0.08), transparent 60%);
  animation:meshDrift 18s ease-in-out infinite alternate;
}
@keyframes meshDrift{
  from{ transform:translate(0,0) scale(1); }
  to{ transform:translate(-2%,2%) scale(1.05); }
}
.svc-hero-grid{
  display:grid;
  grid-template-columns:1fr 0.95fr;
  gap:60px;
  align-items:center;
}
@media (max-width:1000px){ .svc-hero-grid{ grid-template-columns:1fr; text-align:center; } }
.svc-hero-centered{
  grid-template-columns:1fr;
  text-align:center;
  max-width:1040px;
  margin:0 auto;
}
.svc-hero-copy h1{ font-size:clamp(38px, 5.4vw, 66px); }
.svc-hero-copy p{ margin-top:26px; color:var(--text-muted); font-size:18px; line-height:1.65; max-width:520px; }
@media (max-width:1000px){ .svc-hero-copy p{ margin-left:auto; margin-right:auto; } }
.svc-hero-centered .badge{ margin-left:auto; margin-right:auto; }
.svc-hero-centered .svc-hero-copy p{ margin-left:auto; margin-right:auto; }
.svc-hero-cta-row{ margin-top:38px; display:flex; gap:16px; flex-wrap:wrap; }
@media (max-width:1000px){ .svc-hero-cta-row{ justify-content:center; } }
.svc-hero-centered .svc-hero-cta-row{ justify-content:center; }

.svc-hero-badges{
  margin-top:54px;
  display:flex; justify-content:center; gap:16px; flex-wrap:wrap;
}
.svc-hero-badges .floating-el{
  position:static;
  animation:none;
  opacity:1;
}

.floating-el{
  position:absolute;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px 18px;
  box-shadow:0 20px 40px -18px rgba(9,29,57,0.25);
  display:flex; align-items:center; gap:10px;
  font-size:13px; font-weight:500;
  animation:floatY 5s ease-in-out infinite;
}
.floating-el .dot{ width:8px; height:8px; border-radius:50%; background:#5CF29A; flex-shrink:0; }
.floating-el.f1{ animation-delay:0s; }
.floating-el.f2{ animation-delay:1.2s; }
.floating-el.f3{ animation-delay:2.4s; }
@media (max-width:1000px){ .floating-el{ display:none; } }
@keyframes floatY{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-14px); }
}

/* ---------- 02 · TRUSTED BY (logo marquee) ---------- */
.logos-marquee-section{ padding-top:60px; padding-bottom:60px; }
.logos-marquee-section .eyebrow{ justify-content:center; margin-bottom:36px; }
.logos-marquee{ overflow:hidden; -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-track{ display:flex; align-items:center; gap:80px; width:max-content; animation:marquee 30s linear infinite; }
.logos-track img{ height:26px; width:auto; filter:grayscale(1); opacity:0.55; transition:filter .3s ease, opacity .3s ease; }
.logos-track img:hover{ filter:grayscale(0); opacity:1; }

/* ---------- 03 · WHAT WE DO (service grid) ---------- */
.svc-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
}
@media (max-width:1100px){ .svc-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:600px){ .svc-grid{ grid-template-columns:1fr; } }

.svc-card{
  position:relative;
  border-radius:24px;
  padding:32px;
  background:var(--bg);
  border:1px solid var(--border);
  overflow:hidden;
  transition:transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1), opacity .6s ease;
  opacity:0; transform:translateY(24px);
}
.svc-card.in-view{ opacity:1; transform:translateY(0); }
.svc-card:hover{ transform:translateY(-8px); box-shadow:0 30px 60px -26px rgba(9,29,57,0.22); }
.svc-card::before{
  content:'';
  position:absolute; inset:0; border-radius:24px; padding:1px;
  background:linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; transition:opacity .4s ease;
  pointer-events:none;
}
.svc-card:hover::before{ opacity:1; }
.svc-icon{
  width:52px; height:52px; border-radius:14px;
  background:var(--bg-secondary);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:22px;
}
.svc-icon svg{ width:24px; height:24px; color:var(--accent1); }
.svc-card h3{ font-size:19px; font-weight:500; }
.svc-card p{ margin-top:10px; color:var(--text-muted); font-size:14.5px; line-height:1.6; }
.svc-card-link{ margin-top:20px; display:inline-flex; align-items:center; gap:7px; font-size:13.5px; font-weight:500; }
.svc-card-link svg{ width:14px; height:14px; transition:transform .3s ease; }
.svc-card:hover .svc-card-link svg{ transform:translate(3px,-3px); }

/* ---------- 04 · FEATURED SERVICE ---------- */
.featured-service-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:center;
}
@media (max-width:900px){ .featured-service-grid{ grid-template-columns:1fr; gap:40px; } }
.featured-service-copy h2{ font-size:clamp(28px,3.4vw,42px); font-weight:500; margin-top:16px; }
.featured-service-copy p{ margin-top:18px; color:var(--text-muted); font-size:16.5px; line-height:1.7; max-width:480px; }
.featured-service-visual-wrap{ display:flex; flex-direction:column; gap:16px; }
.featured-service-caption{
  font-size:12px; text-transform:uppercase; letter-spacing:0.08em;
  color:var(--text-muted); font-weight:500;
}
.featured-visual{ border-radius:28px; overflow:hidden; aspect-ratio:4/3.4; box-shadow:0 40px 90px -30px rgba(9,29,57,0.24); }
.featured-visual img{ width:100%; height:100%; object-fit:cover; }
.check-list{ margin-top:28px; display:flex; flex-direction:column; gap:14px; }
.check-item{ display:flex; align-items:center; gap:12px; font-size:15.5px; font-weight:500; }
.check-item .tick{
  width:22px; height:22px; border-radius:50%; flex-shrink:0;
  background:rgba(0,91,252,0.1); color:var(--accent1);
  display:flex; align-items:center; justify-content:center;
}
.check-item .tick svg{ width:12px; height:12px; }
.featured-service-copy .section-cta{ justify-content:flex-start; margin-top:36px; }

/* ---------- 05 · PROCESS TIMELINE ---------- */
.process-timeline{
  display:grid;
  grid-template-columns:repeat(8, 1fr);
  gap:0;
  position:relative;
  margin-top:20px;
}
@media (max-width:1100px){
  .process-timeline{ grid-template-columns:repeat(4, 1fr); row-gap:60px; }
  .process-line{ display:none; }
}
@media (max-width:640px){
  .process-timeline{ grid-template-columns:repeat(2, 1fr); row-gap:36px; }
  .process-step{ padding:0 6px; }
  .process-step .step-dot{ width:46px; height:46px; font-size:12px; margin-bottom:12px; }
}
.process-line{
  position:absolute; top:26px; left:6%; right:6%;
  height:2px; background:var(--border); z-index:0;
}
.process-line-fill{
  position:absolute; top:0; left:0; height:100%; width:0%;
  background:linear-gradient(90deg, var(--accent1), var(--accent2));
}
.process-step{
  position:relative; z-index:1; text-align:center; padding:0 10px;
  opacity:0; transform:translateY(18px);
  transition:opacity .6s ease, transform .6s ease;
}
.process-step.in-view{ opacity:1; transform:translateY(0); }
.process-step .step-dot{
  width:54px; height:54px; border-radius:50%; margin:0 auto 18px;
  background:var(--bg); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:600; color:var(--accent1);
  box-shadow:0 10px 24px -10px rgba(9,29,57,0.15);
}
.process-step h4{ font-size:14.5px; font-weight:500; }
.process-step p{ font-size:12.5px; color:var(--text-muted); margin-top:6px; line-height:1.4; }

/* ---------- 06 · WHY CHOOSE US (bento grid) ---------- */
.bento-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  grid-auto-rows:200px;
  gap:22px;
}
@media (max-width:1100px){ .bento-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:600px){
  .bento-grid{ grid-template-columns:1fr; grid-auto-rows:auto; gap:16px; }
  .bento-card.wide{ grid-column:span 1; }
  .bento-card{ min-height:180px; padding:24px; }
}
.bento-card{
  border-radius:24px; padding:28px;
  background:var(--bg-secondary);
  border:1px solid var(--border);
  display:flex; flex-direction:column; justify-content:space-between;
  transition:transform .4s cubic-bezier(.2,.8,.2,1), background .4s ease, box-shadow .4s ease, opacity .6s ease;
  opacity:0; transform:translateY(24px);
}
.bento-card.in-view{ opacity:1; transform:translateY(0); }
.bento-card:hover{ transform:translateY(-6px); background:var(--bg); box-shadow:0 26px 55px -28px rgba(9,29,57,0.2); }
.bento-card.wide{ grid-column:span 2; }
.bento-card .svc-icon{ margin-bottom:0; }
.bento-card h3{ font-size:18px; font-weight:500; margin-top:20px; }
.bento-card p{ font-size:13.5px; color:var(--text-muted); margin-top:8px; line-height:1.55; }

/* ---------- 07 · DESIGN PROCESS SHOWCASE (alternating) ---------- */
.process-showcase-item{
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;
  padding:56px 0; border-bottom:1px solid var(--border);
  opacity:0; transform:translateY(24px);
  transition:opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.process-showcase-item.in-view{ opacity:1; transform:translateY(0); }
.process-showcase-item:last-child{ border-bottom:none; }
@media (max-width:900px){
  .process-showcase-item{ display:flex; flex-direction:column; gap:24px; padding:40px 0; }
  .process-showcase-visual{ width:100%; order:1 !important; }
  .process-showcase-copy{ width:100%; order:2 !important; }
}
.process-showcase-visual{ aspect-ratio:16/11; border-radius:22px; overflow:hidden; background:var(--bg-secondary); }
.process-showcase-visual img{ width:100%; height:100%; object-fit:cover; }
.process-showcase-copy .step-tag{ font-size:12px; color:var(--accent1); font-weight:600; letter-spacing:0.06em; text-transform:uppercase; }
.process-showcase-copy h3{ font-size:clamp(22px,2.6vw,30px); font-weight:500; margin-top:14px; }
.process-showcase-copy p{ margin-top:12px; color:var(--text-muted); font-size:15.5px; line-height:1.7; max-width:440px; }

/* ---------- 08 · DESIGN SYSTEM ---------- */
.ds-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:60px; }
@media (max-width:900px){ .ds-grid{ grid-template-columns:1fr; gap:40px; } }
.ds-block{
  margin-bottom:40px;
  opacity:0; transform:translateY(20px);
  transition:opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.ds-block.in-view{ opacity:1; transform:translateY(0); }
.ds-block:last-child{ margin-bottom:0; }
.ds-block h4{ font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-muted); font-weight:500; margin-bottom:18px; }
.ds-type-sample{ font-size:clamp(30px,3.4vw,44px); font-weight:600; line-height:1.15; }
.ds-type-sample.body{ font-size:16px; font-weight:400; color:var(--text-muted); margin-top:10px; max-width:420px; line-height:1.6; }
.ds-swatches{ display:flex; gap:14px; flex-wrap:wrap; }
.ds-swatch{ width:74px; }
.ds-swatch .chip{ height:74px; border-radius:16px; border:1px solid var(--border); }
.ds-swatch span{ display:block; font-size:11px; color:var(--text-muted); margin-top:8px; text-align:center; }
.ds-buttons-row{ display:flex; gap:14px; flex-wrap:wrap; }
.ds-cards-row{ display:flex; gap:16px; flex-wrap:wrap; }
.ds-mini-card{ width:150px; border-radius:16px; border:1px solid var(--border); padding:18px; background:var(--bg); }
.ds-mini-card .dot{ width:26px; height:26px; border-radius:8px; background:rgba(0,91,252,0.1); margin-bottom:14px; }
.ds-mini-card h5{ font-size:13.5px; font-weight:500; }
.ds-mini-card p{ font-size:11.5px; color:var(--text-muted); margin-top:4px; }
.ds-icons-row{ display:flex; gap:14px; flex-wrap:wrap; }
.ds-icon-tile{ width:44px; height:44px; border-radius:12px; background:var(--bg-secondary); display:flex; align-items:center; justify-content:center; }
.ds-icon-tile svg{ width:19px; height:19px; color:var(--text); }
.ds-spacing-row{ display:flex; align-items:flex-end; gap:10px; }
.ds-spacing-bar{ width:14px; background:linear-gradient(180deg, var(--accent1), var(--accent2)); border-radius:4px; }
@media (max-width:480px){
  .ds-type-sample{ font-size:24px; }
  .ds-mini-card{ width:100%; }
  .ds-swatch{ width:64px; }
  .ds-swatch .chip{ height:64px; }
}

/* ---------- 09 · TECHNOLOGIES ---------- */
.tech-grid{
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:18px;
}
@media (max-width:900px){ .tech-grid{ grid-template-columns:repeat(3, 1fr); } }
@media (max-width:500px){ .tech-grid{ grid-template-columns:repeat(2, 1fr); } }
.tech-tile{
  border-radius:20px; padding:24px 14px;
  background:var(--bg-secondary); border:1px solid var(--border);
  display:flex; flex-direction:column; align-items:center; gap:12px;
  text-align:center;
  transition:transform .35s cubic-bezier(.2,.8,.2,1), background .35s ease, box-shadow .35s ease, opacity .6s ease;
  opacity:0; transform:translateY(20px);
}
.tech-tile.in-view{ opacity:1; transform:translateY(0); }
.tech-tile:hover{ transform:translateY(-6px) scale(1.03); background:var(--bg); box-shadow:0 20px 44px -22px rgba(9,29,57,0.22); }
.tech-tile .tech-ico{
  width:40px; height:40px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--accent1), var(--accent2));
  color:#fff; font-size:14px; font-weight:600;
  transition:transform .35s ease;
}
.tech-tile:hover .tech-ico{ transform:rotate(-8deg) scale(1.08); }
.tech-tile span{ font-size:12.5px; font-weight:500; color:var(--text); }

/* ---------- 11 · CASE STUDIES (reuses .project-card from projects.css) ---------- */
.case-studies-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}
@media (max-width:1100px){ .case-studies-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .case-studies-grid{ grid-template-columns:1fr; } }

/* ---------- 12 · TESTIMONIALS (auto-scroll marquee) ---------- */
.testimonials-section{ background:var(--bg-secondary); overflow:hidden; }
.testimonials-track-wrap{ overflow:hidden; margin-top:20px; touch-action:pan-y; }
.testimonials-track{ display:flex; gap:24px; width:max-content; animation:testimonialScroll 42s linear infinite; }
.testimonials-track-wrap:hover .testimonials-track{ animation-play-state:paused; }
@keyframes testimonialScroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
.testimonial-card{
  width:min(420px, 82vw); flex-shrink:0;
  border-radius:24px; padding:32px;
  background:var(--bg); border:1px solid var(--border);
}
@media (max-width:640px){
  .testimonial-card{ width:min(340px, 85vw); padding:24px; border-radius:20px; }
}
.testimonial-stars{ display:flex; gap:3px; color:#F5A623; }
.testimonial-stars svg{ width:15px; height:15px; }
.testimonial-card p.quote{ margin-top:18px; font-size:15.5px; line-height:1.65; color:var(--text); }
.testimonial-person{ display:flex; align-items:center; gap:12px; margin-top:24px; }
.testimonial-avatar{
  width:44px; height:44px; border-radius:50%;
  background:linear-gradient(135deg, var(--accent1), var(--accent2));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:600; flex-shrink:0;
}
.testimonial-person .name{ font-size:14.5px; font-weight:500; }
.testimonial-person .company{ font-size:12.5px; color:var(--text-muted); margin-top:2px; }

/* ---------- 13 · FAQ ACCORDION ---------- */
.faq-list{ max-width:820px; }
.faq-item{ border-bottom:1px solid var(--border); }
.faq-question{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  gap:20px; padding:28px 0; text-align:left;
  font-size:17px; font-weight:500; color:var(--text);
}
@media (max-width:640px){
  .faq-question{ font-size:15.5px; padding:20px 0; gap:14px; }
  .faq-answer-inner{ padding-bottom:20px; font-size:14px; }
}
.faq-icon{ width:28px; height:28px; border-radius:50%; border:1px solid var(--border); flex-shrink:0; display:flex; align-items:center; justify-content:center; transition:transform .4s cubic-bezier(.2,.8,.2,1), background .3s ease; }
.faq-icon svg{ width:12px; height:12px; }
.faq-item.open .faq-icon{ transform:rotate(135deg); background:var(--accent1); border-color:transparent; color:#fff; }
.faq-item.open .faq-icon svg path{ stroke:currentColor; }
.faq-answer{ max-height:0; overflow:hidden; transition:max-height .45s cubic-bezier(.2,.8,.2,1); }
.faq-answer-inner{ padding-bottom:28px; color:var(--text-muted); font-size:15px; line-height:1.7; max-width:640px; }

/* ---------- 14 · FINAL CTA (reuses .careers-full) ---------- */
.final-cta-glow{
  position:absolute; inset:0; z-index:0;
  background:radial-gradient(500px 400px at 50% 30%, rgba(0,91,252,0.35), transparent 70%);
  animation:glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse{ 0%,100%{ opacity:0.6; } 50%{ opacity:1; } }
.careers-inner{ z-index:2; }
.careers-inner .hero-cta-row{ justify-content:center; }

/* ---------- INDUSTRY CARD REVEAL (this page uses IO + CSS, not a GSAP pin timeline) ---------- */
.industry-card{ transition:opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.industry-card.in-view{ opacity:1 !important; transform:scale(1) translateY(0) !important; }

/* ---------- SCROLLSPY ACTIVE NAV LINK ---------- */
nav a.active::after{ width:100%; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce){
  .svc-card, .bento-card, .process-step, .tech-tile, .floating-el, .svc-hero-bg, .logos-track, .testimonials-track{ animation:none !important; transition:none !important; }
  .svc-card, .bento-card{ opacity:1; transform:none; }
}
