/* Responsive Styles for 3D Home Décor Try-On App */

/* Large screens and up (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
    padding-top: 225px;
}
  
  .services-card {
    margin-bottom: 2rem;
  }
}

/* Medium screens (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
    padding-top: 225px;
}
  
  .services-card {
    margin-bottom: 1.5rem;
  }
  
  .team-member-img {
    height: 220px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
}

/* Small screens and tablets (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 1.5rem 0;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2rem;
    padding-top: 225px;
}
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .services-card {
    margin-bottom: 1.5rem;
  }
  
  .team-member-img {
    height: 200px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .price-plan-card {
    margin-bottom: 1.5rem;
  }
  
  .process-step {
    padding: 1.5rem 0.5rem;
  }
}

/* Extra small screens (below 576px) */
@media (max-width: 575px) {
  :root {
    --section-padding: 3rem 0;
    --container-padding: 0.75rem;
    --h1-size: 1.75rem;
    --h2-size: 1.5rem;
    --h3-size: 1.25rem;
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Conservative navbar adjustments */
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    text-align: center;
  }
  
  /* Hero section mobile optimization */
  .hero-section {
    min-height: 60vh;
    padding: 1rem 0;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    padding-top: 225px;
}
  
  .hero-section p {
    font-size: 0.95rem;
  }
  
  /* NO animations when scrolling in mobile resolution */
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Services section mobile */
  .services-card {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  .services-price {
    font-size: 1.5rem;
  }
  
  /* Team section mobile */
  .team-member-card {
    margin-bottom: 1rem;
  }
  
  .team-member-img {
    height: 180px;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Price plan mobile */
  .price-plan-card {
    margin-bottom: 1rem;
    padding: 1.5rem 1rem;
  }
  
  .price-plan-price {
    font-size: 2rem;
  }
  
  /* Features mobile */
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* FAQ mobile */
  .faq-card {
    margin-bottom: 0.75rem;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  /* Reviews mobile */
  .review-card {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  /* Process mobile */
  .process-step {
    padding: 1rem 0.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Career mobile */
  .career-card {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  /* Core info mobile */
  .coreinfo-item {
    padding: 1rem;
  }
  
  .coreinfo-icon {
    font-size: 2.5rem;
  }
  
  /* Blog mobile */
  .blog-card {
    margin-bottom: 1rem;
  }
  
  /* Contact form mobile */
  .form-control {
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Footer mobile */
  .footer-section {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 1.5rem;
  }
}

/* Landscape orientation on mobile devices */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 50vh;
    padding: 1rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.5rem;
    padding-top: 225px;
}
  
  section {
    padding: 2rem 0;
  }
}

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

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .services-card:hover,
  .team-member-card:hover,
  .gallery-item:hover img,
  .price-plan-card:hover,
  .casestudy-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .btn {
    min-height: 44px; /* Touch target size */
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Print styles */
@media print {
  .hero-section::before,
  .hero-section::after,
  .navbar,
  .footer {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
    color: black;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}

/* Dark mode support */

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* NO animations when scrolling in mobile resolution - already covered above */
  
  .services-card,
  .team-member-card,
  .gallery-item img,
  .price-plan-card,
  .casestudy-card,
  .blog-card {
    transition: none;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
}

/* Focus indicators for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Improved contrast for links */
@media (prefers-contrast: high) {
  a {
    text-decoration: underline;
  }
  
  .btn {
    border-width: 2px;
  }
}

/* Reduced data usage */
@media (prefers-reduced-data) {
  .hero-section::before,
  .hero-section::after,
  .gallery-item img {
    display: none;
  }
}

/* Additional mobile optimizations for better UX */
@media (max-width: 575px) {
  /* Ensure text remains readable on small screens */
  h1, .h1 { font-size: 1.75rem; line-height: 1.2; }
  h2, .h2 { font-size: 1.5rem; line-height: 1.3; }
  h3, .h3 { font-size: 1.25rem; line-height: 1.4; }
  h4, .h4 { font-size: 1.125rem; line-height: 1.4; }
  h5, .h5 { font-size: 1rem; line-height: 1.5; }
  h6, .h6 { font-size: 0.95rem; line-height: 1.5; }
  
  p, .p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Improve touch targets */
  .navbar-toggler {
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Stack columns on mobile */
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
}


body {
    overflow-x: hidden;
}