/* =========================================================
   BITRATECH — Design System
   Hand-crafted CSS · No framework dependency
   ========================================================= */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --primary: #1a1a2e;
  --primary-accent: #4361ee;
  --accent: #7209b7;
  --accent-light: #b5179e;
  --surface: #ffffff;
  --surface-alt: #f8f9fb;
  --surface-muted: #f1f3f6;
  --text: #1a1a2e;
  --text-secondary: #555770;
  --text-muted: #8b8da3;
  --border: #e5e7eb;
  --border-light: #f0f0f5;

  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --transition: 0.35s var(--ease);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ---- Page Loader ---- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--text);
}

.nav-cta {
  background: var(--text) !important;
  color: var(--surface) !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: transform 0.25s ease, opacity 0.25s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.nav-cta::after {
  display: none !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--surface-alt);
}

/* ---- Headings ---- */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}

.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
}

.heading-md {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.text-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 540px;
}

.text-sm {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-dark {
  background: var(--text);
  color: var(--surface);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--surface);
  color: var(--text);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s ease;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ---- Divider ---- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.02;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-accent), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.15em;
  /* Fixes right edge cut-off on italic gradient text */
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-meta {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}

.hero-meta-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-meta-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero visual — abstract grid pattern */
.hero-visual {
  position: absolute;
  top: 0;
  right: -5%;
  width: 55%;
  height: 100%;
  z-index: 1;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--surface) 0%, transparent 30%, transparent 70%, var(--surface) 100%);
}

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header .eyebrow {
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.2s forwards;
}

.page-header .heading-xl {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.page-header .text-body {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
  margin-top: 20px;
}

.page-header-grid {
  position: absolute;
  top: 0;
  right: -5%;
  width: 40%;
  height: 100%;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* =========================================================
   CARDS — Multiple variants
   ========================================================= */

/* Minimal card — just border bottom */
.card-minimal {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.card-minimal:last-child {
  border-bottom: none;
}

.card-minimal:hover {
  padding-left: 12px;
}

/* Feature card — large, with number */
.card-feature {
  padding: 48px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-feature:hover {
  border-color: transparent;
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-feature-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: var(--surface-muted);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 28px;
  letter-spacing: -3px;
  transition: color 0.3s ease;
}

.card-feature:hover .card-feature-number {
  color: var(--border);
}

.card-feature-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.card-feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Service card — clean with top accent */
.card-service {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 0;
  background: var(--text);
  transition: height 0.3s ease;
}

.card-service:hover::before {
  height: 2px;
}

.card-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* =========================================================
   PORTFOLIO SECTION
   ========================================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.portfolio-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--surface-alt);
  cursor: pointer;
}

.portfolio-item.large {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.portfolio-item.medium {
  aspect-ratio: 4/3;
}

.portfolio-item-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-item:hover .portfolio-item-bg {
  transform: scale(1.03);
}

.portfolio-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-item-info {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-item-info h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.portfolio-item-info span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 4px;
  display: block;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

/* =========================================================
   TESTIMONIAL
   ========================================================= */
.testimonial-block {
  max-width: 700px;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.3px;
  margin-bottom: 32px;
}

.testimonial-quote::before {
  content: '"';
  display: block;
  font-size: 4rem;
  line-height: 1;
  color: var(--border);
  margin-bottom: 16px;
}

.testimonial-author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Slider controls */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.testimonial-slide {
  min-width: 100%;
}

.slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--text);
  width: 24px;
  border-radius: 4px;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  transition: border-color 0.25s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--text);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* =========================================================
   COUNTERS — Horizontal inline
   ========================================================= */
.stats-row {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
}

.stat-item {
  padding: 32px 48px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -2px;
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================================
   CTA — Editorial style
   ========================================================= */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: var(--text);
  color: var(--surface);
  position: relative;
  overflow: hidden;
}

.cta-section .heading-lg {
  color: var(--surface);
}

.cta-section .text-body {
  color: rgba(255, 255, 255, 0.6);
  margin: 20px auto 40px;
}

/* =========================================================
   FOOTER — Editorial clean
   ========================================================= */
.footer {
  background: var(--text);
  color: var(--surface);
  padding: 80px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: block;
}

.footer-description {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  gap: 64px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.25s ease;
}

.footer-social a:hover {
  color: #fff;
}

/* =========================================================
   SCROLL ANIMATIONS — Subtle, organic
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.stagger-1 {
  transition-delay: 0.05s;
}

.stagger-2 {
  transition-delay: 0.1s;
}

.stagger-3 {
  transition-delay: 0.15s;
}

.stagger-4 {
  transition-delay: 0.2s;
}

.stagger-5 {
  transition-delay: 0.25s;
}

.stagger-6 {
  transition-delay: 0.3s;
}

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   PROCESS / TIMELINE — Numbered list style
   ========================================================= */
.process-list {
  counter-reset: process;
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.process-item:last-child {
  border-bottom: none;
}

.process-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--surface-muted);
  line-height: 1;
  letter-spacing: -2px;
}

.process-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .footer-nav {
    gap: 40px;
  }

  .hero-visual {
    width: 40%;
    opacity: 0.03;
  }

  .portfolio-grid {
    gap: 16px;
  }

  .portfolio-item.large {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .container {
    padding: 0 20px;
  }

  .navbar .nav-links {
    display: flex;
    /* Changed from none */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    z-index: 999;
    /* Animation states */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s var(--ease);
  }

  .navbar .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar .nav-links a {
    font-size: 1.3rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-visual {
    display: none;
  }

  .hero-meta {
    gap: 32px;
    flex-wrap: wrap;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

  .page-header {
    padding: 140px 0 60px;
  }

  .page-header-grid {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item.large {
    grid-column: span 1;
    aspect-ratio: 16/9;
  }

  .stats-row {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    text-align: left;
    padding: 24px 0;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .process-item {
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .process-number {
    font-size: 2rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav {
    gap: 32px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Inline grid overrides for stacking on mobile */
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns: 0.4fr 1fr"],
  [style*="grid-template-columns:0.4fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 0.35fr 1fr"],
  [style*="grid-template-columns:0.35fr 1fr"],
  [style*="grid-template-columns: 1fr 0.8fr"],
  [style*="grid-template-columns:1fr 0.8fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-column: span 2"],
  [style*="grid-column:span 2"] {
    grid-column: span 1 !important;
  }

  /* Service number items - single col on mobile */
  .services-page [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  .heading-xl {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.1;
  }

  .heading-lg {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.15;
  }

  .heading-md {
    font-size: 1.4rem;
  }

  .text-body {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .text-lg {
    font-size: 1rem;
  }

  .card-feature {
    padding: 24px;
    gap: 16px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-meta-item {
    width: 45%;
  }

  .testimonial-quote {
    font-size: 1.1rem;
  }
}