/* Responsive Styles for Rooftop Cinema Template */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Extra Large devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-section h1 {
    font-size: 3rem;
    padding-top: 200px;
}
  
  .section-padding {
    padding: 6rem 0;
  }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 2.87rem;
    padding-top: 200px;
}
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    height: 300px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.53rem;
    padding-top: 200px;
}
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-item {
    padding-left: 4rem;
  }
  
  .process-step {
    padding: 2.5rem 1.5rem;
  }
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
  .hero-section h1 {
    font-size: 2.26rem;
    padding-top: 200px;
}
  
  .navbar-brand {
    font-size: 10px !important;
    font-size: 1.44rem;
  }
  
  .service-card .card-header {
    padding: 1.25rem;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.79rem;
  }
  
  .process-number {
    width: 55px;
    height: 55px;
    font-size: 1.32rem;
  }
}

/* Extra small devices (less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.91rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.55rem;
    line-height: 1.4;
  }
  
  h3 {
    font-size: 1.26rem;
  }
  
  h4 {
    font-size: 1.16rem;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 10px !important;
    font-size: 1.30rem;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    padding: 0.75rem 1rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    padding: 1rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.77rem;
    margin-bottom: 1rem;
    padding-top: 200px;
}
  
  .hero-section::before {
    top: -5%;
    right: -20%;
    width: 60%;
    height: 110%;
  }
  
  /* Sections */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Service Cards */
  .service-card {
    margin-bottom: 1.69rem;
  }
  
  .service-card .card-header {
    padding: 1rem;
  }
  
  .service-price {
    font-size: 1.64rem;
  }
  
  /* Feature Cards */
  .feature-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.60rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.63rem;
    margin-bottom: 1rem;
  }
  
  /* Team Cards */
  .team-card {
    margin-bottom: 1.68rem;
  }
  
  .team-photo {
    height: 200px;
  }
  
  /* Review Cards */
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1.58rem;
  }
  
  /* FAQ Cards */
  .faq-card {
    padding: 1.25rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }
  
  .form-control {
    padding: 0.6rem 0.8rem;
    margin-bottom: 1rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.8rem 1rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
  }
  
  .gallery-img {
    height: 200px;
  }
  
  /* Blog Cards */
  .blog-card {
    margin-bottom: 1.66rem;
  }
  
  .blog-img {
    height: 150px;
  }
  
  /* Timeline */
  .timeline-item {
    padding-left: 2.5rem;
    margin-bottom: 1.72rem;
  }
  
  .timeline-item::before {
    width: 16px;
    height: 16px;
  }
  
  .timeline-item::after {
    left: 7px;
  }
  
  /* Process Steps */
  .process-step {
    padding: 1.5rem 0.75rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.21rem;
    margin-bottom: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 1.65rem;
  }
  
  /* Space Page */
  #space {
    min-height: 50vh;
    font-size: 2rem;
    margin: 1rem 0;
    padding: 2rem 1rem;
  }
  
  /* Utility adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Landscape orientation on small devices */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
  }
  
  #space {
    min-height: 40vh;
    font-size: 1.85rem;
  }
}

/* Print styles */
@media print {
  .hero-section::before,
  .gallery-item:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  * {
    color-adjust: exact;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .feature-card,
  .team-card,
  .review-card,
  .faq-card,
  .blog-card {
    border: 2px solid var(--text-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--text-dark);
  }
}

/* Dark mode support (if browser supports) */