/* ============================================
   RESPONSIVE BREAKPOINTS
   Dark Glassmorphism Portfolio
   ============================================ */

/* --- Tablet & Small Desktop (max-width: 1024px) --- */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image-wrapper {
    order: 1;
    margin-bottom: var(--sp-8);
  }

  .hero-image {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-description {
    margin: 0 auto var(--sp-8);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-badge {
    margin: 0 auto var(--sp-6);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.project-featured {
    grid-column: span 2;
  }

  .section {
    padding: var(--sp-20) 0;
  }
}

/* --- Tablet Portrait & Large Mobile (max-width: 768px) --- */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 23, 40, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--sp-6);
    border-bottom: 1px solid var(--border);
    gap: var(--sp-4);
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-card.project-featured {
    grid-column: span 1;
  }

  .hero-name {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .section {
    padding: var(--sp-16) 0;
  }

  .chatbot-panel {
    width: calc(100vw - 48px);
    right: 24px;
    bottom: 96px;
    height: 450px;
  }

  .modal-container {
    margin: var(--sp-4);
    padding: var(--sp-6);
    max-height: 90vh;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: var(--sp-2);
    -webkit-overflow-scrolling: touch;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .footer-title {
    font-size: var(--text-2xl);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Mobile (max-width: 480px) --- */

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-image {
    max-width: 260px;
  }

  .container {
    padding: 0 var(--sp-4);
  }

  .section {
    padding: var(--sp-12) 0;
  }

  .section-header {
    margin-bottom: var(--sp-10);
  }

  .stat-card {
    width: 100%;
  }

  .timeline-item {
    padding-left: var(--sp-6);
  }

  .chatbot-panel {
    height: 400px;
    bottom: 92px;
  }

  .chatbot-launcher {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .back-to-top {
    right: 76px;
    bottom: 16px;
    width: 38px;
    height: 38px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }
}
