*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:        #E63946;   /* primary CTA, stats, highlights   */
  --honeydew:   #F1FAEE;   /* body text, headings              */
  --light-blue: #A8DADC;   /* eyebrows, h1 accent, ghost links */
  --cerulean:   #457B9D;   /* borders, secondary elements      */
  --navy:       #1D3557;   /* page background, dark sections   */
  --font:       'Outfit', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--honeydew);
  overflow-x: hidden;
}

/* ─── Canvas ─────────────────────────────────────── */
#gl-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  will-change: opacity;
}

/* ─── Final background (finImag.png crossfade) ───── */
#final-bg {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: url('assets/images/finImag.png') center / cover no-repeat;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.05s linear;
}

/* ─── Cinematic gradient ─────────────────────────── */
#gradient-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top,  rgba(29,53,87,0.97) 0%, rgba(29,53,87,0.55) 30%, rgba(29,53,87,0.12) 62%, transparent 82%),
    linear-gradient(to right, rgba(29,53,87,0.65) 0%, transparent 60%);
}

/* ─── Hero overlay ───────────────────────────────── */
#hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  will-change: opacity;
}

/* ─── Navbar ─────────────────────────────────────── */
#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  pointer-events: auto;
}

#logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

#nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

#nav-links a {
  color: rgba(241,250,238,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: color 0.2s;
}

#nav-links a:hover { color: var(--light-blue); }

.nav-cta {
  background: var(--red);
  color: var(--honeydew) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.86; }

/* ─── Hero content ───────────────────────────────── */
#hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 4.5rem;
  position: relative;
}

#hero-text { max-width: 800px; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-blue);
  margin-bottom: 1.25rem;
}

.eyebrow-dark { color: var(--light-blue); }

h1 {
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--honeydew);
}

h1 .line   { display: block; }
h1 .accent { color: var(--light-blue); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(241,250,238,0.58);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  pointer-events: auto;
}

/* ─── Buttons ────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--honeydew);
  padding: 0.875rem 2.1rem;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s;
}

.btn-primary:hover  { opacity: 0.86; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-block;
  color: var(--light-blue);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(168,218,220,0.45);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--honeydew);
  border-color: var(--honeydew);
}

/* ─── Scroll hint ────────────────────────────────── */
#scroll-hint {
  position: absolute;
  bottom: 4.5rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.45;
  color: var(--honeydew);
}

#scroll-hint span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 58px;
  background: linear-gradient(to bottom, var(--light-blue), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%       { opacity: 1;    transform: scaleY(1.08); }
}

/* ─── Scroll driver ──────────────────────────────── */
#scroll-driver {
  height: 500vh;
  position: relative;
  z-index: 1;
}

/* ─── Main content ───────────────────────────────── */
#main-content {
  position: relative;
  z-index: 20;
  background: var(--navy);
}

/* ─── Section base ───────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 3rem;
}

.section-header { margin-bottom: 5rem; }

.section-header h2,
.cta-text h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 1rem;
  color: var(--honeydew);
}

/* ─── Services ───────────────────────────────────── */
#services { border-top: 1px solid rgba(69,123,157,0.35); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top:  1px solid rgba(69,123,157,0.3);
  border-left: 1px solid rgba(69,123,157,0.3);
}

.service-item {
  padding: 3rem;
  border-right:  1px solid rgba(69,123,157,0.3);
  border-bottom: 1px solid rgba(69,123,157,0.3);
  transition: background 0.3s;
}

.service-item:hover { background: rgba(69,123,157,0.1); }

.service-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.service-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: var(--honeydew);
}

.service-item p {
  font-size: 0.9rem;
  color: var(--cerulean);
  line-height: 1.75;
}

/* ─── Stats ──────────────────────────────────────── */
#stats { background: var(--red); }

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 3rem;
}

.stat {
  text-align: center;
  padding: 2rem;
  border-right: 1px solid rgba(241,250,238,0.2);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: var(--honeydew);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(241,250,238,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Testimonials ───────────────────────────────── */
#testimonials {
  background: var(--navy);
  border-top: 1px solid rgba(69,123,157,0.35);
  padding-bottom: 5rem;
  overflow: hidden;
}

.test-header { padding-bottom: 3.5rem; }

/* Marquee container — clips the scrolling track */
.marquee-outer {
  overflow: hidden;
  padding: 0.5rem 0 1rem;
  /* Edge fade masks */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* The scrolling track — contains 2× the cards for a seamless loop */
.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
}

.marquee-outer:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Liquid glass card ─────────────────────────────── */
.test-card {
  flex-shrink: 0;
  width: 320px;
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: default;

  /* Glass background — cerulean tint */
  background: rgba(69,123,157,0.1);
  border: 1px solid rgba(168,218,220,0.18);

  /* Frosted glass */
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  /* Liquid glass inner glow — replicates the component's box-shadow stack */
  box-shadow:
    0 2px 8px rgba(0,0,0,0.15),
    0 0 12px rgba(168,218,220,0.04),
    inset  1px  1px 0.5px rgba(168,218,220,0.22),
    inset -1px -1px 0.5px rgba(29,53,87,0.55),
    inset  0    0   6px  rgba(168,218,220,0.06);

  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s cubic-bezier(0.16,1,0.3,1);
}

.test-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.25),
    0 0 20px rgba(168,218,220,0.08),
    inset  1px  1px 0.5px rgba(168,218,220,0.28),
    inset -1px -1px 0.5px rgba(29,53,87,0.55),
    inset  0    0   8px  rgba(168,218,220,0.1);
}

/* Card internals */
.test-top {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.test-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(168,218,220,0.25);
}

.test-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--honeydew);
  letter-spacing: -0.01em;
}

.test-role {
  font-size: 0.72rem;
  color: var(--cerulean);
  margin-top: 0.1rem;
  font-weight: 500;
}

.test-quote {
  font-size: 0.88rem;
  color: rgba(241,250,238,0.75);
  line-height: 1.75;
  flex: 1;
}

.test-stars {
  font-size: 0.88rem;
  color: #FFD166;
  letter-spacing: 2px;
}

/* ─── Contact ────────────────────────────────────── */
#contact { border-top: 1px solid rgba(69,123,157,0.35); }

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6rem;
  align-items: start;
}

.cta-sub {
  font-size: 0.92rem;
  color: var(--cerulean);
  line-height: 1.8;
  margin-top: 1.25rem;
}

/* ─── Form ───────────────────────────────────────── */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(168,218,220,0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(69,123,157,0.12);
  border: 1px solid rgba(69,123,157,0.4);
  border-radius: 4px;
  color: var(--honeydew);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(241,250,238,0.2); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--light-blue); }

.form-group select option { background: var(--navy); }

.full-width { width: 100%; }

/* ─── Footer ─────────────────────────────────────── */
footer {
  position: relative;
  overflow: hidden;
}

/* finImag.png full bleed — thin dark veil keeps text legible */
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/finImag.png') center / cover no-repeat;
  z-index: 0;
}

footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29,53,87,0.68);
  z-index: 1;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 3rem 2rem;
}

/* Top row: logo + social icons */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(168,218,220,0.2);
}

.footer-logo {
  height: 70px;
  width: auto;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.85rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(168,218,220,0.35);
  color: var(--honeydew);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--honeydew);
}

/* Bottom row: copyright + links */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(168,218,220,0.7);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: rgba(168,218,220,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .cta-inner   { grid-template-columns: 1fr; gap: 3.5rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-right: 1px solid rgba(241,250,238,0.2); }
  .stat:nth-child(4) { border-right: none; }
}

@media (max-width: 768px) {
  /* Navbar */
  #navbar {
    padding: 1rem 1.25rem;
    background: linear-gradient(to bottom, rgba(29,53,87,0.7) 0%, transparent 100%);
  }
  #logo { height: 58px; }
  #nav-links { gap: 1.25rem; }

  /* Hero */
  #hero-overlay { height: 100dvh; }

  #hero-content {
    padding: 0 1.25rem 3rem;
  }

  h1 { font-size: clamp(2.6rem, 11vw, 4rem); }

  .hero-sub {
    font-size: 0.92rem;
    margin-bottom: 2rem;
  }

  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .btn-primary  { padding: 0.85rem 1.75rem; font-size: 0.9rem; }

  #scroll-hint { display: none; }

  /* Stronger gradient on mobile */
  #gradient-overlay {
    background:
      linear-gradient(to top,  rgba(29,53,87,0.98) 0%, rgba(29,53,87,0.7) 30%, rgba(29,53,87,0.2) 60%, transparent 85%),
      linear-gradient(to right, rgba(29,53,87,0.55) 0%, transparent 70%);
  }

  /* Sections */
  .section-inner  { padding: 4rem 1.25rem; }
  .section-header { margin-bottom: 3rem; }

  .test-card     { width: 280px; padding: 1.4rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-item  { padding: 1.75rem 1.25rem; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner  { padding: 2.5rem 1.25rem 1.75rem; }
  .footer-top    { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
}

@media (max-width: 480px) {
  #nav-links a:not(.nav-cta) { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 3rem 1.25rem; }
  h1 { font-size: clamp(2.2rem, 12vw, 3.2rem); }
}
