/* ══════════════════════════════════════════════════════════
   CATTORY — Shared Design System
   Used by all sub-pages (portfolio, projects, brain, etc.)
   Landing page (index.html) keeps its own inline styles.
   ══════════════════════════════════════════════════════════ */

/* ── FONTS ── @font-face moved to css/fonts.css (single source, injected by build.mjs). ── */

/* ── RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --dark: #0e100c;   /* canonical brand dark · matches the landing (index/web); was #0a0a0a here (drift) */
  --dark-surface: #0f1014;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --blur-amount: 20px;
  --accent-blue: #a0c4ff;
  --accent-peach: #ffc4a0;
  --accent-lime: #D4FF4F;
  --lime: #D4FF4F;
  --ink: #101210;
  --disp: 'Space Grotesk', 'Google Sans Flex', sans-serif;
  --soft: rgba(255, 255, 255, 0.86);   /* single soft-white secondary on dark · near-full brand light, not a washed gray (hierarchy = size/weight) */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1100px;
}

html {
  font-family: 'Google Sans Flex', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── NAVIGATION ── nav styles moved to css/nav.css (single source of truth · see DESIGN.md).
   Only the WhatsApp FAB (not part of the nav) stays here. ── */

/* WhatsApp floating action button */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  text-decoration: none;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5), 0 6px 16px rgba(0,0,0,0.3);
}
.wa-fab svg { display: block; }

@media (max-width: 640px) {
  .wa-fab { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .wa-fab svg { width: 24px; height: 24px; }
}
/* Hide the floating WhatsApp button on phones · it overlapped body text on the
   sub-pages. Matches the landing (index hides it at ≤600px). Contact stays in the nav. */
@media (max-width: 600px) {
  .wa-fab { display: none; }
}

/* ── BUTTONS ── */
.btn {
  font-family: 'Google Sans Flex', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn--glass {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn--solid {
  background: var(--white);
  color: var(--dark);
}

.btn--solid:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

/* ── SECTIONS BASE ── */
.section {
  position: relative;
  padding: 120px 40px;
  background: var(--dark);
  overflow: hidden;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* .section__label (uppercase kicker over a heading) was removed: it is the "look AI"
   pattern the brand rejects. Headings stand alone · see DESIGN.md §3. */

.section__title {
  font-family: var(--disp);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 20px;
}

.section__title em {
  font-style: normal;
  font-weight: 700;
  color: var(--lime);
}

.section__subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--soft);
  max-width: 520px;
  margin-bottom: 64px;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  padding: 80px 40px 40px;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo-img {
  height: 24px;
  filter: brightness(10);
  opacity: 0.6;
}

.footer__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── SCROLL REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s var(--ease-spring);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-blur {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
  transition: all 1s var(--ease-spring);
}

.reveal-blur.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: all 0.8s var(--ease-spring);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.47s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0px); }
}

/* ── AMBIENT GLOW ── */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.03;
  pointer-events: none;
}

/* ── GLASS TAG PILLS ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--soft);
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section {
    padding: 80px 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ── SHARED SCRIPTS (loaded via JS) ── */
