/* ── Base ── */
::selection {
  background-color: #00385b;
  color: white;
}

.font-display {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

/* ── Glass system ── */
.glass-dark {
  background: rgba(8, 28, 48, 0.62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-light {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 24px rgba(0, 56, 91, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ── Navigation ── */
#navbar.navbar-glass {
  background: rgba(8, 28, 48, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar.navbar-glass .nav-link {
  color: rgba(255, 255, 255, 0.82);
}

#navbar.navbar-glass .nav-link:hover,
#navbar.navbar-glass .nav-link.active {
  color: white;
}

#navbar.navbar-glass .nav-link::after {
  background: white;
}

#navbar.navbar-glass .nav-menu-btn {
  color: white;
}

#navbar.navbar-glass .nav-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

#navbar.navbar-glass .nav-logo {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 56, 91, 0.06);
  box-shadow: 0 4px 24px rgba(0, 56, 91, 0.06);
}

#navbar.scrolled .nav-link {
  color: #475569;
}

#navbar.scrolled .nav-link:hover,
#navbar.scrolled .nav-link.active {
  color: #00385b;
}

#navbar.scrolled .nav-link::after {
  background: #00385b;
}

#navbar.scrolled .nav-menu-btn {
  color: #00385b;
}

#navbar.scrolled .nav-menu-btn:hover {
  background: #e8f4fc;
}

#navbar.scrolled .nav-logo {
  filter: none;
}

.btn-nav-glass {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-nav-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-nav-solid {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #00385b;
  border-radius: 0.625rem;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.btn-nav-solid:hover {
  background: #e8f4fc;
  transform: translateY(-1px);
}

#navbar.scrolled .btn-nav-glass {
  color: #00385b;
  background: white;
  border-color: #cce7f5;
  box-shadow: none;
}

#navbar.scrolled .btn-nav-glass:hover {
  background: #e8f4fc;
}

#navbar.scrolled .btn-nav-solid {
  background: #00385b;
  color: white;
}

#navbar.scrolled .btn-nav-solid:hover {
  background: #002d49;
}

.mobile-menu-glass {
  background: rgba(8, 28, 48, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar.scrolled .mobile-menu-glass {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: #f1f5f9;
}

#navbar.navbar-glass .mobile-nav-link {
  color: rgba(255, 255, 255, 0.9);
}

#navbar.navbar-glass .mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

#navbar.scrolled .mobile-nav-link {
  color: #334155;
}

#navbar.scrolled .mobile-nav-link:hover {
  background: #e8f4fc;
  color: #00385b;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #00385b;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00385b;
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #334155;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
  background-color: #e8f4fc;
  color: #00385b;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5625rem 1.125rem;
  background-color: #00385b;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #002d49;
  box-shadow: 0 4px 12px rgba(0, 56, 91, 0.2);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5625rem 1.125rem;
  background-color: white;
  color: #00385b;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.625rem;
  border: 1px solid #cce7f5;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #e8f4fc;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.6875rem 1.375rem;
  background-color: white;
  color: #00385b;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-hero-primary:hover {
  background-color: #e8f4fc;
  transform: translateY(-1px);
}

.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.6875rem 1.375rem;
  color: white;
  font-weight: 600;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.6875rem 1.375rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 600;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ── Layout ── */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-padding-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-mesh {
  background-color: #f8fafc;
  background-image:
    radial-gradient(at 20% 20%, rgba(0, 56, 91, 0.04) 0%, transparent 50%),
    radial-gradient(at 80% 80%, rgba(26, 122, 76, 0.04) 0%, transparent 50%);
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #00385b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* ── Hero ── */
.hero-bg {
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 20, 40, 0.55) 0%, rgba(0, 35, 60, 0.45) 50%, rgba(17, 50, 81, 0.5) 100%);
}

.hero-glass {
  border-radius: 1.125rem;
  background: rgba(8, 28, 48, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-glass-inner {
  padding: 1.75rem;
}

@media (min-width: 640px) {
  .hero-glass-inner {
    padding: 2rem 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-glass-inner {
    padding: 2.25rem 2.5rem;
  }
}

.glass-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(26, 122, 76, 0.25) 0%, transparent 70%);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -15%;
  left: -5%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.hero-metric {
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-metric:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-metric-value {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: white;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

.hero-metric-label {
  display: block;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Hero animations (CSS-driven, always visible on load) ── */
@keyframes heroKenBurns {
  from { transform: scale(1.08) translateY(0); }
  to { transform: scale(1.18) translateY(-12px); }
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -18px) scale(1.05); }
  66% { transform: translate(-8px, 10px) scale(0.98); }
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.08); }
}

@keyframes heroSlideLeft {
  0% { opacity: 0; transform: translateX(-60px) scale(0.96); filter: blur(4px); }
  100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes heroSlideRight {
  0% { opacity: 0; transform: translateX(60px) scale(0.96); filter: blur(4px); }
  100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes heroFadeUp {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroLineReveal {
  0% { opacity: 0; transform: translateY(100%); clip-path: inset(0 0 100% 0); }
  100% { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}

@keyframes heroMetricPop {
  0% { opacity: 0; transform: scale(0.7) translateY(16px); }
  60% { transform: scale(1.06) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

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

@keyframes heroParticleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translateY(-80px) translateX(20px); opacity: 0.3; }
  90% { opacity: 0; }
}

@keyframes heroLivePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}

@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

@keyframes heroAccentShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero-bg-img {
  animation: heroKenBurns 20s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-glow-1 {
  animation: heroFloat 12s ease-in-out infinite, heroGlowPulse 8s ease-in-out infinite;
}

.hero-glow-2 {
  animation: heroFloat 15s ease-in-out 2s infinite reverse, heroGlowPulse 10s ease-in-out 1s infinite;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: heroParticleFloat 6s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { left: 15%; bottom: 20%; animation-delay: 0s; animation-duration: 7s; }
.hero-particles span:nth-child(2) { left: 35%; bottom: 10%; animation-delay: 1.2s; animation-duration: 8s; width: 3px; height: 3px; }
.hero-particles span:nth-child(3) { left: 55%; bottom: 30%; animation-delay: 2.5s; animation-duration: 6s; }
.hero-particles span:nth-child(4) { left: 75%; bottom: 15%; animation-delay: 0.8s; animation-duration: 9s; width: 5px; height: 5px; }
.hero-particles span:nth-child(5) { left: 90%; bottom: 25%; animation-delay: 3s; animation-duration: 7s; }

.hero-glass-shimmer {
  position: relative;
}

.hero-glass-shimmer::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(26,122,76,0.5), rgba(255,255,255,0.2), rgba(0,56,91,0.4));
  background-size: 300% 300%;
  animation: heroShimmerBorder 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-panel-left {
  animation: heroSlideLeft 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-panel-right {
  animation: heroSlideRight 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-item-1 { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
.hero-item-2 { animation: heroLineReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both; }
.hero-item-3 { animation: heroLineReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both; }
.hero-item-4 { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both; }
.hero-item-5 { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.25s both; }

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line-accent {
  background: linear-gradient(90deg, #ffffff 0%, #a7f3d0 40%, #ffffff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroAccentShine 4s linear 2s infinite;
}

.hero-live-dot {
  animation: heroLivePulse 2s ease-in-out infinite;
}

.hero-metric-1 { animation: heroMetricPop 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both; }
.hero-metric-2 { animation: heroMetricPop 0.65s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both; }
.hero-metric-3 { animation: heroMetricPop 0.65s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both; }
.hero-metric-4 { animation: heroMetricPop 0.65s cubic-bezier(0.16, 1, 0.3, 1) 1.35s both; }

.hero-btn {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  z-index: 10;
  animation: heroFadeUp 0.8s ease 1.6s both, heroScrollPulse 2.5s ease-in-out 2.5s infinite;
}

.hero-scroll-text {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
}

.hero-scroll-mouse {
  display: block;
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 11px;
  position: relative;
}

.hero-scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

.hero-title {
  margin-bottom: 0;
}

.glass-badge {
  margin-bottom: 1.25rem;
}

/* ── Compact solution cards ── */
.compact-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.compact-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.compact-card.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 4px 20px rgba(0, 56, 91, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.compact-card.glass-card:hover {
  border-color: rgba(0, 56, 91, 0.12);
  box-shadow:
    0 8px 28px rgba(0, 56, 91, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateX(3px);
}

.compact-thumb {
  position: relative;
  flex-shrink: 0;
  width: 5.5rem;
  background: #e8f4fc;
  overflow: hidden;
}

@media (min-width: 640px) {
  .compact-thumb {
    width: 7rem;
  }
}

.compact-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
  transition: transform 0.4s ease;
}

.compact-card:hover .compact-thumb-img {
  transform: scale(1.08);
}

.compact-content {
  flex: 1;
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 640px) {
  .compact-content {
    padding: 1rem 1.25rem;
  }
}

.compact-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.compact-head h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

.compact-content p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.compact-content .card-link {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.badge-featured {
  flex-shrink: 0;
  padding: 0.0625rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: #1a7a4c;
  background-color: #ecfdf5;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-on-image {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 2;
  color: white;
  background: #1a7a4c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: #00385b;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: #002d49;
}

.card-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.card-link:hover::after {
  transform: translateX(2px);
}

/* ── Services section ── */
.section-services {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f0f6fa 50%, #ffffff 100%);
  overflow: hidden;
}

.section-services::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 56, 91, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-services::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(26, 122, 76, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.services-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .services-header {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
  }
}

.services-header-accent {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .services-header-accent {
    display: flex;
  }
}

.services-accent-line {
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00385b, #1a7a4c, #00385b);
  background-size: 200% 100%;
  animation: accentShimmer 4s ease-in-out infinite;
}

.services-accent-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a7a4c;
  box-shadow: 0 0 0 4px rgba(26, 122, 76, 0.15);
  animation: pulseDot 2.5s ease-in-out infinite;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }
}

.service-row {
  display: flex;
  align-items: stretch;
  border-radius: 0.875rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 4px 24px rgba(0, 56, 91, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-row:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 56, 91, 0.1);
  box-shadow:
    0 12px 36px rgba(0, 56, 91, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.service-row-media {
  position: relative;
  flex-shrink: 0;
  width: 5rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .service-row-media {
    width: 6.5rem;
  }
}

.service-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
  transition: transform 0.45s ease;
}

.service-row:hover .service-row-media img {
  transform: scale(1.1);
}

.service-row-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.15));
}

.service-row-num {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 0.625rem;
  font-weight: 800;
  color: white;
  background: rgba(0, 56, 91, 0.75);
  backdrop-filter: blur(4px);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  letter-spacing: 0.04em;
}

.service-row-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem 0.875rem 0.75rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .service-row-body {
    padding: 1rem 1.125rem 1rem 0.875rem;
    gap: 0.875rem;
  }
}

.service-row-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-row-icon--brand {
  background: rgba(0, 56, 91, 0.08);
  color: #00385b;
}

.service-row-icon--emerald {
  background: rgba(26, 122, 76, 0.1);
  color: #1a7a4c;
}

.service-row-icon--violet {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.service-row-icon--amber {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.service-row-text {
  flex: 1;
  min-width: 0;
}

.service-row-head {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.service-row-head h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

.service-row-text p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 0.2rem;
}

.service-row-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: #00385b;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-row:hover .service-row-arrow {
  opacity: 0.6;
  transform: translateX(0);
}

/* ── TadbirSmart feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
  }
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.feature-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Stats bar ── */
.stats-bar {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, #00385b 0%, #113251 100%);
}

.stats-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 1rem;
}

@media (min-width: 768px) {
  .stats-bar-inner {
    flex-wrap: nowrap;
    gap: 0;
  }
}

.stats-bar-item {
  flex: 1;
  text-align: center;
  min-width: 120px;
}

.stats-bar-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

@media (min-width: 768px) {
  .stats-bar-num {
    font-size: 2rem;
  }
}

.stats-bar-label {
  display: block;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-bar-divider {
  display: none;
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .stats-bar-divider {
    display: block;
  }
}

/* ── About ── */
.about-image {
  position: relative;
  aspect-ratio: 5 / 3;
}

.about-badge {
  position: absolute;
  bottom: -0.75rem;
  right: 1rem;
  background: white;
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 20px -4px rgba(0, 56, 91, 0.15);
  border: 1px solid #f1f5f9;
}

.about-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.625rem;
  transition: background 0.2s ease;
}

.about-row:hover {
  background: white;
}

.about-icon-sm {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: #e8f4fc;
  color: #00385b;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Contact ── */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: #334155;
  transition: color 0.2s ease;
}

a.contact-info-item:hover {
  color: #00385b;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background-color: #e8f4fc;
  color: #00385b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form.glass-card-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 32px rgba(0, 56, 91, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.contact-form {
  border-radius: 0.875rem;
  padding: 1.25rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .form-group--full {
    grid-column: 1 / -1;
  }
}

.contact-form-submit {
  margin-top: 0.875rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .contact-info-list {
    gap: 1rem;
  }
}

.contact-form > * + * {
  margin-top: 0;
}

@media (min-width: 640px) {
  .contact-form {
    padding: 1.5rem;
  }
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.3125rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5625rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00385b;
  box-shadow: 0 0 0 3px rgba(0, 56, 91, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.form-error {
  display: block;
  font-size: 0.6875rem;
  color: #ef4444;
  margin-top: 0.125rem;
  min-height: 0;
}

.form-error:not(:empty) {
  min-height: 0.875rem;
  margin-top: 0.25rem;
}

/* ── Footer ── */
.footer-nav {
  display: contents;
}

.footer-link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: white;
}

/* ── Scroll reveal & UI animations ── */
@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes successPop {
  0% { opacity: 0; transform: translateY(8px) scale(0.96); }
  60% { transform: translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Button shine */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-shine:hover::after {
  opacity: 1;
  animation: shimmer 0.8s ease;
}

.btn-shine:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accent line shimmer */
@keyframes accentShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.form-group input.shake,
.form-group select.shake,
.form-group textarea.shake {
  animation: inputShake 0.45s ease;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  pointer-events: none;
}

#mobile-menu.menu-open {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu.menu-open .mobile-nav-link,
#mobile-menu.menu-open .btn-secondary,
#mobile-menu.menu-open .btn-primary {
  animation: navSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

#mobile-menu.menu-open .mobile-nav-link:nth-of-type(1) { animation-delay: 0.05s; }
#mobile-menu.menu-open .mobile-nav-link:nth-of-type(2) { animation-delay: 0.1s; }
#mobile-menu.menu-open .mobile-nav-link:nth-of-type(3) { animation-delay: 0.15s; }
#mobile-menu.menu-open .mobile-nav-link:nth-of-type(4) { animation-delay: 0.2s; }
#mobile-menu.menu-open .mobile-nav-link:nth-of-type(5) { animation-delay: 0.25s; }

.form-success-msg.is-visible {
  display: block !important;
  animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll reveal variants */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal-scale {
  transform: scale(0.94);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Stagger items outside hero get delay via JS inline style */
[data-stagger-item].visible {
  opacity: 1;
}

/* Stats bar number glow on count */
.stats-bar-num.counting {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Card hover lift enhancement */
.compact-card,
.service-row {
  will-change: transform;
}

.compact-card.visible:hover,
.service-row.visible:hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

/* Feature chip hover */
.feature-chip {
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.feature-chip.visible:hover {
  transform: translateY(-2px);
}

/* About image subtle zoom on scroll visible */
.about-image {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image.visible-zoom {
  transform: scale(1);
}

.reveal .about-image {
  transform: scale(1.04);
}

.reveal.visible .about-image {
  transform: scale(1);
}

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

  .reveal,
  [data-stagger-item] {
    opacity: 1;
    transform: none;
  }

  .hero-panel-left,
  .hero-panel-right,
  .hero-item,
  .hero-metric,
  .hero-scroll-hint,
  .hero-bg-img,
  .hero-glow-1,
  .hero-glow-2,
  .hero-particles span {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-scroll-hint {
    transform: translateX(-50%) !important;
  }

  .hero-line-accent {
    -webkit-text-fill-color: white;
    background: none;
  }

  .hero-bg-img {
    transform: scale(1.08) !important;
  }
}
