/* Responsive */
@media (max-width: 768px) {
  .terminal-window {
    padding: 0 16px;
  }

  .neofetch {
    flex-direction: column;
    gap: 16px;
  }

  .neofetch-logo {
    font-size: 8px;
    text-align: center;
  }

  .neofetch-row {
    flex-direction: column;
    gap: 2px;
  }

  .neofetch-row .label {
    min-width: auto;
  }

  .history-entry {
    padding: 14px 14px;
    margin-bottom: 20px;
  }

  .skill-name {
    min-width: 140px;
    font-size: 0.85rem;
  }

  .skill-icons .icon {
    width: 16px;
    height: 16px;
  }

  .skill-icons .half-wrap {
    width: 8px;
  }

  .cert-entry {
    flex-direction: column;
    gap: 8px;
  }

  .ctf-row {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .ctf-platform {
    min-width: auto;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact-row {
    flex-direction: column;
    gap: 2px;
  }

  .contact-label {
    min-width: auto;
  }

  .section-title {
    font-size: 1.05rem;
  }

  .tab-bar a {
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .tab-actions button {
    padding: 0 8px;
    font-size: 0.7rem;
  }

  #hero {
    padding-top: 32px;
  }

  .section {
    margin-bottom: 48px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skill-category {
    padding: 14px 14px;
  }

  .edu-entry {
    padding: 14px 14px;
  }

  .project-entry {
    padding: 10px 12px;
  }

  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .terminal-window {
    padding: 0 10px;
  }

  .ascii-art {
    font-size: clamp(3px, 1.2vw, 8px);
    overflow-x: auto;
    margin-bottom: 16px;
  }

  .neofetch-logo {
    display: none;
  }

  #hero {
    padding-top: 24px;
  }

  #hero-typing {
    min-height: 220px;
  }

  .prompt {
    font-size: 0.8rem;
    word-break: break-word;
  }

  .section-title {
    font-size: 0.95rem;
  }

  .tab-bar a {
    padding: 0 8px;
    font-size: 0.68rem;
    gap: 4px;
  }

  .tab-bar a .icon {
    width: 11px;
    height: 11px;
  }

  .skill-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .skill-name {
    min-width: 100%;
    font-size: 0.85rem;
  }

  .skill-icons .icon {
    width: 16px;
    height: 16px;
  }

  .skill-icons .half-wrap {
    width: 8px;
  }

  .skill-category-title {
    font-size: 0.85rem;
  }

  .edu-entry {
    padding: 10px 10px;
  }

  .history-content .desc {
    font-size: 0.82rem;
  }

  .ctf-badge {
    font-size: 0.7rem;
  }

  .cert-full {
    font-size: 0.82rem;
  }

  .project-entry {
    padding: 8px 10px;
  }

  .project-desc {
    font-size: 0.82rem;
  }

  .project-tag {
    font-size: 0.65rem;
  }

  .fixed-cta {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  .hero-cta {
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  .site-footer {
    padding: 16px 10px 20px;
    font-size: 0.7rem;
  }

  .tab-actions button {
    padding: 0 6px;
    font-size: 0.65rem;
  }

  .hero-cta-secondary {
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  .cert-issuer { font-size: 0.85rem; }
  .cert-desc { font-size: 0.88rem; }
  .review-badge { font-size: 0.82rem; }
  .review-role { font-size: 0.88rem; }

  .hobby-detail { padding-left: 12px; }

  .card:hover {
    transform: none;
    box-shadow: none;
  }
}
