/* ==========================================================================
   RESPONSIVE UTILITIES & MOBILE-FIRST OVERRIDES
   ========================================================================== */

/* Tablet & Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Tablet (max-width: 900px) */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 2.5rem;
  }

  .hero-avatar-card {
    order: -1;
    display: flex;
    justify-content: flex-start;
  }

  .avatar-wrapper {
    max-width: 200px;
    margin: 0;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .skills-extra-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--card-shadow);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 0.35rem 0;
  }

  .hero-name {
    font-size: 2.1rem;
  }

  .hero-headline {
    font-size: 1.1rem;
  }

  .hero-quick-facts {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .timeline-item {
    padding: 1.25rem;
  }

  .projects-grid,
  .achievements-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 2rem 1.25rem;
  }

  .contact-title {
    font-size: 1.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .contact-btn {
    width: 100%;
    justify-content: center;
  }
}

