/* Large tablet / small laptop */
@media (max-width: 1200px) {
  .main-layout {
    padding-left: 3%;
    padding-right: 3%;
  }

  .projects-shell.pexp-shell {
    grid-template-columns: 300px 1fr;
  }
}

/* Tablet */
@media (max-width: 1000px) {
  .topbar-inner {
    padding: 0 12px;
    gap: 10px;
  }

  .brand-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
  }

  .toplinks {
    gap: 4px;
  }

  .nav-link {
    padding: 7px 8px;
    font-size: 12px;
  }

  .nav-link i {
    font-size: 13px;
  }

  .main-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .profile-pic-row {
    margin-top: -96px;
    margin-bottom: 10px;
  }

  .profile-pic-wrapper {
    width: clamp(110px, 24vw, 150px);
  }

  .profile-status {
    right: -58px;
    bottom: 10px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .panels-container {
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .overview-page .panel-body {
    overflow: visible;
  }

  .projects-shell,
  .projects-shell.pexp-shell {
    grid-template-columns: 1fr;
    padding: 12px 12px 28px;
    gap: 12px;
  }

  .pexp-side {
    position: static;
    top: auto;
    max-height: none;
  }

  .pexp-side .panel-body {
    max-height: 42vh;
    overflow-y: auto;
  }
}

/* Mobile */
@media (max-width: 820px) {
  .topbar {
    position: sticky;
    top: 0;
  }

  .topbar-inner {
    min-height: 56px;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-name {
    max-width: none;
    white-space: normal;
    line-height: 1.2;
  }

  .toplinks {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 12px;
  }

  .nav-link.active::after {
    bottom: -6px;
    left: 8px;
    right: 8px;
  }

  .theme-btn {
    width: 32px;
    height: 32px;
  }

  .page,
  .overview-page,
  .projects-page,
  .blog-page {
    padding-top: 102px;
  }

  .header-banner {
    height: 160px;
  }

  .profile-pic-row {
    margin-top: -64px;
  }

  .profile-status {
    right: -14px;
    bottom: -8px;
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .profile-status span {
    display: none;
  }

  .profile-pic-spacer {
    display: none;
  }

  .panels-container {
    flex-direction: column;
    gap: 12px;
  }

  .panel-col {
    width: 100% !important;
    overflow: visible;
    gap: 12px;
  }

  .panel {
    min-height: 0;
  }

  .panel-body {
    padding: 10px 12px;
  }

  .exp-item {
    gap: 10px;
  }

  .exp-top {
    flex-direction: column;
    gap: 4px;
  }

  .gh-name {
    font-size: 20px;
  }

  .skills-grid {
    gap: 6px;
  }

  .skill-chip {
    padding: 6px 9px;
    font-size: 11px;
  }

  .ghcal-body {
    padding: 8px;
  }

  .ghcal-card {
    padding: 6px;
  }

  .ghcal-calendar {
    overflow-x: auto;
  }

  .pexp-title {
    font-size: 24px;
  }

  .pexp-subtitle {
    font-size: 13px;
  }

  .pexp-grid-2,
  .pexp-examples {
    grid-template-columns: 1fr;
  }

  .pexp-table {
    font-size: 12px;
  }

  .pexp-table td:first-child {
    width: 40%;
  }

  .blog-head-left h2 {
    font-size: 16px;
  }

  .blog-body {
    gap: 10px;
  }

  .blog-music-content {
    flex-direction: column;
    gap: 10px;
  }

  .blog-track {
    font-size: 20px;
  }

  .blog-artist {
    font-size: 14px;
  }

  .blog-hero {
    max-height: 300px;
  }

  .blog-body p {
    font-size: 14px;
    line-height: 1.6;
  }

  .resume-panel-body {
    padding: 8px;
  }

  .resume-frame-wrap {
    max-width: 100%;
    border-radius: 6px;
  }

  .resume-pdf-frame {
    height: 78vh;
    min-height: 640px;
  }

  .site-footer {
    margin-top: 30px;
    padding: 14px 0;
  }

  .footer-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .footer-right {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* Small phones */
@media (max-width: 560px) {
  .brand-name {
    font-size: 12px;
  }

  .nav-link {
    font-size: 11px;
    padding: 6px 7px;
    gap: 5px;
  }

  .nav-link i {
    font-size: 12px;
  }

  .main-layout {
    padding-left: 10px;
    padding-right: 10px;
  }

  .panel-header {
    padding: 10px 12px;
  }

  .panel-header h2,
  .panel-header h3 {
    font-size: 13px;
  }

  .blog-timeline-item {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .blog-timeline-text b {
    font-size: 12px;
  }

  .blog-timeline-text small {
    font-size: 10px;
  }

  .resume-pdf-frame {
    height: 70vh;
    min-height: 520px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .panel:hover {
    transform: none;
  }

  .skill-chip:hover,
  .project-nav-item:hover,
  .blog-timeline-item:hover {
    transform: none;
  }
}
