/* ===================================================
   COUTECHTRONICS — NEW PAGES & ENHANCEMENTS 2025
   Pricing, Projects, Testimonials, Stats Block,
   Portfolio Hover-Scroll, Mobile Optimizations
   =================================================== */

/* ───────────────────────────────────────────────────
   HOMEPAGE FEATURED SERVICES — 2×2 ACCENT CARDS
   ─────────────────────────────────────────────────── */
.feat-svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.feat-svc-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  border-top: 4px solid #1A73E8;
  border-left: 1px solid rgba(26,115,232,0.10);
  border-right: 1px solid rgba(26,115,232,0.10);
  border-bottom: 1px solid rgba(26,115,232,0.10);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feat-svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(26,115,232,0.14);
}

.feat-svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(37,99,235,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #1A73E8;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feat-svc-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.3;
}

.feat-svc-card p {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 16px;
}

.feat-svc-link {
  font-size: 14px;
  font-weight: 600;
  color: #1A73E8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.feat-svc-link:hover {
  gap: 9px;
  color: #1557b0;
}

@media (max-width: 640px) {
  .feat-svc-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ───────────────────────────────────────────────────
   SERVICES HOMEPAGE — legacy grid (kept for cascade)
   ─────────────────────────────────────────────────── */
.services-bave .services-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* Explicit 4-col override */
.services-bave .services-grid--4col {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Keep cards consistent — light variant */
.services-bave .service-card {
  min-height: auto;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
}

.services-bave .service-card p {
  flex: 1;
}

/* "Get a Quote" button inside service card */
.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #1A73E8;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  margin-top: 14px;
  white-space: nowrap;
  width: fit-content;
}
.btn-quote:hover {
  background: #1557b0;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4);
  transform: translateY(-1px);
}
.service-card:hover .btn-quote {
  background: rgba(255, 255, 255, 0.22) !important;
  box-shadow: none;
  color: #ffffff !important;
}
.service-card:hover .btn-quote:hover {
  background: rgba(255, 255, 255, 0.35) !important;
}

.services-bave .service-card .service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #1A73E8;
  width: 44px;
  height: 44px;
  background: rgba(26, 115, 232, 0.10);
  border: 1px solid rgba(26, 115, 232, 0.20);
  border-radius: 12px;
  margin-bottom: 14px;
  transition: background 0.25s, border-color 0.25s;
}
.services-bave .service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}
.services-bave .service-card:hover .service-icon i {
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .services-bave .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  .services-bave .services-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
}

/* ───────────────────────────────────────────────────
   SERVICES PAGE — REDESIGNED CARDS (svc-card-new)
   ─────────────────────────────────────────────────── */
.svc-page-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 26px !important;
}

.svc-card-new {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 30px 26px 26px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
  color: #0f172a !important;
  min-height: auto !important;
}
.svc-card-new:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 50px rgba(26,115,232,0.13) !important;
  border-color: rgba(26,115,232,0.25) !important;
  background: #ffffff !important;
  color: #0f172a !important;
}
.svc-card-new h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 10px !important;
  transition: none !important;
}
.svc-card-new p {
  font-size: 14.5px !important;
  color: #475569 !important;
  line-height: 1.65 !important;
  flex: 1 !important;
  transition: none !important;
}
.svc-card-new:hover h3,
.svc-card-new:hover p {
  color: initial !important;
}
.svc-card-new:hover h3 { color: #0f172a !important; }
.svc-card-new:hover p  { color: #475569 !important; }

/* Icon variants — alternating blue / dark */
.svc-icon-blue {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  background: rgba(26,115,232,0.10) !important;
  border: 1px solid rgba(26,115,232,0.20) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 21px !important;
  color: #1A73E8 !important;
  margin-bottom: 16px !important;
  transition: background 0.25s, border-color 0.25s !important;
}
.svc-icon-dark {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  background: rgba(13,27,46,0.08) !important;
  border: 1px solid rgba(13,27,46,0.14) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 21px !important;
  color: #0d1b2e !important;
  margin-bottom: 16px !important;
  transition: background 0.25s, border-color 0.25s !important;
}
.svc-card-new:hover .svc-icon-blue,
.svc-card-new:hover .svc-icon-dark {
  background: rgba(26,115,232,0.12) !important;
  border-color: rgba(26,115,232,0.28) !important;
  color: #1A73E8 !important;
}

/* Quote button on services page cards — full-width */
.btn-svc-quote {
  display: block;
  text-align: center;
  width: 100%;
  padding: 11px 18px;
  background: #1A73E8;
  color: #ffffff !important;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  margin-top: auto;
  padding-top: 11px;
  box-sizing: border-box;
}
.btn-svc-quote:hover {
  background: #1557b0 !important;
  box-shadow: 0 4px 16px rgba(26,115,232,0.35);
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* "See pricing →" link on services page */
.svc-pricing-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  transition: color 0.2s ease;
}
.svc-pricing-link:hover {
  color: #1A73E8;
}

@media (max-width: 960px) {
  .svc-page-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .svc-page-grid { grid-template-columns: 1fr !important; }
}

/* ───────────────────────────────────────────────────
   PORTFOLIO HOVER-SCROLL (HOMEPAGE)
   Override upgrade.css scale → vertical scroll via JS rAF
   ─────────────────────────────────────────────────── */
.site-scroll-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
  transform: translateY(0px);
}

/* Image: natural height so scroll is meaningful */
.site-scroll-wrap .site-shot {
  width: 100% !important;
  height: auto !important;
  object-fit: unset !important;
  display: block;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* Suppress old scale hover from upgrade.css */
.site-card:hover .site-scroll-wrap .site-shot {
  transform: none !important;
  animation: none !important;
}

/* Touch: CSS fallback */
@media (hover: none) {
  .site-scroll-wrap {
    animation: portfolioAutoScroll 18s linear infinite !important;
  }
  @keyframes portfolioAutoScroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-60%); }
  }
}

/* "View All Projects" link */
.portfolio-view-all {
  text-align: center;
  margin-top: 50px;
}

/* ───────────────────────────────────────────────────
   STATS BLOCK — replaces globe in Why Choose section
   ─────────────────────────────────────────────────── */
.why-stats-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  animation: whyFloat 9s ease-in-out infinite;
}

.why-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(26, 115, 232, 0.28);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-stat-card:nth-child(2) { animation-delay: -2.25s; }
.why-stat-card:nth-child(3) { animation-delay: -4.5s; }
.why-stat-card:nth-child(4) { animation-delay: -6.75s; }

.why-stat-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 40px rgba(26, 115, 232, 0.22);
  border-color: rgba(26, 115, 232, 0.55);
}

.why-stat-num {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
  font-family: 'Inter', system-ui, sans-serif;
}

.why-stat-num .stat-suffix {
  font-size: 22px;
  color: #1A73E8;
  font-weight: 800;
}

.why-stat-label {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.4;
  font-weight: 500;
}

/* ───────────────────────────────────────────────────
   TESTIMONIALS SECTION (homepage, above footer)
   ─────────────────────────────────────────────────── */
.testimonials-section {
  padding: 100px 0;
  background: #f5f6fa;
}

.testimonials-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.testimonials-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.testimonials-head p {
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}

/* Slider wrapper */
.testimonials-slider-wrap {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  animation: testimonialFade 0.5s ease;
}
.testimonial-slide.active {
  display: block;
}

@keyframes testimonialFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.testimonial-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 40px 44px 36px;
  border: 1px solid rgba(26, 115, 232, 0.10);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
}

.testimonial-quote-mark {
  font-size: 96px;
  line-height: 1;
  color: #1A73E8;
  font-family: Georgia, serif;
  position: absolute;
  top: 10px;
  left: 28px;
  opacity: 0.10;
  user-select: none;
  pointer-events: none;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-size: 17px;
  line-height: 1.78;
  color: #334155;
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A73E8, #1254c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.testimonial-biz {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

/* Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.testimonial-dot.active {
  background: #1A73E8;
  transform: scale(1.35);
}

/* ───────────────────────────────────────────────────
   INNER PAGE HERO — CANVAS PARTICLE VERSION
   ─────────────────────────────────────────────────── */
.inner-hero {
  position: relative;
  min-height: 300px;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(37,99,235,0.18) 0%, transparent 70%),
    linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0f172a 100%);
}

/* Canvas particle layer */
.inner-hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* CSS mesh/grid pattern overlay */
.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,115,232,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,115,232,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 1;
  animation: meshDrift 30s linear infinite;
}
@keyframes meshDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

/* Glow orb — blue (top-right) */
.inner-hero__orb-blue {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #2563eb;
  filter: blur(80px);
  opacity: 0.18;
  top: -60px;
  right: -60px;
  pointer-events: none;
  z-index: 1;
  animation: orbFloat1 14s ease-in-out infinite alternate;
}
@keyframes orbFloat1 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-40px, 30px); }
}

/* Glow orb — accent (bottom-left) */
.inner-hero__orb-accent {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #1e40af;
  filter: blur(60px);
  opacity: 0.18;
  bottom: -50px;
  left: -50px;
  pointer-events: none;
  z-index: 1;
  animation: orbFloat2 18s ease-in-out infinite alternate;
}
@keyframes orbFloat2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, -25px); }
}

/* Content sits above canvas + orbs */
.inner-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Title */
.inner-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 auto 16px;
  max-width: 900px;
  padding: 0 24px;
  box-sizing: border-box;
  position: relative;
  display: block;
  text-shadow: 0 0 40px rgba(37,99,235,0.25);
  text-align: center;
  word-break: break-word;
}

/* Animated underline accent */
.inner-hero__title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1A73E8, #38bdf8);
  border-radius: 2px;
  animation: titleUnderline 0.8s ease 0.4s forwards;
}
@keyframes titleUnderline {
  from { width: 0; }
  to   { width: 80px; }
}

/* Subtitle */
.inner-hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 24px auto 0;
  line-height: 1.7;
}

/* Badge (optional) */
.inner-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.35);
  color: rgba(216,234,255,0.90);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
}

@media (max-width: 600px) {
  .inner-hero { padding: 110px 0 55px; min-height: 240px; }
  .inner-hero__orb-blue { width: 180px; height: 180px; opacity: 0.14; }
  .inner-hero__orb-accent { width: 160px; height: 160px; opacity: 0.14; }
  .inner-hero__title { font-size: clamp(1.6rem, 7vw, 2.4rem); padding: 0 20px; }
  .inner-hero__sub { font-size: 15px; padding: 0 20px; }
}

/* ───────────────────────────────────────────────────
   PRICING PAGE
   ─────────────────────────────────────────────────── */
.pricing-hero {
  padding: 130px 0 80px;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(26,115,232,0.15), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.08)),
    var(--bg);
  text-align: center;
  overflow: hidden;
}

.pricing-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.1;
}

.pricing-hero p {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Currency toggle */
.currency-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.currency-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(26, 115, 232, 0.40);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.currency-btn {
  padding: 10px 26px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.60);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s ease;
}
.currency-btn.active {
  background: #1A73E8;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.40);
}
.currency-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.currency-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.40);
  display: block;
  margin-top: 0;
}

/* Pricing cards grid */
.pricing-section {
  padding: 80px 0 110px;
  background: #f5f6fa;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pricing-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(26, 115, 232, 0.14);
  border-color: rgba(26, 115, 232, 0.25);
}

.pricing-card .svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(26, 115, 232, 0.10);
  border: 1px solid rgba(26, 115, 232, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 16px;
  color: #1A73E8;
}

.pricing-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.35;
}

.pricing-price-block {
  flex: 1;
  margin-bottom: 20px;
}

.pricing-prefix {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.pricing-amount {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  display: inline;
}

.pricing-period {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.pricing-quote-cta {
  font-size: 20px;
  font-weight: 700;
  color: #1A73E8;
}

.pricing-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.10);
  color: #1A73E8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.btn-pricing {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: #1A73E8;
  color: #ffffff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  font-family: inherit;
  margin-top: auto;
}
.btn-pricing:hover {
  background: #1557b0;
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.35);
  transform: translateY(-1px);
}

/* Pricing CTA bottom band */
.pricing-cta-band {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0b2a3f, #0f3a56);
  text-align: center;
}

.pricing-cta-band h2 {
  font-size: clamp(26px, 3vw, 38px);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-cta-band p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 30px;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 580px) {
  .pricing-grid { grid-template-columns: 1fr !important; }
  .pricing-hero { padding: 110px 0 60px; }
}

/* ───────────────────────────────────────────────────
   PROJECTS PAGE
   ─────────────────────────────────────────────────── */
.projects-hero {
  padding: 130px 0 70px;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(26,115,232,0.14), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.08)),
    var(--bg);
  text-align: center;
  overflow: hidden;
}

.projects-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.1;
}

.projects-hero p {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.projects-section {
  padding: 80px 0 110px;
  background: #f5f6fa;
}

/* Vertical stacked card list */
.proj-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.proj-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  display: grid;
  grid-template-columns: 440px 1fr;
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.proj-card:hover {
  box-shadow: 0 24px 70px rgba(26, 115, 232, 0.15);
  border-color: rgba(26, 115, 232, 0.25);
}

/* ── Preview area (left): image scroll ── */
.proj-preview {
  overflow: hidden;
  height: 280px;
  position: relative;
  cursor: pointer;
  background: #0d1b2e;
}

/* Screenshot image */
.proj-preview img {
  width: 100%;
  height: auto;
  min-height: 600px;
  object-fit: cover;
  object-position: top;
  transform: translateY(0);
  transition: transform 12s linear;
  display: block;
}

.proj-card:hover .proj-preview img {
  transform: translateY(-55%);
}

/* Touch devices: play scroll animation once on load, then stop */
@media (max-width: 768px) {
  .proj-preview img {
    animation: projImgScrollOnce 10s linear 0.5s 1 forwards;
    transition: none;
  }
  @keyframes projImgScrollOnce {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-55%); }
    100% { transform: translateY(0); }
  }
}

/* "Demo" badge */
.proj-demo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(13,27,46,0.82);
  color: rgba(255,255,255,0.88);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}

/* Hover hint overlay */
.proj-preview::after {
  content: "↕  Hover to scroll";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.90);
  background: rgba(13, 27, 46, 0.78);
  padding: 5px 14px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}
.proj-card:hover .proj-preview::after {
  opacity: 1;
}

/* ── Right info pane ── */
.proj-info {
  padding: 36px 36px 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.proj-cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.10);
  color: #1A73E8;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  width: fit-content;
}

.proj-info h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.25;
}

.proj-info p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 8px;
}

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  background: #1A73E8;
  color: #ffffff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  align-self: flex-start;
  margin-top: 10px;
}
.btn-visit:hover {
  background: #1557b0;
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.35);
  transform: translateY(-2px);
}

/* Projects page bottom CTA */
.projects-cta-band {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0b2a3f, #0f3a56);
  text-align: center;
}
.projects-cta-band h2 {
  font-size: clamp(24px, 3vw, 38px);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
}
.projects-cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .proj-card {
    grid-template-columns: 1fr;
  }
  .proj-preview {
    height: 250px;
  }
  .proj-info {
    padding: 28px 28px;
  }
}

@media (max-width: 480px) {
  .proj-preview {
    height: 200px;
  }
  .projects-hero { padding: 110px 0 55px; }
  .btn-visit { align-self: stretch; text-align: center; justify-content: center; }
}

/* ───────────────────────────────────────────────────
   ABOUT PAGE — FOUNDER BLOCK
   ─────────────────────────────────────────────────── */
.founder-section {
  padding: 90px 0;
  background: #ffffff;
}

.founder-inner {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.founder-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.founder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A73E8 0%, #0d1b2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  border: 3px solid rgba(26,115,232,0.30);
  box-shadow: 0 0 0 8px rgba(26,115,232,0.08), 0 16px 48px rgba(26,115,232,0.22);
  flex-shrink: 0;
}

.founder-name-tag {
  text-align: center;
}
.founder-name-tag strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.founder-name-tag span {
  font-size: 13px;
  color: #64748b;
}

.founder-bio {
  padding-right: 40px;
  box-sizing: border-box;
}

.founder-bio h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.25;
}
.founder-bio p {
  font-size: 15.5px;
  color: #475569;
  line-height: 1.78;
  margin-bottom: 18px;
}
.founder-bio .founder-cred {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(26,115,232,0.08);
  border: 1px solid rgba(26,115,232,0.18);
  border-radius: 999px;
  font-size: 13px;
  color: #1A73E8;
  font-weight: 600;
  margin-top: 4px;
}

@media (max-width: 740px) {
  .founder-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .founder-avatar-wrap { flex-direction: row; align-items: center; gap: 20px; }
  .founder-avatar { width: 100px; height: 100px; font-size: 30px; }
  .founder-name-tag { text-align: left; }
}

/* ───────────────────────────────────────────────────
   ABOUT PAGE — TECH STACK
   ─────────────────────────────────────────────────── */
.tech-stack-section {
  padding: 70px 0 90px;
  background: #f5f6fa;
}

.tech-stack-head {
  text-align: center;
  margin-bottom: 44px;
}
.tech-stack-head h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.tech-stack-head p {
  color: #64748b;
  font-size: 15px;
}

.tech-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tech-row::-webkit-scrollbar { display: none; }

.tech-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 14px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.09);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: default;
  flex-shrink: 0;
  min-width: 88px;
}
.tech-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,115,232,0.13);
  border-color: rgba(26,115,232,0.22);
}
.tech-badge img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.tech-badge span {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  text-align: center;
  white-space: nowrap;
}

/* ───────────────────────────────────────────────────
   MOBILE GLOBAL OVERRIDES
   ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Featured services — 1-col */
  .feat-svc-grid { grid-template-columns: 1fr; }

  /* Why stats */
  .why-stats-block { max-width: 290px; }

  .testimonial-card { padding: 28px 24px 24px; }
  .testimonial-quote-mark { left: 18px; font-size: 72px; }

  /* Stack why-layout vertically */
  .why-layout { grid-template-columns: 1fr !important; }
  .why-center {
    min-height: auto !important;
    order: -1;
    padding: 10px 0 0;
  }
  .why-item--left,
  .why-item--right {
    text-align: left !important;
    justify-content: flex-start !important;
  }
  .why-item--left .why-txt { margin-left: 0 !important; }

  /* About-intro stats stack */
  .about-intro__stats { grid-template-columns: repeat(3, 1fr) !important; }

  /* Founder */
  .founder-inner { grid-template-columns: 1fr; gap: 28px; padding: 0 20px; }
  .founder-bio { padding-right: 0; }
  .founder-avatar-wrap { flex-direction: row; align-items: center; gap: 16px; }
  .founder-name-tag { text-align: left; }

  /* Tech row — horizontal scroll OK already */
  .tech-row { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .testimonials-section { padding: 70px 0; }
  .why-stats-block { grid-template-columns: 1fr 1fr; max-width: 260px; }
  .testimonials-head { margin-bottom: 36px; }

  /* Projects cards */
  .proj-preview { height: 200px; }
  .proj-info { padding: 22px 20px; }
  .btn-visit { align-self: stretch; text-align: center; justify-content: center; }

  /* Services page — 1 col */
  .svc-page-grid { grid-template-columns: 1fr !important; }

  /* Tap target minimum */
  .btn-svc-quote, .btn-visit, .btn-pricing, .btn-bave, .feat-svc-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .feat-svc-link { display: inline-flex; min-height: auto; }
  .btn-svc-quote { min-height: 44px; }
}
