/* ══════════════════════════════════════════════════════════
   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 {
  font-family: 'Google Sans Flex';
  src: url('../fonts/GoogleSansFlex_36pt-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans Flex';
  src: url('../fonts/GoogleSansFlex_36pt-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans Flex';
  src: url('../fonts/GoogleSansFlex_36pt-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans Flex';
  src: url('../fonts/GoogleSansFlex_36pt-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans Flex';
  src: url('../fonts/GoogleSansFlex_36pt-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans Flex Display';
  src: url('../fonts/GoogleSansFlex_120pt-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans Flex Display';
  src: url('../fonts/GoogleSansFlex_120pt-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --white: #ffffff;
  --dark: #0a0a0a;
  --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;
  --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 (Frosted Glass) ── */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 24px;
  width: calc(100% - 48px);
  max-width: var(--max-width);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  transition: all 0.4s var(--ease-spring);
  animation: fadeIn 0.8s ease 0.1s both;
}

.nav.scrolled {
  background: rgba(5, 8, 18, 0.7);
  border-color: rgba(255, 255, 255, 0.06);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.nav__logo-img {
  height: 28px;
  width: auto;
  filter: brightness(10);
}

.nav__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.25s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav__cta {
  font-family: 'Google Sans Flex', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark) !important;
  background: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 100px;
  transition: all 0.3s ease !important;
  text-decoration: none;
}

.nav__cta:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.2);
  background: #f0f0f0 !important;
}

/* ── 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 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.section__title {
  font-family: 'Google Sans Flex Display', 'Google Sans Flex', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section__title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

.section__subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 500px;
  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: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav {
    width: calc(100% - 24px);
    padding: 10px 10px 10px 18px;
  }

  .nav__name {
    font-size: 14px;
    letter-spacing: 1.5px;
  }

  .nav__links {
    gap: 4px;
  }

  .nav__links .nav__link-text {
    display: none;
  }

  .section {
    padding: 80px 24px;
  }

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

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