/* Responsive layout adjustments for all screen sizes */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  h1.hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  /* CTA Modern responsive adjustments */
  .cta-modern {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
  }
  
  .cta-modern h2 {
    font-size: 1.75rem !important;
  }
  
  .hidden-xs {
    display: none !important;
  }
  
  .py-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  
  .hero-section {
    min-height: calc(100vh - 70px);
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  
  .service-card {
    margin-bottom: 20px;
  }
  
  .contact-form {
    padding: 20px !important;
  }
  
  .footer-nav {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .footer-social {
    justify-content: center;
    margin-bottom: 20px;
  }
  
  /* Testimonials responsive */
  .testimonial-slide {
    padding: 16px !important;
  }
  
  .testimonial-slide img {
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
  }
  
  /* FAQ responsive */
  .faq-question {
    padding: 16px !important;
  }
  
  .faq-answer {
    padding: 16px !important;
  }
  
  /* Portfolio modals */
  .modal-content {
    width: 95% !important;
    padding: 16px !important;
  }
  
  .portfolio-filter-btn {
    padding: 6px 10px !important;
    font-size: 0.875rem !important;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  h1.hero-title {
    font-size: 2.25rem !important;
  }
  
  .service-card {
    margin-bottom: 24px;
  }
  
  /* Testimonials responsive */
  .testimonial-slide {
    padding: 24px !important;
  }
  
  /* Portfolio modals */
  .modal-content {
    width: 90% !important;
    padding: 24px !important;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
  
  /* Portfolio grid adjustments */
  .portfolio-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  
  /* Testimonials responsive */
  .testimonial-content {
    padding: 28px !important;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
  
  .service-card-featured {
    padding: 32px !important;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-title {
    font-size: 3.5rem !important;
  }
  
  .section-title {
    font-size: 2.5rem !important;
  }
}

/* Shared responsive styles */

/* Handle scroll animations on mobile devices */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-slide-in,
  .animate-fade-in,
  .animate-float,
  .animate-pulse {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Responsive adjustments for specific components */

/* Testimonial slider */
@media only screen and (max-width: 768px) {
  .testimonial-slide {
    flex-direction: column;
  }
  
  .testimonial-avatar {
    margin-bottom: 16px;
  }
  
  .testimonial-content {
    text-align: center;
  }
  
  .testimonial-dots {
    margin-top: 16px;
  }
}

/* Portfolio filters */
@media only screen and (max-width: 600px) {
  .portfolio-filter-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .portfolio-filter-btn {
    margin: 4px;
  }
}

/* FAQ Accordion */
@media only screen and (max-width: 768px) {
  .faq-question h3 {
    font-size: 1rem !important;
  }
}

/* Contact section */
@media only screen and (max-width: 992px) {
  .contact-info-card {
    margin-bottom: 24px;
  }
}

/* Footer adjustments */
@media only screen and (max-width: 768px) {
  .footer-column {
    margin-bottom: 32px;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}
