/* ==================== RESPONSIVE STYLES ==================== */

@media (max-width: 1024px) {
  .introduction__inner {
    gap: 3rem;
  }
  
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .certs__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .profiles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: clamp(3rem, 6vw, 5rem);
  }

  .nav__links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--surface);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: right var(--transition-base);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero__inner {
    text-align: center;
    margin-inline: auto;
  }

  .hero__eyebrow {
    justify-content: center;
  }

  .hero__headline {
    justify-content: center;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .introduction__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2.5rem;
  }

  .introduction__text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tech-badges {
    justify-content: center;
  }

  .id-badge {
    transform: none !important;
  }

  .id-badge:hover {
    transform: scale(1.02) !important;
  }

  .certs__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }

  .certs__grid {
    grid-template-columns: 1fr;
  }

  .profiles__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .stat-card {
    min-width: unset;
  }

  .gallery-card {
    width: 280px;
  }

  .lightbox__img {
    max-height: 50vh;
  }
}
