@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;600&display=swap');

:root {
  --primary-bg: #0d0d0d;
  --secondary-bg: #1e2026;
  --border-color: #4a4e59;
  --text-main: #7b808c;
  --text-muted: #b0b4bf;
  --red-highlight: #d2483d;
  --light-grey: #f3f3f3;
  --black: #000000;
  --white: #ffffff;

  --header-font: 'Bebas Neue', sans-serif;
  --title-font: 'Bebas Neue', sans-serif;
  --body-font: 'Montserrat', sans-serif;
  --body-highlight-font: 'Montserrat', sans-serif;

  --body-font-weight: 400;
  --body-highlight-font-weight: 600;
  --header-font-weight: 400;
  --title-font-weight: 400;

  --body-font-size: 1rem;
  --body-highlight-font-size: 1rem;
  --header-font-size: 2.5rem;
  --title-font-size: 1.25rem;

  --body-line-height: 1.25rem;
  --body-highlight-line-height: 1.25rem;
  --header-line-height: 3rem;
  --title-line-height: 1.5rem;

  --spacing-1: 0.5rem;
  --spacing-2: 1rem;
  --spacing-3: 1.5rem;
  --spacing-4: 2rem;
  --spacing-5: 2.5rem;
  --spacing-6: 3rem;
}

@media (min-width: 769px) {
  :root {
    --body-font-size: 1.25rem;
    --header-font-size: 4.5rem;
    --title-font-size: 1.5rem;
    --header-line-height: 5.375rem;
  }
}

body {
  font-family: var(--body-font);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  color: var(--text-main);
  background-color: var(--primary-bg);
  margin: 0;
  padding: 0;
}

.section__title {
  text-align: center;
  font-family: var(--title-font);
  font-size: var(--title-font-size);
  line-height: var(--title-line-height);
  color: var(--red-highlight);
  padding: var(--spacing-3) var(--spacing-2);
}

.hero {
  background-color: var(--secondary-bg);
  padding: var(--spacing-5) var(--spacing-2);
  text-align: center;
}

.hero__photo {
  width: 15rem;
  height: 15rem;
  background: var(--text-muted);
  border-radius: 50%;
  margin: 0 auto var(--spacing-2);
}

.hero__title {
  font-family: var(--header-font);
  font-size: var(--header-font-size);
  color: var(--white);
  margin: var(--spacing-1) 0;
}

.hero__intro {
  color: var(--text-muted);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-3);
  padding: var(--spacing-3);
}

.project__card {
  display: block;
  background-color: var(--secondary-bg);
  padding: var(--spacing-2);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.project__card:hover,
.project__card:focus {
  border-color: var(--red-highlight);
  box-shadow: 0 4px 24px 0 rgba(210, 72, 61, 0.15);
  transform: translateY(-4px) scale(1.02);
  outline: none;
}

.project__image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--text-muted);
  border-radius: 4px;
  margin-bottom: var(--spacing-1);
}

.project__title {
  font-family: var(--title-font);
  color: var(--white);
}

.project__description {
  color: var(--text-main);
}

.interests__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* overflow-x: auto; */
  gap: var(--spacing-2);
  padding: var(--spacing-3);
}

.interest__item {
  flex: 0 0 auto;
  background: var(--secondary-bg);
  color: var(--white);
  padding: var(--spacing-2);
  border-radius: 8px;
  min-width: 120px;
  text-align: center;
}

.contact__list {
  display: flex;
  justify-content: center;
  gap: var(--spacing-3);
  padding: var(--spacing-3);
  flex-wrap: wrap;
}

.contact__item {
  color: var(--red-highlight);
  text-decoration: none;
  font-weight: var(--body-highlight-font-weight);
}

.error-container {
  min-height: 99vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--primary-bg);
  text-align: center;
  padding: var(--spacing-5);
}
.error-code {
  font-family: var(--header-font);
  font-size: 5rem;
  color: var(--red-highlight);
  margin-bottom: var(--spacing-3);
  line-height: 0;
}
.error-message {
  font-family: var(--title-font);
  font-size: var(--header-font-size);
  color: var(--white);
  margin-bottom: var(--spacing-3);
}
.error-description {
  color: var(--text-main);
  font-size: var(--body-font-size);
  margin-bottom: var(--spacing-5);
}
.error-home-link {
  display: inline-block;
  background: var(--red-highlight);
  color: var(--white);
  text-decoration: none;
  padding: var(--spacing-3) var(--spacing-4);
  border-radius: 5px;
  font-weight: var(--body-highlight-font-weight);
  transition: background -1.2s;
}
.error-home-link:hover {
  background: var(--white);
  color: var(--red-highlight);
}
