:root {
  --bg: #090d14;
  --surface: rgba(21, 29, 44, 0.7);
  --surface-hover: rgba(29, 39, 58, 0.85);
  --text: #eef3ff;
  --muted: #afbdd9;
  --primary: #62d8ff;
  --primary-strong: #28b9ee;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(49, 130, 206, 0.28), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(0, 177, 188, 0.2), transparent 36%),
    linear-gradient(145deg, #090d14 12%, #0b1220 52%, #0f1728 100%);
  z-index: -1;
}

.topbar {
  width: min(1100px, 92%);
  margin: 0px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 23, 35, 0.75);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #90f0ff 0%, #3dcbe8 100%);
  box-shadow: 0 0 12px rgba(106, 231, 255, 0.85);
}

.topbar-signature {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(98, 216, 255, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(12, 30, 45, 0.7);
}

main {
  width: min(1100px, 92%);
  margin: 44px auto 72px;
}

.hero {
  max-width: 740px;
}

.eyebrow {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--primary);
}

h1 {
  margin: 14px 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.6;
}

.primary-btn {
  margin-top: 28px;
  display: inline-block;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #07101f;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 18px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.primary-btn.message-box {
  background: rgba(13, 21, 34, 0.9);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: min(100%, 480px);
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(147, 231, 248, 0.2);
  animation: button-to-message 150ms ease-out;
}

@keyframes button-to-message {
  from {
    opacity: 0.8;
    transform: translateY(-2px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.projects {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.project-group {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.project-group:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
  border-color: rgba(104, 231, 255, 0.55);
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #93e7f8;
  border: 1px solid rgba(147, 231, 248, 0.35);
  border-radius: 999px;
  padding: 5px 8px;
  margin-bottom: 12px;
}

.project-group h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.project-group p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.button-list {
  display: grid;
  gap: 10px;
}

.list-btn {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(147, 231, 248, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(13, 21, 34, 0.55);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.list-btn:hover {
  border-color: var(--primary);
  background: rgba(16, 27, 42, 0.9);
  color: var(--primary);
}

.card-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.card-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  main {
    margin-top: 32px;
  }

  .projects {
    grid-template-columns: 1fr;
  }
}
