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

html {
  font-size: 16px; /* 1rem = 16px */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #212121;
  color: #fff;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

nav {
  background-color: #333;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1.1rem;
  font-weight: bold;
}

nav a[aria-current="page"] {
  color: #ffcc00;
  border-bottom: 0.125rem solid #ffcc00;
}

main {
  text-align: center;
  padding: 3rem 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffcc00;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #aaa;
}

.projects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Flex wrap for responsiveness */
  flex-direction: column;
}

.project-link {
  background-color: #ffcc00;
  color: #212121;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: bold;
  box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0.625rem;
  min-width: 12.5rem;
}

.project-link:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 48rem) {
  nav a {
    margin: 0 0.625rem;
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .project-link {
    padding: 0.625rem 1.25rem;
    min-width: 9.375rem;
    font-size: 1rem;
  }
}

@media (max-width: 30rem) {
  nav a {
    display: block;
    margin: 0.625rem 0;
  }

  .project-link {
    padding: 0.5rem 1rem;
    min-width: 6.25rem;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 0.9rem;
  }
}
