/* ================================================================
   HA DUY HOANG — RESPONSIVE ARCHITECTURAL BREAKPOINTS
   Mobile-First & Clean Fluid Layout Adaptations
================================================================ */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-spec {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Portrait Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  .nav-list {
    display: none;
  }
  .status-indicator {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  
  /* Mobile Drawer */
  .mobile-drawer {
    display: block;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(5, 6, 8, 0.98);
    border-bottom: 1px solid var(--border-structural);
    padding: 24px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }
  .mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .mobile-link {
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hero-name {
    font-size: 2.8rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .bento-traits-grid {
    grid-template-columns: 1fr;
  }
  .spec-matrix-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .goals-grid {
    grid-template-columns: 1fr;
  }

  .contact-links-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 36px 20px;
  }
  .contact-email-box {
    flex-direction: column;
    width: 100%;
    padding: 16px;
  }
  .email-display {
    word-break: break-all;
    font-size: 0.85rem;
  }

  .hero-tech-ticker {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-name {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .portrait-container {
    width: 180px;
    height: 220px;
  }
  .glass-chamber-container {
    max-width: 340px;
    height: 440px;
  }
  .float-lang-badge {
    padding: 4px 8px;
    font-size: 0.68rem;
  }
  .flb-html {
    left: -8px;
  }

  /* Chatbot Widget Mobile */
  .chat-widget {
    bottom: 16px;
    right: 16px;
  }
  .chat-toggle-btn {
    width: 48px;
    height: 48px;
  }
  .chat-window {
    bottom: 74px;
    right: 12px;
    width: calc(100vw - 24px);
    height: calc(100vh - 96px);
    max-height: 480px;
  }
}
