/* ===== RESPONSIVE STYLES FOR ONLINE TUTORING PLATFORM ===== */

/* ===== MOBILE DEVICES (up to 576px) ===== */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile as required */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  h5 {
    font-size: 1rem;
  }
  
  p {
    font-size: 14px;
  }
  
  /* Section padding adjustments */
  .section-padding {
    padding: 40px 0;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Card adjustments */
  .about-feature-card,
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .process-step,
  .timeline-item,
  .career-card,
  .coreinfo-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Price card adjustments */
  .price-value {
    font-size: 2.5rem;
  }
  
  .price-card.featured {
    transform: none; /* Remove scale transform on mobile */
  }
  
  /* Contact form mobile */
  .contact-form,
  .contact-info {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Footer mobile */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Button adjustments */
  .btn-primary,
  .btn-outline-primary {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Form elements mobile */
  .form-control {
    padding: 15px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Navbar brand mobile */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Process number mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* About feature icon mobile */
  .about-feature-icon {
    font-size: 2.5rem;
  }
  
  /* Feature icon mobile */
  .feature-icon {
    font-size: 2rem;
  }
  
  /* Service icon mobile */
  .service-icon {
    width: 70px;
    height: 70px;
  }
  
  .service-icon i {
    font-size: 1.5rem;
  }
  
  /* Service price mobile */
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Contact info mobile */
  .contact-info-icon {
    width: 40px;
    height: 40px;
  }
  
  .contact-info-icon i {
    font-size: 1rem;
  }
}

/* ===== SMALL TABLETS (576px to 767.98px) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Section padding */
  .section-padding {
    padding: 60px 0;
  }
  
  /* Hero section tablet */
  .hero-section {
    min-height: 80vh;
  }
  
  /* Card grid adjustments */
  .service-card,
  .feature-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  /* Price cards on tablet */
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery tablet */
  .gallery-item img {
    height: 220px;
  }
  
  /* Contact form tablet */
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
}

/* ===== MEDIUM TABLETS (768px to 991.98px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Section padding */
  .section-padding {
    padding: 70px 0;
  }
  
  /* Hero section medium tablet */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Gallery medium tablet */
  .gallery-item img {
    height: 240px;
  }
  
  /* Team grid adjustments */
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Service grid */
  .service-card {
    margin-bottom: 2rem;
  }
}

/* ===== LARGE TABLETS (992px to 1199.98px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Slightly reduce padding on large tablets */
  .section-padding {
    padding: 75px 0;
  }
  
  /* Cards with better spacing */
  .service-card,
  .feature-card,
  .price-card {
    margin-bottom: 1.5rem;
  }
}

/* ===== EXTRA LARGE SCREENS (1200px and up) ===== */
@media (min-width: 1200px) {
  /* Larger container for very wide screens */
  .container {
    max-width: 1200px;
  }
  
  /* Enhanced spacing for large screens */
  .section-padding {
    padding: 100px 0;
  }
  
  /* Larger hero text on desktop */
  .hero-section h1 {
    font-size: 3rem;
    padding-top: 200px;
}
  
  /* Gallery enhanced on desktop */
  .gallery-item img {
    height: 300px;
  }
}

/* ===== LANDSCAPE MOBILE ORIENTATION ===== */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 30px 0;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  /* Additional accessibility for reduced motion */
  .hero-decorative {
    animation: none !important;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-card:hover,
  .review-card:hover,
  .casestudy-card:hover,
  .career-card:hover {
    transform: none !important;
  }
  
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: none !important;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Crisp text rendering on high DPI displays */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  /* Hide decorative elements when printing */
  .hero-decorative,
  .btn-primary,
  .btn-outline-primary,
  .navbar {
    display: none !important;
  }
  
  /* Optimize text for printing */
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .section-padding {
    padding: 20px 0;
  }
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
@media (max-width: 991.98px) {
  /* Enhanced focus states on mobile/tablet */
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
  }
  
  /* Larger touch targets on mobile */
  .nav-link {
    padding: 1rem;
    min-height: 44px;
  }
  
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
} 