/* Responsive Design - Bootstrap 5 Compatible */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .hero-section p {
    font-size: 1.24rem;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .team-member img {
    width: 180px;
    height: 180px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-section h1 {
    font-size: 2.27rem;
  }
  
  .hero-section::before {
    width: 35%;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .team-member img {
    width: 140px;
    height: 140px;
  }
  
  .process-step {
    margin-bottom: 1.65rem;
  }
  
  .timeline-item {
    padding-left: 2.5rem;
  }
}

/* Small devices (phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.60rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .process-step {
    margin-bottom: 1.56rem;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem;
    margin-bottom: 1.72rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 60vh;
    text-align: center;
    padding: 40px 0;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .hero-section h1 {
    font-size: 1.84rem;
    margin-bottom: 1rem;
  }
  
  .hero-section p {
    font-size: 1.01rem;
  }
  
  .navbar-brand {
    font-size: 1.24rem;
  }
  
  h2 {
    font-size: 1.62rem;
  }
  
  h3 {
    font-size: 1.37rem;
  }
  
  h4 {
    font-size: 1.22rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.57rem;
  }
  
  .service-card .price {
    font-size: 1.39rem;
  }
  
  .feature-item {
    padding: 1rem;
    margin-bottom: 1.65rem;
  }
  
  .feature-item i {
    font-size: 2rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.74rem;
  }
  
  .price-card .price {
    font-size: 2rem;
  }
  
  .team-member {
    margin-bottom: 1.71rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1.58rem;
  }
  
  .casestudy-card {
    padding: 1.5rem;
    margin-bottom: 1.67rem;
  }
  
  .process-step {
    margin-bottom: 1.64rem;
  }
  
  .process-step::before {
    width: 35px;
    height: 35px;
    font-size: 0.92rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
    margin-bottom: 1.64rem;
  }
  
  .timeline-item::before {
    width: 10px;
    height: 10px;
  }
  
  .timeline-item::after {
    left: 4px;
  }
  
  .career-card {
    padding: 1.5rem;
    margin-bottom: 1.60rem;
  }
  
  .coreinfo-card {
    padding: 1.5rem;
    margin-bottom: 1.71rem;
  }
  
  .coreinfo-card i {
    font-size: 1.93rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem;
    margin-bottom: 1.61rem;
  }
  
  .blog-card img {
    height: 150px;
  }
  
  .blog-card .card-body {
    padding: 1rem;
  }
  
  .faq-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .gallery-item {
    margin-bottom: 1.69rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.7rem 1.5rem;
    font-size: 0.96rem;
  }
  
  .form-control {
    padding: 0.7rem 0.8rem;
  }
}

/* Landscape orientation for phones */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 90vh;
  }
  
  section {
    padding: 50px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-member img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .hero-section::before {
    display: none;
  }
  
  .navbar,
  .footer {
    display: none;
  }
  
  section {
    padding: 20px 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #e0dcdc;
  }
  
  .btn {
    display: none;
  }
}

/* Dark mode support */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
}

/* Focus styles for accessibility */
@media (min-width: 768px) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-denim);
    outline-offset: 2px;
  }
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: var(--content-max-width);
  }
} 

.hero-content {
    padding-top: 175px;
}

/* ========================================
   DISABLE SCROLL ANIMATIONS ON MOBILE
   ======================================== */

/* Disable all SAL.js animations on mobile screens (768px and below) */
@media (max-width: 768px) {
  /* Override all SAL.js animation properties */
  [data-sal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  
  /* Disable all transform-based animations */
  [data-sal="slide-up"],
  [data-sal="slide-down"],
  [data-sal="slide-left"],
  [data-sal="slide-right"],
  [data-sal="fade-up"],
  [data-sal="fade-down"],
  [data-sal="fade-left"],
  [data-sal="fade-right"],
  [data-sal="zoom-in"],
  [data-sal="zoom-out"],
  [data-sal="flip-up"],
  [data-sal="flip-down"],
  [data-sal="flip-left"],
  [data-sal="flip-right"] {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) translateZ(0) scale(1) rotateX(0) rotateY(0) rotateZ(0) !important;
    transition: none !important;
    animation: none !important;
  }
  
  /* Ensure no animations are applied to any SAL elements */
  .sal-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}