/* ================================================
   JUDI MANANJARA — PORTFOLIO SHARED STYLES
   Type system:
     Display / Titles  → Cormorant (editorial serif)
     Body / Prose      → TT Hoves Pro (variable)
     UI / Mono         → Fira Code (variable)
     Script / Logo     → Sloop / Playfair Display
     Mark / Badge      → Cormorant SC
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Cormorant+SC:wght@300;400;500;600;700&display=swap');

/* ── Local fonts ── */
@font-face {
  font-family: 'TT Hoves';
  src: url('fonts/TTHovesPro-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Code';
  src: url('fonts/FiraCode-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sloop';
  src: url('fonts/Sloop-ScriptThree.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kabel';
  src: url('fonts/Kabel-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Palette ── */
  --accent:      #8B1A2A;   /* burgundy / rosewood */
  --accent2:     #B02235;   /* brighter red for hover */
  --accent-rgb:  139, 26, 42;

  --cream:       #ffffff;   /* soft warm white */
  --cream2:      #ffffff;   /* medium warm */
  --cream3:      #f0f0f0;   /* deeper warm for contrast sections */

  --dark:        #0C0B0B;   /* rich black */
  --dark2:       #181616;
  --text:        #1A1816;
  --muted:       #7D766E;
  --muted2:      #A39B92;

  --border:      rgba(26, 24, 20, 0.10);
  --border2:     rgba(26, 24, 20, 0.06);
  --white:       #ffffff;

  /* ── Radius tokens ── */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-full: 100px;

  /* ── Shadows ── */
  --shadow-sm:
    0 1px 2px rgba(12,11,11,0.04),
    0 2px 8px rgba(12,11,11,0.05);
  --shadow-md:
    0 2px 4px rgba(12,11,11,0.04),
    0 8px 24px rgba(12,11,11,0.08),
    0 0 0 0.5px rgba(12,11,11,0.04);
  --shadow-lg:
    0 4px 6px rgba(12,11,11,0.04),
    0 16px 48px rgba(12,11,11,0.10),
    0 0 0 0.5px rgba(12,11,11,0.04);
  --shadow-accent:
    0 8px 32px rgba(139, 26, 42, 0.20),
    0 2px 8px  rgba(139, 26, 42, 0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: 'TT Hoves', 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  pointer-events: none;
}
nav > * { pointer-events: all; }

/* ── JMRAZ LOGO MARK ── */
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.5s ease;
}
.nav-logo:hover { opacity: 0.72; }
.nav-logo img { display: block; }
.nav-logo.nav-scrolled { opacity: 0.4; }

/* ── NAV TEXT LINKS (Resume / LinkedIn) ── */
.nav-pill-btn {
  font-family: 'Fira Code', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.22s, opacity 0.5s ease;
  white-space: nowrap;
}
.nav-pill-btn:hover {
  color: var(--accent);
}
.nav-pill-btn.nav-scrolled {
  opacity: 0;
  pointer-events: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-full);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139,26,42,0.28), 0 4px 12px rgba(139,26,42,0.18);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--cream);
  border-color: var(--text);
  transform: translateY(-2px);
}

/* ── SECTION SHARED ── */
.section-wrap {
  padding: 8rem 4rem 6rem;
  max-width: 1160px;
  margin: 0 auto;
}
.section-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.section-title {
  font-family: 'TT Hoves', 'Inter', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 3rem;
}
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── PORTFOLIO CARD ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 26, 42, 0.22);
}
.card-thumb {
  width: 100%;
  height: 210px;
  background: var(--cream2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-body { padding: 1.5rem; }
.card-cat {
  font-family: 'Fira Code', monospace;
  font-size: 0.60rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: 'Cormorant', 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.card-desc {
  font-family: 'TT Hoves', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.card-arrow {
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ── TAGS / SKILLS ── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem;
  padding: 0.42rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.22s;
  letter-spacing: 0.04em;
  font-weight: 400;
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(139, 26, 42, 0.06);
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.45);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'TT Hoves', sans-serif;
}
.footer-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 0.72; }
.footer-logo img { display: block; }
footer p { font-size: 0.72rem; letter-spacing: 0.06em; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: 'Fira Code', monospace;
  color: rgba(255,255,255,0.35);
  font-size: 0.62rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.22s;
}
.footer-links a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    top: 0.75rem;
    width: calc(100% - 2rem);
    padding: 0.65rem 1.2rem;
    border-radius: var(--r-full);
  }
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .section-wrap { padding: 6rem 1.5rem 4rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── Mobile touch targets and legibility (applies to every page) ── */
@media (max-width: 760px) {
  body .footer-links a, body .back-link { display: inline-block; padding: .75rem .5rem; margin: -.75rem -.5rem; }
  body .nav-pill-btn { display: inline-block; padding: .75rem 1rem; margin-bottom: -.75rem; }
  body .reel-ctrl { gap: 1.4rem; }
  body .reel-ctrl button { padding: .75rem 0; margin: -.75rem 0; }
  body .home-reels .spread-hint a { display: inline-block; padding: .75rem 0; }
  body .site-footer p, body footer p { font-size: .8rem !important; line-height: 1.6; }
  body .footer-links { gap: 1.4rem; }
}
