/* Responsive Design - Mobile First Approach */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile as required */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none !important;
    transition: none !important;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .feature-card,
  .service-card,
  .team-card,
  .testimonial-card,
  .process-step,
  .case-study-card,
  .timeline-card,
  .career-card,
  .coreinfo-card {
    margin-bottom: 1.5rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .btn-primary-custom,
  .btn-outline-custom {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .coreinfo-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Disable animations on mobile as required */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none !important;
    transition: none !important;
  }
  
  .hero-section {
    min-height: 85vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-padding {
    padding: 4rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-avatar {
    width: 110px;
    height: 110px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Mobile navigation customization */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-light-dark);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .feature-icon,
  .coreinfo-icon {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer-section,
  .btn-primary-custom,
  .btn-outline-custom {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .feature-card,
  .service-card,
  .team-card,
  .testimonial-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
  h4 { font-size: 12pt; }
}

/* Landscape orientation specific styles */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
  }
}

/* Dark mode support (respects user preference) */

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-section::before,
  .hero-section::after {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-card,
  .service-card,
  .team-card,
  .testimonial-card,
  .process-step,
  .faq-card,
  .case-study-card,
  .timeline-card,
  .career-card,
  .coreinfo-card,
  .blog-card {
    border: 2px solid var(--color-text);
  }
  
  .btn-primary-custom {
    border: 2px solid white;
  }
  
  .btn-outline-custom {
    border-width: 3px;
  }
}

/* Focus management for better accessibility */
@media (min-width: 768px) {
  .btn-primary-custom:focus,
  .btn-outline-custom:focus,
  .form-control:focus {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
  }
}

/* Container breakpoint adjustments */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Specific responsive adjustments for sections */
@media (max-width: 767.98px) {
  .row [class*="col-"] {
    margin-bottom: 2rem;
  }
  
  .row [class*="col-"]:last-child {
    margin-bottom: 0;
  }
  
  .text-center-mobile {
    text-align: center;
  }
  
  .order-mobile-1 { order: 1; }
  .order-mobile-2 { order: 2; }
  .order-mobile-3 { order: 3; }
}

/* Footer responsive adjustments */
@media (max-width: 767.98px) {
  .footer-section {
    text-align: center;
    padding: 3rem 0 1.5rem;
  }
  
  .footer-section .col-md-3,
  .footer-section .col-md-4 {
    margin-bottom: 2rem;
  }
  
  .footer-section .col-md-3:last-child,
  .footer-section .col-md-4:last-child {
    margin-bottom: 0;
  }
} 

.hero-content {
    padding-top: 275px;
}