/* Responsive Styles for Upcycled Textile Art Gallery */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  /* Hero Section */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative-shape {
    display: none; /* Hide decorative shapes on mobile */
  }
  
  /* Sections padding */
  .section {
    padding: 3rem 0;
  }
  
  #about,
  #services,
  #features,
  #priceplan,
  #team,
  #reviews,
  #casestudy,
  #process,
  #timeline,
  #career,
  #coreinfo,
  #contact,
  #blog,
  #faq,
  #gallery {
    padding: 3rem 0;
  }
  
  /* Cards spacing */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .process-step,
  .career-card,
  .coreinfo-card,
  .blog-card,
  .additional-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  /* Price cards */
  .price-card.featured {
    transform: none;
  }
  
  /* Team photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Step numbers */
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Timeline items */
  .timeline-item {
    margin-bottom: 1.5rem;
  }
  
  .timeline-item::before {
    display: none;
  }
  
  /* No animations on mobile to respect reduced motion */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .case-card:hover,
  .process-step:hover,
  .career-card:hover,
  .coreinfo-card:hover,
  .blog-card:hover,
  .additional-card:hover,
  .gallery-item:hover,
  .btn-primary:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  /* Reduce animations on smaller screens */
  .feature-card:hover,
  .service-card:hover,
  .case-card:hover,
  .career-card:hover,
  .coreinfo-card:hover,
  .blog-card:hover,
  .additional-card:hover {
    transform: translateY(-3px);
  }
  
  .price-card:hover {
    transform: translateY(-5px);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  /* Adjust hero for tablets */
  #hero {
    min-height: 90vh;
  }
  
  /* Timeline styling for tablets */
  .timeline-item {
    margin-left: 2rem;
  }
  
  .timeline-item::before {
    display: block;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full animations and effects for desktop */
  .hero-decorative-shape {
    display: block;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  /* Enhanced spacing for large screens */
  #about,
  #services,
  #features,
  #priceplan,
  #team,
  #reviews,
  #casestudy,
  #process,
  #timeline,
  #career,
  #coreinfo,
  #contact,
  #blog,
  #faq,
  #gallery {
    padding: 6rem 0;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on retina displays */
  .feature-icon,
  .team-photo,
  .step-number {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  .hero-decorative-shape,
  .btn,
  #footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .section {
    page-break-inside: avoid;
    margin-bottom: 2rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Ensure hover states still provide visual feedback */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .case-card:hover,
  .career-card:hover,
  .coreinfo-card:hover,
  .blog-card:hover,
  .additional-card:hover {
    box-shadow: 0 10px 30px rgba(122, 143, 107, 0.2);
    transform: none;
  }
  
  .btn-primary:hover {
    background-color: var(--terracotta-dark);
    transform: none;
  }
  
  .gallery-item:hover {
    opacity: 0.8;
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --sage-dark: #2d3a26;
    --terracotta-dark: #8b5a2b;
    --dusty-blue-dark: #4a6b7a;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .process-step,
  .career-card,
  .coreinfo-card,
  .blog-card,
  .faq-card,
  .contact-form,
  .contact-info,
  .additional-card {
    border: 2px solid var(--sage-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--terracotta-dark);
  }
}

/* Focus management for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--terracotta-dark);
    outline-offset: 2px;
  }
}

/* Container adjustments for different screen sizes */
@media (min-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 992px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
} 