/* Responsive CSS for Gamified Language Learning App */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .section-header h2 {
    font-size: 3rem;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .timeline {
    max-width: 1200px;
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .service-card,
  .feature-card,
  .info-card,
  .job-card {
    padding: 2.5rem;
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  .timeline-item {
    padding: 2.5rem 3rem;
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-card {
    padding: 2.5rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .timeline::before {
    left: 50%;
    margin-left: -2px;
  }
  
  .timeline-item {
    width: 50%;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
  }
  
  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }
  
  .service-card,
  .feature-card,
  .info-card,
  .job-card {
    padding: 2rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .process-step {
    padding: 2rem 1.5rem;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    margin: 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .service-card,
  .feature-card,
  .info-card,
  .job-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-icon,
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
    margin: 1rem;
  }
  
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .team-name {
    font-size: 1.125rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer h5 {
    font-size: 1.125rem;
  }
  
  .footer p, .footer a {
    font-size: 0.9rem;
  }
  
  .decorative-blob {
    display: none;
  }
  
  #blog_grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Mobile Timeline */
  .timeline::before {
    left: 20px;
    width: 2px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 1rem;
    left: 0 !important;
  }
  
  .timeline-item::after {
    left: 8px;
    right: auto;
    width: 20px;
    height: 20px;
    top: 2rem;
  }
  
  .timeline-item:nth-child(even)::after {
    left: 8px;
  }
  
  .timeline-date {
    font-size: 1rem;
  }
  
  /* Mobile Process Steps */
  .process-step {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  /* Mobile Feature Items */
  .feature-item {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .feature-item .feature-icon {
    margin: 0 auto 1rem;
  }
}

/* Ultra Small Devices (up to 374px) */
@media (max-width: 374px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .service-card,
  .feature-card,
  .info-card,
  .job-card {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 1rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .service-icon,
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .testimonial-card {
    padding: 1rem;
  }
  
  .faq-question {
    padding: 0.75rem;
  }
  
  .faq-answer {
    padding: 0.75rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
  }
  
  .process-step {
    padding: 1rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .timeline-item {
    padding-left: 40px;
    padding-right: 0.5rem;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item::after {
    left: 6px;
    width: 15px;
    height: 15px;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) and (orientation: portrait) {
  .hero {
    min-height: 90vh;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px;
    padding-right: 1rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item::after {
    left: 8px;
    right: auto;
  }
  
  .timeline-item:nth-child(even)::after {
    left: 8px;
  }
}

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

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .hero-image img,
  .gallery-item img,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark Mode Support (if needed in future) */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
  
  .decorative-blob {
    animation: none;
  }
  
  .fade-in-up {
    animation: none;
  }
  
  .card:hover,
  .service-card:hover,
  .feature-card:hover,
  .info-card:hover,
  .job-card:hover,
  .process-step:hover,
  .timeline-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .decorative-blob {
    display: none;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card,
  .feature-card,
  .info-card,
  .job-card,
  .process-step,
  .timeline-item,
  .testimonial-card {
    break-inside: avoid;
  }
  
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  .timeline::before {
    display: none;
  }
  
  .timeline-item::after {
    display: none;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 0;
  }
}

/* Accessibility Improvements */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    font-size: 1.125rem;
    padding: 0.75rem 0;
  }
  
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .form-control {
    min-height: 44px;
  }
  
  .faq-question {
    min-height: 44px;
  }
  
  .step-number {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Focus States for Accessibility */
@media (hover: hover) {
  .card:hover,
  .service-card:hover,
  .feature-card:hover,
  .info-card:hover,
  .job-card:hover,
  .process-step:hover,
  .timeline-item:hover,
  .btn:hover {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
  }
}

/* Container Adjustments */
@media (max-width: 1399px) {
  .container {
    max-width: 1140px;
  }
}

@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 540px;
  }
}

@media (max-width: 575px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
} 