/* 1. TYPOGRAPHY IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #0b0f14;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --glow: rgba(0, 212, 255, 0.15); /* New variable for the hover glow */
  --radius: 16px;
  --maxw: 980px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  /* 1. TYPOGRAPHY: Updated to Inter for clean readability */
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(84, 114, 255, 0.18), transparent 60%),
              radial-gradient(900px 600px at 80% 20%, rgba(0, 212, 255, 0.12), transparent 55%),
              var(--bg);
  line-height: 1.6;
  position: relative; /* Needed for the noise overlay positioning */
}

/* 2. VISUAL NOISE: Film grain texture overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  /* SVG Noise generation */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  opacity: 0.04; /* Very subtle texture */
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; z-index: 10; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}

.header-grid {
  display: flex;
  gap: 24px;
  align-items: center; /* Changed to center to align with avatar if present */
  justify-content: space-between;
}

/* 5. AVATAR STYLING: Ready for when you uncomment the image in HTML */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 12px;
  display: block;
}

.identity h1 {
  margin: 0 0 6px 0;
  /* 1. TYPOGRAPHY: Updated to Space Grotesk for personality */
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 3rem; /* Increased size */
  letter-spacing: -0.04em;
  
  /* Gradient Text Effect */
  background: linear-gradient(to bottom right, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.top-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 6px;
}

.top-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  transition: all 0.2s ease;
}
.top-links a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.intro h2, .secondary h2 {
  font-family: 'Space Grotesk', sans-serif; /* Headers match H1 */
  font-size: 20px;
  margin: 32px 0 12px 0;
  color: #fff;
}
.intro p {
  margin: 0 0 24px 0;
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 6;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), 
              background 0.2s ease, 
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  outline: none;
  position: relative;
  overflow: hidden;
}

/* 4. HOVER GLOW: Makes the card pop and glow blue/cyan */
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 40px -10px var(--glow);
}

.card-title {
  /* 1. TYPOGRAPHY: Space Grotesk for card titles */
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}

.card-desc {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-meta {
  font-size: 12px;
  font-family: 'Inter', monospace; /* Monospace vibe for URLs */
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.secondary {
  margin-top: 32px;
}

.link-list {
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.link-list a {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.25);
  transition: text-decoration-color 0.2s;
}
.link-list a:hover {
  text-decoration-color: rgba(255,255,255,0.8);
}

.site-footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.1);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.muted { color: rgba(255,255,255,0.50); }

/* Responsive */
@media (max-width: 760px) {
  .header-grid { flex-direction: column; align-items: flex-start; }
  .top-links { justify-content: flex-start; }
  .card { grid-column: span 12; }
  .identity h1 { font-size: 2.5rem; }
}