﻿@font-face {
  font-family: "LocalUI";
  src:
    local("Segoe UI Variable"),
    local("Segoe UI"),
    local("Noto Sans"),
    local("Arial");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --g-blue: #1a73e8;
  --g-red: #ea4335;
  --g-yellow: #fbbc05;
  --g-green: #34a853;

  --bg-solid: #eef3fb;
  --surface: rgba(255, 255, 255, 0.88);
  --text-main: #0f172a;
  --text-muted: #334155;
  --ring: rgba(26, 115, 232, 0.25);
  --shadow: 0 12px 38px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "LocalUI", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-solid);
}

body {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 18px 16px 10px;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.08);
}

.nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: 0.25s ease;
  outline: none;
}

.nav a:hover {
  background: rgba(26, 115, 232, 0.12);
  transform: translateY(-1px);
}

.nav a:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
}

.nav a.active {
  background: var(--g-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.35);
}

.hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 16px;
}

.about-main {
  min-height: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  position: relative;
}

.title-wrap,
.about-card {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 64px);
  animation: rise 0.8s ease-out both;
  max-width: 900px;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.project-title {
  color: var(--g-blue);
}

.project-description {
  position: static;
  width: min(92vw, 860px);
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-top: auto;
  margin-bottom: 6px;
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  line-height: 1.5;
  animation: rise 0.8s ease-out 0.2s both;
}

.about-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.1vw, 1.16rem);
  line-height: 1.6;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 10px 8px;
  }

  .nav {
    width: 100%;
    max-width: 520px;
    gap: 6px;
    border-radius: 18px;
    padding: 6px;
  }

  .nav a {
    flex: 1 1 0;
    text-align: center;
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 10px 8px;
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .hero,
  .about-main {
    min-height: 0;
    padding: 18px 14px 22px;
    align-content: center;
    gap: 14px;
  }

  .title-wrap,
  .about-card {
    width: 100%;
    padding: 24px 16px;
    border-radius: 18px;
  }

  .project-description {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    text-align: center;
    padding: 12px 14px;
    border-radius: 16px;
  }
}

@media (max-width: 400px) {
  .nav a {
    font-size: 0.8rem;
  }

  h1 {
    font-size: clamp(1.45rem, 7.8vw, 2rem);
  }
}
