nav {
  display: flex;
  position: fixed;
  margin: 0 auto;
  width: 100%;
  height: 64px;
  background-color: transparent;
  color: var(--color-white);
  justify-content: space-between;
  padding: 2rem;
  align-items: center;
  z-index: 10;
}

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

.burger-nav {
  display: none;
  fill: var(--color-lightgray);
  transition: fill 0.3s ease;
}

.burger-nav:hover {
  fill: var(--color-hover);
}

.burger-nav-links {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  right: 0;
  top: 100%;
  backdrop-filter: blur(10px);
  border-radius: 10px;
  background: transparent;
  z-index: 20;
}

.burger-nav-links.active {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.burger-nav-links > ul {
  display: flex;
  list-style: none;
  text-decoration: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
  gap: 1rem;
}

.logo svg {
  width: 4rem;
  height: auto;
  fill: currentColor;
}

.nav-links > ul {
  display: flex;
  list-style: none;
  text-decoration: none;
  gap: 1.5rem;
}

a {
  text-decoration: none;
  padding: 5px;
  transition: all 0.3s ease;
  color: var(--color-white);
  text-transform: uppercase;
}

a:hover {
  color: var(--color-hover);
}

.hero {
  background: var(--color-dark-bg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.intro {
  flex: 0 0 clamp(min-content, 5vw, max-content);
  display: flex;
  flex-direction: column;
}

.name {
  font-size: clamp(1rem, 3vw, 2rem);
  color: var(--color-lightgray);
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

.sub-info {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  transition: all 0.3s ease;
}

.job-title {
  font-family: var(--font-headers);
  line-height: 1;
  color: var(--color-white);
  font-size: clamp(1rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.summary {
  font-style: italic;
  color: var(--color-lightgray);
}

.socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.social-button {
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  fill: var(--color-lightgray);
  transition: fill 0.5s ease;
}

.social-button:hover {
  fill: var(--color-hover);
}

.hero-visual {
  width: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.typewriter-container {
  display: flex;
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-lightgray);
  white-space: nowrap;
  overflow: hidden;
  align-items: center;
}

.typewriter-text {
  display: inline;
}

.cursor {
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--color-gray);
  margin-left: 0.2rem;
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (max-width: 1200px) {
  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .summary {
    display: none;
  }

  .sub-info:hover > .hidden {
    opacity: 1;
    visibility: visible;
    transform: translateY(10rem);
  }

  .intro {
    align-items: center;
  }

  .sub-info {
    align-items: center;
  }

  .social-button {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger-nav {
    display: block;
    opacity: 1;
    visibility: visible;
    width: 32px;
    height: 32px;
  }

  @media (max-width: 480px) {
    .logo > span {
      display: none;
    }
  }
}
