/* ==========================================================================
   CodeNova — Responsive Breakpoints Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Large Desktops & 4K (Min-width: 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  .hero-heading {
    font-size: 4.25rem;
  }
}

/* --------------------------------------------------------------------------
   2. Medium Desktops & Laptops (Max-width: 1199.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .hero-heading {
    font-size: 3.25rem;
  }

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

  .stat-number {
    font-size: 2.75rem;
  }

  .spotlight-card {
    padding: 36px;
  }
}

/* --------------------------------------------------------------------------
   3. Tablets & Mobile (Max-width: 991.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {

  html,
  body {
    overflow-x: hidden !important;
    position: relative;
  }

  /* Prevent AOS horizontal offscreen displacement on mobile */
  [data-aos="fade-left"] {
    transform: translate3d(0, 30px, 0) !important;
  }

  [data-aos="fade-right"] {
    transform: translate3d(0, 30px, 0) !important;
  }

  [data-aos="fade-left"].aos-animate,
  [data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0) !important;
  }

  .section-padding {
    padding: 70px 0;
  }

  .hero-section {
    padding-top: 140px;
    padding-bottom: 70px;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-list {
    justify-content: center;
  }

  .hero-visual-wrapper {
    margin-top: 50px;
  }

  .hero-visual-img {
    transform: none !important;
  }

  /* Vertical Process Timeline for Tablets & Mobile */
  .timeline-track-line {
    display: none;
  }

  .process-step-item {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg-dark-surface);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
  }

  .step-num-badge {
    margin: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 0.95rem;
  }

  .spotlight-metric-item {
    margin-bottom: 20px;
  }

  .cta-banner {
    padding: 48px 28px;
    text-align: center;
  }

  .cta-banner .d-flex {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   4. Mobile Devices (Max-width: 767.98px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .hero-heading {
    font-size: 2.35rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

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

  .section-padding {
    padding: 60px 0;
  }

  .stat-item {
    margin-bottom: 24px;
  }

  .stat-number {
    font-size: 2.35rem;
  }

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

  .btn-nova-primary,
  .btn-nova-outline {
    width: 100%;
    justify-content: center;
  }

  .nova-card {
    padding: 24px 20px;
  }

  .service-card {
    padding: 28px 20px;
  }

  .project-body {
    padding: 22px 18px;
  }

  .testimonial-card {
    padding: 26px 20px;
  }

  .spotlight-card {
    padding: 26px 18px;
  }

  .contact-preview-box {
    margin-top: 40px;
  }
}

/* --------------------------------------------------------------------------
   5. Extra Small Devices (320px – 425px)
   -------------------------------------------------------------------------- */
@media (max-width: 425px) {
  .hero-heading {
    font-size: 1.95rem;
  }

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

  .section-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .hero-trust-list {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .brand-logo svg {
    max-width: 150px;
  }
}

/* --------------------------------------------------------------------------
   6. Accessibility: Reduced Motion Support
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none !important;
  }

  .hero-badge .status-dot {
    animation: none !important;
  }
}