/* Responsive CSS for Tile Explorer */

/* Mobile Navigation */
@media (max-width: 991px) {
  .navbar {
    position: relative;
  }
  
  .navbar-toggler {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-1);
    cursor: pointer;
  }
  
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--neutral-100);
    padding: 1rem 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
  }
  
  .navbar-nav.show {
    display: flex;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767px) {
  /* General Spacing Adjustments */
  section {
    padding: 60px 0;
  }
  
  /* Hero Section */
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  /* Grid Adjustments */
  .row > div[class^="col-"] {
    margin-bottom: 30px;
  }
  
  /* Team Section */
  .team-card {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Footer */
  .footer-col {
    margin-bottom: 30px;
  }
  
  /* Shapes - Reduce or hide on mobile */
  .shape {
    transform: scale(0.7);
  }
  
  .shape-3 {
    display: none;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  /* Hero Section */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Cards and Features */
  .feature-card,
  .service-card,
  .pricing-card,
  .contact-form {
    padding: 20px 15px;
  }
  
  /* Reviews Slider - adjust spacing */
  .review-card {
    padding: 20px 15px;
    margin: 10px 5px;
  }
  
  /* Footer spacing */
  footer {
    padding: 40px 0 20px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  /* Hero Section */
  .hero-title {
    font-size: 3rem;
  }
  
  /* Service Cards - Ensure consistent heights */
  .services .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .services .col-md-6 {
    display: flex;
  }
  
  .service-card {
    width: 100%;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .swiper-container {
    --swiper-autoplay-delay: 0;
  }
  
  .shape {
    animation: none !important;
  }
}

/* Specific adjustments for the contact form on smaller screens */
@media (max-width: 767px) {
  .contact-form {
    padding: 25px 15px;
  }
  
  .form-check {
    padding-left: 2rem;
  }
  
  /* Improve form readability on small screens */
  .form-control {
    font-size: 16px; /* Prevents zoom on iPhone */
  }
}

/* Gallery grid adjustments */
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensuring proper spacing in the FAQs on smaller screens */
@media (max-width: 767px) {
  .accordion-header {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .accordion-content-inner {
    padding: 0 0 1rem;
  }
}

/* Blog card adjustments for mobile */
@media (max-width: 767px) {
  .blog-card-img {
    height: 180px;
  }
}

/* Ensuring slider doesn't cause horizontal overflow on mobile */
@media (max-width: 767px) {
  .swiper-container {
    padding: 0 10px;
  }
}

/* Space page adjustments */
@media (max-width: 767px) {
  #space {
    min-height: 60vh;
  }
} 