/* ============================================================
   PHILIP BALOGUN — PORTFOLIO  |  index.css
   Organised sections:
     1. Design Tokens
     2. Reset & Base
     3. Typography
     4. Utilities & Shared Components
     5. Navigation
     6. Hero
     7. About
     8. Work / Bento Grid
     9. Testimonials
    10. Contact / Form
    11. Footer
    12. Animations & Scroll FX
    13. Media Queries
   ============================================================ */


/* ── 1. DESIGN TOKENS ──────────────────────────────────── */
:root {
  /* Brand */
  --accent:         #6366f1;
  --accent-hover:   #4f46e5;
  --accent-light:   #818cf8;
  --accent-alpha:   rgba(99, 102, 241, 0.12);
  --gradient:       linear-gradient(135deg, #6366f1 0%, #c084fc 100%);

  /* Palettes */
  --dark-bg:        #080f1e;
  --dark-surface:   #0f1829;
  --dark-raised:    #1a2540;
  --light-bg:       #f8fafc;
  --light-surface:  #ffffff;
  --light-raised:   #f1f5f9;

  /* Shared */
  --white: #ffffff;

  /* Spacing scale */
  --sp-xs:  clamp(0.5rem,  1vw,  0.75rem);
  --sp-sm:  clamp(1rem,    2vw,  1.5rem);
  --sp-md:  clamp(2.5rem,  5vw,  4.5rem);
  --sp-lg:  clamp(4rem,    7vw,  7rem);
  --sp-xl:  clamp(6rem,   10vw, 10rem);

  /* Radii */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   36px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm:     0 2px 8px  rgba(0, 0, 0, 0.08);
  --shadow-md:     0 8px 24px rgba(0, 0, 0, 0.14);
  --shadow-lg:     0 20px 60px rgba(0, 0, 0, 0.22);
  --shadow-accent: 0 12px 36px rgba(99, 102, 241, 0.38);

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    160ms;
  --dur-base:    280ms;
  --dur-slow:    480ms;
}

/* Dark theme tokens */
.dark-theme {
  --bg:           var(--dark-bg);
  --surface:      var(--dark-surface);
  --raised:       var(--dark-raised);
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-faint:   #475569;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --input-bg:     rgba(255, 255, 255, 0.04);
  --input-focus:  rgba(99, 102, 241, 0.12);
  --nav-bg:       rgba(8, 15, 30, 0.85);
  --overlay:      rgba(8, 15, 30, 0.98);
}

/* Light theme tokens */
.light-theme {
  --bg:           var(--light-bg);
  --surface:      var(--light-surface);
  --raised:       var(--light-raised);
  --text:         #0f172a;
  --text-muted:   #475569;
  --text-faint:   #94a3b8;
  --border:       rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.13);
  --input-bg:     #f8fafc;
  --input-focus:  rgba(99, 102, 241, 0.06);
  --nav-bg:       rgba(248, 250, 252, 0.88);
  --overlay:      rgba(248, 250, 252, 0.98);
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--dur-slow) var(--ease-in-out),
              color var(--dur-slow) var(--ease-in-out);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button { font-family: inherit; }

ul { list-style: none; }


/* ── 3. TYPOGRAPHY ─────────────────────────────────────── */
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-block: 1.25rem 1.1rem;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.small-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
  display: block;
}


/* ── 4. UTILITIES & SHARED COMPONENTS ──────────────────── */
.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

section {
  padding-block: var(--sp-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.full-width { width: 100%; }

/* Section header layout */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-top: 0.25rem;
}

.section-desc {
  max-width: 340px;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: right;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.8rem 1.9rem;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.9rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-alpha);
  transform: translateY(-2px);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ── 5. NAVIGATION ─────────────────────────────────────── */
.header {
  position: fixed;
  inset-block-start: 1.25rem;
  inset-inline: 0;
  z-index: 900;
  padding-inline: clamp(1rem, 3vw, 2rem);
  pointer-events: none;
}

.nav-container {
  max-width: 980px;
  margin-inline: auto;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.6rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: all;
  transition: max-width var(--dur-slow) var(--ease-out),
              padding var(--dur-slow) var(--ease-out),
              background var(--dur-slow) var(--ease-out);
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.logo-dot { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-menu a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
  background: var(--raised);
}

.nav-btn {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
}
.nav-btn:hover {
  background: var(--accent-hover) !important;
}

/* Theme toggle */
.theme-btn {
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.theme-btn:hover {
  background: var(--surface);
  border-color: var(--border-hover);
  color: var(--accent);
  transform: rotate(20deg);
}

/* Icon visibility per theme */
.dark-theme  .sun-icon  { display: block; }
.dark-theme  .moon-icon { display: none; }
.light-theme .sun-icon  { display: none; }
.light-theme .moon-icon { display: block; }

/* Hamburger */
.hamburger {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.hamburger:hover { border-color: var(--accent); }
.hamburger span {
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  display: block;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}

.desktop-only { display: flex; }
.mobile-only  { display: none; }

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  clip-path: circle(0% at calc(100% - 2.5rem) 2.5rem);
  transition: clip-path 0.5s var(--ease-out);
  pointer-events: none;
}
.mobile-menu-overlay.active {
  clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem);
  pointer-events: all;
}

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.close-menu:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.mobile-nav-links li {
  opacity: 0;
  transform: translateY(14px);
  transition: none;
}
.mobile-menu-overlay.active .mobile-nav-links li {
  opacity: 1;
  transform: none;
}
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) { transition: opacity 0.4s 0.08s var(--ease-out), transform 0.4s 0.08s var(--ease-out); }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) { transition: opacity 0.4s 0.15s var(--ease-out), transform 0.4s 0.15s var(--ease-out); }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) { transition: opacity 0.4s 0.22s var(--ease-out), transform 0.4s 0.22s var(--ease-out); }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) { transition: opacity 0.4s 0.29s var(--ease-out), transform 0.4s 0.29s var(--ease-out); }

.mobile-nav-links a {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  padding: 0.5rem 2rem;
  letter-spacing: -0.03em;
  transition: color var(--dur-fast) var(--ease-out);
}
.mobile-nav-links a:hover { color: var(--accent); }
.mobile-cta { color: var(--accent) !important; }


/* ── 6. HERO ────────────────────────────────────────────── */
.hero {
  padding-block-start: calc(var(--sp-xl) + 1rem);
  padding-block-end: var(--sp-lg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Availability badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25); }
  50%       { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.08); }
}

.hero-sub {
  max-width: 480px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Stats row below CTAs */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.proof-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.proof-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

.proof-divider {
  width: 1px;
  height: 2rem;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero image */
.hero-image-wrap {
  position: relative;
}

.image-inner {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease-out);
}
.hero-image-wrap:hover .image-inner img {
  transform: scale(1.04);
}

/* Subtle glow behind image */
.image-glow {
  position: absolute;
  inset: 20% -10% -10% 10%;
  background: var(--gradient);
  opacity: 0.15;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}


/* ── 7. ABOUT ───────────────────────────────────────────── */
.about { padding-block: var(--sp-md); }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(3rem, 5vw, 5.5rem);
  align-items: start;
}

.about-text .section-label { margin-bottom: 0.75rem; }

.about-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.about-text p {
  font-size: 0.97rem;
  line-height: 1.8;
}

.about-text p + p { margin-top: 1rem; }

/* About section image */
.about-image-wrap {
  position: relative;
  max-width: 320px;
  margin: 1.5rem 0;
}

.about-text .image-inner {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.about-text .image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease-out);
}
.about-image-wrap:hover .image-inner img {
  transform: scale(1.04);
}
.about-values {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.value-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Right column */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skills-box {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill {
  background: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.skill:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-alpha);
  transform: translateY(-1px);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat-item {
  background: var(--surface);
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-item span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-top: 0.35rem;
}


/* ── 8. WORK / BENTO GRID ───────────────────────────────── */
.work { padding-block: var(--sp-md); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.bento-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.card-image-wrap {
  overflow: hidden;
  flex-shrink: 0;
}
.bento-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.bento-card:hover img { transform: scale(1.04); }

/* Large card */
.bento-card.large {
  grid-column: span 2;
  flex-direction: row;
}
.bento-card.large .card-image-wrap {
  width: 52%;
  flex-shrink: 0;
}
.bento-card.large img {
  width: 100%;
  height: 100%;
  min-height: 320px;
}
.bento-card.large .card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem);
}

.card-info {
  padding: 1.5rem 1.625rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.card-info h3 {
  margin-bottom: 0.6rem;
}

.card-info p {
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.card-stack span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-faint);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.view-project {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: gap var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.view-project:hover {
  color: var(--accent-light);
  gap: 0.55rem;
}


/* ── 9. TESTIMONIALS ────────────────────────────────────── */
.testimonials { padding-block: var(--sp-md); }

.slider-wrapper {
  max-width: 780px;
  margin-inline: auto;
}

.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  gap: 1.5rem;
  padding-block: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}
.slider-container::-webkit-scrollbar { display: none; }

.testimonial-card {
  min-width: 100%;
  scroll-snap-align: start;
  background: var(--surface);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

.stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-style: italic;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.client-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-alpha);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.client-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 700;
}
.client-info span {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 0.1rem;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.slider-nav button {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.slider-nav button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: scale(1.08);
}

.slider-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-hover);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.slider-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}


/* ── 10. CONTACT ────────────────────────────────────────── */
.contact { padding-block: var(--sp-md); }

.contact-box {
  max-width: 760px;
  margin-inline: auto;
  background: var(--surface);
  padding: clamp(2.25rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.contact-header .section-label { margin-bottom: 0.6rem; }
.contact-header h2 { margin-bottom: 0.6rem; }
.contact-header p {
  font-size: 0.95rem;
  max-width: 420px;
  margin-inline: auto;
}

.pro-form { text-align: left; }

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-group input,
.form-group textarea {
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  line-height: 1.5;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }

.form-group input:hover,
.form-group textarea:hover { border-color: var(--border-hover); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.submit-btn {
  margin-top: 1.5rem;
  padding: 0.95rem 2rem;
  font-size: 0.97rem;
}
.btn-icon {
  display: flex;
  align-items: center;
}


/* ── 11. FOOTER ─────────────────────────────────────────── */
.footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: var(--sp-sm);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand .footer-logo {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.4;
}

.socials {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.socials a {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 600;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.socials a::after {
  content: '';
  position: absolute;
  inset-block-end: -2px;
  inset-inline: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.socials a:hover {
  color: var(--accent);
}
.socials a:hover::after {
  transform: scaleX(1);
}

.footer-copy {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer-copy strong { color: var(--text-muted); }


/* ── 12. ANIMATIONS ─────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Hero entrance — staggered */
.hero-content .badge     { animation: fade-up 0.55s 0.10s var(--ease-out) both; }
.hero-content h1         { animation: fade-up 0.6s  0.20s var(--ease-out) both; }
.hero-content .hero-sub  { animation: fade-up 0.6s  0.30s var(--ease-out) both; }
.hero-content .cta-group { animation: fade-up 0.6s  0.40s var(--ease-out) both; }
.hero-content .hero-proof{ animation: fade-up 0.6s  0.50s var(--ease-out) both; }
.hero-image-wrap         { animation: fade-up 0.7s  0.22s var(--ease-out) both; }


/* ── 13. MEDIA QUERIES ──────────────────────────────────── */

/* Tablet */
@media (max-width: 960px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .section-desc { text-align: left; max-width: 100%; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-text h2 { max-width: 100%; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .footer-brand { text-align: center; }
  .footer-copy  { text-align: center; }
  .socials { justify-content: center; }
}

/* Mobile */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only  { display: flex; }

  .hero {
    padding-block-start: calc(var(--sp-xl) + 1.5rem);
    padding-block-end: var(--sp-md);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-content { align-items: center; }
  .hero-sub { margin-inline: auto; }
  .cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary,
  .btn-secondary { width: 100%; justify-content: center; }

  .hero-image-wrap {
    order: 1;
    max-width: 300px;
    margin-inline: auto;
  }

  .hero-proof {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: 1.5rem;
    margin-top: 1.75rem;
  }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.large {
    grid-column: span 1;
    flex-direction: column;
  }
  .bento-card.large .card-image-wrap { width: 100%; }
  .bento-card.large img { height: 220px; min-height: unset; }

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

  .contact-box { border-radius: var(--r-lg); }

  .stats-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .contact-box { padding: 1.75rem 1.25rem; }
  .testimonial-card { padding: 1.75rem 1.25rem; }
  .hero-proof { gap: 0.875rem; }
  .proof-divider { display: none; }

  .stats-row {
    grid-template-columns: 1fr;
    background: none;
    border: none;
    border-radius: 0;
    gap: 0.75rem;
  }
  .stat-item {
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    text-align: left;
    padding: 1rem 1.25rem;
  }
}

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