/* ==========================================================================
   ASISH SONTI — RESPONSIVE DESIGN SYSTEM
   Tested Breakpoints:
   - Ultra-Wide / Desktop: 1920px, 1440px
   - Laptop / Compact Desktop: 1280px, 1100px
   - Tablet Landscape & Portrait: 920px, 768px
   - Mobile: 480px, 390px, 320px
   ========================================================================== */

/* Large Screens & Ultra-Wide (1440px+) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1360px;
  }
}

/* Compact Desktops & Laptops (1100px and below) */
@media (max-width: 1100px) {
  .desktop-nav {
    gap: 1.15rem;
  }

  .nav-link {
    font-size: 0.775rem;
    letter-spacing: 0.04em;
  }

  .nav-cta-btn {
    padding: 0.5rem 1rem;
    font-size: 0.775rem;
  }

  .hero-grid {
    gap: 2.5rem !important;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.75rem !important;
  }

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

/* Tablet Transition / Hamburger Activation (920px and below) */
@media (max-width: 920px) {
  :root {
    --nav-height: 72px;
  }

  /* Switch Navigation to Mobile Drawer to prevent overlapping/wrapping */
  .desktop-nav,
  .nav-cta-btn {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: block !important;
  }

  .brand-subtitle {
    display: none;
  }

  /* Hero Section Stack */
  .hero-section {
    min-height: auto !important;
    padding-top: calc(var(--nav-height) + 2rem) !important;
    padding-bottom: 4rem !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .hero-visual-col {
    height: 380px !important;
  }

  /* About Grid */
  .about-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  /* Works Gallery */
  .works-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Skills Card Grid */
  .skill-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Skills Preview on Home */
  .skills-grid-preview {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Contact Grid */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  /* Blog Exercises Grid */
  .exercise-cards-grid,
  .slide-exercises-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  /* Page Headers */
  .page-header-section {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 2.5rem;
  }

  /* Carousel on touch viewports */
  .carousel-arrow-btn {
    display: none !important;
  }

  .journal-carousel-track {
    padding: 0 !important;
  }

  .journal-category-slide {
    padding: 0 !important;
  }

  .exercise-modal-dialog {
    max-height: 90vh !important;
    width: 95% !important;
  }

  .modal-scroll-body {
    padding: 1.5rem !important;
  }

  /* Custom Cursor - Disable on Touch Viewports */
  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }

  /* Services Grid single column */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Experience Timeline */
  .timeline-container::before {
    display: none !important;
  }

  .timeline-block {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 2.5rem !important;
  }

  .timeline-date-col {
    text-align: left !important;
  }

  .timeline-content-card::before {
    display: none !important;
  }

  /* Reader Page */
  .reader-article-surface {
    padding: 2rem 1.5rem !important;
  }

  .reader-pagination-bar {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .reader-nav-btn.next {
    text-align: left !important;
    align-items: flex-start !important;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .brand-wordmark {
    font-size: 1.05rem;
    letter-spacing: 0.05em;
  }

  .hero-visual-col {
    height: 300px !important;
  }

  .hero-btn-group {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-btn-group .btn {
    width: 100% !important;
  }

  .card-surface {
    padding: 1.5rem !important;
  }

  .cta-banner-card {
    padding: 2.5rem 1.5rem !important;
  }

  .cta-headline {
    font-size: 1.85rem !important;
  }

  .skill-card-grid {
    grid-template-columns: 1fr !important;
  }

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

  .filter-bar {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
  }

  .reader-article-surface {
    padding: 1.75rem 1.25rem !important;
  }

  .reader-article-title {
    font-size: 1.75rem !important;
  }

  .reader-intro-quote {
    font-size: 1rem !important;
    padding: 1rem 1.15rem !important;
  }
}

/* Very Small Mobile Devices (360px and 320px) */
@media (max-width: 360px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .page-headline {
    font-size: 1.85rem !important;
  }

  .btn {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.8125rem !important;
  }
}
