@font-face {
  font-family: "Geist-SemiBold";
  src: url("attachments/geist-font-1.5.0/fonts/Geist/otf/Geist-SemiBold.otf");
  font-weight: 800;
  font-style: normal;
}

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

html {
  scroll-behavior: smooth;
}
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  font-family: "Geist-SemiBold", sans-serif;
  background-color: #111;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 3px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 3px);
  background-size: 2.5rem 2.5rem;
  color: white;
  font-size: 1rem;
}

a,
button {
  color: #82aaff;
  text-decoration: none;
}

a:hover,
button:hover {
  color: #ffc107;
  transition: color 0.3s ease;
}

.sound-button {
  padding: 0rem;
  margin: 0px;
}

h1 {
  display: inline-block;
  padding: 1rem;
  font-size: 3rem;
}

h1:hover {
  color: #ffc107;
  transition: color 0.3s ease;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #58a6ff;
}

p,
ul {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

header,
.header-projects,
.header-contacts {
  text-align: center;
  padding: 1.25rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem;
}

.navigation {
  display: flex;
  padding: 1rem;
  gap: 1.25rem;
}

.theme {
  display: flex;
  align-items: center;
  justify-content: center;
}

button {
  background-color: transparent;
  padding: 0.625rem 1.25rem;
  border-radius: 1.5625rem;
  border: none;
  cursor: pointer;
}

.links {
  margin-top: 2rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
  margin: 2.5rem;
  max-width: 80rem;
}

.grid-item {
  background-color: #1a1a1a;
  padding: 1.25rem;
  border: 0.125rem solid white;
  border-radius: 0.625rem;
  min-height: 20rem;
  min-width: 15rem;
  overflow: auto;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.grid-item:hover {
  transform: scale(1.05) translateY(-10px);
  z-index: 10;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.image img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 1rem;
  display: block;
  margin: 0 auto;
}

.theme-icon,
.social-icons {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

footer {
  color: #8b8b8b;
  font-size: 1rem;
  margin: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    margin: 1rem;
    gap: 1rem;
  }

  .card {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
    text-align: center;
    border-radius: 0;
    padding: 1.5rem 1rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}
