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

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette */
  --clr-bg:           #ffffff;
  --clr-bg-alt:       #f2f7fb;
  --clr-bg-dark:      #0c1c2c;
  --clr-bg-dark-alt:  #162d42;
  --clr-navy:         #0c1c2c;
  --clr-slate:        #3a5268;
  --clr-muted:        #718ea4;
  --clr-blue:         #1e7ab8;
  --clr-blue-dark:    #155e8e;
  --clr-blue-light:   #dff0fb;
  --clr-white:        #ffffff;
  --clr-border:       #d8e6f0;
  --clr-border-dark:  #233d54;

  /* Typography */
  --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  /* Font sizes */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(12,28,44,.06);
  --shadow-md: 0 4px 20px rgba(12,28,44,.09);
  --shadow-lg: 0 12px 48px rgba(12,28,44,.13);

  /* Shape */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   24px;
  --radius-full: 9999px;

  /* Motion */
  --transition: 0.2s ease;

  /* Layout */
  --nav-height:     70px;
  --container-max:  1100px;
  --section-v-pad:  5rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--ff);
  font-weight: var(--fw-regular);
  color: var(--clr-navy);
  background: var(--clr-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--clr-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--clr-blue-dark); }

ul, ol { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--section-v-pad);
}

.section--alt  { background: var(--clr-bg-alt); }
.section--dark { background: var(--clr-bg-dark); color: var(--clr-white); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header            { margin-bottom: 3rem; }
.section-header--center    { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-blue);
  margin-bottom: .625rem;
}

.section--dark .eyebrow { color: #7dc4e8; }

.section-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.2;
  color: var(--clr-navy);
  margin-bottom: .625rem;
}

.section--dark .section-title { color: var(--clr-white); }

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-slate);
  line-height: 1.65;
  max-width: 580px;
}

.section-header--center .section-subtitle { margin-inline: auto; }
.section--dark .section-subtitle           { color: #a8c2d4; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-height);
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}

.nav.is-scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  margin-inline-end: auto;
}

.nav__logo-name {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--clr-navy);
}

.nav__logo-tagline {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  font-weight: var(--fw-medium);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-slate);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.is-active { color: var(--clr-navy); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-inline-start: auto;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: calc(var(--nav-height) + 4.5rem) 5rem;
  background: linear-gradient(145deg, #f2f7fb 0%, #e4eef7 100%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-blue);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--clr-blue);
  border-radius: 2px;
}

.hero__title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.14;
  color: var(--clr-navy);
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  color: var(--clr-blue);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-slate);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 500px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero__divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin-bottom: 2rem;
}

.hero__stats {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.hero__stat-number {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--clr-navy);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  font-weight: var(--fw-medium);
  margin-top: .2rem;
}

.hero__visual { position: relative; }

.hero__photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__badge {
  position: absolute;
  bottom: 1.5rem;
  left: -1.25rem;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: .8rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-navy);
  white-space: nowrap;
}

.hero__badge-dot {
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #091825;
  color: #7a98ae;
  padding-block: 2.25rem;
  font-size: var(--fs-sm);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__brand {
  color: var(--clr-white);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
}

.footer__tagline {
  color: #5a7a90;
  font-size: var(--fs-xs);
  margin-top: .15rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: #7a98ae;
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--clr-white); }

.footer__copy { color: #4a6a80; }

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

/* Pages placeholder (portfolio, tech) */
.placeholder-section {
  padding-block: calc(var(--nav-height) + 6rem) 6rem;
  text-align: center;
  background: var(--clr-bg-alt);
}
.placeholder-section__title {
  font-size: var(--fs-4xl);
  margin-bottom: 1rem;
}
.placeholder-section__intro {
  color: var(--clr-slate);
  font-size: var(--fs-lg);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* ── Scroll to top ── */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--clr-blue);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  transform: translateY(10px);
  z-index: 900;
  box-shadow: 0 4px 12px rgba(30,122,184,.35);
}
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#scroll-top:hover { background: var(--clr-blue-dark); }
