:root {
  --bg: #0b0b12;
  --bg-2: #12121c;
  --card: #16161f;
  --text: #f2f2f7;
  --muted: #9a9aab;
  --accent: #7c5cff;
  --accent-2: #ff5cad;
  --border: #26263a;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 20% 10%, rgba(124, 92, 255, 0.25), transparent 60%),
    radial-gradient(500px circle at 80% 30%, rgba(255, 92, 173, 0.18), transparent 60%);
}

header.hero {
  text-align: center;
  padding: 72px 20px 40px;
}

.terminal-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 28px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #060608;
  border: 1px solid var(--border);
  color: #6cff8f;
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.terminal-line .cursor {
  color: #6cff8f;
  animation: blink 1s step-end infinite;
}

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

.avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.5);
}

header.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--bg-2);
}

.social-btn .icon {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(124, 92, 255, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

section {
  margin-top: 56px;
}

section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.about p {
  color: var(--muted);
  max-width: 640px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.15);
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.project-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  header.hero h1 {
    font-size: 2.1rem;
  }
}
