@media (min-width: 769px) {
  .nav-links a {
    font-size: 0.95rem;
    width: auto;
    height: auto;
    background-image: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero,
  .github,
  .projects,
  .education-content,
  .contact,
  footer {
    width: 92%;
    margin: 1.5rem auto;
  }

  .github,
  .project-card,
  .education-content {
    padding: 1.25rem;
  }

  .projects-grid,
  .education-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .info-name {
    font-size: 2rem;
    white-space: normal;
    word-break: break-word;
  }

  .contact-buttons {
    flex-direction: column;
    width: 100%;
  }

  .contact .btn {
    width: 100%;
  }

  .nav-container {
    padding: 0 0.75rem;
    height: 56px;
  }

  .nav-links {
    gap: 0.5rem;
  }

.nav-links {
  gap: 0.5rem;
  position: relative;
}

  .nav-links a {
    font-size: 0;
    line-height: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background-color 0.25s ease,
                filter 0.25s ease,
                transform 0.25s ease;
    filter: brightness(0);
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #fff;
    border-radius: 999px;
    transition: width 0.25s ease;
  }

  .nav-links a:hover {
    background-color: var(--card-bg, #f6f8fa);
    filter: brightness(0) invert(1);
    transform: translateY(-1px);
  }

  .nav-links a:hover::after {
    width: 18px;
  }

  .nav-links a.active {
    background-color: #000;
    filter: brightness(0) invert(1);
  }

  .nav-links a.active::after {
    width: 18px;
  }

  .nav-icon-home {
    background-image: url("../../images/icons/user.png");
  }

  .nav-icon-projects {
    background-image: url("../../images/icons/layers.png");
  }

  .nav-icon-certificates {
    background-image: url("../../images/icons/certificate.png");
  }

  .nav-btn {
    display: none;
  }
}