/* ═══════════════════════════════════════════════════════════
   SPHAS — style.css
   Biyoteknoloji laboratuvarı estetiği:
   Koyu zemin · Zümrüt yeşili · Siyan aksent · Glassmorphism
═══════════════════════════════════════════════════════════ */

/* ── 0. CSS Custom Properties ─────────────────────────── */
:root {
  --c-bg: #0A0F0D;
  --c-card: #111816;
  --c-hover: #162019;
  --c-green: #22C55E;
  --c-mint: #4ADE80;
  --c-cyan: #06B6D4;
  --c-white: #F0FDF4;
  --c-gray: #94A3B8;
  --c-muted: #64748B;
  --c-border: #1F2D25;

  --c-nav-bg: rgba(10, 15, 13, 0.80);
  --c-sf-bg: rgba(17, 24, 22, 0.85);
  --c-stack-bg: rgba(255, 255, 255, 0.04);
  --c-ipc-bg: rgba(255, 255, 255, 0.02);
  --c-btn-sec-bg: rgba(255, 255, 255, 0.03);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-card: 16px;
  --radius-tag: 6px;
  --shadow-card: 0 0 0 1px var(--c-border), 0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow-green: 0 0 24px rgba(34, 197, 94, 0.25);
  --shadow-glow-cyan: 0 0 24px rgba(6, 182, 212, 0.22);

  --transition: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 1. Reset & Base ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--c-bg);
  color: var(--c-white);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ── 2. NAV ────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), backdrop-filter var(--transition),
    border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#site-nav.scrolled {
  background: var(--c-nav-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--c-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--c-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-gray);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-green);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--c-green);
}

.nav-link:hover::after {
  width: 100%;
}

/* ── 3. HERO ───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

/* Ambient background glows */
.hero-glow-green {
  position: absolute;
  top: -160px;
  left: -160px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow-cyan {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 80px;
}

/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-green);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 100px;
  padding: 6px 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* H1 */
.hero-h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--c-white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-h1.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gradient-text {
  background: linear-gradient(135deg, var(--c-green) 0%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hero-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
  color: var(--c-gray);
  max-width: 520px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-sub.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--c-green) 0%, #16a34a 100%);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.45), 0 4px 16px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--c-mint) 0%, var(--c-green) 100%);
  transform: translateY(0) !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-gray);
  border: 1px solid var(--c-border);
  background: var(--c-btn-sec-bg);
  backdrop-filter: blur(8px);
  transition: color var(--transition), border-color var(--transition),
    background var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  color: var(--c-white);
  border-color: var(--c-green);
  background: rgba(34, 197, 94, 0.06);
  transform: translateY(0) !important;
}

/* ── Sensor Orbit Visual ─────────── */
.orbit-wrap {
  position: relative;
  width: 380px;
  height: 380px;
  flex-shrink: 0;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid;
}

.orbit-outer {
  width: 340px;
  height: 340px;
  border-color: rgba(34, 197, 94, 0.12);
  animation: spinRing 28s linear infinite;
}

.orbit-inner {
  width: 220px;
  height: 220px;
  border-color: rgba(6, 182, 212, 0.12);
  animation: spinRing 18s linear infinite reverse;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.18);
}

.orbit-plant-svg {
  display: block;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.45));
}

/* Floating sensor icons */
.sf {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--c-sf-bg);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.sf:hover {
  border-color: var(--c-green);
  box-shadow: var(--shadow-glow-green);
}

.sf-svg {
  display: block;
  flex-shrink: 0;
}

.sf-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--c-muted);
  white-space: nowrap;
}

/* Positions & staggered float animations */
.sf-1 {
  top: 4%;
  left: 42%;
  animation: floatA 5s ease-in-out infinite;
}

.sf-2 {
  top: 38%;
  left: 2%;
  animation: floatB 6s ease-in-out infinite 0.5s;
}

.sf-3 {
  top: 38%;
  right: 0%;
  animation: floatA 5.5s ease-in-out infinite 1s;
}

.sf-4 {
  bottom: 8%;
  left: 20%;
  animation: floatB 4.8s ease-in-out infinite 0.3s;
}

.sf-5 {
  bottom: 6%;
  right: 16%;
  animation: floatA 5.2s ease-in-out infinite 0.8s;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--c-border);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-ball {
  width: 5px;
  height: 10px;
  border-radius: 3px;
  background: var(--c-green);
  animation: scrollBall 2s ease-in-out infinite;
  opacity: 0.7;
}

/* ── 4. STATS ──────────────────────────────────────────── */
.stats-section {
  padding: 56px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  divide: var(--c-border);
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
  border-right: 1px solid var(--c-border);
  text-align: center;
}

.stat-block:last-child {
  border-right: none;
}

.stat-num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--c-green) 0%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.1s linear;
}

.stat-lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0.03em;
}

/* ── 5. SECTION SHARED STYLES ─────────────────────────── */
.features-section,
.arch-section {
  padding: 112px 0;
}

.sec-header {
  text-align: center;
  margin-bottom: 64px;
}

.sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.sec-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--c-white);
  margin-top: 10px;
}

.sec-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-gray);
  margin-top: 14px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 6. FEATURES CARDS ─────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feat-card {
  position: relative;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  cursor: default;

  /* Animate-in initial state */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease,
    border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.feat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glassmorphism top shimmer */
.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feat-card:hover {
  border-color: rgba(34, 197, 94, 0.28);
  background: var(--c-hover);
  box-shadow: var(--shadow-card), 0 0 32px rgba(34, 197, 94, 0.08);
  transform: translateY(0) !important;
}

.feat-card:hover::before {
  opacity: 1;
}

.feat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.14);
  border-radius: 10px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.12));
}

.feat-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.3;
}

.feat-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--c-gray);
  flex: 1;
}

.feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--c-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.16);
  border-radius: var(--radius-tag);
  padding: 3px 8px;
  white-space: nowrap;
}

/* ── 7. ARCHITECTURE ────────────────────────────────────── */
.arch-section {
  background: linear-gradient(180deg, var(--c-bg) 0%, #0C1410 40%, #0D1512 60%, var(--c-bg) 100%);
}

/* SVG Diagram wrapper */
.arch-svg-wrap {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 24px;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.arch-svg {
  width: 100%;
  height: auto;
  min-width: 600px;
  display: block;
}

/* Module hover effect via SVG class */
.svg-module {
  transition: filter 0.3s ease;
}

.svg-module:hover {
  filter: brightness(1.15);
}

/* Module Cards */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.mod-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.mod-card:hover {
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(0) !important;
}

.mod-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 6px;
  border-width: 1px;
  border-style: solid;
  width: fit-content;
}

.green-badge {
  color: var(--c-green);
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
}

.cyan-badge {
  color: var(--c-cyan);
  border-color: rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.08);
}

.mod-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-white);
}

.mod-stack {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  background: var(--c-stack-bg);
  border-radius: 5px;
  padding: 4px 8px;
  width: fit-content;
}

.mod-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-gray);
}

.mod-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}

.mod-list li {
  font-size: 12.5px;
  color: var(--c-gray);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
  padding-left: 0;
}

.mod-list li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-cyan);
  margin-top: 5px;
  opacity: 0.7;
}

/* IPC Protocol note */
.ipc-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  text-align: center;
  margin-top: 40px;
  padding: 14px 20px;
  background: var(--c-ipc-bg);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  line-height: 1.7;
}

.ipc-green {
  color: var(--c-green);
}

.ipc-cyan {
  color: var(--c-cyan);
}

/* ── 8. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--c-card);
  border-top: 1px solid var(--c-border);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--c-muted);
}

.footer-uni-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-gray);
  text-align: center;
}

.footer-uni-dept {
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
  margin-top: 4px;
}

.footer-gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-gray);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 10px 20px;
  background: var(--c-btn-sec-bg);
  transition: color var(--transition), border-color var(--transition),
    background var(--transition), transform var(--transition);
}

.footer-gh:hover {
  color: var(--c-white);
  border-color: var(--c-green);
  background: rgba(34, 197, 94, 0.07);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-size: 12px;
  color: var(--c-muted);
}

/* ── 9. KEYFRAME ANIMATIONS ─────────────────────────────── */
@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

@keyframes spinRing {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes floatA {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes floatB {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(8px) rotate(-2deg);
  }
}

@keyframes scrollBall {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }

  60% {
    transform: translateY(14px);
    opacity: 0.3;
  }

  61% {
    transform: translateY(0);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
}

/* ── 9.5 THEME TOGGLE & LIGHT MODE OVERRIDES ────────────── */
.light-mode {
  --c-bg: #F4FAF7;
  --c-card: #FFFFFF;
  --c-hover: #EAF3EE;
  --c-green: #16A34A;
  --c-mint: #15803D;
  --c-cyan: #0891B2;
  --c-white: #0B130E;
  --c-gray: #475569;
  --c-muted: #64748B;
  --c-border: #D1E2D8;

  --c-nav-bg: rgba(244, 250, 247, 0.80);
  --c-sf-bg: rgba(255, 255, 255, 0.85);
  --c-stack-bg: rgba(0, 0, 0, 0.04);
  --c-ipc-bg: rgba(0, 0, 0, 0.02);
  --c-btn-sec-bg: rgba(0, 0, 0, 0.03);

  --shadow-card: 0 0 0 1px var(--c-border), 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-glow-green: 0 0 24px rgba(22, 163, 74, 0.15);
  --shadow-glow-cyan: 0 0 24px rgba(8, 145, 178, 0.12);
}

.light-mode .hero-glow-green {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
}

.light-mode .hero-glow-cyan {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
}

.light-mode .arch-section {
  background: linear-gradient(180deg, var(--c-bg) 0%, #EBF2EE 40%, #E8EFEA 60%, var(--c-bg) 100%);
}

/* SVG adjustments in Light Mode */
.light-mode .arch-svg text[fill="#F0FDF4"] {
  fill: var(--c-white) !important;
}

.light-mode .arch-svg rect[fill="url(#pg)"] {
  opacity: 0.15 !important;
}

.light-mode .arch-svg path[stroke="#1F2D25"] {
  stroke: var(--c-border) !important;
}

.light-mode .arch-svg rect[fill="#0D1512"] {
  fill: var(--c-hover) !important;
  stroke: var(--c-border) !important;
}

.light-mode .arch-svg rect[fill="#0A0F0D"] {
  fill: var(--c-card) !important;
  stroke: var(--c-border) !important;
}

.light-mode .svg-module rect {
  stroke-width: 1px !important;
}

.light-mode .orbit-ring.orbit-outer {
  border-color: rgba(22, 163, 74, 0.16);
}

.light-mode .orbit-ring.orbit-inner {
  border-color: rgba(8, 145, 178, 0.16);
}

/* Theme Toggle Button Layout */
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: var(--c-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background-color var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--c-green);
  background-color: var(--c-hover);
}

.theme-toggle-btn .theme-icon.hidden {
  display: none;
}

/* ── 12. LANGUAGE TOGGLE ───────────────────────────────── */
.lang-toggle-btn {
  background: none;
  border: none;
  color: var(--c-gray);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle-btn:hover {
  color: var(--c-green);
  background-color: var(--c-hover);
}

/* ── 13. PHOTOS GRID & GALLERY HEADER ────────────── */
.gallery-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 8px;
}

.gallery-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-top: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  background: linear-gradient(135deg, var(--c-white) 0%, var(--c-cyan) 50%, var(--c-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .photos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  background: var(--c-card);
  aspect-ratio: 4 / 3;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.photo-card:hover {
  border-color: rgba(34, 197, 94, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter var(--transition);
  filter: grayscale(15%) brightness(0.9);
}

.photo-card:hover .project-photo {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1.1);
}

@media (max-width: 479px) {
  .nav-right {
    gap: 16px;
  }
}

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

:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 11. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1279px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1023px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }

  .hero-sub {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .orbit-wrap {
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .hero-inner {
    padding-top: 40px;
    padding-bottom: 60px;
  }

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

  .stat-block {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
  }

  .stat-block:nth-child(odd) {
    border-right: 1px solid var(--c-border);
  }

  .stat-block:last-child,
  .stat-block:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }

  .feat-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mod-grid {
    grid-template-columns: 1fr;
  }

  .orbit-wrap {
    width: 300px;
    height: 300px;
  }

  .orbit-outer {
    width: 270px;
    height: 270px;
  }

  .orbit-inner {
    width: 180px;
    height: 180px;
  }

  .orbit-center {
    width: 76px;
    height: 76px;
  }

  .orbit-plant {
    font-size: 36px;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .features-section,
  .arch-section {
    padding: 72px 0;
  }

  .ipc-note {
    font-size: 10px;
  }
}

@media (max-width: 479px) {
  .nav-links {
    gap: 20px;
  }

  .hero-h1 {
    font-size: 36px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
  }
}

/* ── 12. REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}