:root {
  --color-bg: #ffffff;
  --color-bg-alt: #eef3fa;
  --color-surface: #f6f9fd;
  --color-border: #dde6f0;
  --color-text: #0f2a4a;
  --color-text-muted: #5b6b82;
  --color-accent: #14335c;
  --color-accent-2: #2f6fed;
  --gradient-accent: linear-gradient(120deg, #14335c 0%, #2f6fed 100%);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: #2f6fed;
}

p {
  color: var(--color-text-muted);
}

.text-gradient {
  background: linear-gradient(120deg, var(--color-accent), var(--color-accent-2), var(--color-accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease infinite;
}

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

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -28px) scale(1.08); }
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 51, 92, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(20, 51, 92, 0); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
  }

  .row .reveal:nth-child(2) { transition-delay: 0.08s; }
  .row .reveal:nth-child(3) { transition-delay: 0.16s; }
  .row .reveal:nth-child(4) { transition-delay: 0.24s; }
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-pop {
  transform: translateY(16px) scale(0.9);
}

.reveal-pop.is-visible {
  transform: none;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: 0 12px 30px -24px rgba(15, 42, 74, 0.25);
}

.navbar {
  padding: 0.9rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
}

.brand-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 1px 6px rgba(15, 42, 74, 0.18);
}

.brand-logo-lg {
  height: 64px;
}

.navbar-nav .nav-link {
  position: relative;
  color: var(--color-text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-text);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: var(--color-border);
}


.btn-cta {
  position: relative;
  overflow: hidden;
  background: var(--gradient-accent);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-cta:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px -10px rgba(20, 51, 92, 0.6);
}

.btn-cta:hover::after {
  transform: translateX(120%);
}

.btn-outline-light {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-outline-light:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(47, 111, 237, 0.1), transparent),
    radial-gradient(ellipse 50% 50% at 10% 20%, rgba(20, 51, 92, 0.08), transparent);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  pointer-events: none;
  animation: float 11s ease-in-out infinite;
}

.hero::before {
  width: 340px;
  height: 340px;
  top: -100px;
  right: 8%;
  background: var(--color-accent);
}

.hero::after {
  width: 280px;
  height: 280px;
  bottom: -90px;
  left: 4%;
  background: var(--color-accent-2);
  animation-delay: -5.5s;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-text);
  font-weight: 500;
}

.hero-card {
  animation: drift 8s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-card-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  animation: pulseDot 2.2s ease-in-out infinite;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.stats-section {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ---------- Cards ---------- */
.feature-card,
.service-card,
.portfolio-card {
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.service-card:hover,
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 22px 44px -24px rgba(20, 51, 92, 0.5);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon,
.service-card:hover .feature-icon {
  transform: scale(1.18) rotate(-6deg);
}

.feature-card h3,
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.service-card {
  padding: 2.5rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.service-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(20, 51, 92, 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}

.portfolio-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.portfolio-note {
  margin-top: 1rem;
  color: var(--color-text-muted);
}

.portfolio-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.portfolio-links a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Process ---------- */
.process-section {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.process-step {
  height: 100%;
}

.process-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.process-step h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* ---------- About ---------- */
.values-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-row .hero-card-dot {
  margin-top: 0.4rem;
}

.value-row h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.value-row p {
  margin: 0;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
  background: radial-gradient(ellipse 60% 60% at 15% 0%, rgba(20, 51, 92, 0.12), transparent);
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  top: -110px;
  right: 6%;
  background: var(--color-accent-2);
  opacity: 0.1;
  filter: blur(60px);
  animation: float 10s ease-in-out infinite;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  max-width: 760px;
}

.page-hero .hero-lead {
  max-width: 680px;
  margin-bottom: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-banner::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  top: -120px;
  right: -60px;
  background: var(--gradient-accent);
  opacity: 0.12;
  filter: blur(50px);
  animation: float 9s ease-in-out infinite;
}

.cta-banner:hover {
  border-color: var(--color-accent);
  box-shadow: 0 24px 50px -28px rgba(20, 51, 92, 0.45);
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.cta-banner p {
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.contact-map-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.map-embed {
  margin-top: 3rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px -20px rgba(15, 42, 74, 0.2);
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.contact-form .form-label {
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.contact-form .form-control {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
}

.contact-form .form-control:focus {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(20, 51, 92, 0.25);
}

.contact-form .form-control::placeholder {
  color: #5b6480;
}

.contact-success {
  background: rgba(30, 158, 106, 0.1);
  border: 1px solid rgba(30, 158, 106, 0.35);
  color: #1c7a52;
  border-radius: 10px;
}

.contact-error {
  background: rgba(200, 60, 60, 0.08);
  border: 1px solid rgba(200, 60, 60, 0.3);
  color: #a12f2f;
  border-radius: 10px;
}

.contact-error a {
  color: #8a2323;
  text-decoration: underline;
}

/* ---------- Legal ---------- */
.legal-content {
  max-width: 760px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--color-text-muted);
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a,
.footer-links li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    gap: 1rem;
  }

  .cta-banner {
    justify-content: center;
    text-align: center;
  }
}
