/* ============================================
   Umair Digital Labs — Responsive Styles
   ============================================ */

/* --- Large Desktop --- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* --- Laptop / Desktop --- */
@media (max-width: 1199px) {
  .hero-card-1 {
    left: -5%;
  }

  .hero-card-2 {
    right: -3%;
  }
}

/* --- Tablet --- */
@media (max-width: 991px) {
  :root {
    --nav-height: 70px;
  }

  .section-padding {
    padding: 70px 0;
  }

  .hero-section {
    padding-top: calc(var(--nav-height) + 30px);
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image-wrap {
    margin-top: 3rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-card-float {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .about-mission-vision {
    grid-template-columns: 1fr;
  }

  .about-preview-img {
    margin-bottom: 2rem;
  }

  .cta-box {
    padding: 60px 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-header {
    padding: calc(var(--nav-height) + 40px) 0 60px;
  }

  .contact-form {
    padding: 28px;
    margin-top: 2rem;
  }

  .navbar-collapse {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 12px;
    border: 1px solid var(--border-glass);
  }

  .navbar-custom .nav-link::after {
    display: none;
  }

  .navbar-custom .navbar-nav {
    gap: 4px;
  }

  .navbar-custom .btn-premium {
    margin-top: 12px;
    width: 100%;
  }
}

/* --- Mobile Landscape / Small Tablet --- */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat-item h3 {
    font-size: 1.5rem;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }

  .tech-item {
    padding: 16px 10px;
  }

  .tech-item i {
    font-size: 1.5rem;
  }

  .service-card {
    padding: 24px;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-actions .btn-premium {
    width: 100%;
  }

  .filter-buttons {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item::before {
    left: -24px;
    width: 12px;
    height: 12px;
  }

  .pricing-card {
    padding: 32px 24px;
    margin-bottom: 1rem;
  }

  .map-placeholder {
    height: 250px;
  }
}

/* --- Mobile Portrait --- */
@media (max-width: 575px) {
  .section-title {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn-premium {
    width: 100%;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer {
    padding: 60px 0 24px;
  }

  .footer-social a {
    width: 38px;
    height: 38px;
  }

  .cta-box {
    padding: 40px 20px;
  }

  .contact-info-card {
    padding: 20px;
  }

  .loader-logo {
    font-size: 1.2rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .navbar-custom .navbar-brand {
    font-size: 1.05rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* --- High Contrast --- */
@media (prefers-contrast: more) {
  :root {
    --text-secondary: #cbd5e1;
    --border-glass: rgba(255, 255, 255, 0.25);
  }
}
