/* ==========================================
   NEXARION 2026 - RESPONSIVE DESIGN MODULE
   ========================================== */

/* Ultra Wide Devices (> 1600px) */
@media screen and (min-width: 1600px) {
  .container {
    max-width: 1480px;
  }
  .hero-title {
    font-size: 4.5rem;
  }
  .section-title {
    font-size: 3.2rem;
  }
}

/* Laptops & Tablets Landscape (1024px to 1200px) */
@media screen and (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-typing-box {
    justify-content: center;
  }
  .about-grid, .why-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pricing-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Tablets Portrait & Laptops (768px to 1023px) */
@media screen and (max-width: 1023px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--surface);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 24px;
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  [dir="rtl"] .nav-links {
    left: auto;
    right: -100%;
  }
  .nav-links.active {
    left: 0;
  }
  [dir="rtl"] .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .header-controls .btn-primary {
    display: none;
  }

  .services-grid, .portfolio-grid, .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid, .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-card-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Landscape & Foldables (480px to 767px) */
@media screen and (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2.1rem;
  }
  .services-grid, .portfolio-grid, .blog-grid, .stats-grid, .team-grid, .features-grid, .about-cards-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-copyright {
    align-items: center;
    order: 1;
  }
  
  .back-to-top {
    order: 2;
  }
}

/* Mobile Portrait (< 480px) */
@media screen and (max-width: 479px) {
  .container {
    padding: 0 16px;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .glass-card, .service-card, .contact-form-wrapper, .contact-info-card {
    padding: 24px;
  }
  .modal-content {
    padding: 24px 16px;
  }
}
