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

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --card: #161616;
  --border: #222222;
  --text: #f0f0f0;
  --text-muted: #888888;
  --text-dim: #555555;
  --cyan: #00e5ff;
  --cyan-dim: #0a3d4a;
  --red: #ff4444;
  --purple: #a855f7;
  --green: #22c55e;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

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

a { color: var(--cyan); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(10,10,10,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: .875rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 700; font-size: 1.25rem; color: var(--text); }
.logo:hover { opacity: 1; }
.dot { color: var(--cyan); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-size: .875rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-muted); margin: 5px 0; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,10,.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: .75rem 1.75rem; border-radius: 6px;
  font-weight: 600; font-size: .9rem; transition: all .2s; border: 1px solid transparent;
}
.btn-primary { background: var(--cyan); color: var(--black); }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); transform: translateY(-1px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* === Hero === */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.5rem 4rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,229,255,.04) 0%, transparent 60%);
}
.hero-tag {
  font-family: var(--mono); font-size: .8rem; color: var(--cyan);
  text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === Sections === */
.section { padding: 6rem 1.5rem; }
.section-alt { background: var(--dark); }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: .75rem; }
.section-subtitle { color: var(--text-muted); text-align: center; max-width: 560px; margin: 0 auto 3rem; }

/* === Project Cards === */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem; transition: border-color .3s, transform .3s; position: relative;
}
.project-card:hover { transform: translateY(-4px); }
.project-card[data-color="red"]:hover { border-color: var(--red); }
.project-card[data-color="purple"]:hover { border-color: var(--purple); }
.project-card[data-color="cyan"]:hover { border-color: var(--cyan); }
.project-card[data-color="green"]:hover { border-color: var(--green); }
.project-icon { font-size: 2rem; margin-bottom: 1rem; }
.project-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: .25rem; }
.project-tagline { font-family: var(--mono); font-size: .8rem; color: var(--cyan); margin-bottom: 1rem; }
.project-card p { color: var(--text-muted); font-size: .925rem; line-height: 1.65; }
.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.project-tags span {
  font-size: .75rem; padding: .25rem .6rem; border-radius: 4px;
  background: rgba(255,255,255,.05); color: var(--text-dim); border: 1px solid var(--border);
}
.project-status {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: .7rem; font-weight: 600; padding: .2rem .6rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .05em;
}
.status-active { background: rgba(34,197,94,.15); color: var(--green); }
.status-dev { background: rgba(0,229,255,.15); color: var(--cyan); }
.status-live { background: rgba(34,197,94,.15); color: var(--green); }
.status-research { background: rgba(168,85,247,.15); color: var(--purple); }

/* === Principles === */
.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.principle h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.principle p { color: var(--text-muted); font-size: .925rem; line-height: 1.65; }

/* === Privacy === */
.privacy-content h3 { font-size: 1.1rem; margin: 2rem 0 .75rem; color: var(--text); }
.privacy-content h3:first-child { margin-top: 0; }
.privacy-content p { color: var(--text-muted); font-size: .925rem; line-height: 1.7; margin-bottom: .75rem; }
.privacy-content strong { color: var(--text); }
.privacy-date { margin-top: 2rem; font-size: .8rem; color: var(--text-dim); font-style: italic; }

/* === Contact === */
.contact-links { margin-top: 2rem; display: flex; gap: 2rem; justify-content: center; }
.contact-links a { color: var(--text-muted); font-size: .9rem; }

/* === Footer === */
.footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-weight: 700; font-size: 1.1rem; }
.footer-tagline { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }
.footer-copy { font-size: .8rem; color: var(--text-dim); }

/* === Responsive === */
@media (max-width: 640px) {
  .hero { padding: 5rem 1rem 3rem; }
  .hero-title { font-size: 2.5rem; }
  .section { padding: 4rem 1rem; }
  .project-grid { grid-template-columns: 1fr; }
}
