html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  background-color: #f8f8f8;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode {
  background-color: #222;
  color: #ddd;
}

.dark-mode .intro-text {
  color: #ccc;
}

.dark-mode h2 {
  color: #eee;
}

.dark-mode footer {
  color: #aaa;
}

.dark-mode .contact-button:hover {
  background-color: #222;
  color: #007BFF
}

.dark-mode 

.contact-button:focus {
  outline: none;
  box-shadow:
    0 0 0 4px #222,
    0 0 0 8px rgba(0, 123, 255, 0.6);
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #007BFF;
  transition: color 0.3s ease;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  gap: 4rem;
}

h2 {
  color: #444;
  margin: 0;
}

.logo {
  max-width: 600px;
  height: auto;
}

.intro-text {
  max-width: 820px;
  font-size: 1.3rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4rem;
  max-width: 1000px;
  width: 100%;
  place-items: center;
}

.projects-grid img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.projects-grid img:last-child {
  width: 80%;
}

.projects-grid img:hover {
  filter: grayscale(0%);
}

.contact-button {
  display: inline-block;
  background-color: #007BFF;
  border: solid 3px #007BFF;
  color: #ffffff;
  text-decoration: none;
  padding: 1.25rem 2.5rem;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
}

.contact-button:hover {
  background-color: #ffffff;
  color: #007BFF
}

.contact-button:focus {
  outline: none;
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 8px rgba(0, 123, 255, 0.6);
}

footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .content {
    gap: 2rem;
  }

  .logo {
    max-width: 100%;
    height: auto;
  }

  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
  }

  .projects-grid img {
    max-height: 60px;
  }

  .projects-grid img:last-child {
    max-height: 45px;
  }
}