/* Catppuccin Mocha — matches the terminal/starship theme. */
:root {
  --base:     #1e1e2e;
  --mantle:   #181825;
  --crust:    #11111b;
  --surface0: #313244;
  --surface1: #45475a;
  --overlay0: #6c7086;
  --overlay1: #7f849c;
  --text:     #cdd6f4;
  --subtext:  #a6adc8;
  --blue:     #89b4fa;
  --lavender: #b4befe;
  --sapphire: #74c7ec;
  --mauve:    #cba6f7;
  --green:    #a6e3a1;
  --peach:    #fab387;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(137,180,250,0.08), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(203,166,247,0.07), transparent 60%),
    var(--base);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(205,214,244,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205,214,244,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}

.container {
  width: 100%;
  max-width: 720px;
  position: relative;
}

.card {
  background: rgba(24, 24, 37, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--surface1);
  border-radius: 14px;
  padding: 2.5rem 2.25rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -20px rgba(0,0,0,0.6);
  animation: rise 0.5s ease both;
}

.domain {
  font-family: "Maple Mono NF", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5ch;
}
.domain .prompt { color: var(--green); }
.domain .cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  background: var(--lavender);
  vertical-align: -0.15em;
  margin-left: 0.15ch;
  animation: blink 1.1s steps(2, end) infinite;
}

.tagline {
  margin: 0.5rem 0 0;
  color: var(--subtext);
  font-size: 1rem;
}

section { margin-top: 2rem; }

.section-label {
  font-family: "Maple Mono NF", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--overlay1);
  margin: 0 0 0.75rem;
}

/* --- profile ---------------------------------------------------------- */
.profile-name {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.profile-meta {
  color: var(--subtext);
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}
.profile-meta .at { color: var(--overlay0); padding: 0 0.4ch; }
.profile-bio {
  margin: 1rem 0 0;
  color: var(--text);
}
.links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.link-pill {
  font-family: "Maple Mono NF", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--surface0);
  color: var(--text);
  border: 1px solid var(--surface1);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.link-pill:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

/* --- services grid ---------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.service {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: var(--surface0);
  border: 1px solid var(--surface1);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.service:hover {
  border-color: var(--blue);
  background: rgba(137,180,250,0.06);
  transform: translateY(-2px);
}
.service-name {
  font-family: "Maple Mono NF", "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
  color: var(--text);
}
.service-desc {
  display: block;
  margin-top: 0.2rem;
  color: var(--subtext);
  font-size: 0.9rem;
}

/* --- footer ----------------------------------------------------------- */
.footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface1);
  font-family: "Maple Mono NF", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--overlay0);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer a { color: var(--overlay1); text-decoration: none; }
.footer a:hover { color: var(--blue); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .domain .cursor { animation: none; }
}
