/* Shared styles for every page: tokens, reset, nav, buttons, footer,
   animations and accessibility helpers. Page-specific rules live in
   home.css, project.css and contact.css. */

:root {
  --blue: #1a6fd4;
  --text: #0a0a0a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s, padding 0.3s;
}
nav.scrolled { padding: 14px 56px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo svg { width: 28px; height: 28px; color: var(--blue); flex-shrink: 0; }

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}
.nav-back:hover { color: var(--text); }
.nav-back svg { width: 14px; height: 14px; }

/* ── BUTTONS ── */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: white;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  font-weight: 400;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: #9ca3af; transform: translateY(-1px); }

/* ── SHARED SECTION TYPOGRAPHY ── */
.section-label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.section-divider { width: 100%; height: 1px; background: var(--border); }

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 2s ease-in-out infinite; }

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 24px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-15 { transition-delay: 0.15s; }
.delay-20 { transition-delay: 0.2s; }

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--text);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav, nav.scrolled { padding: 16px 24px; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}
