/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  p {
    font-size: 14px;
  }
  
  /* Navbar brand smaller on mobile */
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 1rem 0;
    padding-top: 275px;
}
  
  /* Remove decorative elements on mobile */
  .hero-decorative::before,
  .hero-decorative::after {
    display: none;
  }
  
  /* Buttons full width on mobile */
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Card adjustments */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
    overflow-x: hidden;
}
  
  /* Service cards stack on mobile */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .service-icon {
    font-size: 2.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Feature items */
  .feature-item {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  /* Price cards */
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  /* Team members */
  .team-member {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Review cards */
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* FAQ items */
  .faq-item {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery images */
  .gallery-image {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  /* Section padding reduced */
  section {
    padding: 3rem 0;
  }
  
  #hero,
  #services,
  #features,
  #priceplan,
  #team,
  #reviews,
  #faq,
  #contact,
  #gallery,
  #blog {
    padding: 3rem 0;
  }
  
  /* Footer */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
    text-align: center;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Disable animations on small devices too */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  #hero {
    min-height: 85vh;
  }
  
  .service-card,
  .feature-item,
  .team-member {
    margin-bottom: 2rem;
  }
  
  section {
    padding: 3.5rem 0;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-brand {
    font-size: 1.35rem;
  }
  
  #hero {
    min-height: 90vh;
  }
  
  .hero-content {
    padding: 1.5rem 0;
    padding-top: 275px;
}
  
  .service-card {
    padding: 1.8rem;
  }
  
  .price-card {
    padding: 2.5rem 2rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  section {
    padding: 4rem 0;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  #hero {
    min-height: 95vh;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .price-card {
    padding: 2.8rem 2rem;
  }
  
  section {
    padding: 4.5rem 0;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  #hero {
    min-height: 100vh;
  }
  
  .service-card {
    padding: 2.2rem;
  }
  
  .price-card {
    padding: 3rem 2rem;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .section-description {
    max-width: 700px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
  }
  
  .hero-content {
    padding: 1rem 0;
    padding-top: 275px;
}
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-image,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  #footer,
  .btn {
    display: none !important;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus improvements for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Dark mode support (basic) */