/* Responsive Styles for AI Learning Assessment Template */

/* Mobile-First Approach */
@media (max-width: 575.98px) {
  /* Extra Small devices (phones, less than 576px) */
  
  /* Header adjustments */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.375rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  h4 {
    font-size: 1.125rem;
  }
  
  h5 {
    font-size: 1rem;
  }
  
  p {
    font-size: 0.95rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    padding-top: 70px;
    text-align: center;
  }
  
  .hero-section .container {
    padding: 1rem;
  }
  
  /* Cards and components */
  .feature-card,
  .info-card,
  .element-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  /* Services pricing */
  .price,
  .price-display {
    font-size: 1.25rem;
  }
  
  /* Team member images */
  .team-member img {
    width: 80px;
    height: 80px;
  }
  
  /* Process steps */
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }
  
  /* Contact form */
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  /* Footer adjustments */
  footer {
    text-align: center;
  }
  
  footer .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Gallery adjustments */
  .gallery .col-lg-3 {
    margin-bottom: 1rem;
  }
  
  /* Spacing adjustments */
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  /* No animations on mobile for better performance */
  [data-sal] {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding-top: 75px;
  }
  
  .feature-card,
  .info-card,
  .element-card {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding-top: 80px;
  }
  
  /* Ensure proper spacing for tablet view */
  .feature-card:hover,
  .info-card:hover,
  .element-card:hover {
    transform: translateY(-2px);
  }
  
  /* Adjust grid layouts for tablets */
  .col-md-4 .element-card {
    height: 100%;
  }
  
  /* Team section adjustments */
  .team-member {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Fine-tune spacing for desktop */
  .container {
    max-width: 960px;
  }
  
  .hero-section {
    min-height: 100vh;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced hover effects for larger screens */
  .feature-card:hover {
    transform: translateY(-8px);
  }
  
  .card:hover {
    transform: translateY(-8px);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-section .row {
    align-items: center;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  .card-img-top,
  .team-member img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark mode support (if browser supports) */

/* Print styles */
@media print {
  .navbar,
  .breadcrumb-section,
  footer {
    display: none;
  }
  
  .hero-section {
    background: white;
    color: black;
  }
  
  .card,
  .feature-card,
  .info-card {
    border: 1px solid #ddd;
    box-shadow: none;
    break-inside: avoid;
  }
  
  .py-5 {
    padding: 1rem 0 !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  [data-sal] {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Focus improvements for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Container adjustments for edge cases */
@media (max-width: 320px) {
  /* Ultra-small screens */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .feature-card,
  .info-card,
  .element-card {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Wide screen optimizations */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  /* Prevent content from being too wide on ultra-wide screens */
  .hero-section .container,
  section .container {
    max-width: 1200px;
  }
} 

.hero-section h1 {
    padding-top: 225px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
