/* Responsive CSS - Mobile First Approach */
/* Bootstrap 5 Compatible Responsive Design */

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Reduce section padding on mobile */
  .section-padding {
    padding: var(--section-padding-mobile);
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Disable animations on mobile for performance */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Service cards stacking */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Price cards adjustments */
  .price-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Team cards */
  .team-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery grid adjustment */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Footer adjustments */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Hide decorative elements on mobile */
  .hero-decorative {
    display: none;
  }
  
  /* Button adjustments */
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Process steps */
  .process-step {
    padding: 1.5rem 0.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* FAQ cards */
  .faq-card {
    padding: 1.5rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  /* Blog cards */
  .blog-card {
    margin-bottom: 2rem;
  }
  
  /* Contact info */
  .contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .contact-item i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Gallery adjustments */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Features grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Button adjustments */
  .btn {
    width: auto;
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Contact items in rows */
  .contact-item {
    flex-direction: row;
    text-align: left;
  }
  
  .contact-item i {
    margin-right: 1rem;
    margin-bottom: 0;
  }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  #hero {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Features grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Price cards */
  .price-card.featured {
    transform: scale(1.02);
  }
  
  /* Team layout */
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  /* Footer layout */
  .footer-section {
    margin-bottom: 1.5rem;
  }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full desktop features */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Hero decorative elements */
  .hero-decorative {
    display: block;
  }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
  /* Maximum container width handling */
  .container {
    max-width: 1200px;
  }
  
  /* Enhanced gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  /* Enhanced features */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
  
  /* Larger hero decorative */
  .hero-decorative:nth-child(1) {
    width: 250px;
    height: 250px;
  }
  
  .hero-decorative:nth-child(2) {
    width: 200px;
    height: 200px;
  }
  
  /* Enhanced team photos */
  .team-photo {
    width: 160px;
    height: 160px;
  }
  
  /* Enhanced price cards */
  .price-card {
    padding: 3rem 2.5rem;
  }
  
  /* Enhanced contact form */
  .contact-form {
    padding: 3.5rem;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .service-image,
  .blog-image,
  .gallery-image,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  /* Hide navigation and interactive elements */
  #header,
  #footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  /* Optimize typography for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: #000;
  }
  
  /* Remove shadows and effects */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  /* Page breaks */
  .section-padding {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
  /* High contrast mode */
  :root {
    --primary-color: #0000ff;
    --secondary-color: #008000;
    --accent-color: #ff8800;
    --neutral-dark: #000000;
    --background-light: #ffffff;
    --neutral-light: #cccccc;
  }
  
  .btn {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* Focus Management */
@media (prefers-reduced-motion: no-preference) {
  /* Only apply animations when motion is preferred */
  .service-card:hover,
  .team-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
  
  .gallery-image:hover {
    transform: scale(1.05);
  }
}

/* Dark Mode Support */

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions */
  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  /* Keep essential focus indicators */
  :focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Container Adjustments for Better Spacing */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  /* Enhanced spacing for very large screens */
  .section-padding {
    padding: 6rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
} 

.hero-content {
    padding-top: 175px;
}