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

::selection {
  background-color: #fff;
  color: #000;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: #000;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: #fff;
}
a:visited {
  color: #fff;
}

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem 2rem;
}
@media screen and (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.625rem 1rem;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #71717a;
}

.hero {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 4rem 3rem 3rem;
}
@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 1.5rem;
  }
}
.hero__logo {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}
.hero__logo img {
  width: 100%;
  height: 100%;
}
@media screen and (max-width: 768px) {
  .hero__logo {
    width: 56px;
    height: 56px;
  }
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
  color: #fff;
}
.hero p {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #71717a;
  letter-spacing: 0.02em;
  line-height: 160%;
  max-width: 500px;
}

.projects-section {
  padding: 2rem 3rem 4rem;
}
@media screen and (max-width: 768px) {
  .projects-section {
    padding: 1.5rem;
  }
}

.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media screen and (max-width: 1200px) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 480px) {
  .projects {
    grid-template-columns: 1fr;
  }
}

.card {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transition: border-color 0.3s ease;
  cursor: pointer;
  color: #fff;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.card:hover .card__img img {
  transform: scale(1.03);
}
.card__img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card__title {
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
  line-height: 1.2;
  color: #fff;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .footer {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
}
.footer__name {
  font-family: "Anton", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer a {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #71717a;
  transition: color 0.2s ease;
}
.footer a:hover {
  color: #fff;
}
