/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 10px;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 5px;
    font-size: 14px;
  }
  
  .hero-section {
    padding-top: 70px;
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 14px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-desc {
    font-size: 14px;
  }
  
  .about-feature,
  .service-item,
  .feature-item,
  .priceplan-item,
  .team-member,
  .review-item,
  .casestudy-item,
  .process-item,
  .timeline-item,
  .career-item,
  .coreinfo-item,
  .blog-item {
    margin-bottom: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .priceplan-price {
    font-size: 2rem;
  }
  
  .hero-shape {
    display: none;
  }
  
  .breadcrumb-image {
    max-width: 150px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Disable autoplay and effects for Swiper on mobile */
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 14px;
    margin-bottom: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .blog-image,
  .gallery-image,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .hero-shape {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
    background: white !important;
    color: black !important;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .service-item,
  .feature-item,
  .team-member,
  .review-item {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-shape {
    animation: none !important;
  }
  
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
  
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --black: #ffffff;
    --gray-light: #2d2d2d;
    --gray-medium: #b0b0b0;
    --gray-dark: #e0e0e0;
  }
  
  .navbar {
    background: linear-gradient(135deg, var(--dark-sky), var(--dark-lavender));
  }
  
  .about-section,
  .features-section,
  .team-section,
  .casestudy-section,
  .timeline-section,
  .coreinfo-section,
  .blog-section {
    background: var(--gray-light);
  }
  
  .service-item,
  .feature-item,
  .priceplan-item,
  .team-member,
  .review-item,
  .casestudy-item,
  .process-item,
  .timeline-item,
  .career-item,
  .coreinfo-item,
  .blog-item,
  .about-feature,
  .faq-item {
    background: var(--gray-light);
    color: var(--black);
  }
}

/* Focus styles for accessibility */
.navbar-nav .nav-link:focus,
.btn-primary:focus,
.form-control:focus {
  outline: 2px solid var(--primary-sunset);
  outline-offset: 2px;
}

/* Hover effects disabled on touch devices */
@media (hover: none) {
  .service-item:hover,
  .feature-item:hover,
  .team-member:hover,
  .review-item:hover,
  .gallery-item:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Container queries for modern browsers */
@supports (container-type: inline-size) {
  .service-item,
  .feature-item,
  .team-member {
    container-type: inline-size;
  }
  
  @container (max-width: 300px) {
    .service-content,
    .feature-item,
    .team-member {
      padding: 1rem;
    }
    
    .service-name,
    .feature-name,
    .team-name {
      font-size: 1rem;
    }
  }
}

/* Grid fallback for older browsers */
@supports not (display: grid) {
  .gallery-grid {
    display: flex;
    flex-wrap: wrap;
  }
  
  .gallery-item {
    flex: 1 1 300px;
    margin: 0.5rem;
  }
}

/* Flexbox fallback */
@supports not (display: flex) {
  .hero-section {
    display: block;
    text-align: center;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    display: inline-block;
  }
} 