/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile for performance */
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  /* Hero Section Mobile */
  #hero {
    min-height: 80vh;
    padding-top: 70px;
    text-align: center;
  }
  
  .hero-decorative-shape {
    display: none;
  }
  
  /* Typography Adjustments */
  .section-title {
    font-size: var(--font-size-h3);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
  
  /* Service Cards Mobile */
  .service-card {
    margin-bottom: 2rem;
  }
  
  .service-image {
    height: 150px;
    font-size: 2rem;
  }
  
  /* Team Photos Mobile */
  .team-photo {
    width: 150px;
    height: 150px;
    font-size: 3rem;
  }
  
  /* Price Cards Mobile */
  .price-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Contact Form Mobile */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .contact-info {
    padding: 2rem 1rem;
  }
  
  /* Gallery Mobile */
  .gallery-image {
    height: 200px;
    font-size: 2rem;
  }
  
  /* Footer Mobile */
  .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Process Steps Mobile */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* Timeline Mobile */
  .timeline-item {
    margin-left: 1rem;
    border-left-width: 2px;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Keep mobile animation restrictions */
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .hero-decorative-shape {
    display: none;
  }
  
  .service-image {
    height: 180px;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .gallery-image {
    height: 220px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-decorative-shape {
    display: block;
  }
  
  .hero-shape-1 {
    width: 150px;
    height: 150px;
  }
  
  .hero-shape-2 {
    width: 120px;
    height: 120px;
  }
  
  .service-image {
    height: 180px;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-shape-1 {
    width: 180px;
    height: 180px;
  }
  
  .hero-shape-2 {
    width: 140px;
    height: 140px;
  }
  
  .service-image {
    height: 190px;
  }
  
  .team-photo {
    width: 190px;
    height: 190px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-shape-1 {
    width: 200px;
    height: 200px;
  }
  
  .hero-shape-2 {
    width: 150px;
    height: 150px;
  }
  
  .service-image {
    height: 200px;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
}

/* Navbar Mobile Customization Prevention */
@media (max-width: 991.98px) {
  .navbar-toggler {
    /* Use only standard Bootstrap 5 navbar toggler - no customization allowed */
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 0.25rem;
  }
  
  .navbar-collapse {
    /* Standard Bootstrap 5 behavior only */
    background-color: var(--white);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
}

/* Container Responsive Adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Feature Cards Responsive */
@media (max-width: 767.98px) {
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Case Study Cards Responsive */
@media (max-width: 767.98px) {
  .case-study-card {
    margin-bottom: 2rem;
    padding: 2rem;
  }
}

/* Career Cards Responsive */
@media (max-width: 767.98px) {
  .career-card {
    margin-bottom: 2rem;
  }
}

/* Core Info Responsive */
@media (max-width: 767.98px) {
  .coreinfo-item {
    margin-bottom: 2rem;
  }
  
  .coreinfo-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Blog Cards Responsive */
@media (max-width: 767.98px) {
  .blog-card {
    margin-bottom: 2rem;
  }
  
  .blog-image {
    height: 150px;
    font-size: 2rem;
  }
}

/* FAQ Cards Responsive */
@media (max-width: 767.98px) {
  .faq-card {
    padding: 1.5rem;
  }
}

/* Feature Items Responsive */
@media (max-width: 767.98px) {
  .feature-item {
    margin-bottom: 2rem;
  }
  
  .feature-item-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Process Steps Connection Line - Hide on Mobile */
@media (max-width: 767.98px) {
  .process-step::after {
    display: none;
  }
}

/* Print Styles */
@media print {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
  
  .hero-decorative-shape {
    display: none;
  }
  
  #header {
    position: static;
    box-shadow: none;
  }
  
  .btn-custom-blue {
    color: var(--dark-blue) !important;
    background: transparent !important;
    border: 2px solid var(--dark-blue) !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .feature-card,
  .service-card,
  .price-card,
  .review-card,
  .case-study-card,
  .career-card,
  .blog-card,
  .faq-card {
    border: 2px solid var(--dark-gray);
  }
  
  .hero-decorative-shape {
    opacity: 0.3;
  }
}

/* Dark Mode Support */