:root {
  --bg: #070c15;
  --panel: rgba(13, 18, 28, 0.72);
  --panel-strong: rgba(16, 22, 34, 0.82);
  --text: #e7ecf5;
  --muted: #a9b6c8;
  --accent-start: #35b7ff;
  --accent-end: #67e0ff;
  --border: rgba(255, 255, 255, 0.06);
  --ring: rgba(255, 255, 255, 0.05);
  --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cascadia Code", "Space Grotesk", "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 50% 30%, rgba(30, 45, 77, 0.2), transparent 40%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#universe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(10, 16, 26, 0.6), var(--bg));
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px;
  margin-bottom: 12px;
  position: sticky;
  top: 12px;
  z-index: 2;
  backdrop-filter: none;
  background: transparent;
}

.brand-mark {
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #5cd8ff;
  font-size: 32px;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 10px 28px rgba(80, 194, 255, 0.35);
}

.brand-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero {
  min-height: 85vh;
  display: grid;
  place-items: baseline center;
  text-align: center;
  margin-top: 10%;
}

.hero-inner {
  position: relative;
  padding: 42px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10, 15, 24, 0.6), rgba(12, 18, 28, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 68px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px) saturate(1.04);
}

.eyebrow {
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.subtitle {
  margin: 0 0 28px;
  color: #c5d0df;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #04111f;
  box-shadow: 0 10px 40px rgba(80, 194, 255, 0.35);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  box-shadow: 0 12px 40px rgba(80, 194, 255, 0.45);
}

.stack-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f7ff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.stack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f58025, #f2bb7b);
  color: #0b0b0b;
  font-weight: 800;
  font-size: 11px;
}

.stack-badge-card {
  margin-top: 12px;
}

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.footer {
  margin-top: 40px;
  padding: 24px 0 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--accent-start);
}

.footer-note {
  font-size: 13px;
  color: var(--muted);
}

.stack-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}

.stack-text strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.stack-meta {
  font-size: 12px;
  color: var(--muted);
}

.stack-medals {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.medal {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  color: #0b0b0b;
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  line-height: 18px;
}

.medal.gold {
  background: linear-gradient(135deg, #f8d47a, #f1b92b);
}

.medal.silver {
  background: linear-gradient(135deg, #d8dde7, #9aa4b5);
}

.medal.bronze {
  background: linear-gradient(135deg, #d0a07a, #b2754c);
}

.gh-badge {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.gh-icon {
  background: linear-gradient(135deg, #161b22, #2f3849);
  color: #f5f7ff;
}


.hero-inner::before {
  content: "";
  position: absolute;
  height: 4px;
  left: 20px;
  right: 20px;
  top: -2px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, rgba(103, 225, 255, 0.993), transparent);
  pointer-events: none;
}

.hero-inner::after {
  content: "";
  position: absolute;
  inset: 0px 0px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 45%, rgba(103, 224, 255, 0.12), rgba(12, 18, 28, 0) 70%);
  filter: blur(1px);
  pointer-events: none;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.01em;
}

.section-header p {
  margin: 0 0 32px;
  color: var(--muted);
}

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

.project-card {
  position: relative;
  padding: 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 224, 255, 0.4);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.project-tag {
  margin: 0 0 6px;
  color: #7fbef7;
  font-size: 13px;
  letter-spacing: 0.02em;
}

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

.project-summary {
  margin: 0 0 12px;
  color: #c5cfde;
}

.project-stack {
  margin: 0;
  color: #9fb3c9;
  font-size: 14px;
}

.constellation {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
}

.project-card:hover .constellation {
  opacity: 1;
}

.constellation svg {
  width: 100%;
  height: 100%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.skill-group {
  position: relative;
  padding: 20px 18px;
  border-radius: 14px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  transition: border-color 200ms ease, transform 200ms ease;
}

.skill-group::after {
  content: "";
  position: absolute;
  inset: 10px 14px auto 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 224, 255, 0.35), transparent);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.skill-group:hover {
  border-color: rgba(103, 224, 255, 0.4);
  transform: translateY(-3px);
}

.skill-group:hover::after {
  opacity: 1;
}

.skill-group h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-list span {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #cfdae9;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.skill-list span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(103, 224, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.skill-list span:hover::after {
  opacity: 1;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.experience {
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(12, 17, 26, 0.72);
}

.exp-role {
  margin: 0 0 4px;
  font-weight: 600;
}

.exp-org {
  margin: 0 0 6px;
  color: #c5cfde;
}

.exp-meta {
  margin: 0;
  color: #93a5bc;
  font-size: 14px;
}

.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 1px, transparent 60px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04) 1px, transparent 60px);
  opacity: 0.8;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.easter-egg {
  position: fixed;
  bottom: 18px;
  right: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(103, 224, 255, 0.25);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(103, 224, 255, 0.15);
  background: rgba(12, 18, 28, 0.4);
  backdrop-filter: blur(6px);
  opacity: 0.3;
  transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease;
}

.easter-egg:hover,
.easter-egg:focus-visible {
  opacity: 1;
  color: var(--text);
  border-color: rgba(103, 224, 255, 0.5);
}


@media (max-width: 720px) {
  .hero-inner {
    padding: 36px 22px;
  }

  .section {
    padding: 56px 0;
  }

  .top-bar {
    position: sticky;
    top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
