/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES FOR MOBILE & TABLET (ITSVG.IN STYLE)
   Developer: Tanmay Bhar
   ========================================================================== */

/* --------------------------------------------------------------------------
   TABLET LANDSCAPE & DESKTOP SMALL (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-main-name {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
  }

  .nav-a {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
  }

  .bento-tech, .bento-resp, .bento-perf, .bento-ui, .bento-ux {
    grid-column: span 12;
  }

  .bento-card {
    padding: 1.75rem;
    min-height: auto;
  }

  .certificates-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* --------------------------------------------------------------------------
   TABLET PORTRAIT (max-width: 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .nav-header {
    padding: 0.75rem 1rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hello-text {
    font-size: 1.2rem;
  }

  .nav-actions-right {
    gap: 0.5rem;
  }

  .social-links-group {
    display: none; /* Accessible in mobile drawer menu */
  }

  .radio-player-btn {
    padding: 0.4rem 0.65rem;
  }

  .hero-zone {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero-main-name {
    font-size: clamp(2rem, 8vw, 3.5rem);
    gap: 0.3rem 0.8rem;
  }

  .sound-pronounce-btn {
    position: relative;
    top: auto;
    right: auto;
    display: inline-flex;
    margin-left: 0.3rem;
    vertical-align: middle;
    width: 2.2rem;
    height: 2.2rem;
  }

  .hero-subtitle-tag {
    font-size: 1.1rem;
    margin-top: 1rem;
  }

  .intro-section {
    padding: 3rem 0;
    gap: 2.5rem;
  }

  .intro-heading-role {
    font-size: 2.1rem;
    margin-bottom: 1rem;
  }

  .intro-description-pills {
    font-size: 1.15rem;
    line-height: 2.3;
  }

  .pill-badge {
    font-size: 0.8em;
    padding: 0.15rem 0.5rem;
    margin: 0.15rem 0.1rem;
  }

  .projects-section {
    padding: 3.5rem 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .neo-card-surface {
    padding: 1.25rem 1.5rem;
    height: auto;
    min-height: 100px;
  }

  .stats-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .map-container {
    flex-direction: column;
    gap: 1rem;
  }

  .map-img {
    display: none; /* Hide static map SVG on mobile for cleaner card layout */
  }

  .stat-floating-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    text-align: center;
  }

  .timeline-section, .certificates-section, .credentials-section {
    padding: 3.5rem 0;
  }

  .visa-card-box {
    max-width: 100%;
    height: 220px;
    padding: 1.5rem;
    border-radius: 18px;
    margin-bottom: 2.5rem;
  }

  .visa-card-number {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
  }

  .contact-card-box {
    padding: 1.75rem 1.25rem;
  }

  /* Modals on Tablet/Mobile */
  .modal-content, .cert-lightbox-content {
    padding: 1.75rem 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* --------------------------------------------------------------------------
   MOBILE PHONE SMALL (max-width: 480px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  .nav-header {
    padding: 0.75rem 0.85rem;
  }

  .hello-expand {
    display: none; /* Keep hello brand concise on phone screens */
  }

  .hello-text {
    font-size: 1.1rem;
  }

  .radio-text {
    display: none;
  }

  .radio-player-btn {
    padding: 0.4rem;
  }

  .hero-main-name {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    gap: 0.25rem 0.5rem;
    flex-wrap: wrap;
  }

  .hero-word {
    white-space: nowrap;
  }

  .sound-pronounce-btn {
    width: 1.9rem;
    height: 1.9rem;
    margin-left: 0.2rem;
  }

  .sound-pronounce-btn svg {
    width: 1rem;
    height: 1rem;
  }

  .hero-subtitle-tag {
    font-size: 0.95rem;
  }

  .nav-a {
    font-size: 2rem;
  }

  .section-header-striped {
    margin-bottom: 2.25rem;
  }

  .neo-card-surface {
    padding: 1.1rem;
    gap: 0.85rem;
  }

  .neo-project-icon {
    width: 3rem;
    height: 3rem;
  }

  .neo-project-icon svg {
    width: 22px;
    height: 22px;
  }

  .neo-project-title {
    font-size: 1.05rem;
  }

  .bento-card-title {
    font-size: 1.35rem;
  }

  .bento-card svg {
    width: 2.75rem;
    height: 2.75rem;
  }

  .timeline-node {
    padding-left: 45px;
  }

  .node-dot {
    left: 4px;
    width: 16px;
    height: 16px;
  }

  .timeline-flow::before {
    left: 11px;
  }

  .visa-card-number {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }

  .visa-bank-name {
    font-size: 0.95rem;
  }

  .pill-action-btn {
    padding: 0.75rem 1.4rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
}
