/* ============================================================
   MAZOSOFT — Premium IT Company Landing Page
   Design System: Refined Luxury Tech
   Primary: #e8341c (MazoSoft Red)
   ============================================================ */

:root {
  --red: #CE3125;
  --red-dark: #c4280f;
  --red-darker: #9e1f0b;
  --red-light: #ff5a3d;
  --red-lighter: #ff7a62;
  --red-glow: rgba(232, 52, 28, 0.25);
  --red-glow-soft: rgba(232, 52, 28, 0.1);

  --white: #ffffff;
  --off-white: #f7f6f4;
  --subtle: #f2f1ef;
  --border: rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.08);

  --charcoal: #111111;
  --dark: #181818;
  --dark-mid: #222222;
  --dark-light: #2e2e2e;
  --gray: #888888;
  --gray-light: #bbbbbb;

  --font: 'Outfit', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-red: 0 8px 40px rgba(232, 52, 28, 0.2);
  --shadow-strong: 0 20px 80px rgba(0,0,0,0.15);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding-left: 0;}
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.section-eyebrow.light { color: rgba(255,255,255,0.7); }
.section-eyebrow.light::before { background: rgba(255,255,255,0.7); }

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.section-heading.light { color: var(--white); }
.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}
.text-accent { color: var(--red); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-eyebrow { justify-content: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 24px var(--red-glow);
  position: relative;
  overflow: hidden;
}
.btn-primary-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary-hero:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 36px rgba(232,52,28,0.4);
  color: var(--white);
}
.btn-primary-hero:hover::before { opacity: 1; }
.btn-primary-hero span, .btn-primary-hero svg { position: relative; z-index: 1; }

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--charcoal);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  transition: all 0.3s var(--ease);
}
.btn-secondary-hero:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}
.btn-secondary-hero.light {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-secondary-hero.light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-main {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.4s var(--ease);
}
.navbar-main.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.06);
}
.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img { width: 100px; height: 100px; border-radius: 16px; object-fit: cover; }
.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 1;
  justify-content: center;
}
.nav-menu > li { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link .arrow { font-size: 0.7rem; transition: transform 0.3s; }
.has-mega:hover .arrow { transform: rotate(180deg); }

.btn-nav-cta {
  flex-shrink: 0;
  background: var(--red);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px var(--red-glow);
}
.btn-nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232,52,28,0.35);
  color: var(--white);
}

/* Mega Menu */
/* .mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 740px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.has-mega:hover .mega-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mega-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 12px;
}
.mega-col ul li a {
  display: block;
  padding: 5px 0;
  font-size: 0.875rem;
  color: var(--gray);
  transition: color 0.2s;
}
.mega-col ul li a:hover { color: var(--red); padding-left: 4px; } */

/* ── Mega Menu — wrapper (reuses existing positioning) ── */
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 928px;                    /* compact — was 740px */
  background: var(--white);
  border-radius: var(--radius-lg);  /* 24px — existing token */
  border: 1px solid var(--border);  /* existing token */
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.10),
              0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 20px 20px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease),
              transform 0.28s var(--ease);  /* existing token */
}

/* Open state — unchanged selector, same behaviour */
.has-mega:hover .mega-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* ── Mega Header strip ── */
.mega-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--border);  /* existing token */
  margin-bottom: 16px;
}

.mega-header-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gray);               /* existing token */
}

.mega-header-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);                /* existing token */
  transition: gap 0.2s var(--ease);
}
.mega-header-link:hover { gap: 8px; }

/* ── 5-card grid ── */
.mega-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* ── Individual service card ── */
.mega-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 12px 18px;
  border-radius: 14px;              /* spec: 12px–16px */
  border: 1.5px solid transparent;
  background: var(--off-white);     /* existing token */
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s var(--ease),
              box-shadow 0.28s var(--ease),
              border-color 0.28s var(--ease),
              background 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow layer — reveals on hover */
.mega-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(
    circle at 50% 0%,
    var(--red-glow-soft) 0%,   /* existing token */
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

/* Hover state — spec: translateY(-4px) + shadow + icon highlight */
.mega-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10),
              0 4px 12px var(--red-glow-soft);  /* existing token */
  border-color: rgba(206, 49, 37, 0.18);        /* --red at low opacity */
  background: var(--white);
}
.mega-service-card:hover::before { opacity: 1; }

/* ── Icon container ── */
.msc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);         /* existing token */
  border: 1.5px solid var(--border);/* existing token */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.28s var(--ease),
              border-color 0.28s var(--ease),
              transform 0.28s var(--ease);
}

.msc-icon i {
  font-size: 1.1rem;
  color: var(--gray);               /* existing token — neutral default */
  transition: color 0.28s var(--ease),
              transform 0.28s var(--ease);
}

/* Icon highlight on card hover — uses company primary colour */
.mega-service-card:hover .msc-icon {
  background: var(--red-glow-soft); /* existing token */
  border-color: rgba(206, 49, 37, 0.2);
  transform: scale(1.08);
}
.mega-service-card:hover .msc-icon i {
  color: var(--red);                /* existing token */
}

/* ── Service name ── */
.msc-name {
  font-family: var(--font);         /* existing token — 'Outfit' */
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--charcoal);           /* existing token */
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.22s var(--ease);
}
.mega-service-card:hover .msc-name { color: var(--red); }

/* ============================================================
   RESPONSIVE OVERRIDES
   These go inside your existing breakpoint blocks — OR keep
   them here; they are scoped to .mega-services-grid so there
   is zero collision risk.
   ============================================================ */

/* Tablet ≤ 1100px — was 580px wide + 2-col grid */
@media (max-width: 1100px) {
  .mega-menu {
    width: 560px;
  }
  .mega-services-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 + 2 wrap */
  }
}

/* Tablet ≤ 768px — mobile drawer mode (existing pattern) */
@media (max-width: 768px) {
  /* Existing rule already sets:
       .mega-menu { position: static; transform: none; width: 100%;
                    box-shadow: none; border: none; padding: 16px 0 0;
                    opacity: 1; pointer-events: all; display: none; }
       .has-mega.open .mega-menu { display: block; }
     We only need to fix the grid inside it. */
  .mega-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .mega-service-card {
    padding: 16px 10px 14px;
    flex-direction: row;            /* icon + label side-by-side on mobile */
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    background: var(--off-white);
  }
  .msc-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .msc-icon i { font-size: 0.95rem; }
  .msc-name {
    text-align: left;
    font-size: 0.82rem;
  }
  .mega-header { display: none; } /* keep drawer clean on mobile */
}

/* Small phone ≤ 400px */
@media (max-width: 400px) {
  .mega-services-grid {
    grid-template-columns: 1fr;
  }
}

/* MEGA MENU REDESIGN END */

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--off-white);
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 70%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,52,28,0.12), transparent);
  top: -100px; right: 0;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,52,28,0.08), transparent);
  bottom: 0; left: 10%;
}
.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(232,52,28,0.08);
  border: 1px solid rgba(232,52,28,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.hero-accent { color: var(--red); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 32px;
}
.trust-item { text-align: center; }
.trust-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  display: inline;
}
.trust-plus {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
  display: inline;
}
.trust-item p { font-size: 0.8rem; color: var(--gray); margin: 4px 0 0; font-weight: 500; }
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hv-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,52,28,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Dashboard Mockup */
.dashboard-mockup {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.dash-header {
  background: #f5f5f5;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dash-dots span:nth-child(1) { background: #ff5f57; }
.dash-dots span:nth-child(2) { background: #febc2e; }
.dash-dots span:nth-child(3) { background: #28c840; }
.dash-url {
  flex: 1;
  background: var(--white);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.7rem;
  color: var(--gray);
  border: 1px solid var(--border);
}
.dash-body { display: flex; }
.dash-sidebar {
  width: 52px;
  background: var(--charcoal);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.dash-sidebar .sidebar-logo img { width: 28px; height: 28px; border-radius: 6px; margin-bottom: 12px; }
.sidebar-item {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.sidebar-item.active { background: var(--red); }
.dash-main { flex: 1; padding: 16px; background: #fafafa; }
.dash-row { display: flex; gap: 10px; margin-bottom: 12px; }
.stat-card {
  flex: 1;
  background: var(--white);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border);
}
.sc-label { font-size: 0.65rem; color: var(--gray); font-weight: 500; margin-bottom: 4px; }
.sc-value { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.sc-bar { height: 4px; background: var(--subtle); border-radius: 2px; }
.sc-fill { height: 100%; background: var(--red); border-radius: 2px; }
.dash-chart {
  background: var(--white);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border);
}
.chart-label { font-size: 0.65rem; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.sparkline { width: 100%; height: 60px; }

/* Floating Cards */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}
.fc-analytics {
  top: 15%; right: -10%;
  display: flex;
  align-items: center;
  gap: 10px;
  animation-delay: -1s;
}
.fc-icon { font-size: 1.2rem; }
.fc-icon.fc-green { 
  width: 28px; height: 28px;
  background: #d4edda;
  color: #198754;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.fc-title { font-size: 0.65rem; color: var(--gray); font-weight: 500; }
.fc-val { font-size: 0.85rem; font-weight: 700; color: var(--charcoal); }
.fc-deploy {
  bottom: 25%; right: -8%;
  display: flex;
  align-items: center;
  gap: 10px;
  animation-delay: -3s;
}
.fc-mobile {
  bottom: 10%; left: -8%;
  animation-delay: -2s;
}
.mobile-frame {
  width: 48px; height: 80px;
  background: var(--charcoal);
  border-radius: 10px;
  padding: 6px 4px;
  position: relative;
}
.mf-notch {
  width: 16px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0 auto 6px;
}
.mf-screen { background: var(--off-white); border-radius: 6px; padding: 6px; height: calc(100% - 10px); }
.mf-bar { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 4px; }
.mf-bar.short { width: 60%; }
.mf-circle { width: 20px; height: 20px; border-radius: 50%; background: var(--red); opacity: 0.7; margin-top: 4px; }
.fc-tech {
  top: -5%; left: 10%;
  display: flex;
  gap: 6px;
  animation-delay: -4s;
}
.tech-tag {
  padding: 4px 10px;
  background: var(--red-glow-soft);
  color: var(--red);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(232,52,28,0.15);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
  padding: 32px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 20px;
}
.marquee-track { overflow: hidden; position: relative; }
.marquee-track::before, .marquee-track::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}
.marquee-track::before { left: 0; background: linear-gradient(to right, white, transparent); }
.marquee-track::after { right: 0; background: linear-gradient(to left, white, transparent); }
.marquee-inner {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-item {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color 0.3s;
}
.marquee-item:hover { color: var(--red); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 120px 0;
  background: var(--white);
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.6s var(--ease);
}
.about-img-wrap:hover .about-img { transform: scale(1.04); }
.about-img-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--red);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
}
.aib-num { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.aib-txt { font-size: 0.7rem; font-weight: 500; opacity: 0.85; }
.about-img-card {
  position: absolute;
  top: 24px; left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: var(--shadow);
}
.about-img-card svg { color: var(--red); flex-shrink: 0; }
.about-text {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.astat { text-align: center; }
.astat-num, .astat-plus {
  display: inline;
  font-size: 2rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.04em;
}
.astat-plus { color: var(--red); }
.astat-label { font-size: 0.75rem; color: var(--gray); margin-top: 4px; font-weight: 500; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  padding: 120px 0;
  background: var(--off-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(135deg, var(--red), transparent) border-box;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
  pointer-events: none;
}
.service-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 24px 64px rgba(0,0,0,0.1), 0 4px 24px var(--red-glow);
}
/* .service-card:hover::before { opacity: 1; } */
.sc-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.sc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .sc-img-wrap img { transform: scale(1.08); }
.sc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.3), transparent);
}
.sc-content { padding: 24px; }
.sc-icon {
  width: 44px; height: 44px;
  background: var(--red-glow-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 14px;
  border: 1px solid rgba(232,52,28,0.15);
}
.sc-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.sc-content p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 16px;
}
.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  transition: gap 0.2s;
}
.sc-link:hover { gap: 10px; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.why-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(232,52,28,0.12), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(232,52,28,0.06), transparent 50%);
}
.why-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 8px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.why-card:hover { 
  background: rgba(255,255,255,0.07);
  border-color: rgba(232,52,28,0.2);
  transform: translateY(-4px);
}
.why-card:hover::before { transform: scaleX(1); }
.why-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.why-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.why-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-section {
  padding: 120px 0;
  background: var(--white);
}
.process-timeline { position: relative; }
.pt-line {
  display: none;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process-step {
  position: relative;
  padding: 32px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.process-step:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px var(--red-glow-soft);
  transform: translateY(-4px);
}
.ps-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(232,52,28,0.12);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.3s;
}
.process-step:hover .ps-num { color: rgba(232,52,28,0.25); }
.ps-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.ps-content p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ============================================================
   TECHNOLOGIES SECTION
   ============================================================ */
.tech-section {
  padding: 100px 0;
  background: var(--off-white);
}
.tech-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.tech-cat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.tech-cat:hover {
  box-shadow: var(--shadow);
  border-color: rgba(232,52,28,0.15);
}
.tc-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-pill {
  padding: 6px 14px;
  background: var(--off-white);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.tech-pill:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio-section {
  padding: 120px 0;
  background: var(--white);
}
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.pf-btn {
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all 0.3s var(--ease);
}
.pf-btn:hover, .pf-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}
.portfolio-item.hidden { display: none; }
.pi-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.pi-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.portfolio-item:hover .pi-img img { transform: scale(1.06); }
.pi-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232,52,28,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-item:hover .pi-overlay { opacity: 1; }
.pi-preview {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 24px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 100px;
}

.pi-preview .btn-outline{
    color: #ffffff;
}

.pi-preview:hover{
    background: var(--red);
    color: #fff;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.15);
}


.pi-info { padding: 20px; background: var(--white); }
.pi-cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pi-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 6px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: 120px 0;
  background: var(--off-white);
  overflow: hidden;
}
.testimonials-slider { position: relative; overflow: hidden; }
.ts-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s var(--ease);
}
.testi-card {
  min-width: calc(33.333% - 16px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.testi-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(232,52,28,0.15);
}
.tc-stars {
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.tc-text {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.tc-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tc-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.tc-name { font-size: 0.9rem; font-weight: 700; color: var(--charcoal); }
.tc-role { font-size: 0.775rem; color: var(--gray); }
.ts-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.ts-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  transition: all 0.3s var(--ease);
  background: var(--white);
}
.ts-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.ts-dots { display: flex; gap: 6px; }
.ts-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
  cursor: pointer;
}
.ts-dot.active {
  background: var(--red);
  width: 20px;
  border-radius: 4px;
}

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.partners-section {
  padding: 100px 0;
  background: var(--white);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.partner-card {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.partner-card span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.partner-card:hover {
  border-color: var(--red);
  background: rgba(232,52,28,0.03);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--red-glow-soft);
}
.partner-card:hover span { color: var(--red); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(232,52,28,0.2), transparent 70%);
  animation: cta-pulse 6s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}
.cta-particles { position: absolute; inset: 0; pointer-events: none; }
.cta-particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(232,52,28,0.4);
  border-radius: 50%;
  animation: particle-float linear infinite;
}
@keyframes particle-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
.cta-inner { position: relative; z-index: 2; }
.cta-heading {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 24px;
}
.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: 120px 0;
  background: var(--white);
}
.contact-info { padding-top: 20px; }
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.ci-icon {
  width: 44px; height: 44px;
  background: var(--red-glow-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  border: 1px solid rgba(232,52,28,0.15);
}
.ci-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-light); margin-bottom: 4px; }
.ci-val { font-size: 0.9rem; color: var(--charcoal); font-weight: 500; }
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}
.social-btn {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
  transition: all 0.3s var(--ease);
}
.social-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form { background: var(--off-white); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border); }
.form-floating-custom { position: relative; }
.form-floating-custom input,
.form-floating-custom select,
.form-floating-custom textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-floating-custom textarea { resize: vertical; min-height: 100px; }
.form-floating-custom input:focus,
.form-floating-custom select:focus,
.form-floating-custom textarea:focus { border-color: var(--red); }
.form-floating-custom label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--gray);
  pointer-events: none;
  transition: all 0.2s;
  background: transparent;
}
.form-floating-custom textarea ~ label { top: 20px; transform: none; }
.form-floating-custom select ~ label { top: 50%; transform: translateY(-50%); }
.form-floating-custom input:focus ~ label,
.form-floating-custom input:not(:placeholder-shown) ~ label,
.form-floating-custom select:focus ~ label,
.form-floating-custom select:not([value=""]) ~ label,
.form-floating-custom textarea:focus ~ label,
.form-floating-custom textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  transform: none;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 24px var(--red-glow);
  width: 100%;
  justify-content: center;
}
.btn-submit:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(232,52,28,0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--charcoal); }
.footer-top { padding: 80px 0 60px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.footer-logo img { width: 100px; height: 100px; border-radius: 16px; }
.footer-logo span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 300px;
}
.footer-newsletter { max-width: 320px; }
.fn-input {
  display: flex;
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.fn-input input {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--white);
  outline: none;
}
.fn-input input::placeholder { color: rgba(255,255,255,0.35); }
.fn-input button {
  background: var(--red);
  color: var(--white);
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  transition: background 0.2s;
  border-radius: 100px;
  margin: 2px;
}
.fn-input button:hover { background: var(--red-dark); }
.footer-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-contact p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.fb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fb-inner p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.fb-links { display: flex; gap: 24px; }
.fb-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.fb-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .mega-menu { width: 580px; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .fc-analytics { right: -4%; }
  .fc-deploy { right: -4%; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .testi-card { min-width: calc(50% - 12px); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .btn-nav-cta { display: none; }
  .nav-toggle { display: flex; }
  
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 24px;
    gap: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .mega-menu { position: static; transform: none; width: 100%; box-shadow: none; border: none; padding: 16px 0 0; opacity: 1; pointer-events: all; display: none; }
  .has-mega.open .mega-menu { display: block; }
  .mega-grid { grid-template-columns: 1fr; gap: 16px; }
  
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .tech-categories { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .testi-card { min-width: calc(100%); }
  .hero-trust { flex-direction: column; gap: 16px; }
  .trust-divider { width: 40px; height: 1px; }
  .float-card { display: none; }
  .fb-inner { flex-direction: column; gap: 16px; text-align: center; }
  .why-section .col-lg-5, .why-section .col-lg-7 { text-align: center; }
  .why-section .btn-primary-hero { margin: 0 auto; display: inline-flex; }
  .contact-form { padding: 24px; }
  .hero-inner { padding: 60px 20px; }
}

@media (max-width: 576px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-headline { font-size: 2rem; }
  .section-heading { font-size: 1.8rem; }
  .about-img { height: 300px; }
  .cta-heading { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}


.page-banner {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.page-banner:hover .page-banner-bg img { transform: scale(1); }
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17,17,17,0.88) 0%,
    rgba(17,17,17,0.72) 40%,
    rgba(206,49,37,0.18) 100%
  );
}
.page-banner-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}
.page-banner-content {
  position: relative;
  z-index: 2;
  padding-top: 160px;
}

/* Breadcrumb */
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  font-weight: 500;
}
.page-breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.page-breadcrumb a:hover { color: var(--white); }
.bc-sep { color: rgba(255,255,255,0.3); display: flex; align-items: center; }
.bc-current { color: var(--red); }

/* Page Heading */
.page-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 20px;
}
.page-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 40px;
}

/* Trust strip inside banner */
.page-banner-trust {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.pbt-item { display: flex; flex-direction: column; }
.pbt-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pbt-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pbt-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}
.page-banner-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ============================================================
   REUSABLE: IMAGE + CONTENT SPLIT SECTION
   Usage: .image-content-section — alternates image/text side
   ============================================================ */
.image-content-section {
  padding: 120px 0;
  background: var(--white);
}
.image-content-section.bg-subtle { background: var(--off-white); }
.image-content-section.flip .row { flex-direction: row-reverse; }

.ics-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ics-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.7s var(--ease);
}
.ics-img-wrap:hover img { transform: scale(1.04); }

/* Badge bottom-right (reuses .aib-num / .aib-txt from homepage about) */
.ics-img-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--red);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  min-width: 90px;
}

/* Card top-left (reuses .about-img-card pattern) */
.ics-img-card {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: var(--shadow);
}
.ics-img-card svg { color: var(--red); flex-shrink: 0; }

/* Content side */
.content-text {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 18px;
}

.ics-highlights { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.ics-highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}
.ics-highlight-item svg {
  flex-shrink: 0;
  color: var(--red);
  background: var(--red-glow-soft);
  border-radius: 50%;
  padding: 4px;
  width: 26px;
  height: 26px;
}

/* ============================================================
   REUSABLE: MVV (Mission Vision Values) SECTION
   ============================================================ */
.mvv-section {
  padding: 120px 0;
  background: var(--off-white);
}
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mvv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.mvv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08), 0 0 0 1px rgba(232,52,28,0.08);
}
.mvv-card:hover::before { transform: scaleX(1); }
.mvv-icon {
  width: 56px; height: 56px;
  background: var(--red-glow-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 20px;
  border: 1px solid rgba(232,52,28,0.15);
  transition: background 0.3s;
}
.mvv-card:hover .mvv-icon { background: var(--red); color: var(--white); }
.mvv-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.mvv-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
}
.mvv-values-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mvv-values-list li {
  font-size: 0.875rem;
  color: var(--gray);
  padding-left: 12px;
  border-left: 2px solid rgba(232,52,28,0.2);
  line-height: 1.6;
}
.mvv-values-list li span {
  font-weight: 700;
  color: var(--charcoal);
}

/* ============================================================
   REUSABLE: STATS SECTION (dark band)
   Uses existing .astat, .astat-num, .astat-plus, .astat-label
   ============================================================ */
.stats-section {
  padding: 80px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.stats-section-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232,52,28,0.1), transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(232,52,28,0.06), transparent 50%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
/* Override .astat colours for dark background */
.stats-section .astat {
  text-align: center;
  padding: 32px 16px;
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative;
}
.stats-section .astat:last-child { border-right: none; }
.stats-section .astat-num,
.stats-section .astat-plus {
  color: var(--white);
}
.stats-section .astat-plus { color: var(--red); }
.stats-section .astat-label { color: rgba(255,255,255,0.45); }

/* ============================================================
   REUSABLE: TIMELINE SECTION
   ============================================================ */
.journey-section {
  padding: 120px 0;
  background: var(--white);
}
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.timeline-spine {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border) 8%, var(--border) 92%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0 32px;
  margin-bottom: 60px;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Marker (center column) */
.tl-marker {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.tl-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--border);
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 2;
}
.timeline-item:hover .tl-dot,
.tl-active .tl-dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 6px var(--red-glow-soft);
}

/* Left items: content on left, empty on right */
.tl-left .tl-content { grid-column: 1; grid-row: 1; text-align: right; }
.tl-left .tl-marker  { grid-column: 2; grid-row: 1; }
.tl-left .tl-content + * { display: none; }

/* Right items: empty on left, content on right */
.tl-right .tl-content { grid-column: 3; grid-row: 1; text-align: left; }
.tl-right .tl-marker  { grid-column: 2; grid-row: 1; }

/* Item with auto layout trick: left = col1, marker = col2, right uses col3 */
.tl-left { grid-template-areas: "content marker empty"; }
.tl-right { grid-template-areas: "empty marker content"; }

.tl-content {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.timeline-item:hover .tl-content {
  border-color: rgba(232,52,28,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.tl-active .tl-content {
  border-color: rgba(232,52,28,0.25);
  background: rgba(232,52,28,0.03);
}
.tl-year {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.tl-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.tl-content p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ============================================================
   REUSABLE: TEAM SECTION
   ============================================================ */
.team-section {
  padding: 120px 0;
  background: var(--off-white);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.1);
  border-color: rgba(232,52,28,0.12);
}
.team-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease);
}
.team-card:hover .team-img-wrap img { transform: scale(1.06); }
.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(206,49,37,0.75), transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.team-card:hover .team-overlay { opacity: 1; }
.team-social {
  display: flex;
  gap: 8px;
}
.team-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  transition: all 0.2s;
}
.team-social a:hover { background: var(--white); color: var(--red); }
.team-info {
  padding: 20px;
}
.team-info h4 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.team-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.team-cta {
  text-align: center;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.team-cta p {
  font-size: 1rem;
  color: var(--gray);
}

/* ============================================================
   REUSABLE: WORK CULTURE GALLERY SECTION
   ============================================================ */
.culture-section {
  padding: 120px 0;
  background: var(--white);
}
.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 64px;
}
.culture-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.culture-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  display: block;
}
.culture-item:hover img { transform: scale(1.06); }
.ci-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 400px;
}
.ci-small { min-height: 190px; }
.ci-medium {
  grid-column: span 2;
  min-height: 190px;
}
.culture-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px 14px;
  background: linear-gradient(to top, rgba(17,17,17,0.7), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.culture-item:hover .culture-caption { opacity: 1; }
.culture-caption span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* Culture perks strip */
.culture-perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.culture-perk {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.culture-perk:last-child { border-right: none; }
.culture-perk:hover { background: var(--off-white); }
.cp-icon {
  width: 44px; height: 44px;
  background: var(--red-glow-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  border: 1px solid rgba(232,52,28,0.12);
  transition: all 0.3s;
}
.culture-perk:hover .cp-icon { background: var(--red); color: var(--white); }
.cp-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.cp-sub {
  font-size: 0.78rem;
  color: var(--gray);
}

/* ============================================================
   RESPONSIVE — About page additions
   ============================================================ */
@media (max-width: 1100px) {
  .mvv-grid { grid-template-columns: 1fr 1fr; }
  .mvv-vision { order: 2; }
  .mvv-values { grid-column: span 2; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-section .astat { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stats-section .astat:nth-child(3) { border-right: none; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .culture-perks { grid-template-columns: repeat(2, 1fr); }
  .culture-perk:nth-child(2) { border-right: none; }
  .culture-perk:nth-child(3) { border-right: 1px solid var(--border); }
  .culture-perk:nth-child(3),
  .culture-perk:nth-child(4) { border-top: 1px solid var(--border); }
}

@media (max-width: 992px) {
  .page-banner { min-height: 56vh; padding-bottom: 60px; }
  .page-title { font-size: clamp(2.2rem, 6vw, 3.5rem); }
  .ics-img-wrap img { height: 380px; }
  .timeline-spine { left: 24px; }
  .timeline-item {
    grid-template-columns: 0 auto 1fr;
    gap: 0 24px;
  }
  .tl-left .tl-content,
  .tl-right .tl-content {
    grid-column: 3;
    text-align: left;
  }
  .tl-marker { grid-column: 2; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .culture-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ci-large { grid-column: span 2; min-height: 280px; }
  .ci-medium { grid-column: span 2; }
  .ci-small { min-height: 180px; }
}

@media (max-width: 768px) {
  .page-banner { min-height: auto; padding: 120px 0 60px; }
  .page-banner-content { padding-top: 0; }
  .page-banner-trust { gap: 20px; }
  .pbt-divider { height: 28px; }
  .mvv-grid { grid-template-columns: 1fr; }
  .mvv-values { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-section .astat:nth-child(2) { border-right: none; }
  .stats-section .astat:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.07); }
  .stats-section .astat:nth-child(4) { border-right: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .culture-grid { grid-template-columns: 1fr; }
  .ci-large, .ci-medium, .ci-small {
    grid-column: span 1;
    min-height: 220px;
  }
  .culture-perks { grid-template-columns: 1fr; border-radius: var(--radius); }
  .culture-perk { border-right: none !important; border-bottom: 1px solid var(--border); }
  .culture-perk:last-child { border-bottom: none; }
  .culture-perk:nth-child(3) { border-right: none !important; }
  .ics-img-wrap img { height: 280px; }
}

@media (max-width: 576px) {
  .page-title { font-size: 2.2rem; }
  .page-banner-trust { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pbt-divider { width: 40px; height: 1px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ABOUT PAGE END */


/* ============================================================
   PORTFOLIO PAGE START
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   PORTFOLIO INTRO SECTION
   ────────────────────────────────────────────────────────── */
/* ============================================================
   PRODUCT PAGE — product.css
   Includes: portfolio grid system + innovation pipeline empty state
   ============================================================ */


/* ──────────────────────────────────────────────────────────
   PORTFOLIO INTRO SECTION
   ────────────────────────────────────────────────────────── */
.port-intro-section {
  padding: 120px 0;
  background: var(--white);
}

.port-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.port-intro-stat {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.port-intro-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.port-intro-stat:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); border-color: rgba(232,52,28,0.12); }
.port-intro-stat:hover::before { transform: scaleX(1); }

.pis-icon {
  width: 48px; height: 48px;
  background: var(--red-glow-soft);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  margin: 0 auto 16px;
  border: 1px solid rgba(232,52,28,0.12);
  transition: all 0.3s;
}
.port-intro-stat:hover .pis-icon { background: var(--red); color: var(--white); }

.pis-num   { display: inline; font-size: 2.4rem; font-weight: 800; color: var(--charcoal); letter-spacing: -0.04em; line-height: 1; }
.pis-plus  { display: inline; font-size: 1.8rem; font-weight: 800; color: var(--red); }
.pis-label { font-size: 0.75rem; font-weight: 500; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 8px; display: block; }


/* ──────────────────────────────────────────────────────────
   FILTER + GRID SECTION
   ────────────────────────────────────────────────────────── */
.pf-section {
  padding: 120px 0;
  background: var(--off-white);
}

.pfp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.pfp-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.45s var(--ease);
  display: flex;
  flex-direction: column;
}
.pfp-card:hover { transform: translateY(-8px); box-shadow: 0 28px 72px rgba(0,0,0,0.12); border-color: rgba(232,52,28,0.12); }

/* .pfp-card.pfp-featured { grid-column: span 2; } */
.pfp-card.pfp-featured .pfp-img-wrap { height: 320px; }

.pfp-img-wrap { position: relative; height: 240px; overflow: hidden; flex-shrink: 0; }
.pfp-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s var(--ease); }
.pfp-card:hover .pfp-img-wrap img { transform: scale(1.08); }

.pfp-overlay {
  position: absolute; inset: 0;
  background: rgba(17,17,17,0.82);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  padding: 24px;
}
.pfp-card:hover .pfp-overlay { opacity: 1; }
.pfp-overlay-inner { text-align: center; }
.pfp-overlay-cat { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.pfp-overlay-inner h4 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; letter-spacing: -0.02em; }
.pfp-overlay-inner p { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 20px; }

.pfp-case-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px;
  background: var(--red); color: var(--white);
  border-radius: 100px; font-size: 0.82rem; font-weight: 600;
  transition: all 0.3s var(--ease);
  border: 1.5px solid var(--red);
}
.pfp-case-btn:hover { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }

.pfp-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }

/* Top row: category + live badge */
.pfp-info-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

.pfp-title { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin: 0 0 10px; letter-spacing: -0.02em; line-height: 1.35; }
.pfp-desc  { font-size: 0.855rem; color: var(--gray); line-height: 1.65; margin-bottom: 16px; flex: 1; }

.pfp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pfp-tags span {
  padding: 4px 12px;
  background: var(--off-white); border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; color: var(--gray);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.pfp-card:hover .pfp-tags span { background: var(--red-glow-soft); color: var(--red); border-color: rgba(232,52,28,0.18); }

/* "View Product Details" link at card bottom */
.pfp-detail-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700;
  color: var(--red);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s;
}
.pfp-detail-link:hover { gap: 10px; }

/* Live badge */
.prod-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #198754;
  padding: 3px 10px;
  background: rgba(25,135,84,0.08);
  border-radius: 100px;
  border: 1px solid rgba(25,135,84,0.2);
  flex-shrink: 0;
}
.prod-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #198754;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25,135,84,0.4); }
  50%       { box-shadow: 0 0 0 4px rgba(25,135,84,0); }
}

/* Category tag under card image */
.pi-cat {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--red);
}

/* Filter states */
.pfp-card.hidden { display: none; }
.pfp-card.filter-in { animation: filterReveal 0.45s var(--ease) forwards; }
@keyframes filterReveal {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Load more */
.pf-load-more { text-align: center; padding-top: 52px; }
.btn-load-more {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 32px; border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 0.92rem; font-weight: 600; color: var(--charcoal);
  background: var(--white);
  transition: all 0.3s var(--ease);
  cursor: pointer; font-family: var(--font);
}
.btn-load-more:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: 0 8px 24px var(--red-glow-soft); }


/* ──────────────────────────────────────────────────────────
   FEATURED PRODUCTS SECTION
   ────────────────────────────────────────────────────────── */
.featured-section { padding: 120px 0; background: var(--white); }

.featured-item {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 40px;
  transition: box-shadow 0.35s var(--ease);
}
.featured-item:last-child { margin-bottom: 0; }
.featured-item:hover { box-shadow: var(--shadow-strong); }

.fi-img-wrap { position: relative; height: 100%; min-height: 400px; overflow: hidden; }
.fi-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.featured-item:hover .fi-img-wrap img { transform: scale(1.04); }
.fi-img-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(17,17,17,0.4), rgba(206,49,37,0.15)); }

.fi-label {
  position: absolute; top: 24px; left: 24px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 8px 16px;
  font-size: 0.72rem; font-weight: 600; color: var(--white); letter-spacing: 0.06em;
}
.fi-num { color: var(--red); font-weight: 800; font-size: 0.85rem; }

.fi-content { padding: 48px 44px; height: 100%; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
.fi-title { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800; color: var(--charcoal); letter-spacing: -0.03em; line-height: 1.2; margin: 10px 0 16px; }
.fi-desc { font-size: 0.92rem; color: var(--gray); line-height: 1.78; margin-bottom: 24px; }

.fi-stack { margin-bottom: 24px; }
.fi-stack-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-light); display: block; margin-bottom: 10px; }
.fi-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.fi-pills span { padding: 5px 13px; background: var(--off-white); border-radius: 100px; font-size: 0.75rem; font-weight: 600; color: var(--charcoal); border: 1px solid var(--border); }

.fi-metrics { display: flex; gap: 28px; margin-bottom: 28px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fi-metric-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--charcoal); letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.fi-metric-label { font-size: 0.72rem; color: var(--gray); font-weight: 500; }
.fi-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }


/* ──────────────────────────────────────────────────────────
   INDUSTRIES SECTION
   ────────────────────────────────────────────────────────── */
.industries-section { padding: 120px 0; background: var(--off-white); }
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.industry-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: all 0.4s var(--ease);
}
.industry-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.industry-card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(0,0,0,0.1); border-color: rgba(232,52,28,0.12); }
.industry-card:hover::after { transform: scaleX(1); }

.ind-icon {
  width: 52px; height: 52px; background: var(--red-glow-soft);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  color: var(--red); margin-bottom: 18px; border: 1px solid rgba(232,52,28,0.12); transition: all 0.3s;
}
.industry-card:hover .ind-icon { background: var(--red); color: var(--white); transform: scale(1.06); }
.industry-card h4 { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 10px; letter-spacing: -0.02em; }
.industry-card p  { font-size: 0.84rem; color: var(--gray); line-height: 1.65; margin-bottom: 16px; }
.ind-count {
  display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--red); padding: 4px 12px; background: var(--red-glow-soft);
  border-radius: 100px; border: 1px solid rgba(232,52,28,0.12); transition: all 0.3s;
}
.industry-card:hover .ind-count { background: var(--red); color: var(--white); border-color: var(--red); }


/* ──────────────────────────────────────────────────────────
   STATS / TESTIMONIALS OVERRIDES
   ────────────────────────────────────────────────────────── */
.port-stats-section { padding: 100px 0; }
.port-stats-grid { grid-template-columns: repeat(4, 1fr) !important; }
.port-testi-section { background: var(--white); }

.port-testi-card { position: relative; }
.port-testi-card::before {
  content: '"'; position: absolute; top: 20px; right: 24px;
  font-size: 5rem; line-height: 1; color: var(--red-glow-soft); font-weight: 900; pointer-events: none;
}
.ptc-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.ptc-header img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2.5px solid rgba(232,52,28,0.2); flex-shrink: 0; }
.ptc-head-text .tc-name  { font-size: 0.95rem; font-weight: 700; color: var(--charcoal); }
.ptc-head-text .tc-role  { font-size: 0.78rem; color: var(--gray); margin: 2px 0 4px; }
.ptc-head-text .tc-stars { font-size: 0.72rem; color: var(--red); letter-spacing: 2px; }

.ptc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.ptc-project { font-size: 0.75rem; font-weight: 600; color: var(--gray); }
.ptc-outcome { font-size: 0.75rem; font-weight: 700; color: var(--red); padding: 3px 10px; background: var(--red-glow-soft); border-radius: 100px; border: 1px solid rgba(232,52,28,0.12); }


/* ══════════════════════════════════════════════════════════
   INNOVATION PIPELINE — EMPTY STATE COMPONENT
   ══════════════════════════════════════════════════════════ */

.innovation-pipeline {
  grid-column: 1 / -1;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 72px 48px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 52px;
}

/* Animated gradient border */
.innovation-pipeline::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(232,52,28,0.12) 25%,
    rgba(232,52,28,0.35) 50%,
    rgba(232,52,28,0.12) 75%,
    transparent 100%);
  background-size: 400% 400%;
  animation: ipBorderSpin 6s linear infinite;
  z-index: 0; pointer-events: none;
}

/* White fill inside the border */
.innovation-pipeline::after {
  content: ''; position: absolute; inset: 1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: var(--white);
  z-index: 0; pointer-events: none;
}

.innovation-pipeline > * { position: relative; z-index: 1; }

@keyframes ipBorderSpin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Particles ── */
.ip-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ip-particle {
  position: absolute; border-radius: 50%;
  background: var(--red); opacity: 0;
  animation: ipFloat linear infinite;
}
@keyframes ipFloat {
  0%   { transform: translateY(100%) scale(0); opacity: 0; }
  10%  { opacity: 0.25; }
  90%  { opacity: 0.08; }
  100% { transform: translateY(-120px) scale(1.4); opacity: 0; }
}

/* ── Radial glow ── */
.ip-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 480px; height: 320px;
  background: radial-gradient(ellipse at center, rgba(232,52,28,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: ipGlowPulse 4s ease-in-out infinite;
}
@keyframes ipGlowPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%       { opacity: 0.6; transform: translateX(-50%) scale(1.12); }
}

/* ── Header ── */
.ip-header { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 620px; }

.ip-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: var(--red-glow-soft);
  border: 1px solid rgba(232,52,28,0.18);
  border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red);
}
.ip-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0;
  animation: ipDotPulse 2s ease-in-out infinite;
}
@keyframes ipDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,52,28,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(232,52,28,0); }
}

.ip-headline {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: var(--charcoal);
  letter-spacing: -0.035em; line-height: 1.18; margin: 0;
}
.ip-sub { font-size: 0.92rem; color: var(--gray); line-height: 1.75; margin: 0; max-width: 540px; }

/* ── Roadmap ── */
.ip-roadmap {
  width: 100%; max-width: 760px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
}
.ip-roadmap-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.ip-rm-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-light); }
.ip-rm-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--red); padding: 3px 10px;
  background: var(--red-glow-soft); border-radius: 100px; border: 1px solid rgba(232,52,28,0.12);
}

.ip-rm-track { position: relative; height: 6px; background: var(--border); border-radius: 100px; overflow: hidden; margin-bottom: 14px; }
.ip-rm-fill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  border-radius: 100px;
  transition: width 1.8s cubic-bezier(0.25,1,0.5,1);
}
.ip-rm-fill::after {
  content: ''; position: absolute; top: 0; right: 0; width: 40px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: ipShimmer 2s linear infinite;
}
@keyframes ipShimmer {
  0%   { transform: translateX(-40px); }
  100% { transform: translateX(40px); }
}

.ip-rm-markers { display: flex; justify-content: space-between; }
.ip-rm-marker { font-size: 0.65rem; font-weight: 600; color: var(--gray-light); text-align: center; flex: 1; }
.ip-rm-marker.active { color: var(--red); font-weight: 700; }
.ip-rm-marker.done   { color: var(--charcoal); }

/* ── Concept cards ── */
.ip-concepts-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; width: 100%;
}

.ip-concept-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 18px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  transition: all 0.35s var(--ease); cursor: default;
}
.ip-concept-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.ip-concept-card:hover { border-color: rgba(232,52,28,0.18); transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.08); }
.ip-concept-card:hover::before { transform: scaleX(1); }

.ip-concept-status {
  position: absolute; top: 12px; right: 12px;
  font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--red); padding: 2px 8px;
  background: var(--red-glow-soft); border-radius: 100px; border: 1px solid rgba(232,52,28,0.12);
}

.ip-concept-icon {
  width: 40px; height: 40px; background: var(--red-glow-soft);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--red); border: 1px solid rgba(232,52,28,0.12); transition: all 0.3s; flex-shrink: 0;
}
.ip-concept-card:hover .ip-concept-icon { background: var(--red); color: var(--white); }

.ip-concept-name { font-size: 0.82rem; font-weight: 700; color: var(--charcoal); line-height: 1.3; letter-spacing: -0.01em; }
.ip-concept-note { font-size: 0.73rem; color: var(--gray); line-height: 1.55; flex: 1; }

.ip-concept-progress { margin-top: auto; }
.ip-concept-progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.6rem; font-weight: 600; color: var(--gray-light);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px;
}
.ip-concept-track { height: 3px; background: var(--border); border-radius: 100px; overflow: hidden; }
.ip-concept-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transition: width 1.6s cubic-bezier(0.25,1,0.5,1); width: 0%;
}

/* ── CTA row ── */
.ip-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.ip-notify-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 0.9rem; font-weight: 600; color: var(--charcoal);
  background: var(--white); transition: all 0.3s var(--ease);
  cursor: pointer; font-family: var(--font); text-decoration: none;
}
.ip-notify-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: 0 8px 24px var(--red-glow-soft); }

.ip-microcopy { width: 100%; font-size: 0.75rem; color: var(--gray-light); text-align: center; margin-top: -12px; letter-spacing: 0.02em; }

/* ── Entrance animation ── */
.ip-animate-in { animation: ipEntrance 0.55s cubic-bezier(0.25,1,0.5,1) forwards; }
@keyframes ipEntrance {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* ──────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .pfp-grid { grid-template-columns: repeat(2, 1fr); }
  .pfp-card.pfp-featured { grid-column: span 2; }
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
  .ip-concepts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .port-intro-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-concepts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .pfp-grid { grid-template-columns: repeat(2, 1fr); }
  .pfp-card.pfp-featured { grid-column: span 2; }
  .fi-img-wrap { min-height: 300px; }
  .fi-content { padding: 36px 32px; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .port-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .port-intro-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-concepts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .port-intro-section, .pf-section, .featured-section, .industries-section { padding: 80px 0; }
  .pfp-grid { grid-template-columns: 1fr; }
  .pfp-card.pfp-featured { grid-column: span 1; }
  .pfp-card.pfp-featured .pfp-img-wrap { height: 240px; }
  .fi-img-wrap { min-height: 240px; }
  .fi-content { padding: 32px 24px; }
  .fi-metrics { gap: 20px; flex-wrap: wrap; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .port-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .port-intro-grid { grid-template-columns: repeat(2, 1fr); }
  .innovation-pipeline { padding: 48px 24px 44px; gap: 36px; }
  .ip-concepts-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-headline { font-size: 1.4rem; }
}

@media (max-width: 576px) {
  .pfp-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .port-intro-grid { grid-template-columns: 1fr 1fr; }
  .port-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .fi-content { padding: 24px 20px; }
  .fi-actions { flex-direction: column; align-items: flex-start; }
  .innovation-pipeline { padding: 36px 16px 36px; }
  .ip-concepts-grid { grid-template-columns: 1fr; }
  .ip-cta { flex-direction: column; align-items: stretch; }
  .ip-notify-btn { justify-content: center; }
  .ip-roadmap { padding: 18px 16px; }
}
/* ============================================================
   PORTFOLIO PAGE END
   ============================================================ */



   /* ============================================================
   CASE STUDY TEMPLATE START
   ============================================================ */


/* ──────────────────────────────────────────────────────────
   1. HERO ENHANCEMENTS
   ────────────────────────────────────────────────────────── */

/* Slightly taller banner for case studies */
.cs-hero { min-height: 75vh; }

/* Category tags above the title */
.cs-hero-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.cs-cat-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(232,52,28,0.15);
  border: 1px solid rgba(232,52,28,0.3);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.cs-cat-divider {
  color: rgba(255,255,255,0.3);
  font-size: 1rem;
}

/* KPI trust strip inside hero — inherits .page-banner-trust styles,
   only adds a top border line to visually separate */
.cs-hero-kpis {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 8px;
}


/* ──────────────────────────────────────────────────────────
   2. PROJECT SNAPSHOT BAR
   ────────────────────────────────────────────────────────── */
.cs-snapshot-section {
  padding: 0;
  background: var(--white);
  position: relative;
  z-index: 10;
}

.cs-snapshot-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  transform: translateY(-40px);
  overflow: hidden;
}

.cs-meta-item {
  flex: 1;
  min-width: 120px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.25s;
}
.cs-meta-item:hover { background: var(--off-white); }

.cs-meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-light);
}
.cs-meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
}

.cs-meta-sep {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
  align-self: center;
}


/* ──────────────────────────────────────────────────────────
   3. PROJECT OVERVIEW
   ────────────────────────────────────────────────────────── */
.cs-overview-section {
  padding: 80px 0 120px;   /* reduced top because snapshot bar has neg. margin */
  background: var(--white);
}

/* Business goals list */
.cs-goals {
  margin-top: 32px;
  padding: 28px 28px 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
}
.cs-goals-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 14px;
}
.cs-goals-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-goals-list li {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.cs-goals-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.6;
}

/* Objectives sticky card */
.cs-objectives-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px 28px;
  position: sticky;
  top: 100px;
}

.cs-obj-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cs-obj-icon {
  width: 36px; height: 36px;
  background: var(--red-glow-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  border: 1px solid rgba(232,52,28,0.12);
}
.cs-obj-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

.cs-obj-list {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: obj-counter;
}
.cs-obj-list li {
  font-size: 0.855rem;
  color: var(--gray);
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
  counter-increment: obj-counter;
}
.cs-obj-list li::before {
  content: counter(obj-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
}

.cs-deliverables {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.cs-deliverable-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-light);
  display: block;
  margin-bottom: 10px;
}
.cs-deliverable-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cs-deliverable-pills span {
  padding: 4px 12px;
  background: var(--white);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--charcoal);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.cs-deliverable-pills span:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}


/* ──────────────────────────────────────────────────────────
   4. CHALLENGE SECTION
   ────────────────────────────────────────────────────────── */
.cs-challenge-section {
  padding: 120px 0;
  background: var(--off-white);
}

/* 2×2 pain point grid */
.cs-pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cs-pain-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.35s var(--ease);
  overflow: hidden;
}
.cs-pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.cs-pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: rgba(232,52,28,0.12);
}
.cs-pain-card:hover::before { transform: scaleX(1); }

.cs-pain-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(232,52,28,0.1);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.cs-pain-card:hover .cs-pain-num { color: rgba(232,52,28,0.2); }
.cs-pain-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cs-pain-card p {
  font-size: 0.845rem;
  color: var(--gray);
  line-height: 1.65;
  margin: 0;
}


/* ──────────────────────────────────────────────────────────
   5. SOLUTION BLOCKS
   ────────────────────────────────────────────────────────── */
/* Reuses .image-content-section from style.css.
   .cs-solution-block only adds a thin section divider */
.cs-solution-block {
  padding: 100px 0;
}
.cs-solution-block + .cs-solution-block {
  border-top: 1px solid var(--border);
}


/* ──────────────────────────────────────────────────────────
   6. PROJECT GALLERY
   ────────────────────────────────────────────────────────── */
.cs-gallery-section {
  padding: 120px 0;
  background: var(--charcoal);
}
/* Override section-header colours on dark background */
.cs-gallery-section .section-eyebrow { color: rgba(255,255,255,0.55); }
.cs-gallery-section .section-eyebrow::before { background: rgba(255,255,255,0.55); }
.cs-gallery-section .section-heading { color: var(--white); }
.cs-gallery-section .section-sub { color: rgba(255,255,255,0.45); }

/* Masonry-style 3-column grid */
.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

/* Large item spans 2 columns, 2 rows */
.pg-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.pg-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 420px;
}
.pg-item:not(.pg-large) { min-height: 195px; }

.pg-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease);
}
.pg-item:hover img { transform: scale(1.06); }

.pg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.75) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.pg-item:hover .pg-overlay { opacity: 1; }

.pg-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}


/* ──────────────────────────────────────────────────────────
   7. TECHNOLOGY STACK  — modifier only
   ────────────────────────────────────────────────────────── */
/* Reuses .tech-section, .tech-categories, .tech-cat, .tech-pill
   Only adjusts background for alternating contrast */
.cs-tech-section {
  background: var(--white);
}


/* ──────────────────────────────────────────────────────────
   8. KEY FEATURES
   ────────────────────────────────────────────────────────── */
.cs-features-section {
  padding: 120px 0;
  background: var(--off-white);
}

.cs-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Reuses .sc-icon from style.css service-card system */
.cs-feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.cs-feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.cs-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.09);
  border-color: rgba(232,52,28,0.12);
}
.cs-feature-card:hover::after { transform: scaleX(1); }
.cs-feature-card:hover .sc-icon {
  background: var(--red);
  color: var(--white);
}
.cs-feature-card h4 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 14px 0 10px;
  letter-spacing: -0.02em;
}
.cs-feature-card p {
  font-size: 0.855rem;
  color: var(--gray);
  line-height: 1.68;
  margin: 0;
}


/* ──────────────────────────────────────────────────────────
   9. PROJECT PROCESS TIMELINE
   ────────────────────────────────────────────────────────── */
.cs-process-section {
  background: var(--white);
}

/* Vertical spine timeline (replaces the grid layout for this page) */
.cs-process-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.cs-process-spine {
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red) 0%, var(--border) 100%);
  border-radius: 2px;
}

.cs-process-step {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}
.cs-process-step:last-child { margin-bottom: 0; }

/* Dot on the spine */
.cs-ps-marker {
  flex-shrink: 0;
  width: 42px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
  position: relative;
  z-index: 2;
}
.cs-ps-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--border);
  transition: all 0.3s var(--ease);
}
.cs-process-step:hover .cs-ps-dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 6px var(--red-glow-soft);
}
.cs-ps-marker-last .cs-ps-dot {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 6px var(--red-glow-soft);
}

/* Step content */
.cs-ps-content {
  flex: 1;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.cs-process-step:hover .cs-ps-content {
  border-color: rgba(232,52,28,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.cs-ps-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.cs-ps-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.cs-ps-content p {
  font-size: 0.87rem;
  color: var(--gray);
  line-height: 1.68;
  margin: 0 0 12px;
}
.cs-ps-duration {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  padding: 3px 10px;
  background: var(--red-glow-soft);
  border-radius: 100px;
  border: 1px solid rgba(232,52,28,0.12);
}


/* ──────────────────────────────────────────────────────────
   10. RESULTS — modifier only
   ────────────────────────────────────────────────────────── */
/* Reuses .stats-section + .stats-grid + .astat system entirely.
   Only adds header margin and grid column override */
.cs-results-section { padding: 100px 0; }
.cs-results-header { margin-bottom: 52px; }
.cs-results-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}


/* ──────────────────────────────────────────────────────────
   11. CLIENT TESTIMONIAL
   ────────────────────────────────────────────────────────── */
.cs-testimonial-section {
  padding: 120px 0;
  background: var(--off-white);
}

.cs-testi-block {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 64px;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 8px 48px rgba(0,0,0,0.05);
  text-align: center;
  transition: box-shadow 0.35s var(--ease);
}
.cs-testi-block:hover { box-shadow: var(--shadow-strong); }

.cs-testi-quote-mark {
  font-size: 8rem;
  line-height: 0.7;
  color: rgba(232,52,28,0.08);
  font-weight: 900;
  position: absolute;
  top: 32px; left: 48px;
  pointer-events: none;
  font-family: Georgia, serif;
}

.cs-testi-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.8;
  margin: 0 0 40px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.cs-testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.cs-testi-author img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(232,52,28,0.2);
}
.cs-testi-author-info { text-align: left; }
.cs-testi-name {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.cs-testi-role {
  font-size: 0.8rem;
  color: var(--gray);
}
.cs-testi-company {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin-top: 2px;
}
.cs-testi-stars {
  font-size: 1rem;
  color: var(--red);
  letter-spacing: 2px;
  margin-left: auto;
}


/* ──────────────────────────────────────────────────────────
   12. RELATED PROJECTS
   ────────────────────────────────────────────────────────── */
.cs-related-section {
  padding: 120px 0;
  background: var(--white);
}

.cs-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* Reuses .pfp-card, .pfp-img-wrap, .pfp-info, .pfp-overlay etc.
   from portfolio.css — no duplication needed */


/* ──────────────────────────────────────────────────────────
   13. PROJECT NAVIGATION
   ────────────────────────────────────────────────────────── */
.cs-nav-section {
  padding: 60px 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}

.cs-project-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.cs-nav-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
  text-decoration: none;
}
.cs-nav-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px var(--red-glow-soft);
  transform: translateY(-3px);
}

.cs-nav-next { flex-direction: row-reverse; }
.cs-nav-text { display: flex; flex-direction: column; gap: 3px; }
.cs-nav-text-right { text-align: right; }

.cs-nav-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.cs-nav-card:hover .cs-nav-arrow {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.cs-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-light);
}
.cs-nav-cat {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 600;
}
.cs-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.cs-nav-all {
  display: flex;
  justify-content: center;
}
.cs-nav-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.cs-nav-all-btn:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}


/* ──────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cs-features-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-related-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .cs-snapshot-bar { flex-wrap: wrap; transform: translateY(-24px); }
  .cs-meta-item    { min-width: calc(33.333% - 1px); }
  .cs-meta-sep:nth-child(4),
  .cs-meta-sep:nth-child(8) { display: none; }

  .cs-pain-grid    { grid-template-columns: repeat(2, 1fr); }
  .cs-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-large        { grid-column: span 2; grid-row: span 1; min-height: 280px; }
  .cs-results-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cs-features-grid{ grid-template-columns: repeat(2, 1fr); }
  .cs-related-grid { grid-template-columns: repeat(2, 1fr); }

  .cs-project-nav  { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .cs-nav-all      { grid-column: span 2; order: -1; }

  .cs-testi-block  { padding: 44px 36px; }
  .cs-testi-text   { font-size: 1.05rem; }

  .cs-objectives-card { position: static; }
}

@media (max-width: 768px) {
  .cs-hero { min-height: auto; padding-bottom: 64px; }
  .cs-snapshot-bar { transform: translateY(-16px); }
  .cs-meta-item    { min-width: calc(50% - 1px); }
  .cs-meta-sep     { display: none; }
  .cs-meta-item    { border-bottom: 1px solid var(--border); }
  .cs-meta-item:nth-last-child(-n+2) { border-bottom: none; }

  .cs-pain-grid    { grid-template-columns: 1fr; }
  .cs-gallery-grid { grid-template-columns: 1fr; }
  .pg-large        { grid-column: span 1; }
  .cs-features-grid{ grid-template-columns: 1fr; }
  .cs-related-grid { grid-template-columns: 1fr; }
  .cs-results-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .cs-process-spine { left: 14px; }
  .cs-ps-marker    { width: 30px; }

  .cs-project-nav  { grid-template-columns: 1fr; }
  .cs-nav-all      { grid-column: span 1; }
  .cs-nav-next     { flex-direction: row; }
  .cs-nav-text-right { text-align: left; }

  .cs-testi-block  { padding: 36px 24px; }
  .cs-testi-author { flex-direction: column; text-align: center; }
  .cs-testi-author-info { text-align: center; }
  .cs-testi-stars  { margin: 0 auto; }
  .cs-testi-quote-mark { font-size: 5rem; top: 20px; left: 24px; }
}

@media (max-width: 576px) {
  .cs-snapshot-bar  { transform: translateY(-12px); }
  .cs-meta-item     { min-width: 100%; border-right: none !important; }
  .cs-results-grid  { grid-template-columns: repeat(2, 1fr) !important; }
  .cs-hero-cat      { flex-wrap: wrap; }
  .cs-testi-text    { font-size: 1rem; }
}

/* ============================================================
   CASE STUDY TEMPLATE END
   ============================================================ */

   /* ============================================================
   CONTACT PAGE START
   MazoSoft — contact.css
   Only NEW classes not present in style.css
   ============================================================ */


/* ──────────────────────────────────────────────────────────
   2. CONTACT INTRO — modifier only
   Reuses .image-content-section — only suppresses top padding
   to keep visual rhythm tighter after the banner
   ────────────────────────────────────────────────────────── */
.ct-intro-section { padding-top: 100px; }


/* ──────────────────────────────────────────────────────────
   3. CONTACT INFORMATION CARDS
   ────────────────────────────────────────────────────────── */
.ct-info-section {
  padding: 80px 0;
  background: var(--white);
}

.ct-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ct-info-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.ct-info-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.ct-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.1);
  border-color: rgba(232,52,28,0.12);
}
.ct-info-card:hover::after { transform: scaleX(1); }

/* Accent card (email — red background) */
.ct-info-card-accent {
  background: var(--red);
  border-color: var(--red-dark);
  color: var(--white);
}
.ct-info-card-accent::after { background: rgba(255,255,255,0.4); }
.ct-info-card-accent:hover { box-shadow: 0 20px 56px rgba(232,52,28,0.35); border-color: var(--red-dark); }
.ct-info-card-accent .ct-info-icon-wrap { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); color: var(--white); }
.ct-info-card-accent .ct-info-label { color: rgba(255,255,255,0.7); }
.ct-info-card-accent .ct-info-val   { color: var(--white); }
.ct-info-card-accent .ct-info-sub   { color: rgba(255,255,255,0.65); }

/* Icon */
.ct-info-icon-wrap {
  width: 48px; height: 48px;
  background: var(--red-glow-soft);
  border: 1px solid rgba(232,52,28,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 10px;
  transition: all 0.3s;
  flex-shrink: 0;
}
.ct-info-card:not(.ct-info-card-accent):hover .ct-info-icon-wrap {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.ct-info-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-light);
}
.ct-info-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 2px;
}
.ct-info-sub {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.5;
  margin-top: 2px;
  flex: 1;
}

/* CTA link inside card */
.ct-info-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin-top: 12px;
  text-decoration: none;
  transition: gap 0.2s;
}
.ct-info-link:hover { gap: 8px; color: var(--red-dark); }
.ct-info-link-white { color: rgba(255,255,255,0.9); }
.ct-info-link-white:hover { color: var(--white); gap: 8px; }

/* "Open Now" badge */
.ct-hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #198754;
  padding: 4px 12px;
  background: rgba(25,135,84,0.08);
  border-radius: 100px;
  border: 1px solid rgba(25,135,84,0.15);
  width: fit-content;
}
.ct-hours-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #198754;
  animation: pulse 2s infinite;
}


/* ──────────────────────────────────────────────────────────
   4. ENTERPRISE INQUIRY FORM
   ────────────────────────────────────────────────────────── */
.ct-form-section {
  padding: 120px 0;
  background: var(--off-white);
}

/* Trust list */
.ct-form-trust {
  margin: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ct-form-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
}
.ct-form-trust-item svg {
  flex-shrink: 0;
  color: var(--red);
  background: var(--red-glow-soft);
  border-radius: 50%;
  padding: 3px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(232,52,28,0.12);
}

/* Social proof row */
.ct-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.ct-sp-avatars {
  display: flex;
}
.ct-sp-avatars img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  margin-left: -8px;
}
.ct-sp-avatars img:first-child { margin-left: 0; }
.ct-sp-num {
  font-weight: 800;
  color: var(--charcoal);
  font-size: 0.95rem;
}
.ct-sp-text {
  font-size: 0.82rem;
  color: var(--gray);
}
.ct-sp-stars {
  font-size: 0.72rem;
  color: var(--red);
  margin-top: 2px;
}
.ct-sp-stars span { color: var(--gray); }

/* Form card chrome */
.ct-enterprise-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.06);
}

/* MacOS-style header bar */
.ct-form-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.ct-fh-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ct-fh-dot-red    { background: #ff5f57; }
.ct-fh-dot-yellow { background: #febc2e; }
.ct-fh-dot-green  { background: #28c840; }
.ct-fh-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.06em;
  margin-left: 6px;
}

.ct-form-body { padding: 36px; }

/* Select arrow — positions absolutely over the select */
.ct-select-wrap { position: relative; }
.ct-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray);
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}
.ct-select-wrap select:focus ~ .ct-select-arrow { color: var(--red); }

/* Required asterisk */
.req { color: var(--red); margin-left: 2px; }

/* Field-level error message */
.ct-field-err {
  display: none;
  font-size: 0.72rem;
  color: #dc3545;
  font-weight: 500;
  padding: 4px 2px 0;
}
.form-floating-custom.is-invalid .ct-field-err { display: block; }
.form-floating-custom.is-invalid input,
.form-floating-custom.is-invalid select,
.form-floating-custom.is-invalid textarea {
  border-color: #dc3545;
}
.form-floating-custom.is-valid input,
.form-floating-custom.is-valid select,
.form-floating-custom.is-valid textarea {
  border-color: #198754;
}

/* Submit button overrides — extends .btn-submit from style.css */
.ct-submit-btn {
  position: relative;
  overflow: hidden;
}
.ct-submit-btn.loading .ct-btn-text,
.ct-submit-btn.loading .ct-btn-icon { opacity: 0; }
.ct-submit-btn.loading { pointer-events: none; }
.ct-btn-loader {
  display: none;
  position: absolute;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.ct-submit-btn.loading .ct-btn-loader { display: block; }
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Privacy note below submit */
.ct-form-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 12px;
  margin-bottom: 0;
}
.ct-form-privacy svg { flex-shrink: 0; color: var(--gray-light); }

/* Form success state */
.ct-form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 36px;
  text-align: center;
}
.ct-form-success.visible { display: flex; }
.ct-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(25,135,84,0.1);
  border: 2px solid rgba(25,135,84,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #198754;
}
.ct-form-success h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin: 0;
}
.ct-form-success p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 380px;
  margin: 0;
}


/* ──────────────────────────────────────────────────────────
   5. WHY CONTACT MAZOSOFT — modifier only
   Extends existing .why-section + .why-grid
   ────────────────────────────────────────────────────────── */
.ct-why-section { padding-top: 120px; padding-bottom: 120px; }

/* Override grid to 3 cols (why-section default is 2) */
.ct-why-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}


/* ──────────────────────────────────────────────────────────
   6. GLOBAL PRESENCE — modifier only
   Extends existing .stats-section + .stats-grid + .astat
   ────────────────────────────────────────────────────────── */
.ct-stats-section { padding: 80px 0; }
.ct-stats-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}


/* ──────────────────────────────────────────────────────────
   7. FAQ ACCORDION
   ────────────────────────────────────────────────────────── */
.ct-faq-section {
  padding: 120px 0;
  background: var(--white);
}

.ct-faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ct-faq-item {
  border-bottom: 1px solid var(--border);
}
.ct-faq-item:first-child { border-top: 1px solid var(--border); }

.ct-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
}
.ct-faq-trigger span:first-child {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
  transition: color 0.25s;
}
.ct-faq-trigger:hover span:first-child,
.ct-faq-trigger[aria-expanded="true"] span:first-child { color: var(--red); }

.ct-faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.3s var(--ease);
}
.ct-faq-trigger:hover .ct-faq-icon,
.ct-faq-trigger[aria-expanded="true"] .ct-faq-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.ct-faq-trigger[aria-expanded="true"] .ct-faq-icon svg {
  transform: rotate(180deg);
}
.ct-faq-icon svg { transition: transform 0.35s var(--ease); }

.ct-faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease), padding 0.35s var(--ease);
}
.ct-faq-body.open { max-height: 400px; }
.ct-faq-body p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.78;
  padding-bottom: 22px;
  margin: 0;
}


/* ──────────────────────────────────────────────────────────
   8. MAP SECTION
   ────────────────────────────────────────────────────────── */
.ct-map-section {
  padding: 0 0 120px;
  background: var(--off-white);
}
/* The section-header above the map needs its own top padding */
.ct-map-section .section-header { padding-top: 120px; }

.ct-map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}
.ct-map-wrap iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: none;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.4s;
}
.ct-map-wrap:hover iframe { filter: grayscale(0%) contrast(1); }

/* Floating info card over the map */
.ct-map-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border);
  pointer-events: none;
}
.ct-map-card-icon {
  width: 36px; height: 36px;
  background: var(--red-glow-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  border: 1px solid rgba(232,52,28,0.12);
}
.ct-map-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.ct-map-card-addr {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.45;
}


/* ──────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ct-info-grid    { grid-template-columns: repeat(2, 1fr); }
  .ct-why-grid     { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 992px) {
  .ct-info-grid    { grid-template-columns: repeat(2, 1fr); }
  .ct-stats-grid   { grid-template-columns: repeat(2, 1fr) !important; }
  .ct-form-body    { padding: 28px 24px; }
  .ct-map-wrap iframe { height: 380px; }
}

@media (max-width: 768px) {
  .ct-info-section  { padding-bottom: 80px; }
  .ct-form-section,
  .ct-faq-section,
  .ct-why-section   { padding: 80px 0; }

  .ct-info-grid     { grid-template-columns: 1fr; }
  .ct-why-grid      { grid-template-columns: 1fr !important; }
  .ct-stats-grid    { grid-template-columns: repeat(2, 1fr) !important; }

  .ct-form-body     { padding: 24px 20px; }
  .ct-map-wrap iframe { height: 300px; }
  .ct-map-card      { bottom: 16px; left: 16px; right: 16px; flex-direction: row; }

  .ct-social-proof  { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 576px) {
  .ct-stats-grid    { grid-template-columns: repeat(2, 1fr) !important; }
  .ct-form-body     { padding: 20px 16px; }
  .ct-faq-trigger span:first-child { font-size: 0.9rem; }
}

/* ============================================================
   CONTACT PAGE END
   ============================================================ */