/* ============================================================
   Sebastian Beca — personal site
   Palette: cosmic dark · muted violet · electric cyan
   Fonts:   Space Grotesk (body) · DM Mono (labels/accents)
   ============================================================ */

:root {
  --bg:           #08080f;
  --surface:      #0e0e1c;
  --violet:       #7c6ff7;
  --violet-dim:   #3a3570;
  --violet-glow:  rgba(124, 111, 247, 0.18);
  --cyan:         #22d3ee;
  --cyan-dim:     #134e5e;
  --text:         #e2e2f0;
  --muted:        #6b6b99;
  --border:       rgba(124, 111, 247, 0.13);
  --nav-w:        222px;
  --section-px:   5.5rem;
  --section-py:   6rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === Canvas background ==================================== */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === Side navigation ====================================== */
#sidenav {
  position: fixed;
  left: 0; top: 0;
  width: var(--nav-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.75rem;
  z-index: 100;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.nav-brand {
  display: block;
  text-decoration: none;
  margin-bottom: 3.5rem;
}

.brand-main {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.2s;
}

.nav-brand:hover .brand-main { color: var(--violet); }

.brand-sub {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.nav-links {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  padding: 0.5rem 0.65rem;
  border-radius: 5px;
  transition: color 0.22s, background 0.22s;
  letter-spacing: 0.01em;
}

.nav-link:hover  { color: var(--text); background: rgba(124,111,247,0.08); }
.nav-link.active { color: var(--text); background: rgba(124,111,247,0.13); }

.nav-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet-dim);
  flex-shrink: 0;
  transition: background 0.22s, box-shadow 0.22s;
}

.nav-link.active .nav-dot {
  background: var(--violet);
  box-shadow: 0 0 7px var(--violet);
}

.nav-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.nav-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* === Mobile menu button =================================== */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 1.25rem; left: 1.25rem;
  z-index: 200;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
  transition: background 0.2s;
}

.mobile-menu-btn:hover span { background: var(--text); }

/* === Main content ========================================= */
main {
  margin-left: var(--nav-w);
  position: relative;
  z-index: 10;
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-py) var(--section-px);
  border-bottom: 1px solid var(--border);
}

/* Alternating subtle tint */
#therapy, #yoga, #photos {
  background: rgba(14, 14, 28, 0.45);
}

/* === Hero ================================================= */
#hero {
  padding: 0 var(--section-px);
  background: transparent;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: center;
  max-width: 860px;
  width: 100%;
}

.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

/* violet–cyan glow behind photo */
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  opacity: 0.28;
  filter: blur(28px);
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.9);
  border-radius: 16px;
}

.hero-name {
  font-size: clamp(2.8rem, 4.5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.93;
  color: var(--text);
}

.hero-alias {
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  color: var(--violet);
  margin-top: 0.9rem;
  letter-spacing: 0.07em;
}

.hero-tagline {
  margin-top: 1.75rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 360px;
  font-weight: 300;
}

.hero-tagline em {
  color: var(--text);
  font-style: normal;
  font-weight: 400;
}

.hero-location {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
  opacity: 0.65;
}

.hero-scroll {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: pulse-down 2.4s ease-in-out infinite;
}

.hero-scroll-line {
  width: 28px; height: 1px;
  background: var(--violet-dim);
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50%       { opacity: 0.75; transform: translateY(4px); }
}

/* === Shared section elements ============================== */
.section-body       { max-width: 580px; width: 100%; }
.section-body--wide { max-width: 860px; }

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.03;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.section-desc {
  color: var(--muted);
  line-height: 1.78;
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 1.1rem;
}

em.alias {
  color: var(--cyan);
  font-style: normal;
  font-weight: 400;
}

/* === Tags ================================================= */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.75rem;
}

.tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.28rem 0.65rem;
  border-radius: 2px;
}

/* === Buttons ============================================== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.3rem;
  border-radius: 4px;
  transition: all 0.22s;
  border: 1px solid transparent;
}

.link-btn.primary {
  color: var(--violet);
  border-color: var(--violet-dim);
}

.link-btn.primary:hover {
  color: var(--text);
  border-color: var(--violet);
  background: rgba(124, 111, 247, 0.1);
}

.link-btn.secondary {
  color: var(--muted);
  border-color: rgba(107, 107, 153, 0.25);
}

.link-btn.secondary:hover {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  background: rgba(34, 211, 238, 0.05);
}

/* === Placeholder block (music) ============================ */
.placeholder-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  margin-top: 1.5rem;
  max-width: 520px;
}

.placeholder-icon {
  font-size: 1.4rem;
  opacity: 0.35;
}

.placeholder-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* === Video grid (yoga) ==================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 640px;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* === Photography grid ===================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.photo-item {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 3px;
  cursor: zoom-in;
}

.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.7) brightness(0.9);
  transition: filter 0.4s, transform 0.4s;
}

.photo-item:hover img {
  filter: saturate(1) brightness(1);
  transform: scale(1.04);
}

/* === Likes & Links grid =================================== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.link-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: rgba(14, 14, 28, 0.75);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.22s, background 0.22s;
}

.link-card:hover {
  border-color: var(--violet);
  background: rgba(124, 111, 247, 0.06);
}

.link-card--add {
  border-style: dashed;
  cursor: default;
}

.link-card--add:hover {
  border-color: var(--border);
  background: transparent;
}

.link-card-title {
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.link-card--add .link-card-title { color: var(--muted); }

.link-card-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 300;
}

/* === Scrollbar ============================================ */
::-webkit-scrollbar          { width: 3px; }
::-webkit-scrollbar-track    { background: var(--bg); }
::-webkit-scrollbar-thumb    { background: var(--violet-dim); border-radius: 2px; }

/* === Responsive =========================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-px: 3.5rem;
    --nav-w: 200px;
  }

  .hero-inner {
    grid-template-columns: 1fr 260px;
    gap: 3.5rem;
  }

  .hero-photo { width: 260px; height: 350px; }
}

/* Mobile */
@media (max-width: 700px) {
  :root { --section-px: 1.75rem; --section-py: 5rem; }

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

  #sidenav { transform: translateX(-100%); }
  #sidenav.open { transform: translateX(0); }

  /* dim overlay when menu open */
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
  }

  main { margin-left: 0; }

  #hero { padding: var(--section-py) var(--section-px); }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: center;
    text-align: center;
  }

  .hero-photo { width: 180px; height: 240px; }
  .hero-tagline { max-width: none; }
  .tags { justify-content: center; }
  .hero-scroll { justify-content: center; }
  .btn-row { justify-content: center; }

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