/* =========================================================
   wilsonmunoz.net — site.css
   index.html · portfolio-about-me.html · now.html
   ========================================================= */

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

:root {
  --bg:      #080807;
  --card:    #111010;
  --raised:  #181716;
  --border:  #252220;
  --accent:  #F5C000;
  --glow:    rgba(245, 192, 0, 0.10);
  --text:    #8a8780;
  --muted:   #504d46;
  --white:   #f0ebe0;
  --font:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'SF Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Navigation ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 7, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-brand .dot { color: var(--accent); }

.nav-end {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.15s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--white); }

/* Language toggle */
.lang-toggle {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn.active {
  background: var(--accent);
  color: #000;
}

/* Hamburger — animates to × */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Shared utilities ── */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-fill {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn-fill:hover { background: #ffd320; border-color: #ffd320; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}

.btn-outline:hover { border-color: var(--muted); }

/* ─────────────────────────────────────────────────────────
   INDEX — Hero
   ───────────────────────────────────────────────────────── */
.hero {
  padding: 96px 56px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 4px;
}

.hero h1 .line-2 {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72em;
  letter-spacing: -0.03em;
  margin-top: 8px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  max-width: 560px;
  margin: 32px 0 40px;
}

.hero-sub strong { color: var(--white); font-weight: 600; }

.hero-sub .punchline {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────
   INDEX — Divider
   ───────────────────────────────────────────────────────── */
.section-rule {
  max-width: 900px;
  margin: 0 auto 64px;
  height: 1px;
  background: var(--border);
  /* account for hero padding */
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 112px);
}

/* ─────────────────────────────────────────────────────────
   INDEX — Apps grid
   ───────────────────────────────────────────────────────── */
.apps-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 56px 96px;
}

.apps-section .eyebrow { margin-bottom: 8px; }

.section-title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.app-card:hover {
  border-color: var(--accent);
  background: var(--raised);
  transform: translateY(-3px);
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.app-icon img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}

.app-info { flex: 1; }

.app-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}

.app-platform {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--glow);
  border: 1px solid rgba(245, 192, 0, 0.2);
  border-radius: 5px;
  padding: 2px 8px;
}

.app-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.app-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.app-link:hover { color: var(--white); border-color: var(--muted); }

.app-link.featured {
  color: var(--accent);
  border-color: rgba(245, 192, 0, 0.25);
  background: var(--glow);
}

.app-link.featured:hover { background: rgba(245, 192, 0, 0.18); }

/* ─────────────────────────────────────────────────────────
   INDEX — Social strip
   ───────────────────────────────────────────────────────── */
.social-strip {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 56px 88px;
}

.social-strip-inner {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--card);
}

.strip-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
}

.social-pill:hover { color: var(--accent); border-color: var(--accent); }

/* ─────────────────────────────────────────────────────────
   ABOUT — Header
   ───────────────────────────────────────────────────────── */
.about-header {
  padding: 72px 56px 56px;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
}

.about-intro h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 4px;
}

.about-intro .title-line {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.about-intro p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 12px;
}

.about-intro p strong { color: var(--white); font-weight: 600; }

/* ─────────────────────────────────────────────────────────
   ABOUT — Sections
   ───────────────────────────────────────────────────────── */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 56px 56px;
}

.about-section h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Skills */
.skills-clusters { display: flex; flex-direction: column; gap: 18px; }
.skill-cluster { display: flex; flex-direction: column; gap: 8px; }

.cluster-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  transition: color 0.15s, border-color 0.15s;
}

.chip:hover { color: var(--white); border-color: var(--muted); }

.chip.hi {
  color: var(--accent);
  background: var(--glow);
  border-color: rgba(245, 192, 0, 0.2);
}

/* Experience */
.exp-list { display: flex; flex-direction: column; }

.exp-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.exp-row:first-child { border-top: 1px solid var(--border); }

.exp-period {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  padding-top: 2px;
  font-family: var(--mono);
}

.exp-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.exp-body .exp-company {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.exp-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Education */
.edu-list { display: flex; flex-direction: column; }

.edu-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.edu-row:first-child { border-top: 1px solid var(--border); }

.edu-period {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--mono);
  padding-top: 2px;
}

.edu-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.edu-body p { font-size: 13px; color: var(--muted); }

/* Fun facts */
.facts-list { display: flex; flex-direction: column; }

.fact {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.fact:first-child { border-top: 1px solid var(--border); }
.fact-em { flex-shrink: 0; font-size: 16px; }

/* Languages */
.lang-row { display: flex; gap: 10px; flex-wrap: wrap; }

.lang-tag {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
}

.lang-name { font-size: 14px; font-weight: 700; color: var(--white); }
.lang-level { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* CV CTA */
.cv-cta {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 56px 88px;
}

.cv-cta-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cv-cta-inner .cta-text p:first-child {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.cv-cta-inner .cta-text p:last-child { font-size: 13px; color: var(--muted); }

/* ─────────────────────────────────────────────────────────
   NOW page
   ───────────────────────────────────────────────────────── */
.now-hero {
  padding: 80px 56px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.now-hero h1 {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}

.now-hero h1 .dot { color: var(--accent); }

.now-subtitle { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.now-meta { font-size: 12px; color: var(--muted); }
.now-meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.now-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 56px 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.now-block h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}

.now-items { display: flex; flex-direction: column; margin-top: 16px; }

.now-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

.now-item:first-child { border-top: 1px solid var(--border); }
.now-item strong { color: var(--white); font-weight: 600; }

.now-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--glow);
  border: 1px solid rgba(245, 192, 0, 0.2);
  border-radius: 4px;
  padding: 3px 7px;
  margin-top: 3px;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────
   Shared footer
   ───────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { font-size: 12px; color: var(--muted); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.footer-links a:hover {
  color: var(--white);
  background: var(--card);
}

/* ─────────────────────────────────────────────────────────
   Scroll-reveal
   ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.13s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.21s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.29s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .site-nav { padding: 14px 20px; position: relative; }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(8, 8, 7, 0.98);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  .nav-links.open { max-height: 280px; opacity: 1; }

  .nav-links a {
    padding: 16px 20px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after { display: none; }

  .nav-hamburger { display: flex; }

  .hero           { padding: 56px 20px 48px; }
  .section-rule   { width: calc(100% - 40px); }
  .apps-section   { padding: 0 20px 64px; }
  .apps-grid      { grid-template-columns: 1fr; }
  .social-strip   { padding: 0 20px 64px; }

  .about-header   { grid-template-columns: 1fr; padding: 56px 20px 40px; gap: 24px; }
  .about-photo    { width: 120px; height: 120px; }
  .about-section  { padding: 0 20px 48px; }
  .exp-row, .edu-row { grid-template-columns: 1fr; gap: 4px; }
  .cv-cta         { padding: 0 20px 64px; }

  .now-hero  { padding: 56px 20px 32px; }
  .now-body  { padding: 0 20px 72px; }
  .now-item  { grid-template-columns: 58px 1fr; }

  .site-footer { padding: 20px; flex-direction: column; align-items: flex-start; }
}
