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

:root {
  --bg: #0d0d0f;
  --bg2: #111114;
  --bg3: #18181c;
  --border: rgba(255,255,255,0.07);
  --accent: #FF4655;
  --accent-dim: rgba(255, 70, 85, 0.15);
  --text: #e8e8ec;
  --text-muted: #888899;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
}

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; }
a:hover { color: var(--accent); }

.accent { color: var(--accent); }

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; flex-shrink: 0; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-privacy {
  color: var(--accent) !important;
  font-size: 0.85rem;
  border: 1px solid rgba(255,70,85,0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s !important;
}
.nav-privacy:hover { background: var(--accent-dim) !important; }

.nav-toggle { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 15% 50%, rgba(255,70,85,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: #e03344;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,70,85,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg3);
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 2rem; }
.section-dark { background: var(--bg2); }

.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 760px; }

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: rgba(255,70,85,0.35);
  transform: translateY(-3px);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.project-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-family: var(--mono);
}

.badge-new {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(255,70,85,0.25);
}

.project-links a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.project-links a:hover { color: var(--text); }

.project-icon-wrapper { margin-bottom: 1.25rem; }

.project-icon {
  width: 52px;
  height: 52px;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.unofficial {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85em;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.project-tech li {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border-style: dashed;
  opacity: 0.5;
}

.placeholder-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.placeholder-icon {
  font-size: 2rem;
  color: var(--text-muted);
  font-weight: 300;
}

.placeholder-content p { color: var(--text-muted); font-size: 0.9rem; }
.placeholder-content a { color: var(--accent); font-size: 0.9rem; }

/* ===== CONTACT ===== */
.contact-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  margin-top: -1.5rem;
  max-width: 500px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: all 0.2s;
}

.social-card:hover {
  border-color: rgba(255,70,85,0.4);
  background: rgba(255,70,85,0.05);
  color: inherit;
  transform: translateY(-2px);
}

.social-card div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.social-card strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.social-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ===== PROSE (privacy page) ===== */
.prose-page { padding: 4rem 2rem 6rem; }

.prose-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.prose-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
}

.prose-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-top: 0.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.prose p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

.prose ul {
  color: var(--text-muted);
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.prose ul.list-check {
  list-style: none;
  padding-left: 0;
}

.prose ul.list-check li::before {
  content: '✓ ';
  color: #4ade80;
  font-weight: 700;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  color: var(--accent);
}

.callout {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  line-height: 1.7;
  font-size: 0.95rem;
}

.callout-green {
  background: rgba(74, 222, 128, 0.07);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: var(--text-muted);
}
.callout-green strong { color: #4ade80; }

.callout-gray {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-style: italic;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
  }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 5rem 1.5rem 3rem; text-align: center; }
  .hero-inner { max-width: 100%; }
  .hero-tagline { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-bg-glow {
    background: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(255,70,85,0.08) 0%, transparent 70%);
  }
  .section { padding: 4rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
