/* ============================================================
   SHARED STYLES — Tanner Spuzello
   Used by: index.html, projects.html, contact.html
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #0f1117;
  --bg-hover:    rgba(255,255,255,0.055);
  --border:      rgba(255,255,255,0.09);
  --text:        #cdd0db;
  --text-head:   #f0f1f6;
  --text-muted:  #6b7385;
  --text-sub:    #9196a8;
  --accent:      #7eb8b0;
  --accent-pill: #0f2622;
  --pill-text:   #7eb8b0;
  --nav-bg:      rgba(15,17,23,0.88);
  --avatar-ring: rgba(126,184,176,0.35);
  --label-color: #a0a8bc;
  --card-bg:     #16181f;
  --card-border: rgba(255,255,255,0.07);
}
[data-theme="light"] {
  --bg:          #f4f3ef;
  --bg-hover:    rgba(0,0,0,0.05);
  --border:      rgba(0,0,0,0.1);
  --text:        #3a3d4a;
  --text-head:   #111318;
  --text-muted:  #888ea0;
  --text-sub:    #555968;
  --accent:      #2d7a70;
  --accent-pill: #e4f2f0;
  --pill-text:   #1f5e56;
  --nav-bg:      rgba(244,243,239,0.9);
  --avatar-ring: rgba(45,122,112,0.3);
  --label-color: #6b7080;
  --card-bg:     #ffffff;
  --card-border: rgba(0,0,0,0.08);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ── TOP NAV ─────────────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.topnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.topnav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-head);
  letter-spacing: -0.02em;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  flex-shrink: 0;
  transition: border-color 0.18s, color 0.18s;
}
.topnav-logo:hover { border-color: var(--accent); color: var(--accent); }

.topnav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.topnav-links a {
  display: block;
  padding: 6px 13px;
  border-radius: 5px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color 0.18s, background 0.18s;
}
.topnav-links a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.topnav-links a:hover,
.topnav-links a.active { color: var(--text-head); background: var(--bg-hover); }
.topnav-links a:hover::after,
.topnav-links a.active::after { transform: scaleX(1); }

.topnav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.social-link { color: var(--text-muted); display: flex; align-items: center; transition: color 0.18s; }
.social-link:hover { color: var(--text-head); }
.social-link svg { width: 17px; height: 17px; fill: currentColor; }

/* ── THEME TOGGLE BUTTON — lightbulb icon ───────────────────── */
.theme-btn {
  background: none;
  /*border: 1px solid var(--border);*/
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  /*transition: border-color 0.18s, color 0.18s;*/
  transition: color 0.18s;   /* ← also remove border-color from transition */
  flex-shrink: 0;
  padding: 0;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── PAGE LAYOUT ─────────────────────────────────────────────── */
.outer { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.layout { display: flex; gap: 80px; align-items: flex-start; }

/* ── LEFT STICKY PANEL ───────────────────────────────────────── */
.left {
  position: sticky;
  top: 54px;
  width: 320px;
  flex-shrink: 0;
  height: calc(100vh - 54px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 64px 0 56px;
}
.left-top { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.avatar-wrap { width: 100%; display: flex; justify-content: center; margin-bottom: 18px; }
.avatar {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--avatar-ring);
}
.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-head);
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}
.hero-title { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.02em; margin-bottom: 12px; }
.hero-bio { font-size: 13px; font-weight: 400; color: var(--text-sub); line-height: 1.85; }

/* ── RIGHT SCROLL PANEL ──────────────────────────────────────── */
.right { flex: 1; padding: 64px 0 88px; min-width: 0; }

/* ── SECTIONS ────────────────────────────────────────────────── */
.section { margin-bottom: 80px; }
.section:last-child { margin-bottom: 0; }
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label-color);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── PILLS ───────────────────────────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  background: var(--accent-pill);
  color: var(--pill-text);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { padding: 24px 0 48px; font-size: 12px; color: var(--text-muted); }

/* ── SCROLL FADE-IN ──────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .layout { flex-direction: column; gap: 0; }
  .outer { padding: 0 24px; }
  .left { position: relative; top: 0; width: 100%; height: auto; padding: 48px 0 36px; }
  .right { padding: 0 0 72px; }
  .topnav-inner { padding: 0 16px; gap: 8px; }
  .topnav-links { gap: 0; }
  .topnav-links a { padding: 6px 9px; font-size: 10px; letter-spacing: 0.06em; }
}

@media (max-width: 480px) {
  .outer { padding: 0 20px; }
  .topnav-inner { padding: 0 12px; gap: 6px; }
  .topnav-links a { padding: 6px 7px; font-size: 10px; }
  .topnav-right { gap: 8px; }
}