/* ==========================================================================
   Kingsley Raji — Landing Page Styles
   ========================================================================== */

:root {
  /* Palette */
  --white: #ffffff;
  --off-white: #F7F8FA;
  --slate-50: #F4F6F8;
  --slate-200: #E2E6EB;
  --slate-400: #9AA4B2;
  --slate-500: #6B7685;
  --slate-600: #525C6B;
  --navy: #0B1B33;
  --navy-700: #132A4B;
  --accent: #2F6FED;
  --accent-600: #245ACB;
  --accent-tint: #EEF3FE;

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'Inter', -apple-system, sans-serif;

  /* Layout */
  --container: 1120px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 27, 51, 0.08);
  --shadow-lg: 0 20px 60px rgba(11, 27, 51, 0.12);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
em { font-style: italic; color: var(--accent); font-weight: 600; }
p { margin: 0; }
::selection { background: var(--navy); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--slate-200);
}
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost {
  background: transparent;
  color: var(--slate-600);
  padding-left: 8px;
  padding-right: 8px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-sm { padding: 11px 22px; font-size: 12.5px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
}
.nav {
  display: none;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--slate-500);
  flex: 1;
  justify-content: center;
}
.nav a { position: relative; transition: color 0.25s ease; }
.nav a:hover { color: var(--navy); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0%; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav a:hover::after { width: 100%; }

.header-inner .btn { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: max-height 0.4s var(--ease), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}
.mobile-nav.open {
  max-height: 320px;
  border-bottom: 1px solid var(--slate-200);
}
.mobile-nav a {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
  border-top: 1px solid var(--slate-50);
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-inner .btn { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* ---------- Hero ---------- */
.hero {
  padding: 176px 0 88px;
  background:
    radial-gradient(50% 45% at 88% 8%, var(--accent-tint) 0%, transparent 72%),
    radial-gradient(40% 35% at 5% 95%, var(--slate-50) 0%, transparent 70%),
    linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  padding: 80px 0;
  border-bottom: 1px solid var(--slate-200);
  background: var(--white);
}
.stats-strip .eyebrow { text-align: center; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.stat-item {
  text-align: center;
  padding: 0 12px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--slate-500);
  line-height: 1.5;
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-item { border-left: 1px solid var(--slate-200); }
  .stat-item:first-child { border-left: none; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  background: var(--off-white);
}
.trust-inner {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.trust-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: -0.01em;
}
@media (min-width: 700px) {
  .trust-inner { flex-direction: row; justify-content: space-between; text-align: left; padding: 32px 24px; }
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.hero-lead {
  margin-top: 28px;
  font-size: 18.5px;
  color: var(--slate-600);
  max-width: 46ch;
  line-height: 1.65;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.hero-tagline {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--slate-200);
  font-size: 14px;
  color: var(--slate-500);
  font-weight: 500;
  font-style: italic;
  max-width: 40ch;
}
.hero-media {
  position: relative;
  justify-self: center;
}
.hero-photo-frame {
  position: relative;
  width: min(380px, 78vw);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  z-index: 1;
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-tint) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .hero-media { justify-self: end; }
}

/* ---------- Sections ---------- */
.section {
  padding: 120px 0;
}
.section-alt {
  background: var(--off-white);
}
.section h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 17.5px;
  color: var(--slate-600);
  max-width: 66ch;
  line-height: 1.75;
}
.about-copy p:first-child {
  font-size: 20px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.6;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.75fr 1.25fr; gap: 72px; }
}

/* ---------- Strengths ---------- */
.strengths-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.strengths-grid li {
  position: relative;
  background: var(--white);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.3s ease, padding-left 0.3s var(--ease), color 0.3s ease;
  overflow: hidden;
}
.strength-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: color 0.3s ease;
}
.strengths-grid li:hover .strength-icon {
  color: var(--navy);
}
.strengths-grid li::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.strengths-grid li:hover {
  background: var(--accent-tint);
  padding-left: 30px;
}
.strengths-grid li:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}
@media (min-width: 640px) {
  .strengths-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .strengths-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Timeline ---------- */
.timeline {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 28px;
  padding-bottom: 52px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  margin-top: 7px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--white);
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: -8px;
  width: 1px;
  background: linear-gradient(180deg, var(--slate-200) 0%, var(--slate-200) 90%, transparent 100%);
}
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.timeline-head h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.timeline-org {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 12px;
  border-radius: 999px;
}
.timeline-date {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-400);
  letter-spacing: 0.02em;
  margin-left: auto;
}
.timeline-content p {
  color: var(--slate-600);
  font-size: 15.5px;
  max-width: 66ch;
  line-height: 1.7;
}

@media (min-width: 900px) {
  .timeline-item { grid-template-columns: 28px 1fr; }
}

/* ---------- Projects ---------- */
.projects-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: project;
}
.project-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 30px 28px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
  counter-increment: project;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-200);
}
.project-card:hover::before { transform: scaleX(1); }
.project-card::after {
  content: '0' counter(project);
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-200);
}
.project-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 12px;
  max-width: calc(100% - 32px);
  letter-spacing: -0.01em;
}
.project-card p {
  font-size: 14.5px;
  color: var(--slate-600);
  line-height: 1.65;
}
@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Philosophy ---------- */
.philosophy {
  position: relative;
  background:
    radial-gradient(60% 80% at 50% -10%, rgba(47, 111, 237, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.philosophy-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.philosophy-mark {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  color: rgba(143, 179, 255, 0.35);
  margin-bottom: -8px;
}
.philosophy .eyebrow { color: #8FB3FF; justify-content: center; }
.philosophy h2 {
  color: var(--white);
  margin: 0 auto;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}
.philosophy-text {
  margin-top: 26px;
  font-size: 19px;
  color: #C7D2E3;
  line-height: 1.75;
  max-width: 56ch;
}

/* ---------- Contact ---------- */
.contact-section {
  background:
    radial-gradient(50% 60% at 50% 0%, var(--accent-tint) 0%, transparent 65%),
    var(--white);
}
.contact-inner {
  text-align: center;
  max-width: 640px;
}
.contact-inner .eyebrow { justify-content: center; }
#contact-heading { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.contact-lead {
  margin-top: 20px;
  font-size: 17.5px;
  color: var(--slate-600);
}
.contact-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.contact-section .container.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--slate-200);
  background: var(--off-white);
}
.footer-top {
  padding: 40px 24px 0;
  text-align: center;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  font-size: 13px;
  color: var(--slate-500);
  padding: 24px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a { transition: color 0.25s ease; }
.footer-links a:hover { color: var(--navy); }

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
