/* ==========================================================================
   MAHAVIR ENGINEERING AND CONSULTANT PVT LTD — Design System
   ========================================================================== */

:root {
  /* Core blues */
  --navy-950: #050b1a;
  --navy-900: #081a3d;
  --blue-900: #0b2a5e;
  --blue-800: #0f4c9c;
  --blue-600: #1a63c4;
  --blue-500: #2e7cf6;
  --blue-400: #5b9bff;
  --cyan-400: #4fd1e8;

  /* Neutrals */
  --ink-900: #0b1220;
  --ink-700: #26324a;
  --slate-600: #5b6b85;
  --slate-400: #8b9bb5;.slide-overlay
  --surface: #f5f8fd;
  --surface-2: #eaf1fb;
  --white: #ffffff;

  /* Accent */
  --gold-400: #d8a84e;
  --gold-300: #f3d08a;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, var(--navy-950) 0%, var(--blue-900) 45%, var(--blue-600) 100%);
  --grad-section: linear-gradient(180deg, var(--navy-900) 0%, var(--blue-900) 100%);
  --grad-accent: linear-gradient(120deg, var(--blue-500), var(--cyan-400));
  --grad-gold: linear-gradient(120deg, var(--gold-400), var(--gold-300));

  /* Type */
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.68, 0, 1);
  --dur: .7s;

  /* Layout */
  --container: 1240px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 50px -20px rgba(8, 26, 61, .35);
  --shadow-card: 0 10px 30px -12px rgba(8, 26, 61, .18);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

section {
  position: relative;
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--grad-gold);
  display: inline-block;
  border-radius: 2px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
}

.section-head p {
  margin-top: 16px;
  color: var(--slate-600);
  font-size: 1.05rem;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(46, 124, 246, .55);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -10px rgba(46, 124, 246, .7);
}

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-800);
}

.btn-outline:hover {
  background: var(--blue-800);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--navy-950);
  box-shadow: 0 14px 30px -10px rgba(216, 168, 78, .55);
}

.btn-gold:hover {
  transform: translateY(-3px);
}

.btn i {
  font-size: .85em;
}

/* ===================== SCROLL-REVEAL SYSTEM ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="left"] {
  transform: translateX(-46px);
}

[data-reveal="left"].in {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(46px);
}

[data-reveal="right"].in {
  transform: translateX(0);
}

[data-reveal="scale"] {
  transform: scale(.92);
}

[data-reveal="scale"].in {
  transform: scale(1);
}

[data-stagger]>* {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ===================== BACKGROUND SVG DECOR ===================== */
.decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor svg {
  position: absolute;
}

.decor-hero .grid-layer {
  position: absolute;
  inset: -2px;
  opacity: .35;
}

.decor-about .ring {
  position: absolute;
  top: 10%;
  right: -8%;
  width: 46%;
  animation: spin-slow 40s linear infinite;
  opacity: .5;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.decor-about .dots {
  position: absolute;
  bottom: -6%;
  left: -4%;
  width: 38%;
  opacity: .55;
  animation: float-slow 7s ease-in-out infinite;
}

.decor-services .iso {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
  animation: drift 22s linear infinite;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-60px, -40px);
  }
}

.decor-stats .circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .4;
}

.decor-stats .circuit .pulse {
  animation: pulse-op 2.6s ease-in-out infinite;
}

@keyframes pulse-op {
  0%,
  100% {
    opacity: .25;
  }
  50% {
    opacity: .9;
  }
}

.decor-stats .node {
  animation: pulse-op 2.6s ease-in-out infinite;
}

.decor-projects .contour {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 60%;
  opacity: .4;
  animation: float-slow 11s ease-in-out infinite;
}

.decor-projects .contour2 {
  position: absolute;
  bottom: -14%;
  right: -8%;
  width: 55%;
  opacity: .35;
  animation: float-slow 13s ease-in-out infinite reverse;
}

.decor-clients .grid-drift {
  animation: drift 26s linear infinite;
}

.decor-clients .p1 {
  animation: pulse-op 3.2s ease-in-out infinite;
}

.decor-clients .p2 {
  animation: pulse-op 3.2s ease-in-out infinite;
  animation-delay: .8s;
}

.decor-clients .p3 {
  animation: pulse-op 3.2s ease-in-out infinite;
  animation-delay: 1.6s;
}

.decor-cta .beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  animation: pulse-op 4s ease-in-out infinite;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(24px) rotate(2deg);
  }
}

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all .4s var(--ease);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 10px 34px -18px rgba(8, 26, 61, .22);
  border-bottom: 1px solid #e6edf7;
}

.site-header.scrolled .nav-menu>li>a {
  color: var(--ink-700);
}

.site-header.scrolled .nav-menu>li>a:hover,
.site-header.scrolled .nav-menu>li>a.active {
  color: var(--blue-700);
  background: var(--surface-2);
}

.site-header.scrolled .brand-text strong {
  color: var(--ink-900);
}

.site-header.scrolled .nav-call {
  color: var(--ink-900);
}

.site-header.scrolled .nav-call small {
  color: var(--slate-600);
}

.site-header.scrolled .nav-call .call-icon {
  background: var(--grad-accent);
  color: #fff;
}

.site-header.scrolled .nav-toggle {
  background: var(--surface-2);
  color: var(--ink-900);
}

/* ===================== LOGO SWAP ===================== */
.brand .logo-default {
  display: block;
}

.brand .logo-sticky {
  display: none;
}

/* When header is scrolled, swap logos */
.site-header.scrolled .brand .logo-default {
  display: none;
}

.site-header.scrolled .brand .logo-sticky {
  display: block;
}

/* Ensure the brand container handles the images properly */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: auto;
  height: 50px;
  
  object-fit: contain;
}

/* Smooth transition for logo swap */
.brand img {
  transition: opacity 0.4s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.brand-text span {
  color: var(--cyan-400);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-menu>li {
  position: relative;
}

.nav-menu>li>a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  color: #dde6f5;
  font-size: .92rem;
  font-weight: 500;
  border-radius: 100px;
  transition: all .3s var(--ease);
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
}

.nav-menu>li>a i {
  font-size: .7rem;
  transition: transform .3s var(--ease);
}

.nav-menu>li:hover>a i {
  transform: rotate(180deg);
}

/* ===================== ENHANCED DROPDOWN ===================== */
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 680px;
  max-width: 85vw;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -20px rgba(8, 26, 61, 0.4);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.22, 0.68, 0, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu>li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
}

.dropdown-header {
  grid-column: 1 / -1;
  padding: 12px 16px 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-400);
  font-weight: 600;
  border-bottom: 1px solid var(--surface-2);
  margin-bottom: 4px;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--ink-700);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.dropdown a .drop-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.dropdown a .drop-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown a .drop-text strong {
  font-weight: 600;
  color: var(--ink-900);
  font-size: 0.92rem;
}

.dropdown a .drop-text span {
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 400;
}

.dropdown a:hover {
  background: var(--surface);
  transform: translateX(4px);
}

.dropdown a:hover .drop-icon {
  background: var(--grad-accent);
  color: var(--white);
  transform: rotate(-6deg) scale(1.05);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta .btn {
  padding: 12px 24px;
  font-size: .88rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-call {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  transition: color .4s var(--ease);
}

.nav-call .call-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all .4s var(--ease);
}

.nav-call .call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.nav-call small {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9fb0cd;
  font-weight: 500;
}

.nav-call strong {
  font-size: .95rem;
  font-weight: 600;
}

/* ===================== HERO FULL-SCREEN SLIDER ===================== */
.hero {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-950);
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-slider-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Slider Track - Full Screen */
.slider-track-wrapper {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.22, 0.68, 0, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
  height: 100%;
}

.slide-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(5 11 26 / 66%) 0%, rgb(5 11 26 / 64%) 50%, rgb(5 11 26 / 61%) 100%);
  z-index: 1;
}

.slide-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

.slide-content {
  max-width: 620px;
  padding: 40px 0;
}

.slide-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.slide-content .hero-badge .dot-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-950);
  font-size: 0.7rem;
}

.slide-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.slide-content h1 em {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slide-content .lead {
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #c4d2ea;
  max-width: 520px;
}

.slide-content .hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.slider-dots .dot.active {
  background: var(--grad-gold);
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(216, 168, 78, 0.5);
}

.slider-dots .dot:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.6);
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

.scroll-cue .line {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--gold-400), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
  40% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 0;
    transform: scaleY(1);
  }
}

/* ===================== TRUST STRIP ===================== */
.trust-strip {
  background: var(--surface);
  padding: 22px 0;
  border-bottom: 1px solid #e6edf7;
}

.trust-strip .container {
  display: flex;
  align-items: center;
  gap: 34px;
}

.trust-strip .label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--slate-600);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  font-weight: 600;
  color: var(--ink-700);
  font-size: 1rem;
  opacity: .6;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===================== ABOUT ===================== */
.about {
  padding: 130px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.about-badge {
  position: absolute;
  bottom: -26px;
  right: -26px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 230px;
}

.about-badge i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-badge strong {
  display: block;
  font-size: 1.05rem;
}

.about-badge span {
  font-size: .78rem;
  color: var(--slate-600);
}

.about-content .also-known {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.about-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-list i {
  margin-top: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
}

.about-list strong {
  font-size: .98rem;
}

.about-list p {
  color: var(--slate-600);
  font-size: .9rem;
  margin-top: 2px;
}

.about-content .btn {
  margin-top: 34px;
}

/* ===================== SERVICES ===================== */
.services {
  padding: 130px 0;
  background: var(--surface);
}

.service-grid-pro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
}

.service-card-pro {
  position: relative;
  background: var(--white);
  border: 1px solid #e6edf7;
  border-radius: var(--radius-md);
  padding: 32px 26px 28px;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

.scp-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.service-card-pro:hover .scp-accent {
  transform: scaleX(1);
}

.service-card-pro:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
  border-color: transparent;
}

.scp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.scp-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all .4s var(--ease);
}

.service-card-pro:hover .scp-icon {
  background: var(--grad-accent);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}

.scp-num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: .05em;
}

.service-card-pro h3 {
  font-size: 1.08rem;
  font-weight: 600;
}

.service-card-pro p {
  margin-top: 10px;
  font-size: .87rem;
  color: var(--slate-600);
  line-height: 1.65;
}

.service-card-pro .more {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-700);
}

.service-card-pro .more i {
  font-size: .75rem;
  transition: transform .3s var(--ease);
}

.service-card-pro:hover .more i {
  transform: translateX(5px);
}

/* ===================== STATS ===================== */
.stats {
  padding: 110px 0;
  background: var(--grad-section);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-card i {
  font-size: 1.7rem;
  color: var(--cyan-400);
  margin-bottom: 16px;
  display: inline-block;
}

.stat-card .num {
  font-size: 2.6rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.stat-card .num span.suffix {
  font-size: 1.6rem;
  color: var(--gold-400);
}

.stat-card small {
  display: block;
  margin-top: 8px;
  color: #a9b8d6;
  font-size: .85rem;
  letter-spacing: .03em;
}

/* ===================== PROJECTS ===================== */
.projects {
  padding: 130px 0;
  background: var(--white);
}

.project-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.project-tab {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--blue-700);
  transition: all .3s var(--ease);
}

.project-tab.active,
.project-tab:hover {
  background: var(--grad-accent);
  color: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  transition: transform .5s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card .pbg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
}

.project-card.p2 .pbg {
  background: linear-gradient(150deg, #081a3d, #1a63c4 70%);
}

.project-card.p3 .pbg {
  background: linear-gradient(150deg, #0b2a5e, #4fd1e8 120%);
}

.project-card.p4 .pbg {
  background: linear-gradient(150deg, #050b1a, #0f4c9c 90%);
}

.project-card .picon {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
}

.project-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: var(--white);
}

.project-content .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .14);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-content .status.done {
  background: rgba(79, 209, 232, .22);
  color: var(--cyan-400);
}

.project-content .status.live {
  background: rgba(216, 168, 78, .22);
  color: var(--gold-300);
}

.project-content h3 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
}

.project-content p {
  color: #c4d2ea;
  font-size: .85rem;
  margin-top: 8px;
  line-height: 1.6;
}

.project-content .meta {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  font-size: .78rem;
  color: #9fb0cd;
}

.project-content .meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-content .meta span.value {
  color: var(--gold-300);
  font-weight: 600;
}

/* ===================== CLIENTS ===================== */
.clients {
  padding: 110px 0;
  background: #0f4c9c;
}

.clients .eyebrow {
  color: #bcd6ff;
}

.clients .eyebrow::before {
  background: var(--grad-gold);
}

.clients .section-head h2 {
  color: #fff;
}

.clients .section-head p {
  color: #cfe0fb;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.client-chip {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: all .4s var(--ease);
}

.client-chip:hover {
  background: rgba(255, 255, 255, .15);
  border-color: #4fd1e8;
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .4);
}

.client-logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--grad-gold);
  color: var(--navy-950);
  font-weight: 700;
  font-size: .92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-slow 5s ease-in-out infinite;
}

.client-chip:nth-child(2n) .client-logo-mark {
  animation-delay: .6s;
}

.client-chip:nth-child(3n) .client-logo-mark {
  animation-delay: 1.2s;
}

.client-chip span {
  color: #fff;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials {
  padding: 110px 0;
  background: var(--surface);
}

.testi-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.testi-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: testi-scroll 38s linear infinite;
}

.testi-track:hover {
  animation-play-state: paused;
}

@keyframes testi-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.testi-card {
  width: 360px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid #e6edf7;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.testi-stars {
  color: var(--gold-400);
  font-size: .8rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testi-card p {
  font-size: .92rem;
  color: var(--ink-700);
  line-height: 1.75;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testi-person strong {
  display: block;
  font-size: .88rem;
}

.testi-person span {
  font-size: .76rem;
  color: var(--slate-600);
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
  padding: 110px 0;
  background: var(--grad-hero);
  color: var(--white);
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner p {
  color: #c4d2ea;
  margin-top: 18px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ===================== CONTACT TEASER ===================== */
.contact-teaser {
  padding: 120px 0;
  background: var(--white);
}

.contact-teaser-inner {
  background: var(--grad-section);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-teaser-text .eyebrow {
  color: var(--cyan-400);
}

.contact-teaser-text h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
}

.contact-teaser-text p {
  color: #b9c6de;
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 480px;
}

.contact-quick {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}

.contact-quick .contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-quick .contact-item i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-quick .contact-item strong {
  display: block;
  font-size: .92rem;
  color: var(--white);
}

.contact-quick .contact-item span,
.contact-quick .contact-item a {
  font-size: .86rem;
  color: #a9b8d6;
}

.contact-teaser-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-teaser-actions .btn {
  justify-content: center;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--navy-950);
  color: #a9b8d6;
  padding: 90px 0 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand .brand-text strong {
  color: var(--white);
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-cert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: .76rem;
  color: #cfe0fb;
  margin-top: 18px;
}

.footer-cert i {
  color: var(--gold-400);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease);
}

.footer-social a:hover {
  background: var(--grad-accent);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: .02em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col a {
  font-size: .87rem;
  transition: color .3s, padding-left .3s;
}

.footer-col a:hover {
  color: var(--cyan-400);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .86rem;
  line-height: 1.6;
  transition: transform .3s var(--ease);
}

.footer-contact li:hover {
  transform: translateX(4px);
  color: #dde6f5;
}

.footer-contact i {
  color: var(--cyan-400);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: #7c8ba8;
}

.footer-bottom a {
  color: #7c8ba8;
}

.footer-bottom a:hover {
  color: var(--cyan-400);
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(46, 124, 246, .6);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .35s var(--ease);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ===================== COUNTERS ===================== */
.counted {
  font-variant-numeric: tabular-nums;
}

/* ===================== MOBILE NAV ===================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--navy-950);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.mobile-nav-close {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav>ul>li>a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
  padding-left: 14px;
}

.mobile-submenu.open {
  max-height: 600px;
}

.mobile-submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  color: #b9c6de;
  font-size: .92rem;
}

.mobile-nav-cta {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-visual {
    max-width: 420px;
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-teaser-inner {
    grid-template-columns: 1fr;
    padding: 44px;
  }
  .slide-content h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  }
  .slide-content .lead {
    font-size: .95rem;
  }
}

@media (max-width: 1024px) {
  .dropdown {
    width: 560px;
    max-width: 80vw;
  }
  .dropdown a {
    padding: 12px 14px;
    font-size: .82rem;
  }
  .dropdown a .drop-icon {
    width: 34px;
    height: 34px;
    font-size: .8rem;
  }
  .dropdown a .drop-text strong {
    font-size: .85rem;
  }
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-call .call-text small {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .hero {
    height: 100vh;
    min-height: 100vh;
  }
  .hero-slider-container {
    height: 100vh;
  }

  .slide-content {
    max-width: 100%;
    padding: 10px 0;
  }
  .slide-content h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  .slide-content .lead {
    font-size: .88rem;
    max-width: 100%;
  }
  .slide-content .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .slide-content .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .slider-dots {
    bottom: 30px;
    gap: 10px;
    padding: 8px 16px;
  }
  .slider-dots .dot {
    width: 10px;
    height: 10px;
  }

  .scroll-cue {
    display: none;
  }

  .about,
  .services,
  .stats,
  .projects,
  .clients,
  .contact-teaser,
  .testimonials,
  .cta-banner {
    padding: 80px 0;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-badge {
    position: static;
    margin-top: -40px;
    margin-left: 16px;
    max-width: none;
    width: calc(100% - 32px);
  }
  .cta-actions .btn,
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-actions,
  .cta-actions {
    width: 100%;
  }
  .contact-teaser-inner {
    padding: 32px 24px;
  }
  .nav-call strong {
    font-size: .85rem;
  }
  .testi-card {
    width: 300px;
  }
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile dropdown */
  .dropdown {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .nav-menu>li:hover .dropdown {
    display: none;
  }
  .nav-menu>li.open .dropdown {
    display: block;
  }
  .dropdown-grid {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0;
  }
  .dropdown-header {
    display: none;
  }
  .dropdown a {
    padding: 12px 16px;
    color: var(--white);
    border-radius: 8px;
  }
  .dropdown a .drop-text strong {
    color: var(--white);
  }
  .dropdown a .drop-text span {
    color: #9fb0cd;
  }
  .dropdown a .drop-icon {
    background: rgba(255, 255, 255, .08);
    color: var(--cyan-400);
  }
  .dropdown a:hover {
    background: rgba(255, 255, 255, .06);
    transform: none;
  }
  .dropdown a:hover .drop-icon {
    background: rgba(255, 255, 255, .15);
    color: var(--white);
    transform: none;
  }
}

@media (max-width: 480px) {
  .slide-content .hero-badge {
    font-size: .65rem;
    padding: 5px 10px 5px 5px;
  }
  .slide-content .hero-badge .dot-icon {
    width: 20px;
    height: 20px;
    font-size: .55rem;
  }
  .slide-content h1 {
    font-size: 1.3rem;
  }
  .slide-content .lead {
    font-size: .8rem;
    margin-top: 10px;
  }
  .slide-content .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }
  .slide-content .hero-actions .btn {
    padding: 12px 20px;
    font-size: .85rem;
  }

  .slider-dots {
    bottom: 20px;
    gap: 8px;
    padding: 6px 14px;
  }
  .slider-dots .dot {
    width: 8px;
    height: 8px;
  }
}

/* ===================== ACCESSIBILITY ===================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}