/* Responsive CSS for Voice-Controlled Meditation Assistant App */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
  }

  /* Conservative Typography for Mobile */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .navbar-brand {
    font-size: 1rem !important;
  }

  /* Hero Section Mobile */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }

  .hero-section::before,
  .hero-section::after {
    display: none; /* Remove decorative elements on mobile */
  }

  /* Card Spacing */
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .casestudy-card,
  .process-step,
  .timeline-item,
  .career-card,
  .coreinfo-card,
  .blog-card,
  .faq-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }

  /* Contact Form Mobile */
  .contact-form {
    padding: 2rem 1rem;
  }

  .btn-primary {
    width: 100%;
    margin-top: 1rem;
  }

  /* Section Padding */
  .section,
  .hero-section,
  .about-section,
  .services-section,
  .features-section,
  .priceplan-section,
  .team-section,
  .reviews-section,
  .casestudy-section,
  .process-section,
  .timeline-section,
  .career-section,
  .coreinfo-section,
  .contact-section,
  .blog-section,
  .faq-section,
  .gallery-section {
    padding: 3rem 0;
  }

  /* Team Photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }

  /* Step Numbers */
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Timeline Mobile */
  .timeline-item::before {
    display: none;
  }

  /* Gallery Mobile */
  .gallery-item img {
    height: 200px;
  }

  /* Footer Mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }

  .footer-bottom {
    padding-top: 1rem;
    margin-top: 1rem;
  }

  /* Price Card Mobile */
  .price-card.featured {
    transform: none;
  }

  .price-card.featured::before {
    top: -8px;
    font-size: 0.7rem;
    padding: 0.3rem 1rem;
  }

  /* Disable Hover Effects on Mobile */
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-card:hover,
  .casestudy-card:hover,
  .career-card:hover,
  .coreinfo-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-section {
    min-height: 85vh;
  }

  .section {
    padding: 4rem 0;
  }

  .team-photo {
    width: 130px;
    height: 130px;
  }

  .gallery-item img {
    height: 220px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero-section {
    min-height: 90vh;
  }

  .section {
    padding: 4.5rem 0;
  }

  .team-photo {
    width: 140px;
    height: 140px;
  }

  .gallery-item img {
    height: 230px;
  }

  /* Tablet specific adjustments */
  .contact-form {
    padding: 2.5rem;
  }

  .price-card {
    padding: 2rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }

  .team-photo {
    width: 145px;
    height: 145px;
  }

  .gallery-item img {
    height: 240px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }

  .container {
    max-width: 1140px;
  }

  .team-photo {
    width: 150px;
    height: 150px;
  }

  .gallery-item img {
    height: 250px;
  }
}

/* Print Styles */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .navbar,
  .footer,
  .gallery-section {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-soft-blue: #006bc2;
    --primary-lavender: #7945d6;
    --primary-mint: #086600;
    --primary-peach: #b56400;
    --primary-sage: #527e00;
    
    --text-primary: #000000;
    --text-secondary: #3c3a3a;
    --border-color: #000000;
  }

  .btn-primary {
    background-color: #000000;
    border-color: #000000;
    color: #FFFFFF;
  }

  .btn-primary:hover {
    background-color: #212121;
    border-color: #2a2a2a;
  }
}

/* Reduced Motion Global Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  .gallery-item:hover,
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-card:hover,
  .casestudy-card:hover,
  .career-card:hover,
  .coreinfo-card:hover,
  .blog-card:hover {
    transform: none;
  }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
.form-control:focus,
.btn:focus {
  outline: 2px solid var(--dark-blue);
  outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--dark-blue);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  transition: top 0.3s;
  z-index: 1000;
}

.skip-to-main:focus {
  top: 6px;
}

/* Dark Mode Support */

.hero-content {
    padding-top: 100px;
}