/* ==========================================================================
   MEERAJ OFFICIAL STYLESHEET
   Typography: Simple Gothic Regular / EB Garamond (Headings) + Inter (Body)
   Layout: Refined, classical, high-contrast editorial aesthetic
   ========================================================================== */

/* ========== RESET & VARIABLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #11151a;
  --navy-2: #0a0d11;
  --steel-blue: #244b70;
  --light-blue: #407cb5;
  --soft-blue: #a8c8e8;
  --accent-glow: rgba(44, 95, 138, 0.22);
  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.1);
  --bg-light: #fbf9f5;
  --bg-cream: #f4f0e8;
  --white: #ffffff;
  --charcoal: #181a1e;
  --charcoal-black: #0e1116;
  --charcoal-gradient: linear-gradient(135deg, #181c22 0%, #0d1014 100%);
  --gray-text: #4a525d;
  --gray-muted: #64748b;
  --shadow-sm: 0 4px 16px rgba(17, 21, 26, 0.05);
  --shadow-md: 0 10px 30px rgba(17, 21, 26, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 21, 26, 0.13);
  --border-light: 1.5px solid rgba(44, 95, 138, 0.16);
  --border-card: 1.5px solid rgba(44, 95, 138, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
  --transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  --font-serif: 'Simple Gothic', 'Simple Gothic Regular', 'EB Garamond', 'Cormorant Garamond', Garamond, 'Cinzel', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-light);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ========== TYPOGRAPHY HIERARCHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1.15;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 3.8vw, 46px);
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 14px;
}

p {
  color: var(--gray-text);
  font-size: 17px;
  line-height: 1.6;
  max-width: 72ch;
  margin-bottom: 16px;
  text-align: left;
}

.text-gradient {
  background: linear-gradient(135deg, var(--steel-blue), var(--light-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-light {
  background: linear-gradient(135deg, var(--soft-blue), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== SECTION SPACING & ALIGNMENT ========== */
.section {
  padding: 104px 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
}

.section-header h2 {
  text-align: center;
  margin-bottom: 20px;
}

.section-header p {
  text-align: center;
  margin: 0 auto;
  max-width: 65ch;
  font-size: 1.15rem;
  line-height: 1.6;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-blue);
  background: rgba(44, 95, 138, 0.08);
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.page-hero {
  text-align: center;
  padding: 80px 0 36px;
}

.page-hero h2 {
  text-align: center;
  margin-bottom: 16px;
}

.page-hero p {
  text-align: center;
  margin: 0 auto;
  max-width: 65ch;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Ensure left alignment on body paragraphs in content cards */
.hero-content p,
.card p,
.service-card p,
.why-card p,
.diagnostic-card p,
.portfolio-card p,
.testimonial-card p,
.contact-layout p,
.contact-actions-card p,
.form-header p {
  text-align: left;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--steel-blue);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #161b22, #2c5f8a);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(18, 20, 23, 0.22);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(18, 20, 23, 0.32);
  background: linear-gradient(135deg, #1f2732, #3673a8);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(44, 95, 138, 0.3);
}

.btn-outline:hover {
  border-color: var(--steel-blue);
  background: rgba(44, 95, 138, 0.08);
  transform: translateY(-3px);
  color: var(--steel-blue);
}

.btn-light {
  background: #ffffff;
  color: var(--navy) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  background: #fbf9f5;
}

.btn-sm {
  padding: 12px 24px;
  font-size: 0.92rem;
}

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 249, 245, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(44, 95, 138, 0.12);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(251, 249, 245, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo img {
  height: 54px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--charcoal);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--steel-blue), var(--light-blue));
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--steel-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-channels {
  display: flex;
  align-items: center;
  gap: 8px;
}

.round-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  cursor: pointer;
  border: none;
}

.round-contact-btn svg {
  display: block;
}

.round-contact-btn.btn-wa-round {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}

.round-contact-btn.btn-wa-round:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.round-contact-btn.btn-gmail-round {
  background: #ffffff;
  border: 1.5px solid rgba(44, 95, 138, 0.2);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.round-contact-btn.btn-gmail-round:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(66, 133, 244, 0.28);
  border-color: #4285f4;
}

.nav-channels .round-contact-btn {
  width: 34px;
  height: 34px;
}

.hero-channels {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(44, 95, 138, 0.18);
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(18, 20, 23, 0.05);
}

.hero-channels-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0b1a2e;
}

.hero-channels .round-contact-btn {
  width: 36px;
  height: 36px;
}

.nav-cta {
  margin-left: 8px;
}

.nav-cta .btn {
  padding: 11px 26px;
  font-size: 0.92rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 4px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 82px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  padding: 32px 24px;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid rgba(44, 95, 138, 0.12);
  box-shadow: var(--shadow-md);
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 10px 0;
  color: var(--navy);
  border-bottom: 1px solid rgba(44, 95, 138, 0.06);
}

.mobile-menu .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-subheadline {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: var(--steel-blue);
  margin-bottom: 16px;
  line-height: 1.35;
}

.hero-description {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--gray-text);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-hero {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.hero-trust-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--gray-text);
  font-weight: 600;
}

.hero-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.word-cycle {
  display: inline-grid;
  position: relative;
  vertical-align: bottom;
  line-height: 1.2;
}

.word-cycle span {
  grid-area: 1 / 1;
  display: inline-block;
  animation: wordFade 9s infinite;
  opacity: 0;
  white-space: nowrap;
}

.word-cycle span:nth-child(1) { animation-delay: 0s; }
.word-cycle span:nth-child(2) { animation-delay: 3s; }
.word-cycle span:nth-child(3) { animation-delay: 6s; }

@keyframes wordFade {
  0%, 25% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-8px); }
}

.hero-visual {
  position: relative;
  height: 460px;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff, #eef5fc);
  border: var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.arch-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(44, 95, 138, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(44, 95, 138, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.arch-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 155, 213, 0.25), transparent 70%);
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.arch-svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.arch-node {
  cursor: pointer;
  transition: var(--transition);
}

.arch-node:hover rect {
  stroke: var(--light-blue);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(91, 155, 213, 0.6));
}

/* ========== STATS & TECH STRIP ========== */
.stats-strip {
  padding: 32px 0;
  background: var(--white);
  border-top: 1px solid rgba(44, 95, 138, 0.1);
  border-bottom: 1px solid rgba(44, 95, 138, 0.1);
}

.tech-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tech-strip-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--steel-blue);
  text-transform: uppercase;
}

.tech-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.tech-pill {
  padding: 6px 16px;
  background: var(--bg-light);
  border: 1px solid rgba(44, 95, 138, 0.14);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: var(--transition);
}

.tech-pill:hover {
  border-color: var(--steel-blue);
  background: rgba(44, 95, 138, 0.08);
  transform: translateY(-2px);
}

/* ========== DIAGNOSTIC CARDS (WHAT'S GETTING IN YOUR WAY) ========== */
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.diagnostic-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: var(--border-card);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.diagnostic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--steel-blue);
}

.diagnostic-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-blue);
  background: rgba(44, 95, 138, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.diagnostic-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(44, 95, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--steel-blue);
  margin-bottom: 20px;
}

.diagnostic-card h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.diagnostic-card p {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
  text-align: left;
}

.diagnostic-action {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--steel-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.diagnostic-card:hover .diagnostic-action {
  gap: 12px;
  color: var(--light-blue);
}

/* ========== WHY CHOOSE US (SHOWCASE) ========== */
.why-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  display: flex;
  gap: 22px;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 36px 32px;
  border: var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  align-items: flex-start;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--steel-blue);
}

.why-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(44, 95, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--steel-blue);
  flex-shrink: 0;
}

.why-body {
  flex: 1;
}

.why-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.why-header h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0;
}

.why-proof-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #059669;
  background: var(--emerald-bg);
  padding: 4px 12px;
  border-radius: 20px;
}

.why-proof {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* ========== PROBLEMS FILTER TABS & CARDS ========== */
.problems-filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: 40px;
  border: 1.5px solid rgba(44, 95, 138, 0.2);
  background: #ffffff;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--steel-blue);
  background: rgba(44, 95, 138, 0.06);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, #161b22, #2c5f8a);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(18, 20, 23, 0.25);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 36px 32px;
  border: var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--steel-blue);
}

.problem-category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-blue);
  background: rgba(44, 95, 138, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.service-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(44, 95, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--steel-blue);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.service-card p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 0;
  flex: 1;
  text-align: left;
}

.card-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--steel-blue);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 6px 0 16px;
  cursor: pointer;
  padding: 6px 0;
  transition: var(--transition);
  align-self: flex-start;
}

.card-expand-btn:hover {
  color: var(--light-blue);
}

.card-expand-btn .chevron-icon {
  transition: transform 0.3s ease;
}

.service-card.expanded .card-expand-btn .chevron-icon {
  transform: rotate(180deg);
}

.service-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  border-top: 1px dashed rgba(44, 95, 138, 0.18);
  padding-top: 0;
}

.service-card.expanded .service-extra {
  max-height: 500px;
  opacity: 1;
  padding-top: 20px;
}

.service-extra p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--charcoal);
  text-align: left;
}

.service-extra ul {
  padding-left: 0;
  margin-bottom: 24px;
}

.service-extra li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.55;
  text-align: left;
}

.service-extra li i {
  color: var(--emerald);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.problem-deliverables {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed rgba(44, 95, 138, 0.15);
  padding-top: 18px;
  margin-top: auto;
}

.problem-deliverables li {
  font-size: 0.88rem;
  color: var(--charcoal);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  text-align: left;
}

.problem-deliverables li i {
  color: #059669;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 2px;
}

@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(44, 95, 138, 0.4); border-color: var(--steel-blue); }
  50% { box-shadow: 0 0 0 8px rgba(44, 95, 138, 0.2); border-color: var(--steel-blue); }
  100% { box-shadow: 0 0 0 0 rgba(44, 95, 138, 0); }
}

.highlight-pulse {
  animation: highlightPulse 1.8s ease-out;
}

/* ========== SERVICES SHOWCASE SECTION ========== */
.services-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-offering-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: var(--border-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-offering-card:hover {
  transform: translateY(-4px);
  border-color: var(--steel-blue);
  box-shadow: var(--shadow-md);
}

.service-offering-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.service-offering-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(44, 95, 138, 0.08);
  color: var(--steel-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.service-offering-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.service-offering-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 16px;
  flex: 1;
}

.service-offering-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.service-offering-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--steel-blue);
  background: rgba(44, 95, 138, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ========== SOLUTIONS IN ACTION (PORTFOLIO) ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.portfolio-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: var(--border-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.portfolio-client-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(44, 95, 138, 0.12);
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  align-self: flex-start;
}

.portfolio-partnership-banner {
  background: #f0f7ff;
  border-left: 3px solid var(--steel-blue);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--charcoal);
}

.portfolio-partnership-banner i {
  color: var(--steel-blue);
  margin-top: 3px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--steel-blue);
}

.portfolio-mockup {
  height: 290px;
  background: linear-gradient(135deg, #f4f7fb 0%, #e6eff8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 14px;
}

.mockup-window {
  width: 95%;
  height: 92%;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(44, 95, 138, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-bar {
  height: 22px;
  background: #e8f0f8;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  border-bottom: 1px solid rgba(44, 95, 138, 0.08);
}

.mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd6e3;
  display: block;
}

.mockup-bar span:first-child { background: #ff5f56; }
.mockup-bar span:nth-child(2) { background: #ffbd2e; }
.mockup-bar span:nth-child(3) { background: #27c93f; }

.mockup-body {
  flex: 1;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Chat Mockup */
.mockup-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 65%;
}

.chat-bubble {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.chat-bubble.user {
  background: #e8f0f8;
  color: var(--navy);
  align-self: flex-start;
}

.chat-bubble.bot {
  background: #dcf8c6;
  color: #121417;
  align-self: flex-end;
}

.chat-bubble.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 12px;
}

.chat-bubble.typing span {
  width: 5px;
  height: 5px;
  background: #78909c;
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}

.chat-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.mockup-side {
  width: 35%;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-line {
  height: 6px;
  border-radius: 3px;
  background: #e2eaf2;
}

.side-line.w-80 { width: 80%; }
.side-line.w-60 { width: 60%; }

.side-chip {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--steel-blue);
  background: rgba(44, 95, 138, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}

/* Stock Mockup */
.mockup-stock {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stock-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.stock-chart svg {
  width: 100%;
  height: 100%;
}

.stock-ticker {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  padding-top: 6px;
  border-top: 1px solid #eef2f6;
}

.stock-pill {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f0f4f9;
}

.stock-pill .up { color: #059669; }
.stock-pill .down { color: #d9534f; }

/* Blue Messaging Mockup */
.mockup-blue {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blue-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eef2f6;
}

.blue-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--steel-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
}

.blue-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
}

.blue-messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.blue-msg {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  background: #f0f4f9;
  max-width: 85%;
  line-height: 1.4;
}

.blue-msg.sent {
  background: #d8e5f5;
  align-self: flex-end;
}

/* Mobile App Mockup */
.mockup-app {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  height: 100%;
  width: 100%;
}

.app-phone {
  background: #f4f7fb;
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #dbe4ee;
}

.app-notch {
  width: 30%;
  height: 3px;
  background: #cbd6e3;
  border-radius: 2px;
  margin: 0 auto 4px;
}

.app-line {
  height: 4px;
  border-radius: 2px;
  background: #dbe4ee;
}

.app-line.w-70 { width: 70%; }
.app-line.w-50 { width: 50%; }
.app-line.w-90 { width: 90%; }

.app-block {
  flex: 1;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--soft-blue), var(--light-blue));
  min-height: 28px;
}

.portfolio-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-body h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.portfolio-body p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 0;
  flex: 1;
  text-align: left;
}

.card-case-study-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--steel-blue);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-decoration: none;
  transition: var(--transition);
  align-self: flex-start;
}

.card-case-study-btn:hover {
  color: var(--light-blue);
  gap: 12px;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 40px 34px;
  border: var(--border-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--steel-blue);
}

.testimonial-metric {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #059669;
  background: var(--emerald-bg);
  padding: 5px 14px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 20px;
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal);
  font-style: italic;
  margin-bottom: 28px;
  text-align: left;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--steel-blue), var(--light-blue));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.author-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.author-title {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-top: 2px;
}

/* ========== DIAGNOSTIC CALL CTA ========== */
.cta-section {
  padding: 80px 48px;
  border-radius: 28px;
  background: var(--charcoal-gradient);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(34px, 4.2vw, 52px);
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 36px;
  max-width: 680px;
  font-size: 1.15rem;
  line-height: 1.7;
  text-align: center;
}

.cta-section .btn {
  margin-top: 8px;
}

/* ========== CONTACT SECTION LAYOUT ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-actions-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 44px 38px;
  border: var(--border-card);
  box-shadow: var(--shadow-sm);
}

.contact-actions-card h3 {
  font-size: 1.65rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.contact-actions-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
  color: var(--gray-text);
  text-align: left;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  transition: var(--transition);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.btn-whatsapp:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.btn-gmail {
  background: #ffffff;
  color: #0b1a2e !important;
  border: 1.5px solid rgba(44, 95, 138, 0.22);
  font-weight: 700;
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(18, 20, 23, 0.06);
  transition: var(--transition);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.btn-gmail:hover {
  background: #f8fafd;
  border-color: #4285f4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(66, 133, 244, 0.22);
  color: #1a73e8 !important;
}

.contact-meta {
  padding-top: 24px;
  border-top: 1px dashed rgba(44, 95, 138, 0.18);
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  margin-bottom: 14px;
  color: var(--charcoal);
}

.contact-meta-item i {
  color: var(--steel-blue);
  width: 22px;
  font-size: 1.1rem;
}

.contact-meta-item a {
  color: var(--navy);
  font-weight: 600;
}

.contact-meta-item a:hover {
  color: var(--steel-blue);
}

.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 48px 42px;
  border: var(--border-card);
  box-shadow: var(--shadow-md);
}

.form-header {
  margin-bottom: 28px;
}

.form-header h3 {
  font-size: 1.65rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.form-header p {
  font-size: 1rem;
  color: var(--gray-text);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(44, 95, 138, 0.24);
  background: #fbf9f5;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--charcoal);
  transition: var(--transition);
  display: block;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--steel-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(44, 95, 138, 0.12);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.error-message {
  font-size: 0.82rem;
  color: #d32f2f;
  margin-top: 6px;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #d32f2f;
}

.form-group.error .error-message {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  font-size: 1.05rem;
  margin-top: 10px;
}

.form-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-text);
  margin-top: 16px;
  text-align: center;
}

/* ========== MODALS ========== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 26, 46, 0.65);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open {
  display: flex;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 44px;
  max-width: 660px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  border: var(--border-light);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(44, 95, 138, 0.08);
  border: none;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--charcoal);
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(44, 95, 138, 0.16);
  color: var(--navy);
}

.modal-content h3 {
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.modal-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--steel-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.modal-content p {
  text-align: left;
}

.modal-section {
  background: #f4f7fb;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--gray-text);
  text-align: left;
}

.demo-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(240, 185, 90, 0.18);
  color: #a37425;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 40px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portfolio-preview {
  background: #f4f7fb;
  border-radius: 12px;
  padding: 22px;
  margin-top: 18px;
  border: 1px solid rgba(44, 95, 138, 0.1);
}

.portfolio-preview-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--steel-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portfolio-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preview-tile {
  background: #ffffff;
  border-radius: 8px;
  padding: 14px;
  border: 1px solid rgba(44, 95, 138, 0.08);
}

.preview-tile-label {
  font-size: 0.7rem;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.preview-tile-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
}

.preview-tile-value.up { color: #059669; }

/* ========== FOOTER ========== */
.footer {
  background: #11151a;
  color: #fbf9f5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 72px 0 36px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 52px;
  width: auto;
}

.footer h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-contact p {
  font-size: 0.98rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-contact a:hover {
  color: var(--light-blue);
}

.footer-contact i {
  color: var(--light-blue);
  width: 18px;
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 26px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ========== MOBILE STICKY BAR & BACK TO TOP ========== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(44, 95, 138, 0.14);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  gap: 10px;
}

.mobile-sticky-btn {
  flex: 1;
  padding: 11px 12px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px;
}

.mobile-sticky-btn.btn-call {
  background: linear-gradient(135deg, #161b22, #2c5f8a);
  color: #ffffff;
}

.mobile-sticky-btn.btn-wa {
  background: #25d366;
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 990;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--steel-blue);
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-up {
  opacity: 1;
  transform: none;
}

/* ========== RESPONSIVE SYSTEM (MOBILE, TABLET & DESKTOP) ========== */

/* Tablet Landscape & Medium Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero {
    padding: 64px 0 52px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }
  .word-cycle {
    display: block;
    margin: 6px auto 0;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust-badges {
    justify-content: center;
  }
  .hero-visual {
    max-width: 600px;
    height: 380px;
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .diagnostic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .why-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Tablet Portrait & Large Mobile (max-width: 900px) */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Standard Tablets & Phones (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 56px 0;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .section-header h2 {
    font-size: clamp(26px, 5.5vw, 34px);
    margin-bottom: 12px;
  }
  .section-header p {
    font-size: 0.98rem;
    line-height: 1.55;
  }
  .hero {
    padding: 48px 0 32px;
  }
  .hero h1 {
    font-size: clamp(32px, 7.5vw, 44px);
    margin-bottom: 16px;
  }
  .hero-subheadline {
    font-size: clamp(1.05rem, 3.8vw, 1.2rem);
    margin-bottom: 12px;
  }
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .hero-visual {
    height: clamp(260px, 52vw, 340px);
    border-radius: 20px;
  }
  .stat-number {
    font-size: clamp(26px, 5.5vw, 34px);
  }
  .stat-label {
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .diagnostic-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .diagnostic-card {
    padding: 24px 20px;
    border-radius: 14px;
  }
  .why-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .why-card {
    flex-direction: column;
    gap: 14px;
    padding: 24px 20px;
    border-radius: 14px;
  }
  .why-icon-wrap {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  
  /* Responsive category tabs - cleanly wrapped on screen without horizontal overflow */
  .problems-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    gap: 8px;
    padding: 0;
    margin: 0 0 28px;
    width: 100%;
  }
  .problems-filter-tabs .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 30px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .service-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  /* Services We Deliver - Exact desktop card parity on tablet/mobile */
  .services-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .service-offering-card {
    padding: 24px 20px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(44, 95, 138, 0.14);
    box-shadow: 0 2px 8px rgba(18, 20, 23, 0.06);
  }
  .service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  .service-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .card-expand-btn {
    min-height: 44px;
    font-size: 0.95rem;
  }
  .service-extra li {
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .portfolio-card {
    border-radius: 14px;
  }
  .portfolio-mockup {
    height: clamp(220px, 52vw, 280px);
    padding: 12px;
  }
  .portfolio-body {
    padding: 22px 18px;
  }
  .portfolio-body h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  .portfolio-body p {
    font-size: 0.95rem;
    line-height: 1.55;
  }
  
  .testimonial-card {
    padding: 24px 20px;
    border-radius: 14px;
  }
  .testimonial-quote {
    font-size: 0.92rem;
    line-height: 1.55;
  }
  
  .cta-section {
    padding: 44px 20px;
    border-radius: 20px;
  }
  .cta-section h2 {
    font-size: clamp(24px, 5.5vw, 32px);
    margin-bottom: 12px;
  }
  .cta-section p {
    font-size: 0.96rem;
    margin-bottom: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-actions-card,
  .contact-form-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .form-header h3 {
    font-size: 1.4rem;
  }
  
  .modal {
    padding: 14px;
  }
  .modal-content {
    padding: 28px 18px 22px;
    border-radius: 16px;
    max-height: 88vh;
  }
  .modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .portfolio-preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 28px;
  }
}

/* Mobile Phones (max-width: 640px) */
@media (max-width: 640px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-sticky-bar {
    display: flex;
  }
  .back-to-top {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
  .footer {
    padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    font-size: 0.95rem;
  }
  .btn-whatsapp,
  .btn-gmail {
    font-size: clamp(0.85rem, 3.4vw, 0.95rem);
    padding: 13px 14px;
    min-height: 48px;
  }
}

/* Compact Mobile (iPhone SE, Galaxy S25/S26, small phones: max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 36px 0 24px;
  }
  .hero h1 {
    font-size: clamp(26px, 7.5vw, 32px);
    margin-bottom: 12px;
  }
  .hero-subheadline {
    font-size: 0.98rem;
  }
  .hero-description {
    font-size: 0.92rem;
  }
  .hero-trust-badges {
    gap: 6px 12px;
    font-size: 0.78rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
  }
  .stat-number {
    font-size: clamp(22px, 5.5vw, 30px);
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .diagnostic-card,
  .why-card,
  .service-card,
  .portfolio-body,
  .testimonial-card,
  .contact-actions-card,
  .service-offering-card,
  .contact-form-card {
    padding: 22px 18px;
  }
  .problems-filter-tabs {
    padding: 0;
    margin: 0 0 20px;
    gap: 6px;
  }
  .problems-filter-tabs .tab-btn {
    font-size: 0.8rem;
    padding: 7px 12px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 12px 14px;
  }
  .nav-channels .round-contact-btn {
    width: 32px;
    height: 32px;
  }
  .nav-channels .round-contact-btn svg {
    width: 16px;
    height: 16px;
  }
  .mobile-sticky-btn {
    font-size: 0.84rem;
    padding: 10px 8px;
  }
  .mobile-sticky-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Ultra-Compact Screens (max-width: 340px) */
@media (max-width: 340px) {
  .container {
    padding: 0 10px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero-actions .btn {
    font-size: 0.86rem;
    padding: 11px 12px;
  }
  .stat-number {
    font-size: 20px;
  }
  .stat-label {
    font-size: 0.7rem;
  }
  .problems-filter-tabs {
    padding: 0;
    margin: 0 0 16px;
    gap: 6px;
  }
  .mobile-sticky-btn {
    font-size: 0.78rem;
    padding: 8px 4px;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  animation: fadeIn 0.3s ease;
}

