/* ═══════════════════════════════════════════
   SOLVINGCLUB — DESIGN SYSTEM
   Inspired by Firecrawl's grid aesthetic
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@300;400;500&display=swap');

/* ── Barber Complete Font (Logo) ── */
@font-face {
  font-family: "Barber Complete";
  src: url("Barber Complete/Web Fonts/217546da9fd425e3b778117eebf3f901.eot");
  src: url("Barber Complete/Web Fonts/217546da9fd425e3b778117eebf3f901.eot?#iefix") format("embedded-opentype"),
    url("Barber Complete/Web Fonts/217546da9fd425e3b778117eebf3f901.woff") format("woff"),
    url("Barber Complete/Web Fonts/217546da9fd425e3b778117eebf3f901.woff2") format("woff2"),
    url("Barber Complete/Web Fonts/217546da9fd425e3b778117eebf3f901.ttf") format("truetype"),
    url("Barber Complete/Web Fonts/217546da9fd425e3b778117eebf3f901.svg#Barber Complete") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── TOKENS — LIGHT MODE (Figma Design System) ── */
:root {
  --bg: #F7F6F4;
  --bg-white: #ffffff;
  --bg-offwhite: #F1F0EC;
  --fg: #18181A;
  --fg-2: #2e2e32;
  --muted: #494949;
  --muted-2: #b0b0aa;
  --border: rgba(0, 0, 0, 0.065);
  --border-med: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.15);
  --accent: #F93D31;
  --accent-dim: rgba(249, 61, 49, 0.09);
  --accent-border: rgba(249, 61, 49, 0.22);
  --accent-glow: rgba(249, 61, 49, 0.22);
  --grid-sz: 180px;
  --grid-line: rgba(0, 0, 0, 0.12);
  --dot-sm: rgba(0, 0, 0, 0.11);
  --dot-glow: rgba(249, 61, 49, 0.1);
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.14);
  /* Gradient blobs — subtle, minimal glows */
  --grad-blob-1: radial-gradient(circle at 30% 0%, rgba(249, 61, 49, 0.22), transparent 60%);
  --grad-blob-2: radial-gradient(circle at 0% 80%, rgba(23, 23, 26, 0.16), transparent 65%);
  --nav-bg: rgba(249, 249, 248, 0.9);
}

/* ── DARK MODE TOKENS (Figma Design System) ── */
[data-theme="dark"] {
  --bg: #111113;
  --bg-white: #1B1B1F;
  --fg: #F9F9F8;
  --fg-2: #d4d4d0;
  --muted: #a0a09a;
  --muted-2: #606060;
  --border: rgba(255, 255, 255, 0.09);
  --border-med: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #F93D31;
  --accent-dim: rgba(249, 61, 49, 0.12);
  --accent-border: rgba(249, 61, 49, 0.3);
  --accent-glow: rgba(249, 61, 49, 0.25);
  --grid-line: rgba(255, 255, 255, 0.12);
  --dot-sm: rgba(255, 255, 255, 0.1);
  --dot-glow: rgba(249, 61, 49, 0.22);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.6);
  /* Gradient blobs — soft accent in dark mode */
  --grad-blob-1: radial-gradient(circle at 20% -10%, rgba(249, 61, 49, 0.32), transparent 65%);
  --grad-blob-2: radial-gradient(circle at 110% 80%, rgba(249, 61, 49, 0.24), transparent 65%);
  --nav-bg: rgba(17, 17, 19, 0.9);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Geist', sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   GRID BACKGROUND SYSTEM
═══════════════════════════════════════════ */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* The grid lines */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-sz) var(--grid-sz);
  background-position: 0 0;
  transition: background-image 0.4s ease;
}

/* Small gray dots at every intersection */
.grid-dots {
  position: absolute;
  inset: 0;
  /* Dots removed for a cleaner, minimal grid */
  background-image: none;
}

/* Edge fade */
.grid-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 9%, transparent 91%, var(--bg) 100%),
    radial-gradient(ellipse 75% 40% at 50% 0%, var(--bg) 0%, transparent 100%),
    radial-gradient(ellipse 75% 30% at 50% 100%, var(--bg) 0%, transparent 100%);
  transition: background 0.4s ease;
}

/* ── GRADIENT BLOBS (Figma Design System) ── */
/* Beautiful atmospheric glows behind content */
.grad-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  transition: opacity 0.5s ease, background 0.5s ease;
}

.grad-blob-1 {
  width: 700px;
  height: 700px;
  background: var(--grad-blob-1);
  top: -200px;
  right: -150px;
  opacity: 0.85;
}

.grad-blob-2 {
  width: 500px;
  height: 500px;
  background: var(--grad-blob-2);
  bottom: 10%;
  left: -100px;
  opacity: 0.7;
}

.grad-blob-3 {
  width: 400px;
  height: 400px;
  background: var(--grad-blob-1);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.25;
}




/* ── DOT MATRIX DECORATION ── */
/* Bottom-right decorative dot cluster like in reference */
.dot-matrix {
  position: absolute;
  display: grid;
  gap: 5px;
}

.dot-matrix span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dot-sm);
  display: block;
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 44px;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  justify-content: space-between;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--accent);
  font-family: "Barber Complete", sans-serif;
  font-weight: normal;
  font-size: 24px;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.nav-logo img {
  height: 32px;
  display: block;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--fg);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 15px;
  height: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 7px;
  transition: color 0.16s, background 0.16s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  background: rgba(0, 0, 0, 0.045);
}

.nav-links a.active {
  color: var(--fg);
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile nav toggle (hamburger) */
.nav-menu-btn {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-med);
  background: transparent;
  padding: 0;
}

.nav-menu-btn span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--fg);
  transform: translateX(-50%);
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu-btn span:nth-child(1) {
  top: 11px;
}

.nav-menu-btn span:nth-child(2) {
  top: 16px;
}

.nav-menu-btn span:nth-child(3) {
  top: 21px;
}

.nav.nav-open .nav-menu-btn span:nth-child(1) {
  transform: translateX(-50%) rotate(45deg);
  top: 16px;
}

.nav.nav-open .nav-menu-btn span:nth-child(2) {
  opacity: 0;
}

.nav.nav-open .nav-menu-btn span:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
  top: 16px;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-sm {
  font-size: 12.5px;
  padding: 6px 13px;
}

.btn-md {
  font-size: 13.5px;
  padding: 9px 18px;
}

.btn-lg {
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
}

.btn-xl {
  font-size: 15px;
  padding: 14px 30px;
  border-radius: var(--radius-md);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border-med);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn-dark {
  background: var(--fg);
  color: #fff;
}

.btn-dark:hover {
  background: #2a2a2e;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #c94318;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--accent-glow);
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.btn-outline-accent:hover {
  background: var(--accent-dim);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--fg);
}

/* ── Dark mode button overrides ── */
[data-theme="dark"] .btn-dark {
  background: #F9F9F8;
  color: #18181A;
}

[data-theme="dark"] .btn-dark:hover {
  background: #e0e0dc;
}

[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════
   LAYOUT PRIMITIVES
═══════════════════════════════════════════ */
.page {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 44px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-lg {
  padding: 128px 0;
}

.divider {
  height: 1px;
  background: var(--border);
  max-width: 1160px;
  margin: 0 auto;
}

.divider-full {
  height: 1px;
  background: var(--border);
}

/* ── Typography helpers ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.display-xl {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.display-lg {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.display-md {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.display-xl em,
.display-lg em,
.display-md em {
  font-style: italic;
  color: var(--accent);
}

.body-lg {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.body-md {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.body-sm {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Card base ── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ── Tag / badge ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
}

.tag-accent {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.tag-muted {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-med);
  color: var(--muted);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 0.08s;
}

.reveal-d2 {
  transition-delay: 0.16s;
}

.reveal-d3 {
  transition-delay: 0.24s;
}

.reveal-d4 {
  transition-delay: 0.32s;
}

/* ── Keyframes ── */
@keyframes fade-in {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-14px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ── Dark mode logo swap ── */
/* Replaces the nav + footer logo img with the white SVG in dark mode */
[data-theme="dark"] .nav-logo img,
[data-theme="dark"] .footer-logo img {
  content: url("dark mode logo.svg");
}

/* ── Footer logo ── */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Barber Complete", sans-serif;
  font-size: 25px;
  font-weight: normal;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
}

.footer-logo img {
  height: 26px;
  display: block;
}

/* ═══════════════════════════════════════════
   WORK / PROJECT LIST LAYOUT (shared)
═══════════════════════════════════════════ */

/* Work hero */
.work-hero {
  padding: 90px 0 64px;
  text-align: center;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-med);
  background: var(--bg-white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s;
}

.filter-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Project list */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 56px;
}

.project-article {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 380px 1fr;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

.project-article:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--border-med);
}

/* Image side */
.proj-img {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: 260px;
}

/* Carousel variant for multi-mockup projects */
.proj-img--carousel {
  overflow: hidden;
}

.proj-carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transform: translateX(0);
  transition: transform 0.6s ease;
}

.proj-carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.project-article:hover .proj-img img {
  transform: scale(1.03);
}

/* Content side */
.proj-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-right: 80px;
}

/* Header row with logo on the right */
.proj-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.proj-logo-right {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: transparent;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--border-med);
  object-fit: contain;
  flex-shrink: 0;
  position: absolute;
  top: 18px;
  right: 24px;
}

/* Meta row */
.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.badge {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-med);
  background: var(--bg-offwhite);
  color: var(--muted);
}

.badge.accent {
  background: var(--accent-dim);
  border-color: rgba(232, 84, 30, 0.3);
  color: var(--accent);
}

.badge.green {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}

.badge.blue {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  color: #2563eb;
}

.badge.amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #d97706;
}

.badge.dot-green::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 5px;
  vertical-align: middle;
}

/* Title & desc */
.proj-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg);
}

.proj-subtitle {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.proj-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* Tech pills */
.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-pill {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(232, 84, 30, 0.25);
  background: var(--accent-dim);
  color: var(--accent);
}

/* Footer actions */
.proj-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}

/* Hidden cards (filter) */
.project-article.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .project-article {
    grid-template-columns: 1fr;
  }

  .proj-img {
    min-height: 220px;
    max-height: 260px;
  }

  .nav {
    padding: 0 20px;
  }

  .nav-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    transform: none;
    margin-top: 8px;
    padding: 10px;
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 2px;
    z-index: 600;
  }

  .nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .nav {
    height: 54px;
  }

  .nav-logo img {
    height: 26px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .nav-right .btn {
    display: none;
  }

  .project-list {
    margin-top: 36px;
    gap: 16px;
  }

  .project-article {
    border-radius: var(--radius-lg);
  }

  .proj-img {
    min-height: 200px;
    max-height: 230px;
  }

  .proj-body {
    padding: 20px 18px 18px;
    padding-right: 18px;
  }

  .proj-logo-right {
    width: 44px;
    height: 44px;
    top: 16px;
    right: 16px;
  }

  .proj-title {
    font-size: 19px;
  }

  .proj-subtitle,
  .proj-desc {
    font-size: 12.5px;
  }

  .proj-tech {
    gap: 5px;
  }

  .tech-pill {
    font-size: 9.5px;
    padding: 3px 8px;
  }
}

/* ── Footer layout ── */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s;
}

.footer-nav a:hover {
  color: var(--fg);
}

.footer-socials {
  display: flex;
  gap: 7px;
}

.footer-social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-med);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.16s;
}

.footer-social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ═══════════════════════════════════════════
   DARK MODE TOGGLE
═══════════════════════════════════════════ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-med);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(249, 61, 49, 0.22), transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.theme-toggle:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: scale(0.5) rotate(-30deg);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: scale(0.5) rotate(30deg);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle.is-animating::after {
  opacity: 1;
  transform: scale(1);
}

/* Smooth transitions for dark mode switches */
*,
*::before,
*::after {
  transition-property: background-color, border-color, color, box-shadow, opacity;
  transition-duration: 0.25s;
  transition-timing-function: ease;
}

/* Only skip transition for layout/geometry things */
.reveal,
.star-svg,
.marquee-track {
  transition-property: opacity, transform;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-lg {
    padding: 80px 0;
  }
}