:root {
  --bg: #07111f;
  --bg-soft: rgba(13, 27, 48, 0.82);
  --panel: rgba(10, 19, 34, 0.92);
  --panel-alt: rgba(255, 255, 255, 0.04);
  --text: #ecf4ff;
  --muted: #92a7bf;
  --border: rgba(255, 255, 255, 0.08);
  --danger: #ff6b6b;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(92, 225, 230, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 92, 230, 0.12), transparent 24%),
    linear-gradient(180deg, #06101d 0%, #08111e 45%, #03060b 100%);
}

a {
  color: inherit;
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-shell,
.admin-shell,
.admin-login-shell,
.state-shell {
  padding: 32px 0 56px;
}

.hero,
.admin-section,
.admin-login-card,
.state-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  border-radius: 28px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 35%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 58px,
      rgba(92, 225, 230, 0.06) 58px,
      rgba(92, 225, 230, 0.06) 59px
    );
  pointer-events: none;
}

.hero-grid,
.content-grid,
.admin-header,
.two-column {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1.5fr 0.8fr;
  align-items: start;
}

.content-grid {
  grid-template-columns: 1.25fr 0.75fr;
  margin-top: 24px;
}

.content-main,
.content-side,
.admin-card-list,
.mini-list,
.skill-group,
.skill-list,
.stack-form,
.record-card,
.record-actions {
  display: grid;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent, #5ce1e6);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
strong {
  font-family: 'Space Grotesk', sans-serif;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 0.95;
  margin: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

h3 {
  margin: 0;
  font-size: 1.15rem;
}

.headline,
.intro-title {
  font-size: 1.15rem;
}

.headline {
  max-width: 40rem;
  color: var(--text);
  margin: 18px 0 10px;
}

.intro-title,
.intro-text,
.body-copy {
  color: var(--muted);
}

.hero-actions,
.admin-actions,
.record-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #06111b;
  background: var(--accent, #5ce1e6);
}

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

.button.danger {
  background: transparent;
  border-color: rgba(255, 107, 107, 0.45);
  color: var(--danger);
}

.hero-panel,
.side-card,
.panel-card,
.info-card,
.timeline-content,
.record-card,
.flash {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 22px
}

.hero-panel {
  padding: 22px;
}

.panel-line {
  height: 5px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #5ce1e6), transparent 80%);
  margin-bottom: 18px;
}

.panel-card,
.side-card,
.info-card,
.record-card {
  padding: 18px;
}

.panel-card span,
.mini-list span,
small,
.body-copy,
label,
textarea,
input,
p {
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.stat-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 4px;
}

.content-section,
.admin-section {
  border-radius: 28px;
  padding: 26px;
}

.section-heading {
  margin-bottom: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
}

.timeline-content {
  min-width: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent, #5ce1e6);
  margin-top: 12px;
  box-shadow: 0 0 20px rgba(92, 225, 230, 0.5);
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.tag-list,
.skill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  margin: 0;
}

.tag-list li,
.skill-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
}

.tag-list li {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
  padding: 14px 18px;
  border-radius: 22px;
  line-height: 1.7;
}

.experience-highlights {
  display: grid;
  gap: 12px;
}

.experience-highlights li {
  width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-left: 4px solid rgba(92, 225, 230, 0.55);
  line-height: 1.8;
}

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

.mini-list article {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.mini-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.social-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 225, 230, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.social-link-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(92, 225, 230, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(92, 225, 230, 0.18);
  color: var(--accent, #5ce1e6);
}

.social-link-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.admin-header,
.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-grid-form,
.record-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.admin-card-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flash.error {
  padding: 14px 16px;
  color: #ffd4d4;
  border-color: rgba(255, 107, 107, 0.35);
}

.admin-login-shell,
.state-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.admin-login-card,
.state-card {
  width: min(520px, calc(100% - 32px));
  padding: 28px;
  border-radius: 28px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 900px) {
  .hero-grid,
  .content-grid,
  .admin-header,
  .two-column,
  .admin-grid-form,
  .record-card {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .content-section,
  .admin-section {
    padding: 22px;
  }

  .tag-list li {
    width: 100%;
    max-width: 100%;
    padding: 16px 18px;
    border-radius: 24px;
    line-height: 1.75;
  }

  .experience-highlights li {
    padding: 18px 18px 18px 20px;
    border-radius: 18px;
  }

  main {
    width: min(100% - 20px, 1200px);
  }
}
