/* Mobile-First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 90vh;
    padding: 20px 0;
  }
  
  .hero-decorative {
    width: 200px;
    height: 200px;
  }
  
  /* Section spacing for mobile */
  .section {
    padding: 40px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  /* Cards on mobile */
  .service-card,
  .price-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card {
    margin-bottom: 20px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 25px 20px;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process numbers smaller */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Gallery items full width on mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer mobile */
  footer {
    padding: 40px 0 20px;
  }
  
  .footer-section {
    margin-bottom: 30px;
    text-align: center;
  }
  
  /* Price amount smaller on mobile */
  .price-amount {
    font-size: 2.5rem;
  }
  
  /* Service icons smaller */
  .service-icon {
    font-size: 2.5rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  /* FAQ cards mobile spacing */
  .faq-card {
    margin-bottom: 15px;
    padding: 20px;
  }
  
  /* Timeline adjustments */
  .timeline-item {
    margin-left: 15px;
    padding: 15px;
  }
  
  /* No animations on mobile for better performance */
  .service-card:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Buttons full width on mobile */
  .btn-primary {
    width: 100%;
    margin-top: 10px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .team-photo {
    width: 130px;
    height: 130px;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .contact-form {
    padding: 30px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 70px 0;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .price-amount {
    font-size: 2.75rem;
  }
  
  .service-icon {
    font-size: 2.75rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .section-header {
    margin-bottom: 60px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 100px 0;
  }
  
  .section-header {
    margin-bottom: 80px;
  }
  
  .hero-decorative {
    width: 400px;
    height: 400px;
  }
  
  .hero-decorative:nth-child(1) {
    top: -200px;
    right: -200px;
  }
  
  .hero-decorative:nth-child(2) {
    bottom: -200px;
    left: -200px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 10px 0;
  }
  
  .section {
    padding: 50px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-photo {
    border-width: 2px;
  }
  
  .timeline-item::before {
    width: 12px;
    height: 12px;
    left: -7px;
  }
}

/* Accessibility: Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .price-card,
  .blog-card,
  .gallery-item img,
  .btn-primary {
    transition: none !important;
    transform: none !important;
  }
  
  .hero-decorative {
    animation: none !important;
  }
}

/* Print styles */
@media print {
  .hero-decorative,
  .navbar,
  footer,
  .btn-primary {
    display: none !important;
  }
  
  .section {
    padding: 20px 0;
    break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .review-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
}

/* Container max-width adjustments for better content flow */
@media (min-width: 1400px) {
  .container-xl {
    max-width: 1200px;
  }
}

/* Focus states for better accessibility */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
  }
  
  .service-card:hover,
  .price-card:hover {
    transform: translateY(-5px);
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .service-card,
  .price-card,
  .blog-card {
    transform: none !important;
  }
  
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Larger touch targets */
  .navbar-nav .nav-link {
    padding: 12px 16px;
  }
}

/* Dark mode support (respects system preference) */

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .price-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card,
  .contact-form,
  .blog-card,
  .faq-card {
    border-width: 2px;
    border-color: var(--neutral-dark);
  }
  
  .btn-primary {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
} 

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