/* =============================================================
   Farmana Ditya | GIS Portfolio
   Design system: Ethereum DeFi (institutional-grade, indigo glow)
   ============================================================= */

/* -----------------------------
   Color Tokens
----------------------------- */
:root {
  --btc-bg: #030304;
  --btc-surface: #0F1115;
  --btc-surface2: #161B22;
  --btc-fg: #FFFFFF;
  --btc-muted: #94A3B8;
  --btc-border: rgba(255, 255, 255, 0.1);
  --btc-border-hover: rgba(98, 126, 234, 0.5);
  --btc-primary: #627EEA;
  --btc-secondary: #3B5BDB;
  --btc-accent: #A5B4FC;
  --btc-input-bg: rgba(255, 255, 255, 0.03);
  --btc-shadow-btn: 0 0 20px -5px rgba(59, 91, 219, 0.5);
  --btc-shadow-btn-hover: 0 0 30px -5px rgba(98, 126, 234, 0.6);
  --btc-shadow-card: 0 0 50px -10px rgba(98, 126, 234, 0.15);
  --btc-shadow-glow-accent: 0 0 20px rgba(165, 180, 252, 0.3);
  --btc-grid-line: rgba(30, 41, 59, 0.5);
}

[data-theme="light"] {
  --btc-bg: #F8F6F2;
  --btc-surface: #FFFFFF;
  --btc-surface2: #F1EDE6;
  --btc-fg: #0F1115;
  --btc-muted: #64748B;
  --btc-border: rgba(15, 17, 21, 0.1);
  --btc-border-hover: rgba(98, 126, 234, 0.6);
  --btc-primary: #627EEA;
  --btc-secondary: #3B5BDB;
  --btc-accent: #818CF8;
  --btc-input-bg: rgba(15, 17, 21, 0.03);
  --btc-shadow-btn: 0 4px 16px -4px rgba(59, 91, 219, 0.4);
  --btc-shadow-btn-hover: 0 6px 24px -4px rgba(98, 126, 234, 0.5);
  --btc-shadow-card: 0 4px 24px -4px rgba(98, 126, 234, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
  --btc-shadow-glow-accent: 0 4px 16px rgba(129, 140, 248, 0.25);
  --btc-grid-line: rgba(15, 17, 21, 0.06);
}

/* -----------------------------
   Base
----------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--btc-bg);
  color: var(--btc-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; color: var(--btc-muted); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.font-mono, .label-mono {
  font-family: 'JetBrains Mono', monospace;
}

.label-mono {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--btc-primary);
  margin-bottom: 0.85rem;
}

.grad-text {
  background: linear-gradient(to right, var(--btc-primary), var(--btc-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -----------------------------
   Buttons
----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 9999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-sm {
  min-height: 38px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-primary {
  background: linear-gradient(to right, var(--btc-secondary), var(--btc-primary));
  color: #fff;
  box-shadow: var(--btc-shadow-btn);
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--btc-shadow-btn-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--btc-border);
  color: var(--btc-fg);
}
.btn-outline:hover {
  border-color: var(--btc-fg);
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .btn-outline:hover {
  background: rgba(15, 17, 21, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--btc-fg);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--btc-primary);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(15, 17, 21, 0.05);
}

/* -----------------------------
   Nav
----------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--btc-bg) 75%, transparent);
  border-bottom: 1px solid var(--btc-border);
  transition: background 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(98, 126, 234, 0.4));
}
[data-theme="light"] .brand-logo { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--btc-muted);
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
}
.nav-links a:hover {
  color: var(--btc-fg);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: linear-gradient(to right, var(--btc-primary), var(--btc-accent));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: rgba(98, 126, 234, 0.1);
  border: 1px solid var(--btc-border);
  color: var(--btc-fg);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover {
  background: rgba(98, 126, 234, 0.2);
  border-color: var(--btc-border-hover);
  box-shadow: var(--btc-shadow-glow-accent);
}

.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--btc-border);
  color: var(--btc-fg);
  border-radius: 8px;
  width: 40px; height: 40px;
  cursor: pointer;
}

/* -----------------------------
   Hero
----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
}

.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  filter: grayscale(0.4);
  pointer-events: none;
}
[data-theme="light"] .hero-map { opacity: 0.35; }

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--btc-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--btc-grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
          mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  background: #627EEA;
  opacity: 0.10;
  width: 480px; height: 480px;
  top: -120px; left: -120px;
}
.glow-2 {
  background: #A5B4FC;
  opacity: 0.08;
  width: 400px; height: 400px;
  bottom: -100px; right: -80px;
}
[data-theme="light"] .glow-1 { opacity: 0.05; }
[data-theme="light"] .glow-2 { opacity: 0.04; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 1rem 0 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--btc-muted);
  max-width: 620px;
  margin-bottom: 2rem;
}
.hero-subtitle strong { color: var(--btc-fg); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(98, 126, 234, 0.06);
  border: 1px solid var(--btc-border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
[data-theme="light"] .hero-meta { background: rgba(98, 126, 234, 0.04); }

.meta-item { display: flex; flex-direction: column; }
.meta-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--btc-fg);
  line-height: 1;
}
.meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--btc-muted);
  text-transform: uppercase;
  margin-top: 0.35rem;
}
.meta-divider {
  width: 1px; height: 32px;
  background: var(--btc-border);
}

/* Hero graphic: orbital rings */
.hero-graphic {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
}
.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--btc-border);
  pointer-events: none;
}
.orbit-outer {
  border-color: rgba(98, 126, 234, 0.3);
  animation: spin 10s linear infinite;
}
.orbit-outer::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--btc-primary);
  box-shadow: 0 0 20px var(--btc-primary);
  transform: translateX(-50%);
}
.orbit-inner {
  inset: 12%;
  border-color: rgba(165, 180, 252, 0.3);
  animation: spin 15s linear infinite reverse;
}
.orbit-inner::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 30%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--btc-accent);
  box-shadow: 0 0 16px var(--btc-accent);
}
.hero-node {
  position: absolute;
  inset: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 91, 219, 0.12);
  border: 1px solid rgba(98, 126, 234, 0.4);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 40px rgba(98, 126, 234, 0.25);
}
.hero-node img {
  width: 60%;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(98, 126, 234, 0.5));
}

/* -----------------------------
   Sections
----------------------------- */
.section {
  padding: 6rem 0;
  position: relative;
}
.section-alt {
  background: var(--btc-surface);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-lead {
  color: var(--btc-muted);
  font-size: 1.05rem;
}

/* -----------------------------
   About
----------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 820px;
}

.about-photo {
  position: relative;
  max-width: 360px;
}
.photo-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--btc-border);
  background: var(--btc-surface2);
  box-shadow: var(--btc-shadow-card);
}
.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-deco {
  position: absolute;
  inset: -16px -16px auto auto;
  width: 80px; height: 80px;
  border: 1px solid var(--btc-primary);
  border-radius: 16px;
  opacity: 0.5;
  z-index: -1;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.75rem;
}

.social-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.social-icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(98, 126, 234, 0.08);
  border: 1px solid var(--btc-border);
  color: var(--btc-fg);
  font-size: 1.1rem;
  transition: all 0.3s;
}
.social-icon:hover {
  background: rgba(98, 126, 234, 0.18);
  border-color: var(--btc-border-hover);
  color: var(--btc-primary);
  transform: translateY(-3px);
  box-shadow: var(--btc-shadow-glow-accent);
}

/* -----------------------------
   Badges
----------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-mono {
  background: rgba(98, 126, 234, 0.1);
  color: var(--btc-primary);
  border-color: rgba(98, 126, 234, 0.25);
}
.badge-primary {
  background: rgba(98, 126, 234, 0.15);
  color: var(--btc-primary);
  border-color: rgba(98, 126, 234, 0.3);
}
.badge-accent {
  background: rgba(165, 180, 252, 0.12);
  color: var(--btc-accent);
  border-color: rgba(165, 180, 252, 0.25);
}

.ping-dot {
  position: relative;
  display: inline-block;
  width: 8px; height: 8px;
}
.ping-dot .ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--btc-primary);
  animation: ping 1.5s ease-out infinite;
}
.ping-dot .dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--btc-primary);
}
.badge-accent .ping-dot .ping,
.badge-accent .ping-dot .dot { background: var(--btc-accent); }

/* -----------------------------
   Grid & Cards
----------------------------- */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  background: var(--btc-surface);
  border: 1px solid var(--btc-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  overflow: hidden;
}
.section-alt .card {
  background: var(--btc-bg);
}
[data-theme="light"] .section-alt .card {
  background: var(--btc-surface);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--btc-border-hover);
  box-shadow: var(--btc-shadow-card);
}

.feature-card .icon-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(59, 91, 219, 0.15);
  border: 1px solid rgba(59, 91, 219, 0.4);
  color: var(--btc-primary);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.3s;
}
.feature-card:hover .icon-node {
  box-shadow: 0 0 20px rgba(59, 91, 219, 0.4);
}
.feature-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

.corner-accent {
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border-top: 2px solid var(--btc-primary);
  border-left: 2px solid var(--btc-primary);
  border-top-left-radius: 16px;
  opacity: 0.75;
}

.watermark {
  position: absolute;
  right: -16px; bottom: -24px;
  font-size: 9rem;
  color: var(--btc-primary);
  opacity: 0.05;
  pointer-events: none;
  transition: opacity 0.3s;
}
.card:hover .watermark { opacity: 0.15; }

.tag-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag-list li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(98, 126, 234, 0.08);
  border: 1px solid var(--btc-border);
  color: var(--btc-muted);
}

/* Projects */
.project-card { padding: 0; display: flex; flex-direction: column; }
.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--btc-surface2);
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.08); }
.project-thumb.thumb-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 91, 219, 0.15), rgba(165, 180, 252, 0.08));
}
.thumb-icon {
  font-size: 4rem;
  color: var(--btc-primary);
  opacity: 0.5;
}

.project-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.project-body h3 { font-size: 1.15rem; margin: 0.25rem 0 0.35rem; }
.project-body p { font-size: 0.92rem; flex: 1; }
.card-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* -----------------------------
   Gallery
----------------------------- */
.gallery-category {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--btc-fg);
  margin: 3rem 0 1.5rem;
  letter-spacing: 0.01em;
}
.gallery-category::before {
  content: '/// ';
  color: var(--btc-primary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
}

.swiper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 1.5rem;
  padding: 1rem 0 3rem;
}

.gallery-card {
  background: var(--btc-surface);
  border: 1px solid var(--btc-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s;
}
.section-alt .gallery-card { background: var(--btc-bg); }
[data-theme="light"] .section-alt .gallery-card { background: var(--btc-surface); }
.gallery-card:hover {
  border-color: var(--btc-border-hover);
  box-shadow: var(--btc-shadow-card);
}

.gallery-img {
  display: block;
  width: 100%;
  height: min(480px, 70vw);
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  cursor: zoom-in;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
[data-theme="light"] .gallery-img { background: rgba(15, 17, 21, 0.04); }

.gallery-caption { padding: 0 0.5rem; }
.gallery-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--btc-fg);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.gallery-desc {
  font-size: 0.88rem;
  color: var(--btc-muted);
}

.swiper-button-next, .swiper-button-prev {
  width: 40px; height: 40px;
  background: var(--btc-surface);
  border: 1px solid var(--btc-border);
  border-radius: 9999px;
  color: var(--btc-primary);
  transition: all 0.3s;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  border-color: var(--btc-border-hover);
  box-shadow: var(--btc-shadow-glow-accent);
}
.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 1rem;
  font-weight: 700;
}
.swiper-pagination-bullet {
  background: var(--btc-muted);
  opacity: 0.4;
}
.swiper-pagination-bullet-active {
  background: var(--btc-primary);
  opacity: 1;
}

/* -----------------------------
   Lightbox
----------------------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 3, 4, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px -10px rgba(98, 126, 234, 0.4);
  background: var(--btc-surface);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 9999px;
  background: var(--btc-surface);
  border: 1px solid var(--btc-border);
  color: var(--btc-fg);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}
.lightbox-close:hover {
  background: var(--btc-primary);
  color: #fff;
}

/* -----------------------------
   Research / Thesis
----------------------------- */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.research-content .badge { margin-bottom: 1rem; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.65rem;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--btc-fg);
}
.check-list i {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(98, 126, 234, 0.15);
  color: var(--btc-primary);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.research-map-wrap { position: relative; }
.map-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--btc-border);
  box-shadow: var(--btc-shadow-card);
}
.research-map {
  width: 100%;
  height: 460px;
  background: var(--btc-surface2);
}
html:not([data-theme="light"]) .leaflet-tile {
  filter: brightness(0.6) saturate(0.7) hue-rotate(180deg) invert(0.92);
}
.map-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 1rem;
  padding-left: 0.25rem;
}
.map-caption span:last-child {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--btc-fg);
}

/* -----------------------------
   Contact
----------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-card {
  text-align: center;
  padding: 2rem 1.25rem;
}
.contact-card .icon-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(59, 91, 219, 0.15);
  border: 1px solid rgba(59, 91, 219, 0.4);
  color: var(--btc-primary);
  font-size: 1.3rem;
  margin: 0 auto 1rem;
  transition: box-shadow 0.3s;
}
.contact-card:hover .icon-node {
  box-shadow: 0 0 20px rgba(59, 91, 219, 0.4);
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.contact-card p { font-size: 0.88rem; margin: 0; }

/* Contact Form */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem;
  display: grid;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--btc-muted);
}
.form-field input,
.form-field textarea {
  background: var(--btc-input-bg);
  border: 0;
  border-bottom: 2px solid var(--btc-border);
  padding: 0.85rem 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--btc-fg);
  transition: all 0.3s;
  outline: none;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--btc-muted);
  opacity: 0.55;
}
.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--btc-primary);
  box-shadow: 0 8px 20px -10px rgba(98, 126, 234, 0.3);
}

.contact-form button { justify-self: start; }

.form-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--btc-primary);
  min-height: 1.2em;
}

/* -----------------------------
   Footer
----------------------------- */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--btc-border);
  background: var(--btc-surface);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand p { margin: 0; font-size: 0.9rem; }
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--btc-muted);
}

/* -----------------------------
   Animations
----------------------------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-outer, .orbit-inner { animation: none; }
  .ping-dot .ping { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
}

/* Focus rings */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--btc-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* -----------------------------
   Responsive
----------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-graphic { max-width: 320px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { margin: 0 auto; }
  .research-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    background: var(--btc-surface);
    border-bottom: 1px solid var(--btc-border);
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-actions .btn-ghost { display: none; }

  .section { padding: 4rem 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 1rem; }
  .meta-divider { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-meta { align-items: flex-start; }
}

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
}
