/* Basic reset and layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial Rounded MT Bold", "Arial Rounded", Arial, sans-serif;
  color: #fff;
  background-color: #001b41;
  line-height: 1.6;
}

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

.nav-links a {
  text-decoration: none;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
  color: #ffffff80;
}

/* Top banner */
.top-banner {
  width: 100%;
  background-color: #ffffff24;
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  padding: 12px 12px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */
.site-header {
position: relative;
}


.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 0; /* top padding 40px */
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #ffffff;
}

.brand-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px; /* 40px gap between items */
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5); /* 50% white */
}

.nav-links a {
  opacity: 1;
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  padding: 0.25rem;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 3rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50 / 50 split */
  gap: 3rem;
  align-items: center;
}


/* We no longer need eyebrow here but keeping for later if re-used */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.75rem;
}

/* H1: 56px on desktop, scaled down on mobile */
.hero-copy h1 {
  font-size: 3.5rem; /* 56px */
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: 1.2px;
  word-spacing: -4px;
  color: #ffffff;
}

/* P: 24px, 50% white */
.hero-sub {
  margin: 0 0 1.75rem;
  font-size: 1.5rem; /* 24px */
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

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

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1.25rem; /* 20px */
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease;
}

/* Buttons should never be underlined */
.button,
.button:hover,
.button:focus {
  text-decoration: none;
}

/* Button gradient top->bottom 0095FF to 0055FC */
.button-primary {
  background: linear-gradient(to bottom, #0095ff, #0055fc);
  color: #ffffff;
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.button-secondary {
  background: white;
  border-color: rgba(148, 163, 184, 0.7);
  color: #ffffff;
}

.button-secondary:hover {
  background: #f3f4f6;
}

.button-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: #ffffff;
}

.button-ghost:hover {
  background: #e5e7eb;
}

/* Hero profile card */
.hero-profile {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.profile-card {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #eff6ff, #ffffff);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.profile-avatar {
  display: flex;
  justify-content: flex-start;
}

.hero-profile-image {
  width: 100%;
  max-width: 400px; /* desktop target */
  height: auto;
}

/* Hero visual / slider */
.hero-visual {
  width: 100%;
  display: flex;              /* NEW */
  justify-content: center;    /* NEW – centers the 400x400 square in the column */
  align-items: center;        /* NEW – vertical centering */
}

.hero-visual__inner {
  display: flex;              /* NEW */
  flex-direction: column;     /* slider on top, dots below */
  align-items: center;        /* center dots under the square */
}

.hero-visual__slider {
  position: relative;
  width: 400px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  /* ➕ Help the browser optimize the slide + bump */
  will-change: transform;
}

.hero-visual__slider.is-bumping {
  animation: mmHeroDoubleNudge 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stack images and fade between them */
.hero-visual__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  /* Base state – slightly soft / zoomed */
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hero-visual__img.is-active {
  /* Active state – crisp and centered */
  opacity: 1;
  transform: scale(1);
}

@keyframes mmHeroDoubleNudge {
  0%   { transform: translateX(0); }
  18%  { transform: translateX(-6px); } /* softer main hit */
  40%  { transform: translateX(4px); }  /* rebound */
  65%  { transform: translateX(-2px); } /* tiny settle */
  100% { transform: translateX(0); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .hero-visual__slider {
    animation: none !important;
    transform: none !important;
  }

  .hero-visual__img {
    transition: none;
    opacity: 1;
    transform: none;
  }
}


/* Slider dots */
.hero-visual__dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 0;
}

.hero-visual__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.32);
  opacity: 0.6;

  transition:
    opacity 200ms ease,
    width 200ms ease,
    background 200ms ease;
}

.hero-visual__dot.is-active {
  width: 36px;
  opacity: 1;
  background: #00b600;
}

.avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffffff;
  background: conic-gradient(from 180deg, #2563eb, #4f46e5, #22c55e, #2563eb);
  position: relative;
}

.avatar-circle::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: #eff6ff;
}

.avatar-circle::after {
  content: "JL";
  position: relative;
}

.profile-body h2 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.profile-role {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.profile-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #ffffff;
}

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

.section-muted {
  background: #f3f4f6;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.section-intro {
  margin: 0 0 2.25rem;
  color: #ffffff;
}

/* Cards (What I do) */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff16;
  border-radius: 14px;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.03);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #ffffff;
}

/* Logos row */
.logos-line {
  margin-top: 2.5rem;
}

.logos-label {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
}

/* CTA section */
.section-cta {
  text-align: center;
}

.section-cta h2 {
  margin-bottom: 0.75rem;
}

.section-cta .section-intro {
  margin-bottom: 1.5rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta-note {
  font-size: 0.9rem;
  color: #ffffff;
}

/* How it works – heading + subcopy */
#services h2 {
  margin: 0 0 1rem;
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
}

#services .section-intro {
  margin: 0 0 2rem;
  font-size: 24px;
  line-height: 1.5;
  width: 75%;
  color: rgba(255, 255, 255, 0.5);
}

/* How it works – cards */
.cards-3 .card {
  background: #F4F6FA;
  color: #001B41;
  border-radius: 12px;
  border: none;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px; /* vertical layout, 16px gap */
}

/* 64x64, white 12%, corner radius 12px */
/* Card icon container */
.cards-3 .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(to bottom, #0095ff, #0055fc);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon image inside */
.cards-3 .card-icon img {
  max-width: 32px;
  max-height: 32px;
  width: 100%;
  height: auto;
  display: block;
}


/* Subtitle – same feel as sub, but 100% white */
.cards-3 .card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #001B41;
}

/* Body copy */
.cards-3 .card p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #001B4185;
}

.gradient-underline {
  position: relative;
  display: inline-block;
}

/* Ink swipe + single pulse */
.gradient-underline::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -6px;
  height: 7px;
  border-radius: 999px;

  /* Same gradient as button, with a subtle texture */
  background-image:
    linear-gradient(to bottom, #0095ff, #0055fc);
  background-blend-mode: overlay;

  /* Start hidden + collapsed */
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;

  /* One-time ink swipe + little pulse */
  animation: mmInkSwipePulse 900ms cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .gradient-underline::after {
    animation: none;
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes mmInkSwipePulse {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  40% {
    opacity: 1;
    transform: scaleX(1.05); /* overshoot on swipe */
  }
  65% {
    transform: scaleX(0.96); /* little “breath in” */
  }
  100% {
    opacity: 1;
    transform: scaleX(1); /* settle to normal */
  }
}



/* Desktop only */
@media (min-width: 841px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
  }

  .hero-profile {
    max-width: 400px;
    width: 100%;
  }
}

@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero {
    padding-top: 3rem;
  }

  /* 🔑 Make the slider take full width of its column */
  .hero-visual__inner {
    width: 100%;
  }

  .hero-visual__slider {
    width: 100%;
    max-width: none;
    border-radius: 24px;
  }

  .profile-card {
    max-width: 100%;
  }

  .cards-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .brand-logo {
    width: 80px;
    height: 80px;
  }

  .hero-copy h1 {
    font-size: 2.5rem; /* scale down on small screens */
  }

  .hero-sub {
    font-size: 1.25rem; /* 24px */
  }

  .nav-links {
    position: absolute;
    right: 1.5rem;
    top: 4.4rem;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    padding: 0.6rem 0.4rem;
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    gap: 0; /* stacked, no big gaps */
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.35rem 0.8rem;
    width: 100%;
    color: #ffffff;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    padding-top: 24px; /* slightly reduced on very small screens */
  }

  .top-banner {
    font-size: 16px;
    padding: 8px 10px;
  }

  /* 🔑 Make the hero image area centered and full-width */
  .hero-profile {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .hero-visual__inner {
    width: 100%;
  }

  .hero-visual__slider {
    width: 100%;
  }

  #services .section-intro {
    max-width: none;
    width: 100%;
  }

  .hero p,
  #services .section-intro,
  .cards-3 .card h3,
  .cards-3 .card p {
    font-size: 20px;
    line-height: 1.4;
  }

  @media (max-width: 768px) {
    .cards-3 .card {
      padding: 24px;
    }
  }
  
}

