:root {
  --bg-deep: #030712;
  --bg-navy-1: #05122b;
  --bg-navy-2: #0a1f3d;
  --accent: #5ad8ff;
  --accent-soft: rgba(90, 216, 255, 0.35);
  --text-primary: #eef3fb;
  --text-muted: #9fb3ce;
  --glass-fill: rgba(255, 255, 255, 0.06);
  --glass-fill-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: rgba(0, 0, 0, 0.45);
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  background: radial-gradient(
      120% 140% at 50% -10%,
      var(--bg-navy-2) 0%,
      var(--bg-navy-1) 45%,
      var(--bg-deep) 100%
    );
  overflow-x: hidden;
}

#eeg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Glass surfaces */

.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 1.1rem 1rem 0.6rem;
}

.navbar {
  width: min(920px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem 0.6rem 1.2rem;
  border-radius: 999px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.05rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--glass-fill-strong);
}

.nav-links a.active {
  color: var(--bg-deep);
  background: var(--accent);
}

.social-icons {
  display: flex;
  gap: 0.35rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
  color: var(--accent);
  background: var(--glass-fill-strong);
  transform: translateY(-2px);
}

.icon {
  width: 17px;
  height: 17px;
}

/* Main content */

.site-main {
  flex: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.4rem 0 1.6rem;
  font-weight: 650;
}

.card {
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.4rem;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--text-muted);
  line-height: 1.65;
}

.card a {
  color: var(--accent);
}

/* Hero / home */

.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.hero img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 0 6px rgba(90, 216, 255, 0.08), 0 10px 30px var(--glass-shadow);
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.hero p.tagline {
  margin: 0;
  color: var(--accent);
  font-weight: 500;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--glass-shadow), 0 0 0 1px var(--accent-soft);
}

.btn-row {
  text-align: center;
  margin-top: 2rem;
}

/* Recipes */

.recipe-card h3 {
  margin-bottom: 0.3rem;
}

.recipe-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.recipe-card h3 a:hover {
  color: var(--accent);
}

.recipe-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.recipe-meta .icon {
  width: 14px;
  height: 14px;
}

.recipe-section h2 {
  font-size: 1.15rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.4rem;
}

.recipe-section ul,
.recipe-section ol {
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 1.3rem;
}

/* CV */

.cv-embed {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: var(--radius-md);
}

/* Footer */

.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 1.5rem 1rem 2.2rem;
}

@media (max-width: 640px) {
  .navbar {
    justify-content: center;
  }
  .brand {
    width: 100%;
    text-align: center;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .card {
    padding: 1.3rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
