/* Responsive CSS for Typing Speed Training Site */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 2.06rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1.03rem;
  }
  
  .section-title {
    font-size: 1.81rem;
  }
  
  .section-subtitle {
    font-size: 1.03rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .btn-primary-custom {
    padding: 12px 24px;
    font-size: 1.03rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .review-card {
    padding: 2rem;
    margin: 0 10px;
  }
  
  .feature-item {
    padding: 1.5rem;
    margin-bottom: 1.63rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .img-fluid {
    height: 250px;
  }
  
  .gallery-image {
    height: 180px;
  }
  
  .card-img-top {
    height: 150px;
  }
  
  .navbar-brand {
    font-size: 1.43rem;
  }
  
  /* Disable autoplay and effects on mobile for Swiper */
  .swiper-container {
    padding: 30px 0;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.63rem;
  }
  
  .section-title {
    font-size: 2.32rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .team-photo {
    width: 160px;
    height: 160px;
  }
  
  .img-fluid {
    height: 300px;
  }
  
  .gallery-image {
    height: 200px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3.13rem;
  }
  
  .section-title {
    font-size: 2.43rem;
  }
  
  .card-columns {
    column-count: 2;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .img-fluid {
    height: 350px;
  }
  
  .gallery-image {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3.61rem;
  }
  
  .section-title {
    font-size: 2.63rem;
  }
  
  .card-columns {
    column-count: 3;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 4.14rem;
  }
  
  .section {
    padding: 100px 0;
  }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-container,
  #space {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card-custom,
  .feature-item,
  .review-card,
  .contact-form,
  .faq-item {
    border: 2px solid currentColor;
  }
  
  .btn-primary-custom {
    border: 2px solid currentColor;
  }
}


/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
  padding-top: 50px;
    min-height: 80vh;
  }
  
  .section {
    padding: 60px 0;
  }
}

/* Touch device adjustments */
@media (hover: none) and (pointer: coarse) {
  .card-custom:hover,
  .feature-item:hover,
  .team-photo:hover,
  .gallery-image:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
  
  .btn-primary-custom:hover {
    transform: none;
  }
  
  .gallery-image:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .swiper-container {
    --swiper-navigation-transition: none;
    --swiper-pagination-transition: none;
  }
  
  .fade-in {
    transition: none;
  }
}

/* Container queries for modern browsers */
@container (max-width: 400px) {
  .card-body {
    padding: 1rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
}

/* Accessibility improvements */
@media (min-width: 768px) {
  .sr-only-md {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
} 