/* ==========================================================================
   NEXUS SUPERTECH - RESPONSIVE STYLESHEET
   Mobile-First and Tablet Breakpoints for Complete Responsiveness
   ========================================================================== */

/* --------------------------------------------------------------------------
   Large Desktops & Laptops (Max 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .algo-banner-title {
    font-size: 2.2rem;
  }
}

/* --------------------------------------------------------------------------
   Tablets & Medium Screens (Max 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --nav-height: 76px;
  }

  .section {
    padding: 75px 0;
  }

  .section-title {
    font-size: 2.3rem;
  }

  /* Navigation Drawer for Mobile/Tablet */
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    gap: 20px;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    font-size: 1.15rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  }

  .nav-link::after {
    display: none;
  }

  /* Hero Section */
  .hero-bg-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(248, 250, 252, 0.70) 0%,
        rgba(248, 250, 252, 0.45) 55%,
        rgba(248, 250, 252, 0.20) 100%
      ),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 30%,
        transparent 70%,
        #f8fafc 100%
      );
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-description {
    font-size: 1.02rem;
    max-width: 500px;
  }

  /* Grids to 2 Columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .circuit-line-svg {
    display: none; /* Hide svg connection curve on smaller screen reflow */
  }

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

  .algo-banner-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .algo-highlight-card {
    padding: 40px 30px;
  }

  .culture-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .culture-image-composition {
    order: -1;
  }

  .pricing-grid,
  .pricing-grid-panel {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .pricing-card.featured,
  .pricing-card-modern.popular {
    transform: none;
  }

  .journey-card {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    gap: 40px;
  }

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

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .stats-card-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-box:nth-child(2)::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile Landscape & Large Phones (Max 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 36px);
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .hero-trust {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
  }

  .hero-trust-text {
    text-align: center;
  }

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-container,
  .contact-info-card,
  .legal-content-box {
    padding: 30px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .stat-pill {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .stat-pill-num {
    font-size: 1.35rem;
  }

  .stat-pill-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

/* --------------------------------------------------------------------------
   Small Phones (Max 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --nav-height: 70px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.15;
  }

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

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

  .algo-specs-grid {
    grid-template-columns: 1fr;
  }

  .stats-card-container {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .stat-box::after {
    display: none !important;
  }

  .stat-box {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
  }

  .stat-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-btn {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .pricing-amount {
    font-size: 2.8rem;
  }

  .newsletter-box {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .newsletter-box button {
    border-radius: var(--radius-md);
    width: 100%;
  }
}
