html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

::selection { background: #163a6e; color: #fff; }

/* === Scroll progress bar at top of page === */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #0a1f3d 0%, #1c605c 35%, #10b981 65%, #f97316 100%);
  z-index: 100;
  transition: width .08s linear;
  box-shadow: 0 0 8px rgba(28, 96, 92, .4);
}

/* === Tricolor strip motif (subtle nod to INDIA in the wordmark) === */
.tricolor-strip {
  height: 3px;
  background: linear-gradient(90deg,
    #f97316 0%, #f97316 33%,
    #ffffff 33%, #ffffff 66%,
    #10b981 66%, #10b981 100%);
  opacity: .85;
  border-radius: 2px;
}
.tricolor-strip-soft {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #f97316 25%, #f59e0b 50%, #10b981 75%,
    transparent 100%);
  opacity: .6;
}

/* === Grain texture (used in hero sections) === */
.grain {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(22,58,110,0.04) 1px, transparent 0);
  background-size: 24px 24px;
}
.grain-dark {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 24px 24px;
}

/* === Animated decorative blob for hero === */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
  animation: blob-float 14s ease-in-out infinite;
}
.hero-blob.delay-1 { animation-delay: -4s; }
.hero-blob.delay-2 { animation-delay: -8s; }
@keyframes blob-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-20px) scale(1.1); }
  66% { transform: translate(-30px,30px) scale(.95); }
}

/* === Logo / link hovers === */
.logo-link { transition: opacity .2s ease, transform .2s ease; }
.logo-link:hover { opacity: .9; transform: translateY(-1px); }

/* Underline link with growing underline */
.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .25s ease;
}
.link-underline:hover { background-size: 100% 1px; }

/* === Premium card hover (richer than .card) === */
.card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  box-shadow: 0 18px 50px -18px rgba(10,31,61,.22);
  border-color: #9bd2c8;
}
.card-lift:hover { transform: translateY(-4px); }

/* Card with gradient sheen on hover */
.card-sheen { position: relative; overflow: hidden; }
.card-sheen::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(45,142,138,.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s ease;
  pointer-events: none;
}
.card-sheen:hover::before { transform: translateX(100%); }

/* === Marquee for client logos === */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 38s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* === Fade-in on scroll (CSS-only, JS-triggered) === */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s cubic-bezier(.2,.65,.3,1), transform .75s cubic-bezier(.2,.65,.3,1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger child animations */
.fade-up.is-visible > * { animation: fade-in-stagger .6s ease both; }
.fade-up.is-visible > *:nth-child(1) { animation-delay: .05s; }
.fade-up.is-visible > *:nth-child(2) { animation-delay: .15s; }
.fade-up.is-visible > *:nth-child(3) { animation-delay: .25s; }
.fade-up.is-visible > *:nth-child(4) { animation-delay: .35s; }
@keyframes fade-in-stagger {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Animated stat counter (number flips up on entry) === */
.stat-counter { font-variant-numeric: tabular-nums; }

/* === Floating-label form polish === */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  color: #1c605c;
}

/* === Subtle border-glow for active inputs === */
.input-glow:focus {
  box-shadow: 0 0 0 4px rgba(45,142,138,.12), 0 0 0 1.5px #2d8e8a;
}

/* === Tilted/skewed accent badge === */
.accent-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
  border: 1px solid rgba(45,142,138,.25);
  box-shadow: 0 4px 12px -4px rgba(10,31,61,.1);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: #102c55;
}
.accent-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #2d8e8a;
  box-shadow: 0 0 0 4px rgba(45,142,138,.18);
}

/* === Image masks for hero === */
.mask-fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* === Section divider with tricolor dot === */
.section-mark {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em;
  color: #1c605c;
}
.section-mark::before {
  content: ''; width: 24px; height: 1px;
  background: linear-gradient(90deg, #f97316, #f59e0b, #10b981);
}

/* === Smoother scrollbar for the page === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #163a6e; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #0a1f3d; }

/* === Print-friendly === */
@media print {
  .scroll-progress, .hero-blob { display: none; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-blob { animation: none; }
}
