/* Responsive Stylesheet - Mobile First Approach */

/* Mobile Base Styles (320px+) */
@media (max-width: 575.98px) {
  /* No animations on mobile to respect performance */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  :root {
    --font-size-h1: 1.8rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.3rem;
    --section-padding: 2rem 0;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 100vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Card spacing mobile */
  .feature-card,
  .service-card,
  .price-card,
  .review-card,
  .casestudy-card,
  .process-card,
  .timeline-card,
  .career-card,
  .coreinfo-card,
  .blog-card,
  .faq-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1rem;
    margin: 0 1rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  /* Footer mobile */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  /* Service price mobile */
  .service-price {
    font-size: 1.3rem;
  }
  
  /* Price value mobile */
  .price-value {
    font-size: 2rem;
  }
}

/* Small tablets (576px+) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium tablets (768px+) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-decorative {
    width: 150px;
    height: 150px;
  }
  
  .hero-decorative:nth-child(2) {
    width: 120px;
    height: 120px;
  }
}

/* Large tablets/Small desktops (992px+) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-card img {
    height: 180px;
  }
}

/* Large desktops (1200px+) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .container {
    max-width: 1140px;
  }
  
  .hero-decorative {
    width: 200px;
    height: 200px;
  }
  
  .hero-decorative:nth-child(2) {
    width: 150px;
    height: 150px;
  }
}

/* Extra large screens (1400px+) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* High DPI/Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
}

/* Landscape phone orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-decorative,
  .btn-submit {
    display: none;
  }
  
  .hero-section,
  .section {
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #2E7D32;
    --color-secondary: #D84315;
    --color-accent: #1565C0;
    --color-neutral: #FFFFFF;
    --color-tertiary: #7B1FA2;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .review-card {
    border: 2px solid #000;
  }
}

/* Dark mode preference */

/* Focus states for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn-submit:focus,
  .form-control:focus,
  .nav-link:focus,
  .blog-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .col-md-6 .service-card,
  .col-md-4 .price-card {
    height: auto;
    min-height: 400px;
  }
  
  .team-card {
    text-align: center;
    margin-bottom: 2rem;
  }
}



.hero-section h1 {
    padding-top: 175px;
}