/* ===== RESPONSIVE STYLES - GAMIFIED LANGUAGE EXCHANGE PLATFORM ===== */

/* Large screens and up */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
  
  .hero-section::before {
    top: -40%;
    right: -15%;
  }
}

/* Medium screens */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .navbar-collapse {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .service-card,
  .custom-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* Small screens */
@media (max-width: 767.98px) {
  /* DISABLE ALL ANIMATIONS ON MOBILE */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transform: none !important;
  }
  
  /* Disable scroll animations on mobile */
  .sal-animate {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  
  /* Disable all hover effects */
  .custom-card:hover,
  .service-card:hover,
  .btn-primary:hover,
  .btn-outline-primary:hover,
  .gallery-item:hover img,
  .social-link:hover,
  .navbar-nav .nav-link:hover,
  .footer a:hover {
    transform: none !important;
    box-shadow: inherit !important;
    background-color: inherit !important;
    border-color: inherit !important;
    color: inherit !important;
  }
  
  /* Remove pseudo-element animations */
  .social-link::before,
  .hero-section::before {
    display: none !important;
  }
  
  /* Typography adjustments */
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  /* Layout adjustments */
  .section-padding {
    padding: 3rem 0;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    display: none;
  }
  
  /* Card adjustments */
  .custom-card,
  .service-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Team photo adjustments */
  .team-photo {
    height: 200px;
  }
  
  /* FAQ adjustments */
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  /* Gallery grid adjustments */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
  
  /* Button adjustments */
  .btn-primary,
  .btn-outline-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Timeline adjustments */
  .timeline-item {
    padding-left: 2rem;
  }
  
  .timeline-item::before {
    width: 12px;
    height: 12px;
  }
}

/* Extra small screens */
@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.6rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 2.5rem 0;
  }
  
  .hero-section {
    min-height: 60vh;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .service-price {
    font-size: 1.6rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Container padding adjustments */
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* COMPLETE ANIMATION DISABLE FOR TOUCH DEVICES */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  .custom-card:hover,
  .service-card:hover,
  .gallery-item:hover img {
    transform: none !important;
  }
  
  .btn-primary:hover {
    transform: none !important;
  }
  
  /* Disable all social link animations */
  .social-link,
  .social-link:hover {
    transform: none !important;
    transition: none !important;
  }
  
  .social-link::before {
    display: none !important;
  }
  
  /* Increase touch targets */
  .navbar-toggler {
    padding: 0.5rem;
    font-size: 1.5rem;
  }
  
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    transform: rotate(15deg) scale(1.1);
  }
}

/* Landscape orientation on phones */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-section::before {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: none !important;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .custom-card,
  .service-card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
}

.hero-content {
    padding-top: 275px;
}

/* ADDITIONAL MOBILE ANIMATION DISABLING */
/* Extra small screens - aggressive animation disable */
@media (max-width: 575.98px) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }
  
  /* Force disable all transforms */
  .btn:hover,
  .card:hover,
  .service-card:hover,
  .custom-card:hover,
  .gallery-item img,
  .social-link,
  .team-card img {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Performance optimization for lower-end devices */
@media (max-width: 767.98px) and (max-device-width: 767.98px) {
  /* Disable all GPU acceleration */
  * {
    transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    perspective: none !important;
  }
  
  /* Remove all box-shadow changes */
  .custom-card,
  .service-card,
  .contact-form,
  .faq-card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  }
  
  .custom-card:hover,
  .service-card:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  }
}