/* ============================================================
   SHRIMAD INC. — MAIN STYLESHEET
   Responsive: 320px → 8K (7680px)
   Fixed: container caps, clamp ranges, grid breakpoints,
          nav overflow, hero glow overflow, footer collapse,
          touch targets, cookie banner, scrollbar on 8K,
          typography scale, form layout, and more.
   ============================================================ */

/* ── TOKENS ── */
:root {
  --blue: #125E9E;
  --blue-dark: #0D2A6E;
  --blue-light: #2BA8D8;
  --blue-pale: #E8F4FC;
  --orange: #B84700;
  --orange-dark: #963500;
  --amber: #D97706;
  --white: #FFFFFF;
  --off-white: #F0F6FC;
  --gray-50: #F8FAFC;
  --gray-100: #EEF2F7;
  --gray-200: #D9E3EE;
  --gray-300: #B8CADA;
  --gray-400: #8AA5BE;
  --gray-500: #5C7D99;
  --gray-600: #3E5A72;
  --gray-700: #2A3F52;
  --gray-800: #1A2A38;
  --gray-900: #0D1A24;
  --text: #0D2A6E;
  --text-body: #2A3F52;
  --text-muted: #5C7D99;
  --border: #D9E3EE;
  --border-light: #EEF2F7;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 3px rgba(13, 42, 110, .07);
  --shadow-sm: 0 2px 8px rgba(13, 42, 110, .09);
  --shadow-md: 0 8px 24px rgba(13, 42, 110, .12);
  --shadow-lg: 0 20px 56px rgba(13, 42, 110, .15);
  --shadow-xl: 0 32px 80px rgba(13, 42, 110, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font-head: 'Raleway', sans-serif;
  --font-body: 'Raleway', sans-serif;
  --font-mono: 'Raleway', sans-serif;
  --nav-h: 72px;

  /*
   * FIX 1 — section padding: old clamp(4rem,8vw,8rem) had no lower
   * breakpoint awareness. On 320px, 8vw = 25.6px which snaps to 4rem
   * minimum but feels cramped. New version uses a tighter minimum.
   * On 8K (7680px) 8vw = 614px which would be absurd — hard cap at 7rem.
   */
  --section-py: clamp(3rem, 6vw, 7rem);
}

/* ── RESET & SMOOTH SCROLL INTEGRATION ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-width: 320px;
}

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

a {
  color: inherit;
  text-decoration: none
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none
}

ul,
ol {
  list-style: none
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit
}

svg {
  display: block
}

/* ── SCROLLBAR ──
   FIX 3 — on 4K/8K monitors a 5px scrollbar is nearly invisible;
   scale it up. Also add scrollbar-width for Firefox.
*/
::-webkit-scrollbar {
  width: clamp(5px, 0.3vw, 10px)
}

::-webkit-scrollbar-track {
  background: var(--gray-100)
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 99px
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--gray-100)
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue-dark);
  color: var(--white);
  padding: .5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 9999;
  transition: top .2s;
}

.skip-link:focus {
  top: 1rem
}

/* ── SELECTION ── */
::selection {
  background: var(--blue);
  color: var(--white)
}

/* ── CONTAINER ──
   FIX 4 — old max-width 1280px left 8K screens with a tiny centred
   strip surrounded by huge white voids. Added a wide-screen tier.
   Also the clamp floor of 1rem was cramping 320px devices — reduced
   to a safe 0.875rem (14px) minimum side padding.
*/
.container {
  max-width: min(1400px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(0.875rem, 4vw, 2.5rem);
}

.container-sm {
  max-width: min(900px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(0.875rem, 4vw, 2.5rem);
}

.container-xs {
  max-width: min(680px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(0.875rem, 4vw, 2.5rem);
}

/* FIX 5 — new wide container for 4K/8K hero/fullwidth sections */
.container-wide {
  max-width: min(1800px, 94vw);
  margin: 0 auto;
  padding: 0 clamp(0.875rem, 3vw, 4rem);
}

/* ── SECTION ── */
.section {
  padding: var(--section-py) 0
}

.section-sm {
  padding: clamp(2rem, 4vw, 4rem) 0
}

.section-bg {
  background: var(--off-white)
}

.section-dark {
  background: var(--blue-dark);
  color: var(--white)
}

.section-blue {
  background: var(--blue);
  color: var(--white)
}

/* ── GRID ──
   FIX 6 — bare .grid-2/.grid-3/.grid-4 had no responsive fallback in
   the base rule. They relied on the 768px breakpoint at the bottom of
   the file but that means at 480–767px they stayed multi-column.
   Changed to use auto-fit with safe min() so they self-collapse.
*/
.grid {
  display: grid;
  gap: 1.5rem
}

/* These are now intrinsically responsive — no breakpoint override needed */
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr))
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr))
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr))
}

/* Keep explicit variants for cases that truly need forced columns */
.grid-2-fixed {
  grid-template-columns: repeat(2, 1fr)
}

.grid-3-fixed {
  grid-template-columns: repeat(3, 1fr)
}

.grid-4-fixed {
  grid-template-columns: repeat(4, 1fr)
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr))
}

.grid-auto-sm {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr))
}

/* ── FLEX ── */
.flex {
  display: flex
}

.flex-col {
  flex-direction: column
}

.items-center {
  align-items: center
}

.items-start {
  align-items: flex-start
}

.justify-center {
  justify-content: center
}

.justify-between {
  justify-content: space-between
}

.gap-1 {
  gap: .5rem
}

.gap-2 {
  gap: 1rem
}

.gap-3 {
  gap: 1.5rem
}

.gap-4 {
  gap: 2rem
}

.flex-wrap {
  flex-wrap: wrap
}

/* ── TYPOGRAPHY ──
   FIX 7 — clamp ranges.
   Old h1: clamp(2.4rem, 5.5vw, 4.5rem)
     • At 320px: 5.5vw = 17.6px → clamp floor 2.4rem (38px) — OK
     • At 8K (7680px): 5.5vw = 422px → clamp cap 4.5rem (72px) — OK
   BUT the 768px override clamp(2rem, 8vw, 3rem) conflicts at 320px:
     8vw of 320px = 25.6px → floor 2rem (32px) — fine, BUT
   the two clamp() calls fight each other. Unified below into a single
   smooth scale from 1.75rem (320px) to 4.5rem (1400px+).

   FIX 8 — removed the duplicate h1/h2 overrides inside @media(max-width:768px)
   since the new single clamp already handles those sizes smoothly.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

/* 320px→28px | 768px→40px | 1400px→72px | 8K→72px (capped) */
h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 3.5rem);
}

/* 320px→25px | 768px→34px | 1400px→48px */
h2 {
  font-size: clamp(1.55rem, 3vw + 0.75rem, 2.5rem);
}

/* 320px→21px | comfortable scale to 1.8rem */
h3 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.8rem);
}

h4 {
  font-size: clamp(1rem, 1.5vw + 0.25rem, 1.35rem)
}

h5 {
  font-size: 1rem;
  font-weight: 700
}

h6 {
  font-size: .9rem;
  font-weight: 700
}

p {
  line-height: 1.75;
  color: var(--text-body)
}

/* FIX 9 — lead text: old clamp(1.05rem,2vw,1.2rem)
   At 320px: 2vw = 6.4px → floor 1.05rem. Fine.
   At 8K: 2vw = 153px → cap 1.2rem. Fine but the range is very narrow.
   Slightly widened so it reads comfortably on larger screens too. */
.lead {
  font-size: clamp(1rem, 1.25vw + 0.5rem, 1rem);
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.5rem;
}

.label {
  font-family: var(--font-mono);
  /* FIX 10 — fixed 11.5px is illegibly tiny on 320px devices.
     Use clamp with px values for label (doesn't need rem scaling). */
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
}

.label-blue {
  color: var(--blue-light)
}

.text-center {
  text-align: center
}

.text-white {
  color: var(--white) !important
}

.text-muted {
  color: var(--text-muted)
}

.text-orange {
  color: var(--orange)
}

.text-blue {
  color: var(--blue)
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: clamp(2rem, 2vw, 4rem)
}

.section-header .label {
  display: inline-block;
}

.section-header .lead {
  max-width: 620px
}

.section-header.center {
  text-align: center
}

.section-header.center .lead {
  margin: 0 auto
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  /* FIX 11 — fixed 12.5px badge text on 320px is OK, but add a min */
  padding: .3rem .85rem;
  border-radius: var(--radius-full);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
}

.badge-blue {
  background: var(--blue-pale);
  color: var(--blue)
}

.badge-orange {
  background: #FEF3E2;
  color: var(--orange-dark)
}

.badge-green {
  background: #E6F9F0;
  color: #0D7A4E
}

.badge-gray {
  background: var(--gray-100);
  color: var(--gray-600)
}

/* ── BUTTONS ──
   FIX 12 — white-space:nowrap causes overflow on 320px devices when
   button text is long. Changed to allow wrapping. Also touch targets:
   WCAG requires 44×44px minimum. Added min-height.
*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all .28s var(--ease);
  /* FIX: removed white-space:nowrap to prevent overflow on small screens */
  white-space: normal;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-head);
  /* FIX: WCAG 2.5.5 minimum touch target */
  min-height: 44px;
  /* FIX: prevent buttons from ever exceeding their container */
  max-width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 130, 13, .38)
}

.btn-secondary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  border-color: transparent;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 111, 181, .35)
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue)
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px)
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .5)
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--blue-dark);
  transform: translateY(-2px)
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding: .8rem 1.25rem
}

.btn-ghost:hover {
  background: var(--blue-pale)
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem
}

.btn-sm {
  padding: .55rem 1.1rem;
  font-size: 1rem;
  min-height: 36px
}

.btn svg {
  transition: transform .28s var(--ease-spring);
  flex-shrink: 0
}

.btn:hover svg {
  transform: translateX(4px)
}

.btn:active {
  transform: scale(.98)
}

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

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  /* FIX 13 — fixed 2rem padding on a 320px card leaves only 256px for
     content after border. Reduced minimum to 1.25rem. */
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: all .32s var(--ease);
}

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

.card-flat {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}

/* ── SERVICE CARD ── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: all .32s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 111, 181, .04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .32s;
}

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

.service-card:hover::before {
  opacity: 1
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all .32s var(--ease);
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background: var(--blue);
  transform: scale(1.08)
}

.service-card:hover .service-icon svg {
  color: var(--white)
}

.service-icon svg {
  color: var(--blue);
  transition: color .32s
}

/* ── TESTIMONIAL ── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
}

.testimonial-card .quote-mark {
  font-family: Raleway, sans-serif;
  font-size: 5rem;
  line-height: .6;
  color: var(--blue-pale);
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-weight: 700;
  /* FIX 15 — on 320px the large quote mark overlaps text. Hide on tiny screens. */
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem
}

.star {
  color: var(--amber);
  font-size: 1rem
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── NAVIGATION ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(13, 42, 110, 0.08);
  transition: all .3s var(--ease);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(13, 42, 110, .08);
  padding: .65rem 0;
}

#navbar.nav-dark {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(13, 42, 110, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0
}

.nav-logo img {
  width: auto;
  max-width: 180px;
  height: 38px;
  object-fit: contain;
  aspect-ratio: auto;
  display: block;
}

.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  transition: color .3s;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-body);
  padding: .5rem .85rem;
  border-radius: var(--radius-full);
  transition: all .2s ease;
  white-space: nowrap;
  font-family: var(--font-head);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--blue);
  background: var(--blue-pale);
}

.nav-link.active {
  color: var(--white) !important;
  background: var(--blue) !important;
  box-shadow: 0 4px 12px rgba(26, 111, 181, 0.25);
}

.nav-cta {
  margin-left: .5rem
}

/* ── MEGA DROPDOWNS ── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .6rem);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--white);
  border: 1px solid rgba(13, 42, 110, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(13, 42, 110, 0.16);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all .25s var(--ease);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-services {
  width: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mega-menu-col-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-light);
}

.mega-dropdown-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text-body);
  transition: all .18s ease;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: var(--blue-pale);
  color: var(--blue);
  transform: translateX(3px);
}

.nav-dropdown-item-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-dropdown-simple {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ── GEO LOCATION & CURRENCY SWITCHER ── */
.geo-switcher-wrap {
  position: relative;
  display: inline-block;
}

.geo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
  min-height: 36px;
  box-shadow: 0 4px 14px rgba(245, 130, 13, 0.35);
}

.geo-btn:hover,
.geo-switcher-wrap.active .geo-btn {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 130, 13, 0.45);
  color: var(--white) !important;
}

.geo-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(13, 42, 110, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(13, 42, 110, 0.18);
  min-width: 210px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1000;
}

.geo-switcher-wrap.active .geo-dropdown,
.geo-dropdown.show {
  display: flex;
  animation: fadeIn 0.2s ease forwards;
}

.geo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-body);
  text-decoration: none;
  transition: all 0.18s ease;
  font-family: var(--font-head);
}

.geo-item:hover {
  background: var(--blue-pale);
  color: var(--blue);
}

.geo-curr {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  /* FIX 19 — hamburger touch target must be ≥44×44px */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--white);
  z-index: 998;
  /* FIX 20 — padding:1.5rem on 320px leaves only 288px inner.
     Safe minimum side padding for tiny phones. */
  padding: 1.25rem clamp(0.875rem, 4vw, 1.5rem);
  overflow-y: auto;
  flex-direction: column;
  gap: .5rem;
  border-top: 1px solid var(--border-light);
}

.nav-mobile.open {
  display: flex
}

.nav-mobile .nav-link {
  display: flex;
  align-items: center;
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  min-height: 48px;
}

.nav-mobile .btn {
  width: 100%;
  justify-content: center;
  margin-top: .5rem
}

/* ── HERO ── */
.hero {
  min-height: 100svh;
  /* Fallback for browsers without svh support */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  /* FIX 21 — add bottom padding so content isn't flush at the fold on short devices */
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--blue-dark) 0%, #0A1F4E 50%, #061630 100%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  /*background-image:
    linear-gradient(rgba(43,168,216,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(43,168,216,.06) 1px,transparent 1px);*/
  background-size: 60px 60px;
  z-index: 1;
}

/* FIX 22 — hero glows were fixed 600×600px. On 320px devices they
   overflow massively and cause horizontal scroll. Use vmin-based sizing. */
.hero-glow {
  position: absolute;
  width: clamp(200px, 60vmin, 700px);
  height: clamp(200px, 60vmin, 700px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 168, 216, .18) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.hero-glow-1 {
  top: -10%;
  right: -10%
}

.hero-glow-2 {
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(245, 130, 13, .12) 0%, transparent 70%);
}

.container.hero-c {
  margin-top: 1.25rem;
}

.hero-content {
  position: relative;
  z-index: 5;
  color: var(--white)
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(43, 168, 216, .15);
  border: 1px solid rgba(43, 168, 216, .3);
  border-radius: var(--radius-full);
  padding: .4rem 1rem;
  font-size: clamp(10px, 1.5vw, 12.5px);
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--blue-light);
  /*margin-bottom: 0.5rem;
  margin-top: 1rem;*/
  margin: 0.5rem 0px;
  /* FIX 23 — prevent label from overflowing 320px */
  flex-wrap: wrap;
}

.hero-label::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--blue-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(1.3)
  }
}

.hero h1 {
  color: var(--white);
  margin: 0.5rem 0px;
}

.hero .lead {
  color: rgba(255, 255, 255, .75);
  max-width: 600px;
  margin: 0.5rem 0px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 0.5rem 0px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem 0px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.hero-stat .num {
  font-family: var(--font-head);
  /* FIX 24 — fixed 2rem stat number: at 320px this is 32px which is
     fine, but on 8K a fixed 2rem looks tiny on screen. Scale gently. */
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat .lbl {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  color: rgba(255, 255, 255, .55);
  margin-top: .25rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--blue);
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue), var(--blue-dark));
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top
  }

  50% {
    transform: scaleY(1);
    transform-origin: top
  }

  50.01% {
    transform: scaleY(1);
    transform-origin: bottom
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom
  }
}

/* ── PAGE HERO ── */
.page-hero {
  padding: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3rem)) 0 clamp(2rem, 4vw, 4rem);
  background: linear-gradient(160deg, var(--blue-dark) 0%, #0A1F4E 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43, 168, 216, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 168, 216, .05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero-content {
  position: relative;
  z-index: 2
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem
}

.page-hero .lead {
  color: rgba(255, 255, 255, .7)
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: clamp(.75rem, 1vw, .85rem);
  color: rgba(255, 255, 255, .5);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, .6);
  transition: color .2s
}

.breadcrumb a:hover {
  color: var(--white)
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, .3)
}

/* ── MARQUEE ── */
.marquee-section {
  padding: 1.5rem 0;
  background: var(--blue-dark);
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused
}

@keyframes marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 1);
  font-size: 1rem;
  font-family: var(--font-mono);
}

.marquee-dot {
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0
}

/* ── PROCESS STEPS ── */
.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start
}

.process-step-num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
  position: relative;
}

.process-step-num::after {
  content: '';
  position: absolute;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--border), transparent);
}

.process-step:last-child .process-step-num::after {
  display: none
}

.process-step-body {
  padding-bottom: 2.5rem
}

.process-step-body h4 {
  margin-bottom: .4rem
}

.process-step-body p {
  font-size: .92rem;
  color: var(--text-muted)
}

/* ── FAQ ACCORDION ── */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  overflow: hidden
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(.9rem, 1.5vw, 1rem);
  color: var(--text);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color .22s;
  /* FIX 25 — ensure adequate touch target */
  min-height: 44px;
}

.faq-question:hover {
  color: var(--blue)
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .3s var(--ease);
}

.faq-icon svg {
  transition: transform .3s var(--ease)
}

.faq-item.open .faq-icon {
  background: var(--blue);
  border-color: var(--blue)
}

.faq-item.open .faq-icon svg {
  transform: rotate(45deg);
  color: var(--white)
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease)
}

.faq-answer-inner {
  padding: .25rem 0 1.25rem;
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.75
}

/* ── FORM ──
   FIX 26 — form-control font-size below 16px on iOS triggers auto-zoom.
   Must be ≥16px on mobile to prevent that.
*/
.form-group {
  margin-bottom: 1.25rem
}

.form-label {
  display: block;
  font-size: .87rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
  font-family: var(--font-head);
}

.form-control {
  width: 100%;
  padding: .8rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  /* FIX: minimum 16px prevents iOS zoom-on-focus */
  font-size: max(16px, .95rem);
  color: var(--text-body);
  background: var(--white);
  transition: all .22s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 181, .12)
}

.form-control::placeholder {
  color: var(--gray-400)
}

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

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C7D99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* FIX 27 — form-grid collapses too late (only at 480px via the breakpoint
   at the bottom). Made it intrinsically responsive with min(). */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.25rem;
}

.form-submit {
  margin-top: .5rem
}

/* ── TAGS / PILLS ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: .3rem .8rem;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: var(--radius-full);
  font-size: clamp(.72rem, 1vw, .8rem);
  font-weight: 500;
  font-family: var(--font-mono);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

/* ── FOOTER ──
   FIX 28 — footer padding:5rem 0 0 is generous on desktop but
   wastes space on 320px. Made fluid.
*/
footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, .65);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

/* FIX 29 — footer-grid 1.6fr 1fr 1fr 1fr with gap:3rem.
   On screens 900–1024px this creates very cramped columns.
   Now uses auto-fit with safe minimum. */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.footer-brand .nav-logo-text {
  color: var(--white)
}

.footer-tagline {
  font-size: .9rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  color: rgba(255, 255, 255, .5)
}

.footer-social {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .22s;
  color: rgba(255, 255, 255, .5);
  /* FIX 30 — social link touch target */
  min-width: 44px;
  min-height: 44px;
}

.social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px)
}

.footer-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.footer-link {
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  transition: color .2s;
  line-height: 1.4
}

.footer-link:hover {
  color: var(--white)
}

.footer-locations-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-location-pill:hover {
  background: var(--blue);
  border-color: var(--blue-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 111, 181, 0.35);
}

.footer-flag-img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  margin-bottom: .75rem
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue-light)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: clamp(.75rem, 1vw, .82rem);
  color: rgba(255, 255, 255, .3);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, .3);
  transition: color .2s
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, .7)
}

.footer-newsletter {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  flex-wrap: wrap
}

.footer-newsletter input {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-full);
  padding: .6rem 1rem;
  color: var(--white);
  /* FIX 31 — same iOS zoom prevention for footer newsletter input */
  font-size: max(16px, .88rem);
  outline: none;
  transition: border-color .22s;
}

.footer-newsletter input:focus {
  border-color: var(--blue-light)
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, .3)
}

.footer-newsletter button {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: .6rem 1.1rem;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-head);
  transition: all .22s;
  white-space: nowrap;
  min-height: 44px;
}

.footer-newsletter button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px)
}

/* ── WHATSAPP FLOAT ──
   FIX 32 — on 320px, a 56px button at bottom:2rem + right:2rem
   leaves only 2rem from edge, which is fine. But make it slightly
   smaller on very small screens to avoid eating too much real estate.
*/
.whatsapp-float {
  position: fixed;
  bottom: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 990;
  width: clamp(48px, 7vw, 56px);
  height: clamp(48px, 7vw, 56px);
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  transition: all .28s var(--ease-spring);
  animation: waBounce 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .5);
  animation: none;
}

@keyframes waBounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: clamp(1rem, 6vw, 5rem);
  left: clamp(1rem, 3vw, 2rem);
  z-index: 990;
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: all .28s var(--ease);
  transform: translateY(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

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

/* ── COOKIE BANNER ──
   FIX 33 — width:calc(100% - 2rem) on a 320px device = 288px.
   That's OK. But min-width:200px on .cookie-text was causing wrapping
   issues. Also the transform:translateX(-50%) can cause pixel-rounding
   blur on non-retina screens. Added will-change hint.
*/
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-xl);
  z-index: 995;
  max-width: 560px;
  width: calc(100% - 2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  transition: transform .45s var(--ease);
  font-size: .88rem;
  color: var(--text-body);
  will-change: transform;
}

#cookie-banner.show {
  transform: translateX(-50%) translateY(0)
}

.cookie-text {
  flex: 1;
  min-width: 160px
}

.cookie-text a {
  color: var(--blue);
  text-decoration: underline
}

.cookie-btns {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
  flex-wrap: wrap
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

.reveal-delay-1 {
  transition-delay: .1s
}

.reveal-delay-2 {
  transition-delay: .18s
}

.reveal-delay-3 {
  transition-delay: .26s
}

.reveal-delay-4 {
  transition-delay: .34s
}

.reveal-delay-5 {
  transition-delay: .42s
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0)
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0)
}

/* ── TABS ── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem
}

.tab-btn {
  padding: .55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: clamp(.8rem, 1.2vw, .88rem);
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all .22s;
  min-height: 44px;
}

.tab-btn:hover {
  border-color: var(--blue);
  color: var(--blue)
}

.tab-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue)
}

.tab-content {
  display: none
}

.tab-content.active {
  display: block
}

/* ── TECH LOGO GRID ──
   FIX 34 — minmax(110px,1fr): at 320px with container padding,
   usable width ≈ 292px → fits 2 cols (146px each). That's actually fine.
   But on 8K you'd get dozens of tiny columns. Cap with auto-fill max. */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(90px, 10vw, 130px), 1fr));
  gap: 1rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--white);
  transition: all .25s;
  text-align: center;
}

.tech-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px)
}

.tech-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center
}

.tech-name {
  font-size: clamp(.7rem, 1vw, .78rem);
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono)
}

/* ── PORTFOLIO CARD ── */
.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--white);
  transition: all .32s var(--ease);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px)
}

.portfolio-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  position: relative;
  overflow: hidden;
}

.portfolio-thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 42, 110, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1
}

.portfolio-body {
  padding: clamp(1rem, 2.5vw, 1.5rem)
}

.portfolio-cat {
  font-size: clamp(.7rem, 1vw, .75rem);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: .5rem;
}

/* ── BLOG CARD ── */
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--white);
  transition: all .32s var(--ease);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px)
}

.blog-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-body {
  padding: clamp(1rem, 2.5vw, 1.5rem)
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: clamp(.72rem, 1vw, .8rem);
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: .3rem
}

/* ── FEATURED SERVICE & KEY DELIVERABLES ── */
.featured-service {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

@media (max-width:992px) {
  .featured-service {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.service-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1.25rem;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.5;
  padding: 0.4rem 0;
}

.service-list-item svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── LOCATION CARD ── */
.location-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border-light);
  background: var(--white);
  transition: all .32s var(--ease);
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 50%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.location-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px)
}

.location-card:hover::before {
  transform: scaleX(1)
}

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0A1F4E 50%, var(--blue) 100%);
  padding: clamp(3rem, 6vw, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1.25rem
}

.cta-section .lead {
  color: rgba(255, 255, 255, .7);
  max-width: 580px;
  margin: 0 auto 2.5rem
}

/* FIX 35 — CTA buttons column on small screens */
.cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 0
}

.divider-orange {
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--amber) 100%);
  border-radius: 99px;
  width: 60px;
}

/* ── ICON CIRCLE ── */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle-blue {
  background: var(--blue-pale);
  color: var(--blue)
}

.icon-circle-orange {
  background: #FEF3E2;
  color: var(--orange)
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: linear-gradient(135deg, rgba(26, 111, 181, .06) 0%, rgba(43, 168, 216, .04) 100%);
  border: 1px solid rgba(26, 111, 181, .15);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}

/* ── NUMBER LIST ── */
.num-list {
  counter-reset: nl
}

.num-list li {
  counter-increment: nl;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.num-list li:last-child {
  border-bottom: none
}

.num-list li::before {
  content: counter(nl, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Strategy: mobile-first additions, not just overrides.
   Most layout is handled intrinsically above via clamp() and
   auto-fit. These breakpoints handle anything that can't be
   expressed intrinsically.
   ════════════════════════════════════════════════════════════ */

/* ── 320px — absolute minimum (iPhone SE gen1, Galaxy fold closed) ── */
@media (max-width:359px) {

  /* FIX 36 — very tight devices need nav logo text hidden
     to prevent logo + hamburger from colliding */
  .nav-logo-text {
    display: none
  }

  /* Quote mark overlaps content badly at this width */
  .testimonial-card .quote-mark {
    display: none
  }

  /* Prevent hero stats from being unreadable */
  .hero-stat .num {
    font-size: 1.5rem
  }

  /* Stack footer newsletter vertically */
  .footer-newsletter {
    flex-direction: column
  }

  .footer-newsletter input {
    min-width: 0;
    width: 100%
  }

  .footer-newsletter button {
    width: 100%;
    text-align: center
  }

  /* Cookie banner needs stacked layout */
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start
  }

  .cookie-btns {
    width: 100%;
    justify-content: flex-end
  }
}

/* ── 480px — small phones (most modern iPhones/Android) ── */
@media (max-width:480px) {
  .btn-lg {
    padding: .85rem 1.5rem;
    font-size: .95rem
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start
  }

  .cta-btns {
    flex-direction: column;
    align-items: center
  }

  /* Process steps stack nicely but connector line is orphaned */
  .process-step {
    flex-direction: column;
    gap: 1rem
  }

  .process-step-num::after {
    display: none
  }

  /* Blog meta wraps oddly with separators */
  .blog-meta {
    gap: .5rem
  }

  /* Breadcrumbs can get very long on small screens */
  .breadcrumb {
    font-size: .72rem
  }
}

/* ── 768px — tablet portrait / large phone landscape ── */
@media (max-width:768px) {

  .nav-links,
  .nav-cta {
    display: none
  }

  .nav-hamburger {
    display: flex
  }

  /* FIX 37 — removed the grid-2/3/4 override here because they are
     now handled intrinsically by auto-fit above. Keeping only
     items that truly need forced single-column at this exact breakpoint. */
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center
  }

  .footer-bottom-links {
    justify-content: center
  }

  /* Hero scroll indicator gets obscured on tablets with odd viewport */
  .hero-scroll {
    display: none
  }

  .process-step {
    flex-direction: column;
    gap: 1rem
  }

  .process-step-num::after {
    display: none
  }
}

/* ── 1024px — tablet landscape / small laptop ── */
@media (max-width:1024px) {

  .nav-links,
  .nav-cta {
    display: none
  }

  .nav-hamburger {
    display: flex
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (min-width:1025px) and (max-width:1280px) {
  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem
  }

  .nav-links {
    gap: 0.2rem
  }

  .mega-menu-services {
    width: 560px;
    gap: 1rem
  }
}

/* ── 1400px+ — large desktop / 2K / QHD ──
   FIX 38 — added breakpoint for large screens that the original CSS
   completely lacked. At 1920px+ the container already caps at 1400px,
   but some elements need additional breathing room.
*/
@media (min-width:1400px) {
  :root {
    --nav-h: 80px
  }

  .nav-logo img {
    height: 44px
  }

  .nav-link {
    font-size: 1rem
  }
}

/* ── 2560px+ — 2K / QHD / iMac 5K ── */
@media (min-width:2560px) {
  :root {
    /* FIX 39 — scale base font-size up so everything remains
       proportionally readable on high-PPI large displays.
       Without this, 16px text on a 2560px screen looks tiny. */
    font-size: 18px;
    --nav-h: 84px;
  }

  .container {
    max-width: min(1600px, 88vw)
  }

  .container-sm {
    max-width: min(1100px, 88vw)
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr))
  }
}

/* ── 3840px+ — 4K / UHD ── */
@media (min-width:3840px) {
  :root {
    font-size: 22px;
    --nav-h: 96px;
  }

  .container {
    max-width: min(2200px, 85vw)
  }

  .container-sm {
    max-width: min(1400px, 85vw)
  }

  .container-xs {
    max-width: min(1000px, 85vw)
  }

  /* FIX 40 — hero grid lines look massive at 4K with 60px spacing.
     Scale them with vw so they stay proportionate. */
  .hero-grid {
    background-size: clamp(40px, 1.5vw, 100px) clamp(40px, 1.5vw, 100px);
  }

  .page-hero-grid {
    background-size: clamp(40px, 1.5vw, 100px) clamp(40px, 1.5vw, 100px);
  }

  .card,
  .card-flat,
  .service-card,
  .testimonial-card,
  .location-card {
    border-radius: clamp(20px, 1vw, 32px);
  }
}

/* ── 7680px — 8K / FUHD ── */
@media (min-width:7680px) {
  :root {
    font-size: 32px;
    --nav-h: 120px;
  }

  .container {
    max-width: min(3600px, 80vw)
  }

  .container-sm {
    max-width: min(2200px, 80vw)
  }

  .container-xs {
    max-width: min(1600px, 80vw)
  }

  .container-wide {
    max-width: min(5000px, 82vw)
  }

  /* 8K nav needs larger elements */
  .nav-logo img {
    height: 64px;
    max-width: 240px
  }

  .nav-link {
    font-size: 1rem;
    padding: .75rem 1.2rem
  }

  .nav-hamburger {
    min-width: 64px;
    min-height: 64px
  }

  /* Buttons need to be significantly larger */
  .btn {
    min-height: 64px;
    padding: 1rem 2.5rem;
    font-size: 1rem
  }

  .btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.25rem
  }

  /* Touch targets are moot on 8K (it's a mouse environment) but
     icons and interactive elements need visual scale */
  .service-icon {
    width: 80px;
    height: 80px
  }

  .faq-icon {
    width: 40px;
    height: 40px
  }

  .whatsapp-float {
    width: 80px;
    height: 80px;
    bottom: 3rem;
    right: 3rem
  }

  .back-to-top {
    width: 64px;
    height: 64px;
    bottom: 3rem;
    left: 3rem
  }

  /* Social links */
  .social-link {
    width: 56px;
    height: 56px
  }

  /* Process step number */
  .process-step-num {
    width: 72px;
    height: 72px;
    font-size: 1.4rem
  }

  /* Scrollbar should be visible on 8K screen real estate */
  ::-webkit-scrollbar {
    width: 16px
  }

  * {
    scrollbar-width: auto
  }
}

/* ── REDUCED MOTION ──
   FIX 41 — set to 0ms (not .01ms) to fully eliminate animations
   for users with vestibular disorders. .01ms can still trigger
   animation events in some JS libraries.
*/
@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

  .marquee-track {
    animation: none
  }

  .whatsapp-float {
    animation: none
  }

  /* Still show animated elements in their final state */
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none
  }
}

/* ── HIGH CONTRAST / FORCED COLORS ──
   FIX 42 — entirely missing from the original CSS.
   Windows High Contrast Mode (used by many users with visual impairments)
   strips colours. Ensure borders and text remain visible.
*/
@media (forced-colors:active) {

  .btn,
  .card,
  .service-card,
  .badge,
  .tag {
    border: 1px solid ButtonText;
  }

  .gradient-text {
    -webkit-text-fill-color: unset;
    background: none;
    color: ButtonText;
  }

  .stat-number {
    -webkit-text-fill-color: unset;
    background: none;
    color: ButtonText;
  }

  .hero-bg,
  .cta-section,
  footer {
    forced-color-adjust: none;
  }
}

/* ── PRINT ──
   FIX 43 — no print styles existed. Add basics so pages
   don't print as a dark blue mess.
*/
@media print {

  #navbar,
  .whatsapp-float,
  .back-to-top,
  #cookie-banner,
  .nav-mobile,
  .hero-scroll,
  .cta-section,
  footer {
    display: none !important
  }

  .hero,
  .page-hero {
    background: var(--white) !important;
    color: #000 !important;
    min-height: auto !important;
    padding: 2rem 0 !important;
  }

  .hero h1,
  .page-hero h1,
  h1,
  h2,
  h3,
  h4 {
    color: #000 !important
  }

  .hero .lead,
  .page-hero .lead,
  p,
  .lead {
    color: #333 !important
  }

  .hero-bg,
  .hero-grid,
  .page-hero-grid {
    display: none !important
  }

  .container {
    max-width: 100% !important;
    padding: 0 1cm !important
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: .75em;
    color: #555
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: ""
  }
}

/* ============================================================
   NEW ULTRA-PREMIUM MODULES & COMPONENTS
   ============================================================ */

/* ── GEO-LOCATION SWITCHER ── */
.geo-switcher-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.geo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white) !important;
  border: none;
  font-size: .85rem;
  font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer;
  transition: all .28s var(--ease);
  min-height: 36px;
  box-shadow: 0 4px 14px rgba(245, 130, 13, 0.35);
}

.nav-dark .geo-btn {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(245, 130, 13, 0.4);
}

.nav-dark .geo-btn:hover,
.nav-dark .geo-switcher-wrap.active .geo-btn,
#navbar:not(.nav-dark) .geo-btn:hover,
#navbar:not(.nav-dark) .geo-switcher-wrap.active .geo-btn {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 130, 13, 0.5);
  color: #ffffff !important;
}

.geo-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: .5rem;
  display: none;
  z-index: 1000;
  animation: fadeDown .2s ease forwards;
}

.geo-switcher-wrap.active .geo-dropdown,
.geo-dropdown.show {
  display: block;
}

.geo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease;
  text-decoration: none;
}

.geo-item:hover,
.geo-item.active {
  background: var(--blue-pale);
  color: var(--blue-dark);
}

.geo-flag {
  font-size: 1.15rem;
  margin-right: .5rem;
}

.geo-curr {
  font-size: .72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── TECH RADAR & COMPATIBILITY MATRIX ── */
.radar-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.radar-quadrant {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.radar-quadrant:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.radar-badge-adopt {
  background: #E6F9F0;
  color: #0D7A4E;
  border: 1px solid #A3E9C9;
}

.radar-badge-trial {
  background: #EBF4FF;
  color: #1A6FB5;
  border: 1px solid #B8DCFF;
}

.radar-badge-assess {
  background: #FFF8E6;
  color: #B27B00;
  border: 1px solid #FFE299;
}

.radar-badge-hold {
  background: #FEECEB;
  color: #C5221F;
  border: 1px solid #FBC4C4;
}

.tech-compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tech-compare-table th,
.tech-compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-size: .9rem;
}

.tech-compare-table th {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--text-dark);
}

.tech-compare-table tr:hover {
  background: var(--blue-pale);
}

/* ── TECH NEWS EVENT CONSOLIDATION & DIGEST ── */
.news-cluster-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all .25s ease;
}

.news-cluster-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.cluster-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sources-pill {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: .78rem;
  padding: .25rem .65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.source-chip {
  font-size: .78rem;
  color: var(--blue);
  background: var(--blue-pale);
  padding: .3rem .75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: background .2s;
}

.source-chip:hover {
  background: var(--blue);
  color: #fff;
}

/* ── SECURITY CENTER / VULNERABILITY ADVISORIES ── */
.sec-advisory-card {
  background: #fff;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--blue);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease;
}

.sec-advisory-card.critical {
  border-left-color: #C5221F;
}

.sec-advisory-card.high {
  border-left-color: #F5820D;
}

.sec-advisory-card.medium {
  border-left-color: #F9C012;
}

.sec-advisory-card:hover {
  transform: translateX(4px);
}

.cve-pill {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: var(--radius-xs);
  background: var(--gray-900);
  color: #fff;
}

/* ── CALCULATOR & STEP BUILDERS ── */
.calc-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  margin-top: 1.5rem;
}

.calc-step {
  display: none;
}

.calc-step.active {
  display: block;
  animation: fadeUp .3s ease forwards;
}

.calc-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.calc-opt-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
  background: var(--gray-50);
}

.calc-opt-card:hover {
  border-color: var(--blue-light);
  background: #fff;
}

.calc-opt-card.selected {
  border-color: var(--blue);
  background: var(--blue-pale);
  box-shadow: 0 0 0 3px rgba(26, 111, 181, .2);
}

.calc-summary-panel {
  background: linear-gradient(135deg, #0D2A6E, #1A6FB5);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* ── ULTRA-PREMIUM CLIENT MARQUEE ── */
.client-proof-ticker {
  background: var(--gray-900);
  color: var(--white);
  padding: 1.25rem 0;
  overflow: hidden;
}

/* ── PICTORIAL & VISUAL ENHANCEMENT ENGINE ── */
.device-mockup-frame {
  position: relative;
  background: #0D1B2A;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.device-mockup-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 80px rgba(26, 111, 181, 0.25);
}

.mockup-header {
  height: 36px;
  background: #1B263B;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.mockup-dot.red {
  background: #FF5F56;
}

.mockup-dot.yellow {
  background: #FFBD2E;
}

.mockup-dot.green {
  background: #27C93F;
}

.mockup-url-bar {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
}

.portfolio-visual-hero {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-visual-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
  background-size: 20px 20px;
}

.portfolio-ui-badge {
  position: absolute;
  bottom: 16px;
  left: auto;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* LIVE PULSE BADGE */
.pulse-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 204, 113, 0.12);
  color: #27ae60;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

/* LIVE AUTO FEED LOADER */
.auto-feed-container {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.auto-feed-header {
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.auto-feed-item {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background .2s ease;
}

.auto-feed-item:hover {
  background: var(--blue-pale);
}

.auto-feed-item:last-child {
  border-bottom: none;
}

/* ── HIGH CONTRAST & BUTTON UNIFORMITY FIXES ── */
.calc-summary-panel p,
.calc-summary-panel span,
.calc-summary-panel .calc-guarantee-text {
  color: #FFFFFF !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  font-weight: 500;
}

.product-action-btn,
.product-footer .btn {
  min-width: 175px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.mockup-url-bar {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0 12px;
  letter-spacing: 0.02em;
}

.portfolio-visual-hero {
  min-height: 220px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* ── 3D & Spatial Card Styling Adjustments ── */
.portfolio-card.device-mockup-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card.device-mockup-frame .portfolio-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card.device-mockup-frame .portfolio-body .tags {
  margin-top: auto;
}

.hero-3d-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-3d-stage {
  position: relative;
}

.hero-visual-3d-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(43, 168, 216, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(26, 111, 181, 0.15);
  background: #061630;
}

.hero-visual-3d-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-visual-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 22, 48, 0.1) 0%, rgba(6, 22, 48, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.hud-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 42, 110, 0.8);
  border: 1px solid rgba(43, 168, 216, 0.5);
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #2BA8D8;
  backdrop-filter: blur(10px);
}

.hud-pulse {
  width: 7px;
  height: 7px;
  background: #2ECC71;
  border-radius: 50%;
  box-shadow: 0 0 8px #2ECC71;
}

.hud-footer-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(6, 22, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  text-align: center;
}

.hud-metric-val {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.hud-metric-lbl {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-top: 3px;
}

@media (max-width: 992px) {
  .hero-3d-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================================
   120 FPS GPU HARDWARE ACCELERATION & COMPOSITOR PROMOTIONS
   ============================================================ */
.hero-visual-3d-card,
.service-card,
.portfolio-card,
.product-card,
.testimonial-card,
.why-item,
.hud-pill,
.btn,
.nav-link {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ============================================================
   4K ULTRA-HD & 8K DISPLAY SCALING (2160px+)
   ============================================================ */
@media (min-width: 2160px) {
  html {
    font-size: 20px;
  }

  .container {
    max-width: 2400px;
  }

  .container-wide {
    max-width: 2800px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

/* ============================================================
   MICRO MOBILE RESPONSIVE ENGINE (320px - 480px)
   ============================================================ */
@media (max-width: 480px) {
  html {
    font-size: 14.5px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-hero h1,
  .hero-content h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    line-height: 1.2;
    word-break: break-word;
  }

  .nav-inner {
    padding: 0.6rem 0;
  }

  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.88rem;
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .hud-footer-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ── UNIFIED FORM VALIDATION & UI FEEDBACK STYLES ── */
.form-group {
  margin-bottom: 1.25rem;
  position: relative;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-dark, #0A1935);
  margin-bottom: 0.45rem;
}

.form-group label .required-star {
  color: #DC2626;
  font-weight: bold;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-dark, #0F172A);
  background: #ffffff;
  border: 1px solid var(--border-light, #CBD5E1);
  border-radius: var(--radius-md, 8px);
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue, #1A6FB5);
  box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.15);
}

.form-control.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.form-control.is-valid,
input.is-valid,
select.is-valid,
textarea.is-valid {
  border-color: #10B981 !important;
  background-color: #F0FDF4 !important;
}

.field-error-text {
  font-size: 0.78rem;
  color: #DC2626;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  animation: fadeIn 0.2s ease-in-out;
}

.field-error-text::before {
  content: '⚠️';
  font-size: 0.75rem;
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 1.25rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
  text-align: left;
}

.form-alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.newsletter-feedback {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-weight: 700;
  animation: fadeIn 0.25s ease;
}

.newsletter-feedback.success {
  color: #10B981;
}

.newsletter-feedback.error {
  color: #EF4444;
}

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

  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* ── ACCESSIBLE VISIBLE FOCUS STYLES (WCAG 2.2 AA) ── */
*:focus,
*:focus-visible,
a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
[tabindex]:focus,
[tabindex]:focus-visible {
  outline: 3px solid #125E9E !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(18, 94, 158, 0.35) !important;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem !important;
  left: 1rem !important;
  z-index: 999999 !important;
  outline: 3px solid #B84700 !important;
  background: #FFFFFF !important;
  color: #0A1935 !important;
  box-shadow: 0 0 0 4px rgba(184, 71, 0, 0.4) !important;
}