:root {
  --White-1000: #fafafaff;
  --White-900: #e6e6e6ff;
  --White-800: #d3d3d3ff;
  --White-700: #c0c0c0ff;
  --Blue: #5e8cffff;
  --Black-1000: #0a0a0aff;
  --Black-950: #171717ff;
  --Black-900: #252525ff;
  --Black-800: #333333ff;
  --Black-700: #424242ff;
  --Black-600: #525252ff;
  --Black-500: #626262ff;
  --Black-400: #737373ff;
  --Black-300: #858585ff;
  --Black-200: #969696ff;
  --Black-100: #a8a8a8ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
  background-color: var(--White-1000);
  color: var(--Black-1000);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

html:has(dialog[scroll-lock][open], details[scroll-lock][open]) {
  overflow: hidden;
}

p {
  text-wrap: pretty;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p:empty {
  display: none;
}

a,
a:visited {
  color: inherit;
  text-decoration: none;
}

li {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

.button-primary {
  background-color: var(--Blue);
  color: var(--White-1000);
  text-align: center;
  padding: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.button-primary:hover {
  background-color: #4d79eb;
}

.px-container {
  padding-left: clamp(1rem, 5vw, 2rem);
  padding-right: clamp(1rem, 5vw, 2rem);
}

header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--White-900);
  backdrop-filter: blur(10px);
  background-color: rgba(250, 250, 250, 0.8);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

header.hidden {
  transform: translateY(-100%);
}

.header-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.header-logo {
  color: var(--Black-1000);
  font-size: 1.5rem;
  font-weight: 600;
}

.header-link {
  font-weight: 500;
}

h1 {
  color: var(--Black-1000);
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.04rem;
}

.hero-section {
  margin-top: 128px;
  margin-bottom: 128px;
}

.main-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
}

.projects-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
}

.project-title {
  color: var(--Black-400);
}

.projects-grid {
  display: grid;
  row-gap: 2rem;
  column-gap: 2rem;
  align-self: stretch;
  grid-template-rows: repeat(1, fit-content(100%));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-img {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
}

.project-card-info {
  padding-right: 0.5rem;
}

.project-card:hover .project-description {
  text-decoration: underline;
}
