@media (max-width: 991.98px) {
  .hero-row {
    --bs-gutter-x: 34px;
  }

  .project-showcase {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 767.98px) {
  :root {
    scroll-padding-top: 76px;
  }

  .site-nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 1.25rem 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 22px 34px rgb(0 0 0 / 35%);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    padding: 0.85rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    box-sizing: border-box;
    text-align: left;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a.is-active {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-primary, #38bdf8);
  }

  .nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-section {
    padding: 52px 0 62px;
  }

  .hero-row {
    row-gap: 36px;
  }

  .section {
    padding: 66px 0;
  }

  .project-browser-bar {
    padding-inline: 14px;
  }

  .project-details {
    padding: 24px;
  }

  .project-slider-prev {
    left: 10px;
  }

  .project-slider-next {
    right: 10px;
  }

  .contact-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 42px;
  }

  .hero-role {
    font-size: 18px;
  }

  .hero-description,
  .about-copy > p,
  .section-description {
    font-size: 15px;
  }

  .hero-tech-list {
    gap: 8px;
  }

  .hero-tech-list li,
  .project-tags li,
  .skill-tags li {
    font-size: 12px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    min-height: 46px;
    padding-inline: 13px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .education-card {
    flex-wrap: wrap;
  }

  .education-date {
    width: 100%;
    margin-left: 60px;
  }


  .education-stack::before {
    display: none;
  }

  .education-stack .education-card {
    margin-left: 0;
  }

  .education-stack .education-card::before {
    display: none;
  }

  .project-details {
    padding: 20px;
  }

  .project-browser-bar {
    min-height: 44px;
    gap: 8px;
    padding-inline: 11px;
  }

  .project-page-name {
    font-size: 12px;
  }

  .project-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .project-slider-prev {
    left: 8px;
  }

  .project-slider-next {
    right: 8px;
  }

  .footer-inner {
    justify-content: space-between;
    gap: 14px;
  }

  .footer-inner p {
    order: 1;
    width: 100%;
    text-align: left;
  }

  .footer-signature {
    width: fit-content !important;
  }

  .image-lightbox-bar {
    height: 56px;
    grid-template-columns: minmax(0, 1fr) 44px;
    padding-inline: 12px;
  }

  .image-lightbox-project,
  .image-lightbox-page,
  .image-lightbox-count {
    display: none;
  }

  .image-lightbox-stage {
    height: calc(100% - 56px);
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 8px;
  }

  .image-lightbox-arrow {
    width: 40px;
    height: 40px;
  }
}
