/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile as per rules */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Section padding */
  .section {
    padding: 2rem 0;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section .container {
    padding: 1rem;
  }
  
  /* Cards spacing */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .contact-info {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }
  
  /* Service and price cards mobile */
  .service-image {
    width: 60px;
    height: 60px;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process steps mobile */
  .process-step {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .col-md-3,
  .footer .col-md-6 {
    margin-bottom: 2rem;
  }
  
  /* Button spacing */
  .btn {
    margin-bottom: 1rem;
    width: 100%;
  }
  
  /* Navigation mobile - using Bootstrap default hamburger */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* Gallery mobile */
  .gallery-image {
    height: 200px;
  }
  
  /* Blog cards mobile */
  .blog-image {
    height: 150px;
  }
  
  /* FAQ mobile */
  .faq-card {
    padding: 1.5rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form,
  .contact-info {
    padding: 2.5rem;
  }
  
  .price-amount {
    font-size: 2.75rem;
  }
  
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  .service-image {
    width: 70px;
    height: 70px;
  }
  
  .process-step {
    width: 70px;
    height: 70px;
    font-size: 1.375rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  /* Restore some animations for tablets */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .career-card:hover,
  .blog-card:hover {
    transform: translateY(-3px);
  }
  
  .gallery-item:hover {
    transform: scale(1.02);
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
  }
  
  .price-card:hover {
    transform: scale(1.02);
  }
  
  .contact-form,
  .contact-info {
    padding: 2.75rem;
  }
  
  .team-photo {
    width: 115px;
    height: 115px;
  }
  
  .service-image {
    width: 75px;
    height: 75px;
  }
  
  .process-step {
    width: 75px;
    height: 75px;
    font-size: 1.4rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  /* Full animations restored for desktop */
  .contact-form,
  .contact-info {
    padding: 3rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .service-image {
    width: 80px;
    height: 80px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .section-description {
    max-width: 700px;
  }
  
  .contact-form,
  .contact-info {
    padding: 3.5rem;
  }
  
  /* Enhanced spacing for larger screens */
  .hero-section .container {
    max-width: 1140px;
  }
  
  .section {
    padding: 5rem 0;
  }
}

/* High DPI / Retina displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
  /* Sharper borders and shadows for retina */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .blog-card,
  .faq-card,
  .timeline-item,
  .coreinfo-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}

/* Print Styles */
@media print {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .navbar,
  .footer,
  .btn,
  .gallery-section {
    display: none;
  }
  
  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .career-card {
    border: 1px solid #e6e6e6;
    background: #fff;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #005485;
    --primary-green: #0c4e06;
    --primary-purple: #630fa5;
    --primary-orange: #d5700c;
    --primary-teal: #005968;
    --gray: #404040;
    --light-gray: #eeeeee;
  }
  
  .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
  }
  
  .btn-outline-primary {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
  }
  
  .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 63, 144, 0.50);
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 667px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .hero-section .container {
    max-width: 1320px;
  }
} 

.hero-content {
    padding-top: 150px;
}