:root {
  --bg: #0d1020;
  --panel: #171a2a;
  --line: #2f3454;
  --text: #eef1ff;
  --muted: #b2b7d3;
  --accent: #ff8a4c;
  --accent-red: #ff5b57;
  --accent-blue: #496bff;
  --accent-purple: #7a3cff;
  --max-width: 768px;
}

html {
  background: var(--bg);
  margin: 2%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(660px 420px at 8% 12%, rgba(255, 91, 87, 0.06), transparent 74%);
  z-index: -2;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top-right-image {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 120px;
  max-height: 120px;
  z-index: 10;
  pointer-events: auto;
}

.selector-screen,
.content-screen {
  transition: opacity 240ms ease, transform 240ms ease;
  position: relative;
  z-index: 2;
}

.selector-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.selector-box {
  text-align: center;
  width: min(620px, 100%);
}

.selector-box h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.01em;
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: 0.03em;
}

.selector-box p {
  margin: 0 0 20px;
  color: var(--muted);
}

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

.selector-actions button {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 26, 42, 0.95), rgba(18, 20, 34, 0.95));
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 215px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 138, 76, 0.04) inset;
}

.selector-actions button:hover {
  border-color: rgba(255, 138, 76, 0.72);
}

.is-fading-out {
  opacity: 0;
  transform: translateY(-8px);
}

.content-screen {
  min-height: 100vh;
  opacity: 0;
  transform: translateY(8px);
}

.content-screen.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.content-screen[hidden],
.selector-screen[hidden] {
  display: none;
}

.background-element {
  z-index: 1 !important;
  filter: drop-shadow(0 0 10px rgba(255, 138, 76, 0.25));
  opacity: 0.42 !important;
  mix-blend-mode: screen;
  pointer-events: none !important;
  user-select: none;
}

.content-wrap {
  width: min(var(--max-width), 100% - 28px);
  margin: 0 auto 32px;
}

.back-button {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  background: rgba(20, 25, 36, 0.92);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.back-button:hover {
  border-color: rgba(73, 107, 255, 0.78);
}

.container {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: 0.02em;
}

.role {
  margin: 8px 0 0;
  color: #ff9a4a;
  font-weight: 600;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.intro {
  margin: 20px 0 26px;
  color: var(--text);
}

.section {
  margin-bottom: 26px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.section h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.section p,
.section li {
  color: var(--muted);
  line-height: 1.6;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin-bottom: 8px;
}

.resume-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resume-actions a {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(73, 107, 255, 0.16), rgba(122, 60, 255, 0.18));
  border-radius: 10px;
  padding: 10px 13px;
  font-weight: 600;
}

.resume-actions a:hover {
  border-color: rgba(255, 138, 76, 0.72);
}

footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .selector-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .selector-actions button {
    min-width: 0;
    width: 100%;
  }

  .content-wrap {
    width: calc(100% - 20px);
    margin: 0 auto 22px;
  }

  .back-button {
    padding: 8px 11px;
    font-size: 0.9rem;
  }

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

  .section p,
  .section li,
  .intro {
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .selector-screen,
  .content-screen {
    transition: none;
  }

  .background-element {
    display: none !important;
  }
}
