* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  color: #ffffff;
  background: radial-gradient(circle, #303030, #202020);

  font-family: "Roboto Condensed", sans-serif;
}

.container {
  width: min(calc(100% - 40px), 750px);
  margin-inline: auto;
  margin-bottom: 40px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: #d1d0d0;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

header {
  margin-top: 20px;
  margin-bottom: 40px;
  padding-top: 60px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

header > div {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 5px 10px;
}

header h1 {
  grid-column: span 2;

  margin-bottom: 2px;

  font-size: 1.2rem;
  font-weight: 400;
}

header p {
  margin: 0;

  font-size: 0.75rem;
  font-weight: 300;
}

header nav ul {
  display: flex;
  gap: 14px;

  margin: 0;
  padding: 0;

  list-style: none;
}

header nav a {
  font-size: 0.95rem;
}

header nav a:hover {
  font-weight: 600;
}

section {
  margin-bottom: 60px;
}

section p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;

  font-size: 1rem;
  font-weight: 400;
}

#about p {
  margin-bottom: 0;
}

#projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 20px;
}

#projects .section-heading {
  grid-column: 1 / -1;
}

.project-card {
  padding: 16px;

  text-align: center;

  color: #ffffff;

  border: 2px solid #3a3a3a;
  border-radius: 6px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.project-card:hover {
  border-color: #636363;
  transform: translateY(-2px);
}

.project-card h3 {
  margin-bottom: 12px;

  font-size: 1rem;
  font-weight: 500;
}

.project-card img,
.project-card video {
  display: block;

  width: 80%;
  aspect-ratio: 1.2 / 1;

  margin: 0 auto 20px;

  object-fit: cover;

  border-radius: 6px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-card p {
  margin-bottom: 0;
}

.project-card-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.experience-meta {
  display: grid;
  gap: 3px;

  margin-bottom: 16px;
}

.experience-meta h3,
.experience-meta p {
  margin: 0;
}

.experience-meta h3 {
  font-size: 1rem;
  font-weight: 500;
}

.experience-meta p {
  color: #d1d0d0;
}

.experience-description p {
  margin: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 16px;
}

.skill-list p {
  margin: 0;
  color: #d1d0d0;
}

.skill-category h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 500;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-top: 20px;
}

footer p {
  margin: 0;
  color: #888;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 20px;
  }

  header nav ul {
    flex-wrap: wrap;
  }

  #projects {
    grid-template-columns: 1fr;
  }

  #projects .section-heading {
    grid-column: 1;
  }

  .project-card img,
  .project-card video {
    width: 100%;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-list {
    grid-template-columns: 1fr;
  }
}
