@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #f3f4f6;
  --ink: #0b1620;
  --primary: #1f6fb2;
  --primary-dark: #114876;
  --accent: #ff6a1f;
  --hero-bg-1: #0a1420;
  --hero-bg-2: #123049;
  --hero-bg-3: #1f6fb2;
  --card-bg: #ffffff;
  --radius: 18px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--hero-bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}
.preloader.is-done {
  pointer-events: none;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  z-index: 60;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  transition: transform 0.35s ease, background 0.35s ease, padding 0.35s ease;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav.is-scrolled {
  background: rgba(243, 244, 246, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.85rem 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.site-nav.is-hidden {
  transform: translateY(-110%);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.nav-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.nav-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  cursor: pointer;
  position: relative;
  z-index: 70;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--hero-bg-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.nav-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.nav-overlay a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4rem);
  text-decoration: none;
  color: #fff;
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}
.nav-overlay a:hover {
  color: var(--accent);
}
body.nav-locked {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background: radial-gradient(circle at 15% 20%, var(--hero-bg-3) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, var(--accent) 0%, transparent 40%),
    linear-gradient(160deg, var(--hero-bg-1), var(--hero-bg-2));
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
  opacity: 0.32;
  mix-blend-mode: luminosity;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 20, 32, 0.65), rgba(18, 48, 73, 0.55));
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-blob.b1 {
  width: 420px;
  height: 420px;
  background: var(--primary);
  top: -120px;
  right: -100px;
}
.hero-blob.b2 {
  width: 320px;
  height: 320px;
  background: var(--accent);
  bottom: -80px;
  left: -80px;
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ffffff 0%, #f3f4f6 72%, #e7e9ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.hero-visual-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  animation: spin 30s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-visual-logo {
  width: 62%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}
.hero-floating-badge {
  position: absolute;
  bottom: -1rem;
  left: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 0.9rem 1.25rem;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.hero-floating-badge strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary-dark);
}
.hero-floating-badge span {
  font-size: 0.75rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  font-weight: 700;
  overflow: hidden;
}
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.25em;
}
.hero-title .word span {
  display: inline-block;
}
.hero-subtitle {
  max-width: 540px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.5rem;
}
.hero-cta {
  margin-top: 2.5rem;
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #0b1620;
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.5);
  animation: scrollcue 2s ease-in-out infinite;
}
@keyframes scrollcue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Marquee */
.marquee {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  padding: 1rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 24s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  padding: 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.marquee-track span::after {
  content: "•";
  margin-left: 1.5rem;
  color: var(--accent);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Sections */
section {
  padding: 7rem 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-tag {
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-top: 0.75rem;
}

.reveal {
  opacity: 0;
}
.reveal.is-visible {
  opacity: 1;
}

/* About split */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.75rem;
}
.about-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(9, 18, 28, 0.15), rgba(9, 18, 28, 0.8));
}
.about-media .stat {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: left;
  background: rgba(11, 22, 32, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.about-media .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
}
.about-media .stat span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  opacity: 0.85;
}
.about-text p {
  font-size: 1.05rem;
  color: #3a3a3a;
}

/* Mission / Vision cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.tilt-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: transform 0.2s ease;
  transform-style: preserve-3d;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.tilt-card h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}
.tilt-card p {
  color: #444;
  font-size: 0.98rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}
.service-card:hover {
  box-shadow: 0 24px 45px -28px rgba(0, 0, 0, 0.35);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(31, 111, 178, 0.1);
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.service-icon svg {
  width: 24px;
  height: 24px;
}
.service-card h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.9rem;
  color: #444;
  margin: 0;
}

/* Parallax banner */
.banner {
  position: relative;
  padding: 9rem 0;
  background: linear-gradient(160deg, var(--hero-bg-1), var(--primary-dark));
  color: #fff;
  overflow: hidden;
}
.banner-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}
.banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 20, 32, 0.75), rgba(17, 72, 118, 0.7));
}
.banner [data-parallax-container] {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
}
.banner-blob {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  filter: blur(80px);
  top: 10%;
  right: 10%;
}
.banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.banner-quote {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  margin: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.contact-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
}

.site-footer {
  position: relative;
  background: var(--hero-bg-1);
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem 0 0;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .nav-brand {
  color: #fff;
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 320px;
  font-size: 0.92rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col span {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-wordmark {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 18vw, 11rem);
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  letter-spacing: 0.02em;
  user-select: none;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 860px) {
  .about-grid,
  .card-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-media {
    aspect-ratio: 16/10;
  }
  section {
    padding: 4.5rem 0;
  }
  .hero {
    padding-top: 7rem;
  }
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 2rem;
    order: -1;
  }
  .hero-visual-card {
    max-width: 220px;
  }
  .scroll-cue {
    display: none;
  }
  .hero {
    padding-bottom: 3rem;
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
