/* =========================================================
   Ryan Mushohwe — Shared Stylesheet
   ========================================================= */

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

:root {
  --bg:      #ffffff;
  --surface: #f7f6f4;
  --text:    #0c0c0b;
  --muted:   #7a7a78;
  --border:  #e6e4e1;
  --ink:     #1a1916;
  --rule:    #d4d2cf;
  --warm:    #c4aa8a;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', sans-serif; font-weight: 400;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ── Navigation ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: filter 0.3s;
}
.nav-links {
  display: flex; gap: 40px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links a { color: var(--muted); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--text);
  border-bottom: 1.5px solid var(--warm);
  padding-bottom: 2px;
}
.nav-mobile-btn {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-mobile-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); margin: 5px 0;
  transition: 0.3s;
}
#mobile-menu {
  max-height: 0; overflow: hidden;
  flex-direction: column;
  border-top: 1px solid var(--border); background: #fff;
  gap: 20px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s;
  padding: 0 40px;
  display: flex;
}
#mobile-menu.open { max-height: 300px; padding: 24px 40px 32px; }
#mobile-menu a { color: var(--muted); }

/* ── Container ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--text); color: #fff;
  padding: 14px 32px; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--ink); }
.btn-ghost {
  display: inline-block; border: 1px solid var(--border); color: var(--text);
  padding: 14px 32px; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--text); }

/* ── Section label ──────────────────────────────────────── */
.section-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--warm);
  padding: 40px 0;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 600; transition: filter 0.3s;
}
.footer-links {
  display: flex; gap: 32px;
  font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
}
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 11px; color: var(--muted); }

/* ── Cursor glow ────────────────────────────────────────── */
#cursor-glow {
  position: fixed; pointer-events: none; z-index: 0;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,20,0.08) 0%, transparent 65%);
  transform: translate(-50%, -50%); left: 50%; top: 50%;
}

/* ── Liquid glass hover ─────────────────────────────────── */
@keyframes liquidGlass {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.nav-logo:hover,
.footer-name:hover,
.liquid-glass:hover {
  background: linear-gradient(90deg,
    #0c0c0b 0%, #3a7bd5 7%, #fff 13%, #c084fc 19%,
    #0c0c0b 25%, #06b6d4 31%, #fff 37%, #f472b6 43%,
    #1e1e2e 49%, #60a5fa 55%, #fff 61%, #a78bfa 67%,
    #0c0c0b 73%, #34d399 79%, #fff 85%, #818cf8 91%, #0c0c0b 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: liquidGlass 3s linear infinite;
}

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Page entry animation ───────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
nav, main, footer {
  animation: slideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
nav    { animation-delay: 0s; }
main   { animation-delay: 0.08s; }
footer { animation-delay: 0.14s; }

/* ── Marquee ─────────────────────────────────────────────── */
.marquee-track { display: flex; width: max-content; overflow: hidden; }
.marquee-inner { display: flex; align-items: center; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-inner { animation: marqueeScroll 32s linear infinite; }
.marquee-track:hover .marquee-inner { animation-play-state: paused; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  #mobile-menu { padding: 0 20px; }
  #mobile-menu.open { padding: 20px 20px 28px; }
}
