*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-background: #2d2d2d;
  --color-surface: #3a3a3a;
  --color-surface-hover: #444444;

  --color-border: #4a4a4a;
  --color-border-hover: #666666;

  --color-text: #ffffff;
  --color-text-secondary: #cfcfcf;
  --color-text-muted: #bdbdbd;
  --color-text-disabled: #666666;

  --color-primary: #55ddff;
  --color-primary-hover: #8eeaff;

  --color-separator: #7a7a7a;

  --shadow: rgb(0 0 0 / 20%);
  --shadow-hover: rgb(0 0 0 / 12%);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--color-background);
  font-family: system-ui, sans-serif;
  color: var(--color-text);
}

main {
  width: min(100%, 960px);
  text-align: center;
}

h1 {
  margin: 0 0 2.5rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
}

.site-header {
  margin-bottom: 2rem;
  gap: 1rem;
}

.language-switch {
  gap: 0.5rem;
}

.language-switch a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.language-switch a:hover,
.language-switch .active {
  color: var(--color-text);
}

.language-switch span {
  color: var(--color-text-disabled);
  user-select: none;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.socials a {
  display: grid;
  place-items: center;
}

.socials img {
  opacity: 0.8;
  transition: opacity 0.2s;
  filter: brightness(0) invert(1);
}

.socials a:hover img {
  opacity: 1;
}

.section-title {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.projects {
  display: flex;
  justify-content: center;
}

.project-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.project-card {
  width: 180px;
  aspect-ratio: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 2rem;
  background: var(--color-surface);
  border-radius: 1.25rem;
  box-shadow: 0 8px 24px var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.project-link:hover .project-card {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px var(--shadow-hover);
}

.project-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 0.75rem;
  border-radius: 1rem;

  border: 1px solid var(--color-border);
}

.project-card h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
