/* Voice-Controlled Cooking Assistant - Responsive Styles */

/* Mobile First Approach */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  
  /* Section padding */
  section {
    padding: 3rem 0;
  }
  
  /* Header */
  #header .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero Section */
  #hero {
    text-align: center;
    padding-top: 100px;
  }
  
  #hero .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  #hero .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  #hero .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Hide decorative shapes on mobile */
  .hero-shape {
    display: none;
  }
  
  /* Cards and components */
  .feature-card,
  .service-card,
  .price-card,
  .review-card,
  .case-study-card,
  .career-card,
  .blog-card,
  .faq-card {
    margin-bottom: 2rem;
  }
  
  /* Service cards */
  .service-card .service-image {
    height: 150px;
    font-size: 3rem;
  }
  
  /* Team photos */
  .team-member .team-photo {
    width: 150px;
    height: 150px;
    font-size: 3rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* Footer */
  #footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  /* Process steps */
  .process-step::before {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .process-step h4 {
    margin-top: 2.5rem;
  }
}

/* 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; }
  
  section {
    padding: 4rem 0;
  }
  
  #hero .hero-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card .service-image {
    height: 180px;
  }
  
  .team-member .team-photo {
    width: 180px;
    height: 180px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  section {
    padding: 4.5rem 0;
  }
  
  #hero .hero-title {
    font-size: 2.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Adjust grid layouts */
  .feature-card,
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Contact section layout */
  .contact-form {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  section {
    padding: 5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Price cards spacing */
  .price-card {
    margin-bottom: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  /* Enhanced spacing for large screens */
  section {
    padding: 6rem 0;
  }
  
  /* Hero section enhancements */
  #hero .hero-title {
    font-size: 2.75rem;
  }
  
  #hero .hero-subtitle {
    font-size: 1.375rem;
  }
  
  #hero .hero-description {
    font-size: 1.25rem;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  section {
    padding: 7rem 0;
  }
  
  /* Maximum hero size */
  #hero .hero-title {
    font-size: 3rem;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .hero-shape,
  #header,
  #footer {
    display: none;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .review-card,
  .case-study-card,
  .career-card,
  .blog-card,
  .faq-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-mint: #00b894;
    --primary-coral: #e84393;
    --primary-lavender: #6c5ce7;
    --primary-peach: #fd9644;
    --primary-sage: #00b894;
    
    --white: #ffffff;
    --light-gray: #f1f2f6;
    --gray: #2d3436;
    --dark-gray: #2d3436;
    --black: #000000;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .review-card,
  .case-study-card,
  .career-card,
  .blog-card,
  .faq-card,
  .contact-form {
    border: 2px solid var(--dark-gray);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* Focus styles for better accessibility */
@media (prefers-reduced-motion: no-preference) {
  :focus {
    outline: 2px solid var(--primary-mint);
    outline-offset: 2px;
  }
  
  .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(125, 229, 208, 0.5);
  }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .card,
  .nav-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-member .team-photo:hover,
  .case-study-card:hover,
  .career-card:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
} 

.hero-content {
    padding-top: 175px;
}