/* base.css — variables, reset, pages, bottom nav, section titles, scroll reveal,
   loading skeletons, scrollbar. Loaded LAST on purpose: the reveal/skeleton
   rules need to win over the component styles in the other files. */

:root {
  --sage: #ccd5ae;
  --cream-light: #e9edc9;
  --cream: #fefae0;
  --warm: #faedcd;
  --tan: #d4a373;
  --brown: #a07850;
  --dark: #3d2b1a;
  --muted: #8a7060;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 24px);
  overflow-x: hidden;
}

/* ── PAGES ── */
.page { display: none; animation: fadeUp 0.45s ease forwards; }
.page.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  background: var(--warm);
  border-radius: 28px;
  padding: 10px 20px;
  display: flex; gap: 4px;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(212,163,115,0.2);
  border: 0.5px solid var(--cream-light);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 18px; border-radius: 20px;
  cursor: pointer; border: none; background: transparent;
  transition: background 0.25s, transform 0.2s;
}
.nav-item:hover { background: var(--cream-light); transform: translateY(-2px); }
.nav-item.active { background: var(--cream-light); }
.nav-icon svg { width: 22px; height: 22px; stroke: var(--muted); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.nav-item.active .nav-icon svg,
.nav-item:hover .nav-icon svg { stroke: var(--brown); }
.nav-label { font-size: 9px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-item.active .nav-label { color: var(--brown); font-weight: 500; }

/* ── SECTION COMMONS ── */
.section { padding: 2rem; }
.sec-label { font-size: 11px; color: var(--tan); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; margin-bottom: 6px; }
.sec-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 600; color: var(--dark); margin-bottom: 1.5rem; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SKELETON LOADING ── */
.skeleton-card { cursor: default; pointer-events: none; }
.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background: var(--cream-light);
}
.skeleton-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 150%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.55),
    transparent
  );
  animation: shimmerMove 1.6s infinite;
}
@keyframes shimmerMove {
  to { left: 150%; }
}
.skeleton-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.skeleton-chip {
  width: 50px; height: 18px;
  border-radius: 20px;
  background: var(--cream-light);
}
.skeleton-line {
  border-radius: 5px;
  background: var(--cream-light);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 2px; }

/* ── KEYBOARD FOCUS ── */
.proj-card:focus-visible, .blog-card:focus-visible {
  outline: 2px solid var(--tan); outline-offset: 3px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .section { padding: 1.4rem; }
  .bottom-nav { padding: 8px 12px; gap: 2px; }
  .nav-item { padding: 6px 12px; }
}