:root {
  color-scheme: dark;
  color: #f3f4ff;
  background: #090812;
  font-family: Courier, Courier New, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #11111B;
  color: #f5f4ff;
}

.page-shell {
  min-height: 100vh;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.nav-link {
  text-decoration: none;
  color: #c5c4ff;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s ease, color 0.25s ease;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(191, 179, 255, 0.16);
  color: #f8f7ff;
}

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-content {
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-logo {
  width: min(100%, 540px);
  max-height: 240px;
  object-fit: contain;
}

.hero-text {
  margin: 0;
  font-size: clamp(1rem, 1.2vw + 0.2rem, 1.4rem);
  line-height: 1.8;
  color: #dcdcff;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  color: #090812;
  background: #b6b0ff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
}

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

.projects-hero {
  display: grid;
  place-items: center;
  padding: 60px 0 20px;
}

.hero-heading {
  max-width: 780px;
  width: min(100%, 760px);
  display: block;
}

.projects-grid {
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-name {
  font-size: 0.96rem;
  color: #f4f3ff;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #b6b0ff;
  color: #090812;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease;
}

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

@media (max-width: 840px) {
  .page-shell {
    padding: 26px 18px;
  }

  .projects-grid {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .projects-grid {
    gap: 10px;
  }

  .project-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .project-link {
    width: 100%;
    justify-content: center;
  }
}

.announce-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.announce-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 42px;
  align-items: start;
  margin-top: 42px;
}

.announce-copy {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.announce-brand {
  width: min(100%, 380px);
  display: block;
}

.announce-copy p {
  margin: 0;
  color: #dcdcff;
  line-height: 1.8;
  font-size: 1rem;
}

.announce-preview-group {
  display: grid;
  gap: 24px;
  width: 100%;
}

.announce-screenshot {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.announce-screenshot.secondary {
  max-width: 100%;
}

.about-shell {
  max-width: 860px;
  margin: 0 auto;
}

.about-hero {
  display: grid;
  justify-items: center;
  gap: 24px;
  margin-top: 44px;
}

.about-heading {
  width: min(100%, 740px);
  display: block;
}

.about-cards {
  width: 100%;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.about-card {
  width: min(100%, 540px);
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-card p {
  margin: 0;
  color: #e5e4ff;
  line-height: 1.8;
  font-size: 1rem;
}

.about-contact .contact-label {
  margin-bottom: 16px;
  color: #f7f6ff;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f4ff;
  font: inherit;
  outline: none;
}

.contact-form textarea {
  min-height: 110px;
  border-radius: 24px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.contact-form button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: none;
  background: #b6b0ff;
  color: #090812;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.about-skills {
  width: min(100%, 540px);
  display: grid;
  gap: 14px;
}

.skill-row {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  color: #f3f2ff;
  font-size: 0.95rem;
}

.skill-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.skill-bar div {
  height: 100%;
  border-radius: 999px;
  background: #b6b0ff;
}

@media (max-width: 940px) {
  .about-shell {
    max-width: 100%;
    padding: 0 18px;
  }
}

@media (max-width: 680px) {
  .about-card,
  .about-skills {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .announce-hero {
    gap: 24px;
  }

  .page-shell {
    padding: 24px 18px;
  }
}
