/* Mobile First Responsive Design */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .hero-section {
    padding: 0;
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
  .section-padding-lg {
    padding: 6rem 0;
  }
  
  .hero-section .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .card-columns {
    column-count: 2;
  }
  
  .team-image {
    width: 150px;
    height: 150px;
  }
  
  .service-card .card-header {
    padding: 2rem;
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .btn-primary {
    padding: 0.875rem 2.5rem;
  }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile as per requirements */
  .decorative-shape {
    animation: none;
  }
  
  .hero-section::before {
    animation: none;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-card:hover,
  .review-card:hover,
  .case-card:hover,
  .process-card:hover,
  .timeline-card:hover,
  .career-card:hover,
  .core-card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .blog-card:hover {
    transform: none;
  }
  
  /* Mobile specific styles */
  .hero-section {
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-description {
    font-size: 0.9rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .service-card .card-header {
    padding: 1rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
  
  .price-amount {
    font-size: 1.5rem;
  }
  
  .team-image {
    width: 100px;
    height: 100px;
  }
  
  .btn-primary {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .blog-card img {
    height: 150px;
  }
  
  .price-card.featured {
    transform: none;
    border-width: 1px;
  }
  
  /* Mobile navigation improvements */
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Ultra Small Devices (less than 400px) */
@media (max-width: 399.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  .hero-section {
    min-height: 50vh;
    padding: 1.5rem 0;
  }
  
  .contact-form {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .team-image {
    width: 80px;
    height: 80px;
  }
  
  .service-price {
    font-size: 1.1rem;
  }
  
  .price-amount {
    font-size: 1.25rem;
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  .blog-card img {
    height: 120px;
  }
}

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

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-image,
  .gallery-item img,
  .blog-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .decorative-shape,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
  }
  
  section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .card {
    border: 1px solid #e7d1d1 !important;
    box-shadow: none !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
  }
  
  p, .section-description {
    color: black !important;
  }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
}

/* Focus improvements for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Dark mode support (if preferred) */

/* Grid system responsive adjustments */
@media (max-width: 991.98px) {
  .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .col-lg-6 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .col-md-6 {
    margin-bottom: 1.5rem;
  }
  
  .col-md-4 {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .col-sm-12 {
    margin-bottom: 1rem;
  }
}

/* Container adjustments for better spacing */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
  .hero-section::before {
    display: none;
  }
  
  .decorative-shape {
    display: none;
  }
} 

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