:root {
  --bg: #f6f8fb; /* light page background */
  --surface: #ffffff; /* header/footer and cards */
  --card: #f3f6fa; /* subtle card background */
  --text: #393a3d; /* primary font color as requested */
  --muted: #6b7780;
  --accent: #1e90ff; /* vibrant blue accent */
  --container: 1300px;
  --radius: 12px;
  --hero-top: #03152b; /* dark blue */
  --hero-bottom: #3f7cb9; /* light blue */
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
  --saffron: #ff671f; /* saffron color from flag */
  --green: #046a38; /* green color from flag */
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow: 0;
  transition: opacity 0.25s ease-in-out;
}
html,
body {
  height: 100%;
}
html.is-loaded {
  opacity: 1;
}

/* Optional: fade out when leaving (works in modern browsers) */
html.is-leaving {
  opacity: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  margin: 0;
  font-family: "Avenir Next", Inter, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 60;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand-logo img {
  display: block;
  /* border-radius: 6px; */
}
.brand-name {
  font-weight: 700;
  font-size: 1.2em;
  color: #073163;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;

  /* letter-spacing: 0.1em; */
  text-decoration: none;
  padding: 8px 6px;
  border-radius: 6px;
}
.main-nav a:hover {
  background: rgba(30, 144, 255, 0.07);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: #fff;
  /* border: 1px solid rgba(0, 0, 0, 0.06); */
  padding: 10px;
  border-radius: 5px;
}
.hamburger {
  display: block;
  width: 30px;
  height: 3px;
  margin: 5px 0;
  background: var(--hero-top);
  position: relative;
  transition: all 0.3s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hero-top);
  transition: all 0.3s ease;
}
.hamburger::before {
  top: -7px;
}
.hamburger::after {
  top: 7px;
}

/* Hero section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    180deg,
    rgb(2, 31, 49) 40%,
    rgba(8, 88, 138, 1) 100%
  ); */
  background: linear-gradient(
      181.58deg,
      rgba(5, 41, 64, 1) 55%,
      rgba(18, 116, 208, 0.82) 100%
    ),
    linear-gradient(90deg, rgba(3, 21, 43, 1) 0%, rgba(63, 124, 185, 1) 100%);
  transform: translateZ(0);
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20% -50% -10% -50%;
  mix-blend-mode: screen;
  animation: shift 12s linear infinite;
}
/* decorative soft shapes */
.hero-bg::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -10%;
  top: -18%;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(30, 144, 255, 0.14),
      rgba(77, 166, 255, 0.06) 40%,
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 103, 31, 0.1),
      rgba(63, 124, 185, 0.04) 40%,
      transparent 60%
    );
  filter: blur(60px);
  transform: rotate(8deg) translateZ(0);
  opacity: 0.95;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* extra small accent shape */
.hero .hero-accent {
  position: absolute;
  left: 8%;
  bottom: 6%;
  width: 140px;
  height: 140px;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(30, 144, 255, 0.18),
    rgba(77, 166, 255, 0.06)
  );
  filter: blur(18px);
  transform: rotate(-12deg);
  opacity: 0.9;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center; /* center horizontally */
  min-height: 520px;
}
.hero-foreground {
  max-width: 720px;
  color: #fff;
  margin: 0 auto;
  text-align: center; /* center text */
}
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 600;
  margin: 0 0 12px;
  color: #fff;
}

/* Background words (decorative, behind hero content) */
.hero-words {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.bg-word {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.12);
  font-weight: 400;
  filter: blur(2px);
  white-space: nowrap;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.bg-word svg {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  opacity: 0.9;
  filter: drop-shadow(0 10px 24px rgba(8, 24, 40, 0.06));
}
.bg-word span {
  font-size: clamp(16px, 4vw, 32px);
  line-height: 1;
}

/* individual positions and slow drifting animations */
.bg-word.w1 {
  left: 6%;
  top: 8%;
  transform: translate3d(0, 0, 0);
  -webkit-animation: drift-1 28s linear infinite;
  animation: drift-1 28s linear infinite;
}
.bg-word.w2 {
  right: 6%;
  top: 22%;
  transform: translate3d(0, 0, 0);
  -webkit-animation: drift-2 34s linear infinite;
  animation: drift-2 34s linear infinite;
}
.bg-word.w3 {
  left: 8%;
  bottom: 18%;
  transform: translate3d(0, 0, 0);
  -webkit-animation: drift-3 30s linear infinite;
  animation: drift-3 30s linear infinite;
}
.bg-word.w4 {
  right: 10%;
  bottom: 6%;
  transform: translate3d(0, 0, 0);
  -webkit-animation: drift-4 26s linear infinite;
  animation: drift-4 26s linear infinite;
}

@keyframes drift-1 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, 6px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
@-webkit-keyframes drift-1 {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  50% {
    -webkit-transform: translate3d(12px, 6px, 0);
    transform: translate3d(12px, 6px, 0);
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes drift-2 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-8px, -12px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
@-webkit-keyframes drift-2 {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  50% {
    -webkit-transform: translate3d(-8px, -12px, 0);
    transform: translate3d(-8px, -12px, 0);
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes drift-3 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(6px, -10px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
@-webkit-keyframes drift-3 {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  50% {
    -webkit-transform: translate3d(6px, -10px, 0);
    transform: translate3d(6px, -10px, 0);
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes drift-4 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-14px, 8px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
@-webkit-keyframes drift-4 {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  50% {
    -webkit-transform: translate3d(-14px, 8px, 0);
    transform: translate3d(-14px, 8px, 0);
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

/* ensure decorative words are disabled for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bg-word {
    animation: none;
    filter: none;
    opacity: 0.9;
  }
}
.lead {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 18px;
}
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  margin-right: 10px;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}
.text-center {
  text-align: center;
}

@keyframes shift {
  0% {
    transform: translateX(-10%);
  }
  50% {
    transform: translateX(10%);
  }
  100% {
    transform: translateX(-10%);
  }
}

/* Services */
.services {
  padding: 80px 10px 20px 10px; /* top right bottom left */
  /* background: linear-gradient(
    180deg,
    rgba(77, 166, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  ); */
}
.section-title {
  font-size: 22px;
  margin: -5px 0 6px;
}
.section-lead {
  margin: 0 0 20px;
  font-size: 1.2em;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--surface);
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.6s ease;
}
.service-card.revealed {
  transform: none;
  opacity: 1;
}
.service-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: linear-gradient(
    180deg,
    rgba(30, 144, 255, 0.14),
    rgba(77, 166, 255, 0.06)
  );
}
.service-body {
  padding: 18px;
}
.service-foot {
  padding: 12px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  background: transparent;
}
.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Trust logos marquee */
.trust {
  padding: 40px 0;
}
.logo-marquee {
  overflow: hidden;
  margin-top: 12px;
}
.marquee-track {
  display: flex;
  gap: 30px;
  align-items: center;
  animation: marquee 18s linear infinite;
}
.marquee-track img {
  height: 36px;
  opacity: 0.95;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.logo-marquee:hover .marquee-track,
.logo-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

/* Updates rotator */
.updates {
  padding: 40px 20px;
}
.updates-rotator {
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  max-width: 720px;
}
.update {
  display: none;
}
.update.active {
  display: block;
}
/* Article Styles */

/* Container for tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  font-family: "Segoe UI", Arial, sans-serif;
  list-style: none;
  padding: 0;
}

/* Individual tag */
.article-tags span {
  background: #e3f2fd;
  color: #1565c0;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #bbdefb;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Hover effect (optional) */
.article-tags span:hover {
  background: #bbdefb;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/*reset gaps between paragraphs inside article */
.reset-gaps {
  margin: 5px 0;
  padding: 5px0;
}
.text-strong {
  font-weight: 600;
}
/* Contact Form */

/* ====================== CONTACT FORM STYLES ====================== */
.contact-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  border: 1px solid #eaeaea;
}

.contact-form label {
  display: block;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3748;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.25s ease;
  background-color: #fafafa;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #6366f1;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

/* Button */
.contact-form button {
  background: #6366f1;
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  margin-top: 10px;
}

.contact-form button:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}
.required {
  color: #3908cb;
}
.contact-form button:active {
  transform: translateY(0);
}

/* Success message (Formspree shows it after submit) */
.contact-form .formspree-success {
  background: #d1fae5;
  color: #065f46;
  padding: 16px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
  .contact-form {
    margin: 10px 8px;
    padding: 15px 12px;
    border-radius: 12px;
  }
}

/* Optional dark mode (auto-respects user preference) */
@media (prefers-color-scheme: dark) {
  .contact-form {
    background: #1a202c;
    border-color: #2d3748;
    color: #e2e8f0;
  }

  .contact-form label {
    color: #e2e8f0;
  }

  .contact-form input,
  .contact-form textarea {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
  }
}

/* End Contact form */
/* Footer */
.site-footer {
  /* border-top: 1px solid rgba(255, 255, 255, 0.03); */
  padding: 22px 0;
  margin-top: 40px;
  --color-2: hsl(219 76% 41%);
  --color-1: hsl(241, 84%, 23%);
  background: linear-gradient(in oklch 180deg, var(--color-1), var(--color-2));
}
.footer-inner {
  color: #f4f2f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-inner ul {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before {
    animation: none;
  }
  .marquee-track {
    animation: none;
  }
  .service-card {
    transition: none;
  }
  .nav-toggle {
    display: none;
  }
  .hero-bg::after,
  .hero .hero-accent {
    animation: none;
    transform: none;
    filter: none;
  }
}
/* Responsive styles for 820px and below */
@media (max-width: 820px) {
  .header-inner {
    padding: 12px 20px;
  }
  /* .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
  }
  .main-nav {
    position: fixed;
    right: 12px;
    top: 64px;
    background: var(--surface);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 12px;
    width: 150px;
    display: none;
    justify-items: flex-start;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 8px;
  } */
  .hero-foreground {
    padding: 0 50px;
  }
}
/* ==== MOBILE MENU - ENHANCED ==== */
@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* z-index: 1000; */
  }

  /* Hamburger Lines → Cross Animation */
  .hamburger,
  .hamburger::before,
  .hamburger::after {
    display: block;
    width: 28px;
    height: 3px;
    background: #073163;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  .hamburger {
    position: relative;
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    top: 8px;
  }

  /* Active State = Cross */
  .nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent; /* middle line disappears */
  }

  .nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile Menu - Slide from Right */
  .main-nav {
    position: fixed;
    top: 64px;
    right: 0;
    height: 60vh;
    max-height: 600px;
    width: 60vw; /* ← 60% of screen */
    max-width: 320px;
    background: var(--surface);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    border-bottom-left-radius: 20px;
    padding: 100px 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ← Left aligned */
    transform: translateX(100%);
    /* transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
     */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    overflow-y: auto;
  }
  .main-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-left-radius: 20px;
    z-index: -1;
  }

  .main-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .main-nav a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    padding: 8px 0;
    display: block;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* Staggered item animation when menu opens */
  .main-nav.open a {
    opacity: 1;
    transform: translateX(0);
  }

  .main-nav.open a:nth-child(1) {
    transition-delay: 0.1s;
  }
  .main-nav.open a:nth-child(2) {
    transition-delay: 0.2s;
  }
  .main-nav.open a:nth-child(3) {
    transition-delay: 0.3s;
  }
  .main-nav.open a:nth-child(4) {
    transition-delay: 0.4s;
  }

  /* Optional: Dark overlay behind menu */
  .nav-toggle::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 998;
  }

  .nav-toggle[aria-expanded="true"]::before {
    opacity: 1;
    visibility: visible;
  }
}

/* Responsive tweaks for 600px and below */
@media (max-width: 600px) {
  .header-inner {
    padding: 12px 20px;
  }
  .hero-inner {
    padding: 30px 0;
  }
  .hero-foreground {
    padding: 0 20px;
  }
}
