/* ===== Responsive CSS - Mobile First Design ===== */

/* Base Mobile Styles (up to 575px) */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Section padding */
  section {
    padding: 3rem 0;
  }

  /* Hero section mobile */
  #hero {
    min-height: 90vh;
    text-align: center;
  }

  .hero-decorative {
    display: none;
  }

  /* Navigation */
  .navbar-brand {
    font-size: 1.125rem;
  }

  /* Cards and components */
  .feature-card,
  .service-card,
  .pricing-card,
  .team-card,
  .review-card,
  .case-study-card,
  .career-card,
  .info-card {
    margin-bottom: 1.5rem;
    transform: none !important;
  }

  /* Service cards mobile */
  .service-card img {
    width: 60px;
    height: 60px;
  }

  .service-price {
    font-size: 1.75rem;
  }

  /* Pricing cards mobile */
  .pricing-card.featured {
    transform: none !important;
  }

  .pricing-price {
    font-size: 2.5rem;
  }

  /* Team photos mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }

  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item img {
    height: 200px;
  }

  /* Footer adjustments */
  #footer {
    padding: 2rem 0 1rem;
  }

  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }

  /* FAQ cards */
  .faq-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
}

/* Small tablets (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  section {
    padding: 4rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card img {
    width: 70px;
    height: 70px;
  }

  .team-photo {
    width: 110px;
    height: 110px;
  }
}

/* Medium tablets (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  section {
    padding: 4.5rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Enable hover effects on tablets and up */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .case-study-card:hover,
  .career-card:hover,
  .info-card:hover,
  .blog-card:hover {
    transform: translateY(-5px);
  }

  .pricing-card:hover {
    transform: translateY(-5px);
  }

  .pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
  }

  .gallery-item:hover {
    transform: scale(1.05);
  }
}

/* Large tablets and small desktops (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Process steps layout */
  .process-step {
    padding: 2rem 0.5rem;
  }
}

/* Large desktops (1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Larger spacing for desktop */
  section {
    padding: 6rem 0;
  }

  .section-title {
    margin-bottom: 4rem;
  }

  /* Enhanced hover effects for desktop */
  .service-card:hover {
    transform: translateY(-10px);
  }
}

/* Extra large screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Print styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  #header,
  #footer {
    display: none;
  }

  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }

  .shadow-sm,
  .shadow-md,
  .shadow-lg {
    box-shadow: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #ff00ff;
    --accent-color: #00ff00;
    --text-dark: #000000;
    --text-light: #333333;
    --background-white: #ffffff;
    --background-light: #f0f0f0;
    --border-light: #666666;
  }
}

/* Dark mode support */

/* Landscape mobile orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
  }

  section {
    padding: 2rem 0;
  }
}

/* Accessibility improvements */
@media (max-width: 991.98px) {
  /* Larger touch targets for mobile */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }

  .nav-link {
    padding: 1rem;
  }

  /* Better spacing for mobile form elements */
  .form-control {
    padding: 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Mobile-friendly gallery */
  .gallery-item img {
    height: auto;
    min-height: 200px;
  }
}

/* Focus states for keyboard navigation */
@media (min-width: 768px) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Tablet portrait specific styles */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .service-card {
    margin-bottom: 2rem;
  }

  .pricing-card {
    margin-bottom: 2rem;
  }
}

/* Wide mobile landscape */
@media (min-width: 576px) and (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 80vh;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
} 

body {
    overflow-x: hidden;
}