@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --panel-alpha: rgba(255, 255, 255, 0.72);
  --border: #e2e6ef;
  --text: #1c2333;
  --text-dim: #6b7686;
  --indigo: #5b5fef;
  --indigo-soft: rgba(91, 95, 239, 0.1);
  --teal: #12b3a8;
  --shadow: 0 20px 45px rgba(30, 41, 70, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  display: flex;
  justify-content: center;
  padding: 56px 20px;
  position: relative;
  overflow-x: hidden;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.blob-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -140px;
  background: radial-gradient(circle, var(--indigo-soft), transparent 70%);
  animation: float-a 16s ease-in-out infinite;
}

.blob-2 {
  width: 420px;
  height: 420px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(18, 179, 168, 0.14), transparent 70%);
  animation: float-b 20s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -40px); }
}

.scene {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.scene > * {
  opacity: 0;
  animation: rise 0.6s ease forwards;
}

.scene > *:nth-child(1) { animation-delay: 0.05s; }
.scene > *:nth-child(2) { animation-delay: 0.15s; }
.scene > *:nth-child(3) { animation-delay: 0.25s; }
.scene > *:nth-child(4) { animation-delay: 0.35s; }
.scene > *:nth-child(5) { animation-delay: 0.45s; }

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

.terminal {
  background: var(--panel-alpha);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: rgba(28, 35, 51, 0.03);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #f0685f; }
.dot-yellow { background: #f0b93d; }
.dot-green { background: #3dcb87; }

.terminal-title {
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
}

.terminal-body {
  padding: 30px 26px 34px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  line-height: 1.75;
  min-height: 220px;
}

.line.prompt {
  margin: 0 0 4px;
  white-space: pre-wrap;
}

.path { color: var(--teal); }
.colon { color: var(--text-dim); }
.tilde { color: var(--indigo); margin-right: 8px; }

.cursor {
  display: inline-block;
  color: var(--indigo);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.output {
  margin-top: 10px;
  color: var(--text);
}

.output p {
  margin: 0 0 10px;
  opacity: 0;
  animation: reveal 0.4s ease forwards;
}

.output .headline {
  font-size: 20px;
  color: var(--indigo);
  font-weight: 700;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 55px rgba(30, 41, 70, 0.12);
}

.panel h2 {
  margin: 0 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.stack-list, .goals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-list li {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
  transition: padding-left 0.2s ease;
}

.stack-list li:hover {
  padding-left: 6px;
}

.stack-list .key { color: var(--text-dim); }
.stack-list .val { color: var(--text); font-weight: 500; }

.goals-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--text);
  transition: padding-left 0.2s ease;
}

.goals-list li:hover {
  padding-left: 28px;
}

.goals-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--indigo);
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-list a {
  display: block;
  padding: 11px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease;
}

.project-list a:hover,
.project-list a:focus-visible {
  background: var(--indigo-soft);
}

.project-name {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}
.project-name::after {
  content: " ↗";
  font-weight: 400;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.project-list a:hover .project-name::after,
.project-list a:focus-visible .project-name::after {
  color: var(--indigo);
}

.project-desc {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

.contact {
  text-align: center;
  padding: 12px 0 4px;
}

.contact p {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 14px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-links a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 10px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--indigo);
  color: var(--indigo);
}


a:focus-visible, button:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .output p { animation: none; opacity: 1; }
  .scene > * { animation: none; opacity: 1; }
  .blob { animation: none; }
}

@media (max-width: 480px) {
  .terminal-body { font-size: 14px; padding: 24px 20px 28px; }
  body { padding: 32px 14px; }
  .blob { width: 300px; height: 300px; filter: blur(50px); }
}

@media (max-width: 380px) {
  body { padding: 24px 10px; }
  .terminal-body { padding: 20px 16px 24px; font-size: 13px; }
  .panel { padding: 18px 16px; }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .contact-links a {
    text-align: center;
    padding: 11px 14px;
  }
}
