@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --main-back-color: #1e1e1e;
  --nav-back-color: #141414;
  --card-back-color: #1a1a1a;
  --card-border-color: #333;
  --text-color: #e6e6e6;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--main-back-color);
  font-family: Inter, sans-serif;
  font-size: 16px;
  color: var(--text-color);
}

button,
input,
select,
textarea {
  font-family: Inter, sans-serif;
}

.nav-bar {
  justify-content: center;
  align-items: center;
  display: flex;
  width: 100%;
  height: 65px;
  box-sizing: border-box;
  padding: 0 12px;
  background-color: var(--nav-back-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-bar a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

.svg-logo {
  display: flex;
  width: 65px;
  height: 65px;
  align-items: center;
  justify-content: center;
}

.name-logo {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--text-color);
  line-height: 65px;
  margin-left: -7px;
}

.but-back {
  font-size: 1rem;
  display: inline-flex;
  padding: 8px 12px;
  cursor: pointer;
  background-color: #282828;
  border-radius: 10px;
  margin-left: 15px;
  border: #1e1e1e 1px solid;
  align-items: center;
  justify-content: center;
  color: #fff;
  user-select: none;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.but-back:hover {
  background-color: #e1e1e1;
  color: #969696;
  border: #969696 1px solid;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  background: #282828;
  color: #e6e6e6;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #d9d9d9;
  border-radius: 999px;
}

.nav-mobile-panel {
  display: flex;
  align-items: center;
}

.about-page {
  max-width: 1122px;
  margin: 24px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.made-dev-link {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
  color: #fff;
  background: #282828;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 8px 12px;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.made-dev-link:hover {
  background-color: #e1e1e1;
  color: #969696;
  border: #969696 1px solid;
}

.about-card {
  background: var(--card-back-color);
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  padding: 20px;
}

.about-card h1,
.about-card h2 {
  margin: 0 0 12px;
  color: #fff;
}

.about-card p {
  margin: 0 0 10px;
  color: #c8c8c8;
  line-height: 1.6;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.stack-item {
  background: #282828;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  color: #e6e6e6;
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-bar.nav-mobile-ready {
    height: auto;
    min-height: 65px;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 10px;
  }

  .nav-bar.nav-mobile-ready .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-bar.nav-mobile-ready .nav-mobile-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
  }

  .nav-bar.nav-mobile-ready.mobile-open .nav-mobile-panel {
    display: flex;
  }

  .nav-bar.nav-mobile-ready .nav-mobile-panel > a {
    justify-content: flex-start;
  }

  .svg-logo {
    width: 42px;
    height: 42px;
  }

  .name-logo {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-left: 0;
  }

  .nav-bar.nav-mobile-ready .nav-mobile-panel .but-back {
    margin-left: 0;
    margin-top: 0;
    height: 36px;
    width: fit-content;
  }

  .about-page {
    margin-top: 16px;
    padding: 0 12px 20px;
  }

  .about-card {
    padding: 14px;
  }
}
