/* ================================================================
   MAIN.CSS — Ghassan Alhamoud Personal Website
   ThoughtWorks-Inspired Palette | Pure CSS | No Frameworks
   ================================================================ */

/* ----- CSS Variables (ThoughtWorks Dark — default) ----- */
:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-tertiary: #222222;
  --bg-hover: #1e1e1e;
  --text-primary: #f0f0f0;
  --text-secondary: #a8a8a8;
  --text-muted: #3d3d3d;
  --accent: #e4006f;
  --accent-hover: #ff1a82;
  --accent-rgb: 228, 0, 111;
  --accent-glow: rgba(228, 0, 111, 0.12);
  --accent-glow-strong: rgba(228, 0, 111, 0.22);
  --success: #3dd68c;
  --success-rgb: 61, 214, 140;
  --particle-alpha: 0.3;
  --warning: #f5a623;
  --error: #ff5c72;
  --border: #252525;
  --glass-bg: rgba(13, 13, 13, 0.92);
  --max-width: 1080px;
  --nav-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================================================================
   THEME: NATURE — sage white · forest green · ocean blue
   Switch by setting data-theme="nature" on <html>.
   Revert to dark by removing the attribute (or setting "dark").
   ================================================================ */
[data-theme="nature"] {
  /* Backgrounds — barely-tinted sage whites, never pure #fff */
  --bg-primary:         #f5f7f5;
  --bg-secondary:       #edf2ed;
  --bg-tertiary:        #e1eae1;
  --bg-hover:           #e8ede8;

  /* Typography — deep forest, sage mid-tones */
  --text-primary:       #1a2e1a;
  --text-secondary:     #4a6741;
  --text-muted:         #6b8268;  /* darkened for readability on light bg (~3.7:1) */

  /* Primary action — forest emerald (CTAs, links, active states) */
  --accent:             #1d6f42;
  --accent-hover:       #155534;
  --accent-rgb:         29, 111, 66;
  --accent-glow:        rgba(29, 111, 66, 0.13);
  --accent-glow-strong: rgba(29, 111, 66, 0.25);

  /* Secondary accent — ocean blue (badges, checkmarks, info) */
  --success:            #0e7490;
  --success-rgb:        14, 116, 144;

  /* Particles — reduced alpha so dots aren't heavy on light background */
  --particle-alpha:     0.15;

  /* Semantic */
  --warning:            #b45309;
  --error:              #b91c1c;

  /* Structure */
  --border:             #b0c4b0;
  --glass-bg:           rgba(245, 247, 245, 0.95);
}

/* Override hardcoded SVG stroke/fill attributes in nature theme */
[data-theme="nature"] [stroke="#e4006f"] { stroke: var(--accent); }
[data-theme="nature"] [stroke="#3dd68c"] { stroke: var(--success); }
[data-theme="nature"] [fill="#e4006f"]   { fill:   var(--accent); }

/* Hero greeting pill: border is near-invisible at 10% opacity on light bg */
[data-theme="nature"] .hero__greeting {
  border-color: var(--border);
  background: rgba(var(--accent-rgb), 0.07);
}
   orbs are visible blobs on white — reduce opacity;
   grid border is light sage — boost opacity so it shows */
[data-theme="nature"] .hero__orb--1,
[data-theme="nature"] .hero__orb--2 { opacity: 0.07; }
[data-theme="nature"] .hero__grid   { opacity: 0.45; }

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ----- Font Face (Self-Hosted Inter Variable) ----- */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ----- Container ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Links ----- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

/* ----- Selection ----- */
::selection {
  background: var(--accent);
  color: #ffffff;
}

/* ----- Focus ring (keyboard navigation) ----- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ================================================================
   HEADER / NAV
   ================================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.header--hidden {
  transform: translateY(-100%);
}

.header--scrolled {
  background: var(--glass-bg);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  position: relative;
}

.nav__logo:hover {
  color: var(--text-primary);
}

.nav__monogram {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.nav__logo:hover .nav__monogram {
  transform: scale(1.1) rotate(-8deg);
}

.nav__name {
  display: none;
}

@media (min-width: 600px) {
  .nav__name {
    display: inline;
  }
}

/* Nav Toggle (Hamburger) */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav Menu */
.nav__menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-secondary);
  padding: calc(var(--nav-height) + 24px) 32px 32px;
  gap: 8px;
  list-style: none;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 1px solid var(--border);
  z-index: 1000;
  will-change: transform;
}

.nav__menu--open {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    gap: 4px;
    border: none;
  }
}

.nav__link {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0) translateY(2px);
  transition: transform 0.25s var(--ease-out);
  border-radius: 1px;
}

[data-theme="nature"] .nav__link::after {
  height: 3px;
  bottom: 1px;
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1) translateY(0);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav__link--cta {
  color: var(--accent);
  font-weight: 600;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  color: var(--bg-primary);
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

[data-theme="nature"] .nav__link--cta:hover {
  background: #2a8a52;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  text-decoration: none;
  border: 2px solid transparent;
  font-family: inherit;
  line-height: 1;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 50%, var(--accent-hover) 100%);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow-strong);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary span {
  position: relative;
  z-index: 1;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 transparent;
}

.btn--secondary:hover {
  background: var(--accent-glow);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--large {
  padding: 18px 40px;
  font-size: 17px;
}

/* Button pulse animation */
.btn--pulse {
  animation: btn-pulse 2.5s ease-in-out infinite;
}

.contact .btn--pulse {
  animation-delay: 1.25s;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
  50% { box-shadow: 0 4px 20px var(--accent-glow), 0 0 0 8px rgba(var(--accent-rgb), 0.07); }
}

/* ================================================================
   SECTIONS
   ================================================================ */

.section {
  padding: 120px 0;
  position: relative;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 56px;
  max-width: 600px;
  line-height: 1.6;
}

/* Section decorative accent line */
.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  margin-top: 16px;
}

.section__subtitle + .section__title::after {
  display: none;
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Animated gradient background */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 15% 30%, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 600px 600px at 85% 70%, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 90%, rgba(var(--accent-rgb), 0.03) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 10s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.15) rotate(3deg);
    opacity: 1;
  }
}

/* Grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.2;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 900px 700px at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 900px 700px at 50% 50%, black 20%, transparent 70%);
}

/* Floating orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.12;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -150px;
  left: -150px;
  animation: orb-float-1 14s ease-in-out infinite alternate;
}

.hero__orb--2 {
  width: 350px;
  height: 350px;
  background: var(--accent-hover);
  bottom: -100px;
  right: -80px;
  animation: orb-float-2 12s ease-in-out infinite alternate-reverse;
}

@keyframes orb-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.3); }
}

@keyframes orb-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 30px) scale(1.2); }
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.hero__greeting {
  display: inline-block;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out) 0.2s forwards;
  padding: 6px 16px;
  border: 1px solid var(--accent-glow-strong);
  border-radius: 100px;
  background: var(--accent-glow);
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out) 0.4s forwards;
}

/* Gradient text with shimmer */
.hero__title-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 40%, var(--accent-hover) 70%, var(--text-primary) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 16px;
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out) 0.6s forwards;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 48px;
  min-height: 1.8em;
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out) 0.8s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out) 1.1s forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-out) 1.8s forwards;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-line 2.5s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.hero__scroll-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* ================================================================
   ABOUT
   ================================================================ */

.about {
  border-top: 1px solid var(--border);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

/* ================================================================
   TERMINAL / BUILD LOG
   ================================================================ */

.terminal {
  padding: 80px 0;
}

.terminal__window {
  max-width: 680px;
  margin: 0 auto;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.terminal__window:hover {
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #ffbd2e; }
.terminal__dot--green { background: #28c840; }

.terminal__title {
  margin-left: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal__body {
  padding: 24px 28px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.8;
  min-height: 340px;
}

.terminal__line {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Typewriter reveal per line */
.terminal__line--hidden {
  opacity: 0;
  transform: translateY(8px);
}

.terminal__line--visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.terminal__prompt {
  color: var(--success);
  font-weight: 700;
  margin-right: 8px;
}

.terminal__cmd {
  color: var(--accent);
}

.terminal__line--output {
  color: var(--text-secondary);
  padding-left: 20px;
}

.terminal__line--success {
  color: var(--success);
  padding-left: 20px;
  font-weight: 600;
}

.terminal__cursor {
  color: var(--accent);
  animation: terminal-blink 1s step-end infinite;
}

@keyframes terminal-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ================================================================
   COUNTERS
   ================================================================ */

.counters {
  border-top: 1px solid var(--border);
  position: relative;
}

.counters::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

.counters__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

@media (min-width: 600px) {
  .counters__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.counter__number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter__label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ================================================================
   BENTO GRID (Services)
   ================================================================ */

.services {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.services__intro .section__subtitle {
  margin-bottom: 48px;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bento__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  cursor: default;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bento__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.bento__card:hover::after {
  transform: scaleX(1);
}

.bento__card:hover {
  border-color: rgba(var(--accent-rgb), 0.20);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(var(--accent-rgb), 0.10);
}

.bento__illustration {
  padding: 32px 32px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.bento__svg {
  width: 100%;
  height: auto;
  max-width: 260px;
}

.bento__content {
  padding: 24px 32px 32px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bento__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.bento__card:hover .bento__title {
  color: var(--accent);
}

.bento__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bento__tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.bento__card:hover .bento__tag {
  background: var(--accent-glow-strong);
}

/* ================================================================
   TESTIMONIALS / CAROUSEL
   ================================================================ */

.testimonials {
  border-top: 1px solid var(--border);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

.carousel {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.carousel__slide {
  min-width: 100%;
  padding: 0 4px;
}

.carousel__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.3s ease;
}

.carousel__card:hover {
  border-color: rgba(var(--accent-rgb), 0.20);
}

.carousel__quote {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
  padding-left: 24px;
}

.carousel__quote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 0;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
  opacity: 0.3;
}

.carousel__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.carousel__avatar {
  flex-shrink: 0;
}

.carousel__avatar svg {
  width: 40px;
  height: 40px;
  display: block;
}

.carousel__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.carousel__role {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
}

.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.carousel__btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out);
}

.carousel__btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.carousel__dots {
  display: flex;
  gap: 8px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.carousel__dot--active {
  background: var(--accent);
  transform: scale(1.3);
}

.carousel__dot:hover {
  background: var(--accent);
}

/* ================================================================
   ARTICLES PREVIEW (Homepage)
   ================================================================ */

.articles-preview {
  border-top: 1px solid var(--border);
  position: relative;
}

.articles-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

.articles-preview__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.articles-preview__loading {
  color: var(--text-secondary);
  font-style: italic;
}

.articles-preview__footer {
  text-align: center;
}

/* Article Card */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleY(0);
  transition: transform 0.3s var(--ease-out), top 0.3s ease, bottom 0.3s ease;
}

.article-card:hover::before {
  transform: scaleY(1);
  top: 8%;
  bottom: 8%;
}

.article-card:hover {
  border-color: rgba(var(--accent-rgb), 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(var(--accent-rgb), 0.09);
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.article-card__date {
  color: var(--text-muted);
}

.article-card__reading-time {
  color: var(--text-muted);
}

.article-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.article-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.article-card:hover .article-card__title {
  color: var(--accent);
}

.article-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.article-card__tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}

.article-card:hover .article-card__tag {
  background: var(--accent-glow-strong);
}

/* ================================================================
   CONTACT
   ================================================================ */

.contact {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 400px at 50% 100%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="nature"] .contact::before {
  background: radial-gradient(ellipse 700px 400px at 50% 100%, rgba(29, 111, 66, 0.18) 0%, transparent 70%);
}

.contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

.contact__content {
  max-width: 640px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact__text {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact__sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer__copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__link {
  color: var(--text-muted);
  transition: all 0.25s var(--ease-out);
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.footer__link:hover {
  color: var(--accent);
  transform: translateY(-3px);
  background: var(--accent-glow);
}

/* ================================================================
   404 PAGE
   ================================================================ */

.four-oh-four {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}

.four-oh-four__content {
  max-width: 480px;
}

.four-oh-four__code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-muted), var(--bg-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.four-oh-four__message {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ================================================================
   ARTICLES LISTING PAGE
   ================================================================ */

.articles-page {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
}

.articles-page__header {
  margin-bottom: 48px;
}

.articles-page__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================================================================
   ARTICLE SINGLE PAGE
   ================================================================ */

.article-single {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
}

.article-single__image {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
}

.article-single__header {
  margin-bottom: 40px;
  max-width: 720px;
}

.article-single__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.article-single__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.article-single__tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.article-single__body {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .article-single__body {
    font-size: 16px;
    line-height: 1.75;
  }
}

.article-single__body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-single__body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.article-single__body p {
  margin-bottom: 20px;
}

.article-single__body ul,
.article-single__body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-single__body li {
  margin-bottom: 8px;
}

.article-single__body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--accent-glow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-single__body code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent);
}

.article-single__body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.article-single__body pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.article-single__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-single__body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.article-single__body table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
}

.article-single__body th,
.article-single__body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article-single__body th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.article-single__body td {
  color: var(--text-secondary);
}

.article-single__body tr:nth-child(even) td {
  background: var(--bg-secondary);
}

/* Article CTA at bottom */
.article-cta {
  max-width: 720px;
  margin-top: 60px;
  padding: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color 0.3s ease;
}

.article-cta:hover {
  border-color: var(--accent);
}

.article-cta__text {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* ================================================================
   SIDEBAR (Article pages)
   ================================================================ */

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr 280px;
    gap: 64px;
  }
}

.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  align-self: start;
}

.article-sidebar__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.article-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-sidebar__item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.article-sidebar__item:hover {
  color: var(--accent);
  border-color: var(--border);
  background: var(--bg-hover);
}

.article-sidebar__item--active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ================================================================
   PAGE TRANSITION OVERLAY
   ================================================================ */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.page-transition--active {
  opacity: 1;
  pointer-events: all;
}

/* ================================================================
   UTILITY
   ================================================================ */

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

/* ================================================================
   RESPONSIVE TWEAKS
   ================================================================ */

@media (max-width: 600px) {
  .section {
    padding: 80px 0;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .terminal__body {
    padding: 16px 20px;
    font-size: 13px;
    min-height: 260px;
  }

  .article-card {
    padding: 20px 24px;
  }

  .counters__grid {
    gap: 24px;
  }

  .carousel__card {
    padding: 28px 20px;
  }

  .carousel__quote {
    font-size: 15px;
    padding-left: 20px;
  }

  .bento__illustration {
    min-height: 140px;
    padding: 24px 24px 0;
  }

  .bento__content {
    padding: 20px 24px 24px;
  }
}

@media (max-width: 480px) {
  .counters,
  .testimonials {
    padding: 64px 0;
  }
}

/* ================================================================
   ABOUT — EXPANDED (two-column with photo)
   ================================================================ */

.about__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

@media (min-width: 768px) {
  .about__layout {
    grid-template-columns: 300px 1fr;
    gap: 72px;
  }
}

/* Photo column */
.about__photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (min-width: 768px) {
  .about__photo-col {
    align-items: flex-start;
    position: sticky;
    top: calc(var(--nav-height) + 32px);
  }
}

.about__photo-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius-lg);
}

.about__photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}

.about__availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(var(--success-rgb), 0.08);
  border: 1px solid rgba(var(--success-rgb), 0.2);
  border-radius: 100px;
}

.about__availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: availability-pulse 2.5s ease-in-out infinite;
}

@keyframes availability-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--success-rgb), 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(var(--success-rgb), 0); }
}

/* Bio column */
.about__bio-col .section__title {
  margin-bottom: 28px;
}

.about__text p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about__text strong {
  color: var(--accent);
  font-weight: 600;
  position: relative;
}

/* Career timeline */
.about__career {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  padding-left: 24px;
  position: relative;
}

.career-step {
  position: relative;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.career-step:last-child {
  padding-bottom: 0;
}

.career-step::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-primary);
  transition: background 0.3s ease, transform 0.3s ease;
}

.career-step:hover::before {
  background: var(--accent);
  transform: scale(1.2);
}

.career-step__year {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.career-step__role {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Skills */
.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.about__skill {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.about__skill:hover {
  color: var(--accent);
  border-color: var(--accent-glow-strong);
  background: var(--accent-glow);
}

/* ================================================================
   HOW I WORK (PROCESS)
   ================================================================ */

.process {
  border-top: 1px solid var(--border);
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

.process__intro {
  max-width: 560px;
  margin-bottom: 64px;
}

.process__intro .section__subtitle {
  margin-bottom: 0;
}

.process__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) {
  .process__steps {
    flex-direction: row;
    align-items: flex-start;
  }
}

.process__step {
  display: flex;
  gap: 20px;
  flex: 1;
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.process__step:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.09);
}

@media (min-width: 768px) {
  .process__step {
    flex-direction: column;
    gap: 16px;
  }
}

.process__connector {
  display: none;
}

@media (min-width: 768px) {
  .process__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    margin-top: 48px;
    position: relative;
  }

  .process__connector::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--border) 100%);
    opacity: 0.4;
  }

  .process__connector::after {
    content: '›';
    font-size: 20px;
    color: var(--accent);
    opacity: 0.4;
    position: relative;
    z-index: 1;
  }
}

.process__number {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

@media (max-width: 480px) {
  .process__number {
    font-size: 28px;
  }
}

.process__step:hover .process__number {
  color: var(--accent);
}

.process__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.process__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.process__badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  align-self: flex-start;
}

.process__cta {
  text-align: center;
  margin-top: 56px;
}

/* ================================================================
   CASE STUDIES
   ================================================================ */

.case-studies {
  border-top: 1px solid var(--border);
  position: relative;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.case-studies::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}

.case-studies__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .case-studies__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-study {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.case-study::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.case-study:hover::before {
  transform: scaleX(1);
}

.case-study:hover {
  border-color: rgba(var(--accent-rgb), 0.20);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(var(--accent-rgb), 0.10);
}

.case-study__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.case-study__industry {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-study__type {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.case-study__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.case-study:hover .case-study__title {
  color: var(--accent);
}

.case-study__body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  flex: 1;
}

.case-study__outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.case-study__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-study__metric-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-study__metric-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 500;
}

/* ================================================================
   CONTACT — EXTENDED
   ================================================================ */

.contact__availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
  margin-bottom: 32px;
}

.contact__availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: availability-pulse 2.5s ease-in-out infinite;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact__actions .btn {
  width: 100%;
  max-width: 360px;
}

/* ================================================================
   FOOTER — REBUILT
   ================================================================ */

.footer {
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 64px 24px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .footer__inner {
    grid-template-columns: 200px 1fr;
    gap: 64px;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand-link {
  display: inline-flex;
  text-decoration: none;
}

.footer__monogram {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.footer__brand-link:hover .footer__monogram {
  transform: scale(1.1) rotate(-6deg);
}

.footer__tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 180px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
}

.footer__social-link:hover {
  color: var(--accent);
  border-color: var(--accent-glow-strong);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* Footer nav */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 500px) {
  .footer__nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer__nav-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.footer__nav-link:hover {
  color: var(--accent);
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ================================================================
   HERO ORBS — REDUCED OPACITY (less distracting)
   ================================================================ */

.hero__orb--1 {
  opacity: 0.07;
}

.hero__orb--2 {
  opacity: 0.06;
}
