
/* =========================================================
   SERVICE PAGE — SHARED DESIGN + ABOUT-STYLE HERO
   Common layout/header/buttons come from styles.css.
   This file contains only service-page-specific styling.
   ========================================================= */

:root{
  --primary:var(--blue);
  --primary-dark:var(--blue-dark);
  --secondary:var(--red);
  --dark:var(--ink);
  --light:var(--paper);
  --text:var(--muted);
  --border:var(--line);
  --transition:.35s ease;
}

/* ABOUT-PAGE STYLE HERO */
.service-hero{
  padding:100px 0 90px;
  background:linear-gradient(180deg,#fff 0%,#f7f9ff 100%);
  position:relative;
  overflow:hidden;
}
.service-hero::before{
  content:"";
  position:absolute;
  width:560px;
  height:560px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(37,86,255,.10),transparent 68%);
  top:-260px;
  left:-220px;
  pointer-events:none;
}
.service-hero .hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:80px;
  align-items:center;
}
.service-hero .hero-left{position:relative;z-index:1;}
.service-hero .section-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--blue);
  font-size:13px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:18px;
}
.service-hero .section-tag::before{
  content:"";
  width:22px;
  height:2px;
  background:var(--blue);
}
.service-hero .hero-left h1{
  margin:20px 0;
  font-size:clamp(48px,5.1vw,76px);
  line-height:1.14;
  font-weight:800;
  letter-spacing:-3px;
  color:var(--ink);
}
.service-hero .hero-left h1 span{color:var(--blue);}
.service-hero .hero-left p{
  max-width:620px;
  color:var(--muted);
  margin:0;
  font-size:18px;
  line-height:1.85;
}
.service-hero .hero-buttons{
  display:flex;
  gap:18px;
  margin-top:40px;
}
.service-hero .btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:54px;
  padding:0 32px;
  background:var(--blue);
  color:#fff;
  border-radius:100px;
  font-weight:700;
  transition:.35s;
}
.service-hero .btn-primary:hover{
  transform:translateY(-3px);
  background:var(--blue-dark);
  box-shadow:0 15px 35px rgba(45,91,255,.25);
}
.service-hero .btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:54px;
  padding:0 32px;
  border-radius:100px;
  border:1px solid var(--ink);
  color:var(--ink);
  font-weight:700;
  transition:.35s;
}
.service-hero .btn-outline:hover{
  background:var(--ink);
  color:#fff;
}
.service-hero .hero-right{
  position:relative;
  z-index:1;
}
.service-hero .hero-right img{
  border-radius:30px;
  box-shadow:0 20px 50px rgba(0,0,0,.08);
  position:relative;
  z-index:1;
}
.service-hero .hero-right::before{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  border-radius:50%;
  background:rgba(45,91,255,.08);
  top:-30px;
  right:-30px;
  z-index:0;
}
.service-hero .hero-right::after{
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  background:var(--blue);
  opacity:.08;
  border-radius:30px;
  left:-30px;
  bottom:-30px;
  transform:rotate(25deg);
  z-index:0;
}

/* Keep the rest of the service page visually aligned with the shared site. */
.service-page-spacer{display:none;}

@media(max-width:992px){
  .service-hero{padding-top:110px;}
  .service-hero .hero-grid{grid-template-columns:1fr;gap:45px;}
  .service-hero .hero-left{text-align:center;}
  .service-hero .section-tag{justify-content:center;}
  .service-hero .hero-left p{margin-inline:auto;}
  .service-hero .hero-buttons{justify-content:center;}
  .intro-grid,
  .why-grid,
  .contact-grid{grid-template-columns:1fr;}
  .services-grid,
  .process-grid{grid-template-columns:repeat(2,1fr);}
  .technology-grid{grid-template-columns:repeat(3,1fr);}
  .industry-grid{grid-template-columns:repeat(2,1fr);}
  .stats-grid{grid-template-columns:repeat(2,1fr);}
  .portfolio-grid{grid-template-columns:1fr;}
  .portfolio-card.wide{grid-column:auto;}
  .intro-left h2,
  .section-heading h2,
  .development-process .section-heading h2,
  .technology-stack .section-heading h2,
  .why-content h2,
  .contact-content h2,
  .cta-box h2{font-size:46px;}
}
@media(max-width:768px){
  .service-hero{padding:100px 0 70px;}
  .service-hero .hero-left h1{
    font-size:42px;
    line-height:1.12;
    letter-spacing:-2px;
  }
  .service-hero .hero-buttons{flex-direction:column;align-items:stretch;}
  .service-hero .hero-buttons a{width:100%;}
  .service-hero .hero-right::before{width:110px;height:110px;right:-15px;top:-15px;}
  .service-hero .hero-right::after{width:80px;height:80px;left:-15px;bottom:-15px;}
  .intro-grid,
  .why-grid,
  .contact-grid{grid-template-columns:1fr;}
  .services-grid,
  .process-grid,
  .technology-grid,
  .industry-grid,
  .stats-grid{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
  .intro-left h2,
  .section-heading h2,
  .development-process .section-heading h2,
  .technology-stack .section-heading h2,
  .why-content h2,
  .contact-content h2,
  .cta-box h2{font-size:38px;}
  .portfolio-card.large{min-height:460px;}
  .portfolio-card{min-height:360px;}
  .contact-form-wrapper{padding:28px;}
  .feature-list{grid-template-columns:1fr;}
}

/*==================================
Breadcrumb
==================================*/
.breadcrumb-section{background:#fff;padding:30px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);}
.breadcrumb{ display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.breadcrumb li{font-size:14px;color:#777;}
.breadcrumb li.active{color:var(--primary);font-weight:600;}
/*==================================
Introduction
==================================*/
.service-intro{background:#fff; padding: 90px 0;}
.intro-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;}
.intro-left h2{font-size:58px;line-height:1.05;margin-top:25px;letter-spacing:-2px;}
.intro-right p{font-size:17px; color:var(--text); margin-bottom:24px;}
/* ==================================
   SERVICES SECTION
================================== */

.services-section {background: var(--light);padding: 90px 0;}
.section-heading { max-width: 760px; margin: 0 auto 70px; text-align: center;}
.section-heading.center { text-align: center;}
.section-heading h2 {font-size: 58px; line-height: 1.05; letter-spacing: -2px; margin: 22px 0; color: var(--dark);}
.section-heading p { font-size: 18px; color: var(--text); max-width: 720px; margin: auto;line-height: 1.8;}
/* ==================================
   SERVICES GRID
================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px;align-items: stretch;}
/* ==================================
   SERVICE CARD
================================== */
.service-card {position: relative; background: #fff; border-radius: 26px; padding: 40px; border: 1px solid var(--border); box-shadow: 0 10px 35px rgba(0, 0, 0, .04); transition: var(--transition);min-height: 560px;height: 100%; box-sizing: border-box;display: flex; flex-direction: column; overflow: hidden;}
/* ==================================
   TOP LINE
================================== */
.service-card::before { content: ""; position: absolute;left: 0; top: 0;  width: 100%; height: 5px; background: linear-gradient( 90deg, var(--primary), var(--secondary) );transform: scaleX(0); transition: .4s; transform-origin: left;}
.service-card:hover::before {  transform: scaleX(1);}
/* ==================================
   CARD HOVER
================================== */
.service-card:hover { transform: translateY(-10px); box-shadow: 0 30px 70px rgba(0, 0, 0, .12);}
/* ==================================
   ICON
================================== */
.service-icon { width: 72px; height: 72px; min-width: 72px; min-height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: rgba(37, 86, 255, .08); color: var(--primary); font-size: 32px; margin-bottom: 30px; transition: .35s; flex-shrink: 0;}
.service-card:hover .service-icon { background: var(--primary); color: #fff; transform: rotate(-8deg);}
/* ==================================
   CARD TITLE
================================== */
.service-card h3 { font-size: 28px; line-height: 1.2; letter-spacing: -1px; margin: 0 0 18px; color: var(--dark); min-height: 67px; display: flex; align-items: flex-start;}
/* ==================================
   CARD DESCRIPTION
================================== */
.service-card p { color: var(--text); font-size: 15px; line-height: 1.75; margin: 0; min-height: 150px;}
/* ==================================
   TAG AREA
================================== */
.service-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: auto 0 0; padding: 0;min-height: 70px; align-content: flex-start;}
/* ==================================
   TAGS
================================== */
.service-card ul li { padding: 10px 16px; border-radius: 30px;background: #f7f8fb; border: 1px solid var(--border); font-size: 13px; font-weight: 600;line-height: 1.2; white-space: nowrap; transition: .3s;}
.service-card:hover ul li { background: rgba(37, 86, 255, .08); color: var(--primary);}
/* ==================================
   TABLET
================================== */
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
 .service-card {  min-height: 550px; padding: 35px; }}
/* ==================================
   MOBILE
================================== */
@media (max-width: 700px) { .services-section { padding: 70px 0;}
    .section-heading { margin-bottom: 45px; padding: 0 20px;}
    .section-heading h2 {  font-size: 40px; letter-spacing: -1px; }
    .section-heading p { font-size: 16px; line-height: 1.7;}
    .services-grid { grid-template-columns: 1fr; gap: 20px;}
    .service-card {  min-height: auto; height: auto; padding: 30px 28px; border-radius: 24px;}
    .service-icon { width: 68px; height: 68px; min-width: 68px; min-height: 68px; font-size: 28px;margin-bottom: 25px; }
    .service-card h3 {  min-height: auto; font-size: 26px; margin-bottom: 16px;}
    .service-card p {  min-height: auto;  font-size: 15px; line-height: 1.75; margin-bottom: 25px; }
    .service-card ul {  min-height: auto; margin-top: 0;}
    .service-card ul li { font-size: 12px; padding: 9px 13px;}}
/*==================================
Why Choose Us
==================================*/
.why-us{background:#fff;padding: 90px 0;}
.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:start;}
.why-image{position:relative;}
.why-image img{border-radius:30px;box-shadow:0 25px 70px rgba(0,0,0,.12);}
.why-content{padding: 40px;}
.why-content h2{font-size:58px;margin:24px 0;line-height:1.05;letter-spacing:-2px;}
.why-content>p{color:var(--text);font-size:18px;line-height:1.8;margin-bottom:40px;}
/*==================================
Feature List
==================================*/
.feature-list{grid-column:1 / 3;display:grid;grid-template-columns:1fr 1fr;gap:25px;}
.feature{display:flex;align-items:flex-start;gap:20px; padding:18px; border-radius:20px;transition:.35s;border:1px solid transparent;}
.feature:hover{ background:#ced0d4; border-color:var(--border);transform:translateX(8px);}
.feature i{width:56px; height:56px; display:flex; align-items:center; justify-content:center;border-radius:50%; background:rgba(37,86,255,.08); color:var(--primary);font-size:22px; flex-shrink:0;}
.feature h4{ font-size:22px;margin-bottom:10px;}
.feature p{color:var(--text);line-height:1.7;}
/*==================================
Image Decoration
==================================*/
.why-image::before{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(37,86,255,.08);top:-40px;left:-40px;z-index:-1;}
.why-image::after{content:"";position:absolute;width:220px;height:220px;border-radius:30px;background:linear-gradient(135deg,rgba(37,86,255,.08), rgba(231,59,69,.08) );bottom:-35px;right:-35px; z-index:-1;}
/*==================================
Reveal Animation
==================================*/
.service-card,
.feature{opacity:0;transform:translateY(40px);animation:fadeUp .8s ease forwards;}
.service-card:nth-child(2){animation-delay:.15s;}
.service-card:nth-child(3){animation-delay:.3s;}
.service-card:nth-child(4){animation-delay:.45s;}
.service-card:nth-child(5){animation-delay:.6s;}
.service-card:nth-child(6){animation-delay:.75s;}
@keyframes fadeUp{
from{opacity:0;transform:translateY(40px);}
to{opacity:1;transform:translateY(0);}
}
/*==================================
Development Process
==================================*/
.development-process{ background:var(--light); padding: 90px 0;}
.process-grid{ display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:70px;}
.process-card{position:relative;background:#fff; border-radius:24px; padding:45px 35px;text-align:center;border:1px solid var(--border);transition:var(--transition); overflow:hidden;}
.process-card::before{content:"";position:absolute;inset:0; background:linear-gradient(135deg, rgba(37,86,255,.04), transparent); opacity:0;transition:.4s;}
.process-card:hover::before{opacity:1;}
.process-card:hover{transform:translateY(-10px);box-shadow:0 30px 60px rgba(0,0,0,.10);}
.step-number{position:absolute;top:20px;right:25px;font-size:60px; font-weight:800;color:rgba(37,86,255,.08);}
.process-card i{width:85px;height:85px;display:flex; align-items:center;justify-content:center; margin:auto;border-radius:50%;background:rgba(37,86,255,.08);color:var(--primary);font-size:34px;margin-bottom:28px;transition:.35s;}
.process-card:hover i{background:var(--primary);color:#fff;transform:rotate(10deg) scale(1.05);}
.process-card h3{font-size:28px;margin-bottom:16px;}
.process-card p{color:var(--text);line-height:1.8;}
/*==================================
Technology Stack
==================================*/
.technology-stack{background:#fff; padding: 90px 0;}
.technology-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;margin-top:70px;}
.tech-card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:40px 20px;text-align:center;transition:var(--transition);}
.tech-card:hover{transform:translateY(-8px);background:var(--primary);color:#fff;box-shadow:0 25px 50px rgba(37,86,255,.18);}
.tech-card i{font-size:52px;margin-bottom:22px;color:var(--primary);transition:.35s;}
.tech-card:hover i{color:#fff;transform:scale(1.15);}
.tech-card span{display:block;font-size:18px;font-weight:700;}
/*==================================
Statistics
==================================*/
.statistics{ background:blue; color:#fff;}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);}
.stat-card{padding:30px;border-right:1px solid rgba(255,255,255,.12);}
.stat-card:last-child{border-right:0}
.stat-card h2{font-size:clamp(45px,5vw,70px); line-height:1; letter-spacing:-.06em; color:#fff;}
.stat-card p{color:rgba(255,255,255,.55);font-size:12px;margin-top:12px;}
/*==================================
Section Heading
==================================*/
.development-process .section-heading,
.technology-stack .section-heading{max-width:760px;margin:auto;text-align:center;}
.development-process .section-heading h2,
.technology-stack .section-heading h2{font-size:58px;margin:20px 0;line-height:1.05;}
.development-process .section-heading p,
.technology-stack .section-heading p{color:var(--text);font-size:18px;line-height:1.8;}
/*==================================
Hover Effects
==================================*/
.process-card,
.tech-card,
.stat-card{transition:all .35s ease;}
.process-card:hover{border-color:rgba(37,86,255,.15);}
.tech-card:hover{border-color:transparent;}
.stat-card:hover h2{transform:scale(1.05);}
.stat-card h2{transition:.3s;}
/*==================================
Portfolio Section
==================================*/
.portfolio-section{background:var(--light); padding: 90px 0;}
.portfolio-grid{display:grid; grid-template-columns:2fr 1fr;gap:30px;margin-top:70px;}
.portfolio-card{position:relative; overflow:hidden;border-radius:26px; min-height:420px;cursor:pointer;}
.portfolio-card.large{min-height:620px;}
.portfolio-card.wide{grid-column:span 2; min-height:420px;}
.portfolio-card img{ position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .8s ease;}
.portfolio-card:hover img{transform:scale(1.08);}
.portfolio-overlay{ position:absolute; inset:0;display:flex;flex-direction:column;justify-content:flex-end;padding:40px;background:linear-gradient(to top,rgba(11,16,32,.92), rgba(11,16,32,.08)); color:#fff;}
.portfolio-overlay span{font-size:13px;letter-spacing:2px;text-transform:uppercase;color:#9ab2ff; margin-bottom:12px;}
.portfolio-overlay h3{ font-size:34px; line-height:1.15; margin-bottom:25px;}
.portfolio-overlay a{display:inline-flex; align-items:center;gap:12px;font-weight:700;color:#fff; transition:.3s;}
.portfolio-overlay a:hover{ color:#7aa0ff;}
.portfolio-overlay i{transition:.3s;}
.portfolio-overlay a:hover i{transform:translateX(8px);}
/*==================================
Industries
==================================*/
.industries-section{background:#fff;padding: 90px 0;}
.industry-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:25px;margin-top:70px;}
.industry-card{background:#fff; border:1px solid var(--border);border-radius:24px; padding:40px; text-align:center;transition:.35s;}
.industry-card:hover{ transform:translateY(-8px); background:var(--primary);color:#fff;box-shadow:0 20px 50px rgba(37,86,255,.18);}
.industry-card i{font-size:42px;margin-bottom:22px; color:var(--primary); transition:.35s;}
.industry-card:hover i{color:#fff;transform:scale(1.15);}
.industry-card h4{ font-size:22px;}
/*==================================
FAQ
==================================*/
.faq-section{ background:var(--light);padding: 90px 0;}
.faq-wrapper{max-width:900px;margin:70px auto 0;}
.faq-item{background:#fff;border-radius:18px;margin-bottom:18px;overflow:hidden;border:1px solid var(--border);}
.faq-question{ width:100%; border:none; background:#fff; padding:26px 30px; display:flex; justify-content:space-between; align-items:center;cursor:pointer; font-size:20px;font-weight:700; transition:.3s;}
.faq-question:hover{ background:#f8f9fc;}
.faq-question i{color:var(--primary); transition:.3s;}
.faq-item.active .faq-question i{transform:rotate(45deg);}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .4s ease;}
.faq-answer p{padding:0 30px 30px;color:var(--text);line-height:1.8;}
/*==================================
CTA
==================================*/
.service-cta{background:linear-gradient(135deg, var(--primary), var(--primary-dark));padding: 90px 0;}
.cta-box{text-align:center;color:#fff;max-width:900px;margin:auto;}
.cta-box h2{font-size:56px;line-height:1.05;margin-bottom:25px;letter-spacing:-2px;}
.cta-box p{font-size:20px;max-width:700px;margin:auto;opacity:.92;line-height:1.8;}
.cta-buttons{margin-top:45px;display:flex;justify-content:center;gap:20px;}
.service-cta .btn-primary{background:#fff;color:var(--primary);}
.service-cta .btn-primary:hover{background:var(--dark);color:#fff;}
.service-cta .btn-outline{ border:1px solid rgba(255,255,255,.3); color:#fff;}
.service-cta .btn-outline:hover{background:#fff; color:var(--primary);}
/*==================================
Contact Section
==================================*/
.contact-section{background:var(--dark); color:#fff;padding: 100px 0;}
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center;}
.contact-content h2{font-size:54px;line-height:1.05;margin:25px 0;letter-spacing:-2px;}
.contact-content>p{ font-size:18px;color:rgba(255,255,255,.75);line-height:1.8;margin-bottom:45px;}
.contact-info{ display:flex;  flex-direction:column;  gap:25px;}
.info-box{ display:flex; gap:20px; align-items:flex-start;}
.info-box i{ width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:22px;}
.info-box small{ display:block; color:rgba(255,255,255,.6); margin-bottom:6px; text-transform:uppercase; font-size:11px; letter-spacing:2px;}
.info-box h4{ font-size:22px;}
.contact-form-wrapper{ background:#fff; border-radius:28px; padding:45px;}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.form-group{margin-bottom:22px;}
.form-group label{ display:block; margin-bottom:10px; font-size:14px; font-weight:600; color:var(--dark);}
.form-group input,
.form-group textarea,
.form-group select{ width:100%; border:1px solid var(--border); background:#f7f8fb; padding:16px 18px; border-radius:12px;outline:none; transition:.3s;font-size:15px;}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{border-color:var(--primary);}
.form-group textarea{resize:vertical;}

/* Mobile navigation behavior */
@media(max-width:768px){
  .main-nav{
    position:fixed;
    inset:72px 16px auto 16px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    padding:18px;
    background:rgba(255,255,255,.98);
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:0 20px 60px rgba(11,16,32,.15);
  }
  .main-nav.is-open{display:flex;}
  .main-nav > a{padding:13px 10px;}
  .main-nav .nav-cta{justify-content:center;margin-top:6px;}
}

/* =========================================================
   RESPONSIVE OVERHAUL
   Service page: desktop → tablet → mobile
   ========================================================= */

html,
body{
  max-width:100%;
  overflow-x:hidden;
}

img,
svg{
  max-width:100%;
}

.container{
  width:min(1240px, calc(100% - 48px));
}

/* Large laptops / smaller desktops */
@media (max-width:1200px){
  .service-hero .hero-grid{gap:55px;}
  .service-hero .hero-left h1{font-size:clamp(44px,5.4vw,68px);}
  .intro-grid,
  .why-grid,
  .contact-grid{gap:45px;}
  .service-card,
  .process-card{padding:32px;}
  .technology-grid,
  .industry-grid{gap:20px;}
  .portfolio-overlay{padding:32px;}
}

/* Tablets */
@media (max-width:992px){
  .container{width:min(100% - 36px, 760px);}

  .service-hero{padding:100px 0 75px;}
  .service-hero .hero-grid{
    grid-template-columns:1fr;
    gap:48px;
    text-align:center;
  }
  .service-hero .hero-left{
    max-width:760px;
    margin:0 auto;
  }
  .service-hero .section-tag{justify-content:center;}
  .service-hero .hero-left p{margin-inline:auto;}
  .service-hero .hero-buttons{justify-content:center;}

  .service-hero .hero-right{
    width:min(100%,650px);
    margin:0 auto;
  }
  .service-hero .hero-right img{
    display:block;
    width:100%;
    height:auto;
  }

  .service-intro,
  .services-section,
  .why-us,
  .development-process,
  .technology-stack,
  .portfolio-section,
  .industries-section,
  .faq-section{padding:75px 0;}

  .intro-grid,
  .why-grid,
  .contact-grid{grid-template-columns:1fr;}

  .intro-left,
  .intro-right{width:100%;}

  .intro-left h2,
  .section-heading h2,
  .development-process .section-heading h2,
  .technology-stack .section-heading h2,
  .why-content h2,
  .contact-content h2,
  .cta-box h2{
    font-size:clamp(40px,5.5vw,52px);
  }

  .services-grid,
  .process-grid{grid-template-columns:repeat(2,minmax(0,1fr));}

  .technology-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .industry-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));}

  .stat-card:nth-child(2){border-right:0;}
  .stat-card:nth-child(-n+2){
    border-bottom:1px solid rgba(255,255,255,.12);
  }

  .portfolio-grid{grid-template-columns:1fr 1fr;}
  .portfolio-card.large,
  .portfolio-card.wide{min-height:480px;}
  .portfolio-card.wide{grid-column:1 / -1;}

  .why-image{
    max-width:760px;
    margin:0 auto;
  }
  .why-image img{
    display:block;
    width:100%;
    height:auto;
  }

  .why-content{
    padding:0;
    text-align:center;
  }
  .why-content > p{
    max-width:720px;
    margin-inline:auto;
  }

  .feature-list{
    grid-column:auto;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .contact-section{padding:80px 0;}
  .contact-content{text-align:center;}
  .contact-info{
    max-width:520px;
    margin:0 auto;
    text-align:left;
  }
  .contact-form-wrapper{
    max-width:720px;
    width:100%;
    margin:0 auto;
  }
}

/* Phones */
@media (max-width:768px){
  .container{width:calc(100% - 32px);}

  .service-hero{padding:88px 0 60px;}
  .service-hero .hero-grid{gap:38px;}

  .service-hero .section-tag{
    font-size:11px;
    letter-spacing:1.5px;
    line-height:1.5;
  }

  .service-hero .hero-left h1{
    font-size:clamp(34px,9vw,44px);
    line-height:1.1;
    letter-spacing:-1.8px;
    margin:16px 0;
  }

  .service-hero .hero-left p{
    font-size:16px;
    line-height:1.7;
  }

  .service-hero .hero-buttons{
    flex-direction:column;
    gap:12px;
    margin-top:28px;
  }
  .service-hero .hero-buttons a{
    width:100%;
    min-height:52px;
  }

  .service-hero .hero-right::before{
    width:100px;
    height:100px;
    right:-12px;
    top:-12px;
  }
  .service-hero .hero-right::after{
    width:70px;
    height:70px;
    left:-12px;
    bottom:-12px;
  }

  .service-intro,
  .services-section,
  .why-us,
  .development-process,
  .technology-stack,
  .portfolio-section,
  .industries-section,
  .faq-section{padding:60px 0;}

  .breadcrumb-section{padding:20px 0;}
  .breadcrumb{gap:7px 10px;}
  .breadcrumb li{font-size:13px;}

  .intro-grid,
  .why-grid,
  .contact-grid{gap:35px;}

  .intro-left h2,
  .section-heading h2,
  .development-process .section-heading h2,
  .technology-stack .section-heading h2,
  .why-content h2,
  .contact-content h2,
  .cta-box h2{
    font-size:clamp(32px,8vw,40px);
    line-height:1.08;
    letter-spacing:-1.4px;
  }

  .section-heading{margin-bottom:42px;}
  .section-heading p,
  .development-process .section-heading p,
  .technology-stack .section-heading p{
    font-size:16px;
    line-height:1.7;
  }

  .services-grid,
  .process-grid,
  .technology-grid,
  .industry-grid,
  .feature-list{grid-template-columns:1fr;}

  .service-card{
    padding:28px 24px;
    border-radius:22px;
  }
  .service-card:hover{transform:translateY(-5px);}
  .service-card h3{font-size:24px;}
  .service-card p{font-size:15px;line-height:1.7;}
  .service-card ul{gap:8px;}
  .service-card ul li{
    padding:8px 12px;
    font-size:12px;
  }

  .why-content{text-align:left;}
  .why-content > p{
    font-size:16px;
    line-height:1.7;
    margin-bottom:28px;
  }

  .feature{gap:14px;padding:14px 4px;}
  .feature:hover{transform:none;}
  .feature i{
    width:48px;
    height:48px;
    font-size:18px;
  }
  .feature h4{font-size:19px;margin-bottom:7px;}
  .feature p{font-size:14px;}

  .process-grid{margin-top:42px;}
  .process-card{padding:34px 24px;}
  .process-card h3{font-size:24px;}
  .process-card p{font-size:15px;}
  .step-number{
    font-size:48px;
    top:14px;
    right:18px;
  }

  .technology-grid{
    margin-top:42px;
    gap:14px;
  }
  .tech-card{padding:26px 16px;}
  .tech-card i{
    font-size:42px;
    margin-bottom:16px;
  }
  .tech-card span{font-size:16px;}

  .stats-grid{grid-template-columns:1fr 1fr;}
  .stat-card{
    padding:24px 18px;
    text-align:center;
  }
  .stat-card:nth-child(2){border-right:0;}
  .stat-card:nth-child(3){border-bottom:0;}
  .stat-card:nth-child(4){
    border-right:0;
    border-bottom:0;
  }
  .stat-card h2{font-size:clamp(38px,10vw,54px);}

  .portfolio-grid{
    grid-template-columns:1fr;
    gap:18px;
    margin-top:42px;
  }
  .portfolio-card,
  .portfolio-card.large,
  .portfolio-card.wide{
    grid-column:auto;
    min-height:340px;
  }
  .portfolio-card.large,
  .portfolio-card.wide{min-height:400px;}
  .portfolio-overlay{padding:24px;}
  .portfolio-overlay h3{
    font-size:27px;
    margin-bottom:18px;
  }

  .industry-grid{
    gap:14px;
    margin-top:42px;
  }
  .industry-card{
    padding:28px 16px;
    border-radius:20px;
  }
  .industry-card i{
    font-size:34px;
    margin-bottom:16px;
  }
  .industry-card h4{font-size:18px;}

  .faq-wrapper{margin-top:42px;}
  .faq-question{
    padding:20px 18px;
    gap:16px;
    text-align:left;
    font-size:16px;
    line-height:1.45;
  }
  .faq-answer p{
    padding:0 18px 22px;
    font-size:15px;
  }

  .service-cta{padding:65px 0;}
  .cta-box p{
    font-size:16px;
    line-height:1.7;
  }
  .cta-buttons{
    flex-direction:column;
    gap:12px;
    margin-top:30px;
  }
  .cta-buttons a{width:100%;}

  .contact-section{padding:65px 0;}
  .contact-content{text-align:left;}
  .contact-content > p{
    font-size:16px;
    line-height:1.7;
    margin-bottom:32px;
  }
  .contact-info{gap:20px;}
  .info-box{gap:14px;}
  .info-box i{
    width:48px;
    height:48px;
    font-size:18px;
    flex-shrink:0;
  }
  .info-box h4{
    font-size:17px;
    word-break:break-word;
  }

  .contact-form-wrapper{
    padding:24px 18px;
    border-radius:22px;
  }
  .form-row{
    grid-template-columns:1fr;
    gap:0;
  }
  .form-group input,
  .form-group textarea,
  .form-group select{
    padding:14px 15px;
    font-size:16px;
  }
  .form-group textarea{min-height:140px;}

  /* Mobile navigation */
  .main-nav{
    z-index:1000;
    max-height:calc(100vh - 92px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .main-nav > a{
    min-height:48px;
    display:flex;
    align-items:center;
  }
}

/* Small phones */
@media (max-width:480px){
  .container{width:calc(100% - 24px);}
  .service-hero{padding:78px 0 50px;}

  .service-hero .hero-left h1{font-size:34px;}
  .service-hero .hero-left p{font-size:15px;}

  .service-hero .section-tag{
    font-size:10px;
    gap:6px;
  }
  .service-hero .section-tag::before{width:16px;}

  .service-card{padding:24px 20px;}
  .service-icon{
    width:60px;
    height:60px;
    border-radius:17px;
    font-size:26px;
    margin-bottom:22px;
  }
  .service-card h3{font-size:22px;}

  .section-heading{margin-bottom:34px;}

  .intro-left h2,
  .section-heading h2,
  .development-process .section-heading h2,
  .technology-stack .section-heading h2,
  .why-content h2,
  .contact-content h2,
  .cta-box h2{font-size:31px;}

  .stats-grid{grid-template-columns:1fr;}
  .stat-card,
  .stat-card:nth-child(2),
  .stat-card:nth-child(3),
  .stat-card:nth-child(4){
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.12);
  }
  .stat-card:last-child{border-bottom:0;}

  .portfolio-card,
  .portfolio-card.large,
  .portfolio-card.wide{min-height:330px;}

  .portfolio-overlay h3{font-size:23px;}

  .industry-grid{
    grid-template-columns:1fr 1fr;
  }
  .industry-card{padding:24px 10px;}

  .faq-question{
    font-size:15px;
    padding:18px 15px;
  }
  .faq-answer p{
    padding:0 15px 18px;
    font-size:14px;
  }

  .contact-form-wrapper{padding:20px 15px;}
  .info-box h4{font-size:16px;}
}

/* Touch devices: avoid jumpy hover effects */
@media (hover:none){
  .service-card:hover,
  .process-card:hover,
  .tech-card:hover,
  .industry-card:hover{transform:none;}

  .portfolio-card:hover img{transform:none;}
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    scroll-behavior:auto !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

