/* ARVision - Responsive CSS
   Mobile-first responsive design, compatible with Bootstrap 5 */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1, .h1 {
    font-size: 1.58rem;
    line-height: 1.3;
  }
  
  h2, .h2 {
    font-size: 1.36rem;
    line-height: 1.4;
  }
  
  h3, .h3 {
    font-size: 1.24rem;
  }
  
  .display-1 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.89rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.17rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .nav-link {
    padding: 0.75rem 0;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 3rem 0;
    text-align: center;
  }
  
  .hero-section .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.58rem;
  }
  
  .hero-section .d-flex {
    flex-direction: column;
  }
  
  /* Section Spacing */
  section {
    padding: 2rem 0;
  }
  
  /* Cards and Components */
  .card-body {
    padding: 1rem;
  }
  
  .feature-card,
  .process-card,
  .info-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Team Section */
  .team img {
    width: 100px;
    height: 100px;
  }
  
  /* Process Steps */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .timeline-year {
    padding: 0.5rem;
    font-size: 1.02rem;
  }
  
  /* Contact Form */
  .contact-info {
    margin-top: 2rem;
    padding: 1rem;
  }
  
  /* Gallery */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  /* Footer */
  footer .container {
    text-align: center;
  }
  
  footer .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Buttons */
  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
  
  /* Spacing Utilities */
  .mb-5 {
    margin-bottom: 2rem;
  }
  
  .py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography Fine-tuning */
  h1, .h1 {
    font-size: 1.89rem;
  }
  
  h2, .h2 {
    font-size: 1.64rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 4rem 0;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.22rem;
  }
  
  /* Process Steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.22rem;
  }
  
  /* Team Images */
  .team img {
    width: 120px;
    height: 120px;
  }
  
  /* Cards */
  .card-body {
    padding: 1.25rem;
  }
  
  /* Contact Info */
  .contact-info {
    padding: 1.5rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-section {
    padding: 5rem 0;
  }
  
  .hero-section .row {
    align-items: center;
  }
  
  /* Typography */
  h1, .h1 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 2.57rem;
  }
  
  /* Process and Timeline */
  .process-number {
    width: 55px;
    height: 55px;
  }
  
  .timeline-year {
    padding: 0.75rem;
  }
  
  /* Team Images */
  .team img {
    width: 140px;
    height: 140px;
  }
  
  /* Grid Adjustments */
  .col-lg-2 {
    margin-bottom: 1.64rem;
  }
  
  /* Contact Layout */
  .contact-info {
    margin-top: 1rem;
  }
  
  /* FAQ Layout */
  .faq .col-lg-6 {
    margin-bottom: 1rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
  }
  
  /* Typography */
  .display-4 {
    font-size: 2.77rem;
  }
  
  /* Process Numbers */
  .process-number {
    width: 60px;
    height: 60px;
  }
  
  /* Team Images */
  .team img {
    width: 150px;
    height: 150px;
  }
  
  /* Grid Spacing */
  .col-lg-2 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero Section */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Container Max Width */
  .container {
    max-width: 1140px;
  }
  
  /* Typography */
  .display-4 {
    font-size: 3rem;
  }
  
  /* Enhanced Spacing */
  section {
    padding: 4rem 0;
  }
  
  /* Team Layout */
  .team .col-lg-2 {
    text-align: center;
  }
  
  /* Process Steps */
  .process-number {
    width: 60px;
    height: 60px;
    font-size: 1.40rem;
  }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced Hero */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Larger Typography for Large Screens */
  .display-4 {
    font-size: 3.57rem;
  }
  
  h1, .h1 {
    font-size: 2.35rem;
  }
  
  /* Enhanced Section Spacing */
  section {
    padding: 5rem 0;
  }
  
  /* Larger Cards */
  .card-body {
    padding: 2rem;
  }
  
  .feature-card,
  .process-card,
  .info-card {
    padding: 2.5rem;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  section {
    padding: 1.5rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Enhanced text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Sharper borders */
  .card,
  .btn,
  .form-control {
    border-width: 0.5px;
  }
}

/* Dark Mode Support */

/* Reduced Motion Responsive Adjustments */
@media (prefers-reduced-motion: reduce) {
  .hero-section {
    background-attachment: scroll;
  }
  
  /* Remove parallax effects on mobile */
  @media (max-width: 768px) {
    .hero-section {
      background-attachment: scroll;
    }
  }
}

/* Print Responsive */
@media print {
  /* Responsive print layout */
  .container {
    width: 100% !important;
    max-width: none !important;
  }
  
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-6,
  .col-lg-8,
  .col-lg-12 {
    width: 100% !important;
    flex: none !important;
  }
  
  .row {
    margin: 0 !important;
  }
  
  .d-none.d-lg-block {
    display: none !important;
  }
  
  /* Ensure readability in print */
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Touch Device Enhancements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover,
  .feature-card:hover,
  .btn:hover {
    transform: none;
  }
  
  /* Enhanced form controls for touch */
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Accessibility Responsive Enhancements */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #0211ea;
    --color-secondary: #00950b;
    --color-accent: #ff7c00;
  }
  
  .btn,
  .card,
  .form-control {
    border-width: 2px;
  }
}

/* Motion Reduced + Mobile Combination */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  .hero-section {
    background: var(--color-primary-light);
  }
  
  * {
    transition: none !important;
    animation: none !important;
  }
} 

.hero-section h1 {
    padding-top: 125px;
}