/* Mobile-first responsive design */

/* Extra small devices (phones, 576px and up) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Spacing adjustments */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Cards */
  .services-card,
  .team-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .features-item,
  .process-item,
  .timeline-item,
  .career-item,
  .coreinfo-item,
  .casestudy-item {
    padding: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery images */
  .gallery-img {
    height: 200px;
  }
  
  /* Team photos */
  .team-photo {
    height: 180px;
  }
  
  /* Blog items */
  .blog-item img {
    height: 150px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 {
    font-size: 2.25rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 95vh;
  }
  
  /* Spacing */
  .section-padding {
    padding: 4rem 0;
  }
  
  /* Gallery images */
  .gallery-img {
    height: 220px;
  }
  
  /* Team photos */
  .team-photo {
    height: 190px;
  }
  
  /* Blog items */
  .blog-item img {
    height: 180px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section decorative elements */
  .hero-section::before {
    width: 50%;
    height: 120%;
    top: -30%;
    right: -15%;
  }
  
  .hero-section::after {
    width: 35%;
    height: 70%;
    bottom: -20%;
    left: -5%;
  }
  
  /* Gallery images */
  .gallery-img {
    height: 240px;
  }
  
  /* Team photos */
  .team-photo {
    height: 200px;
  }
  
  /* Blog items */
  .blog-item img {
    height: 200px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Gallery images */
  .gallery-img {
    height: 250px;
  }
  
  /* Blog items */
  .blog-item img {
    height: 200px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Full decorative elements */
  .hero-section::before,
  .hero-section::after {
    opacity: 0.15;
  }
}

/* Height-based responsive adjustments */
@media (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* Print styles */
@media print {
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .services-card:hover,
  .team-card:hover,
  .price-card:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .hero-section {
    background: white;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .services-card,
  .team-card,
  .price-card,
  .features-item,
  .contact-form {
    border: 2px solid #000;
  }
}

/* Dark mode support */

/* Focus improvements for accessibility */
@media (prefers-reduced-motion: no-preference) {
  *:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Container max-width adjustments for better content flow */
@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
} 

.hero-content {
    padding-top: 175px;
}