
:root {
  --bg: #10091c;
  --panel: #1b1030;
  --panel-light: #271642;
  --purple: #a879ff;
  --pink: #ff8ee8;
  --cyan: #8be9fd;
  --text: #f5efff;
  --muted: #b5a7cb;
  --border: #56377c;
  --pixel-shadow: #090510;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 35px 16px;
  background:
    radial-gradient(ellipse at 50% 0%, #352052 0%, transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button {
  font: inherit;
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(#a879ff 1px, transparent 1px),
    linear-gradient(90deg, #a879ff 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.site-container {
  width: min(100%, 760px);
  margin: 0 auto;
}

.site-header,
.home-footer,
.site-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--border);
}

.pixel-logo {
  color: var(--pink);
  font-family: "Press Start 2P", monospace;
  font-size: 20px;
  text-shadow: 3px 3px 0 #4a246b;
}

.pixel-logo span {
  color: var(--cyan);
}

.header-label,
.home-footer,
.site-bottom {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.8;
  color: var(--muted);
}

.page {
  display: none;
  animation: fade-in 0.25s ease;
}

.page.active {
  display: block;
}

.hero {
  padding: 65px 0 38px;
}

.eyebrow {
  color: var(--cyan);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 2;
  letter-spacing: 0.4px;
}

.hero h1 {
  margin: 25px 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(36px, 9vw, 66px);
  line-height: 1.45;
  letter-spacing: -3px;
  text-shadow: 5px 5px 0 #39205b;
}

.hero h1 span {
  color: var(--pink);
}

.hero-description,
.section-description {
  max-width: 500px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.main-menu {
  display: grid;
  gap: 12px;
  margin: 20px 0 35px;
}

.menu-button {
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  color: var(--text);
  background: linear-gradient(110deg, var(--panel), #211333);
  border: 1px solid var(--border);
  box-shadow: 4px 4px 0 var(--pixel-shadow);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.menu-button span:nth-child(2) {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  line-height: 1.8;
}

.menu-button:hover {
  transform: translate(2px, 2px);
  border-color: var(--pink);
  background: var(--panel-light);
  box-shadow: 2px 2px 0 var(--pixel-shadow);
}

.button-number {
  color: var(--purple);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
}

.button-arrow {
  color: var(--cyan);
  font-size: 20px;
}

.home-footer {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72f5b1;
  box-shadow: 0 0 10px #72f5b1;
}

.inner-page {
  margin: 35px 0;
  overflow: hidden;
  background: rgb(23 13 39 / 94%);
  border: 1px solid var(--border);
  box-shadow: 6px 6px 0 var(--pixel-shadow);
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: linear-gradient(90deg, #382253, #241638);
  border-bottom: 1px solid var(--border);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  line-height: 1.8;
}

.back-button {
  padding: 8px 10px;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--border);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  cursor: pointer;
}

.back-button:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.about-content,
.projects-content,
.contact-content {
  padding: 28px;
}

.about-content h2,
.projects-content h2,
.contact-content h2 {
  margin: 15px 0 24px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(16px, 4vw, 22px);
  line-height: 1.8;
}

.about-content p:not(.eyebrow),
.projects-content p:not(.eyebrow),
.contact-content p:not(.eyebrow) {
  color: #d0c4e2;
  font-size: 14px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.about-content p:not(.eyebrow) {
  margin: 0 0 20px;
}

.contact-redirect,
.copy-button {
  margin-top: 10px;
  padding: 14px 16px;
  color: white;
  background: #7242b5;
  border: 1px solid #c9a7ff;
  box-shadow: 4px 4px 0 var(--pixel-shadow);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  line-height: 1.8;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.contact-redirect:hover,
.copy-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--pixel-shadow);
  background: #8855ce;
}

.contact-redirect:active,
.copy-button:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.projects-content > .eyebrow,
.contact-content > .eyebrow {
  margin-top: 0;
}

.project-card {
  margin-top: 22px;
  padding: 20px;
  background: #170e26;
  border: 1px solid var(--border);
}

.project-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.project-number,
.project-tag,
.contact-label {
  color: var(--cyan);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.8;
}

.project-tag {
  color: var(--pink);
}

.project-card h3 {
  margin: 20px 0 8px;
  font-size: 17px;
}

.project-card p {
  margin: 0 0 18px;
}

.project-placeholder {
  display: grid;
  place-items: center;
  min-height: 125px;
  padding: 15px;
  background:
    linear-gradient(135deg, rgb(168 121 255 / 8%) 25%, transparent 25%),
    #211431;
  background-size: 16px 16px;
  border: 1px dashed #68468e;
  color: #a996c2;
  text-align: center;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 2;
}

.contact-content > p:not(.eyebrow) {
  max-width: 520px;
}

.contact-card {
  margin-top: 28px;
  padding: 24px;
  background: #1b1030;
  border: 1px solid var(--border);
}

.contact-value {
  display: block;
  margin-top: 18px;
  color: var(--pink);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(15px, 4vw, 20px);
}

.copy-feedback {
  min-height: 20px;
  margin-bottom: 0;
  color: var(--cyan) !important;
  font-size: 12px !important;
}

.contact-note {
  margin-top: 25px;
  font-size: 12px !important;
}

.site-bottom {
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
}

button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  body {
    padding: 22px 12px;
  }

  .header-label,
  .home-footer,
  .site-bottom {
    font-size: 7px;
  }

  .hero {
    padding-top: 45px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .menu-button {
    grid-template-columns: 28px 1fr 16px;
    gap: 8px;
    padding: 16px 12px;
  }

  .menu-button span:nth-child(2) {
    font-size: 8px;
  }

  .about-content,
  .projects-content,
  .contact-content {
    padding: 20px 16px;
  }

  .about-content p:not(.eyebrow),
  .projects-content p:not(.eyebrow),
  .contact-content p:not(.eyebrow) {
    font-size: 13px;
  }

  .window-header {
    padding: 13px;
    font-size: 8px;
  }

  .back-button {
    font-size: 7px;
  }

  .site-bottom {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-preview {
    overflow: hidden;
}