/* =================
   RESPONSIVE CSS - Mobile First Approach
   ================= */

/* Base Mobile Styles (320px+) */
@media (max-width: 576px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 15px;
  }

  /* Typography Adjustments */
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .section-title h2 {
    font-size: var(--font-size-2xl);
  }

  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl); }
  h3 { font-size: var(--font-size-lg); }

  /* Header Mobile */
  #header {
    padding: 0.75rem 0;
  }

  .navbar-brand {
    font-size: var(--font-size-lg);
  }

  /* Disable animations on mobile for better performance */
  .sal-animate {
    animation: none;
    transform: none;
    opacity: 1;
  }

  /* Hero Mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
    padding-top: 100px;
  }

  .hero-content {
    margin-bottom: 2rem;
    padding-top: 175px;
}

  /* Cards Mobile */
  .service-card,
  .team-card,
  .price-card,
  .case-study-card,
  .info-card {
    margin-bottom: 2rem;
  }

  /* Contact Form Mobile */
  .contact-form {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }

  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item img {
    height: 250px;
  }

  /* Process Steps Mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }

  /* Remove hover effects on mobile */
  .service-card:hover,
  .team-card:hover,
  .price-card:hover,
  .case-study-card:hover,
  .info-card:hover,
  .gallery-item:hover {
    transform: none;
  }

  /* Footer Mobile */
  #footer {
    padding: 40px 0 20px;
    background: #1a1a1a;
  }

  .footer-content {
    margin-bottom: 2rem;
  }

  .footer-section {
    margin-bottom: 2rem;
    text-align: center;
  }

  .footer-section h4 {
    color: #ffffff;
  }

  .footer-section p,
  .footer-section a {
    color: #e5e5e5;
  }

  /* Hide decorative blobs on mobile */
  .decorative-blob {
    display: none;
  }
}

/* Tablet Styles (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .gallery-item img {
    height: 280px;
  }

  /* Disable complex animations on tablet */
  @media (prefers-reduced-motion: no-preference) {
    .sal-animate {
      animation-duration: 0.3s;
    }
  }
}

/* Large Tablet/Small Desktop (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .hero-content h1 {
    font-size: 3.25rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .gallery-item img {
    height: 300px;
  }
}

/* Desktop Styles (993px - 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop (1201px+) */
@media (min-width: 1201px) {
  .hero-content h1 {
    font-size: 4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Add subtle animations for large screens only */
  @media (prefers-reduced-motion: no-preference) {
    .service-card,
    .team-card,
    .info-card {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .service-card:hover,
    .team-card:hover,
    .info-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    }
  }
}

/* High Resolution Displays */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }

  .hero-content h1 {
    font-size: 4.5rem;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }
}

/* Print Styles */
@media print {
  * {
    background: white;
    color: black;
    box-shadow: none;
  }

  #header,
  #footer,
  .navbar,
  .btn {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}

  h1, h2, h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .container {
    width: 100%;
    max-width: none;
  }
}

/* Dark Mode Support (if needed) */

/* Accessibility Improvements */
@media (max-width: 768px) {
  /* Larger touch targets for mobile */
  .nav-link,
  .btn,
  .blog-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Better spacing for readability */
  p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  /* Ensure form inputs are large enough */
  .form-control {
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
  #hero {
    min-height: 60vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  section {
    padding: 40px 0;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .service-card,
  .team-card,
  .price-card,
  .case-study-card,
  .info-card {
    border: 2px solid var(--text-primary);
  }

  .btn-primary {
    border: 2px solid var(--color-primary);
  }
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
  /* Optimize for slower connections */
  .gallery-item img {
    loading: lazy;
  }

  /* Disable non-essential animations */
  * {
    animation-duration: 0.1s;
    transition-duration: 0.1s;
  }
} 