/* Responsive Styles for AI Market Sentiment Analysis Tool */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Conservative font sizes on mobile */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  /* Hero adjustments */
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-decoration {
    display: none; /* Hide decorations on small screens */
  }
  
  /* Section padding reduction */
  .section-padding {
    padding: 60px 0;
  }
  
  /* Card adjustments */
  .service-card,
  .feature-card,
  .team-card {
    padding: 1.5rem 1rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .price-card.featured {
    transform: none; /* Remove scale on mobile */
  }
  
  /* Contact form adjustments */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* No animations on mobile */
  .sal-animate {
    animation: none !important;
    transition: none !important;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team photo size reduction */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Service icon size reduction */
  .service-icon {
    font-size: 2.5rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  /* Price amount size reduction */
  .price-amount {
    font-size: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding: 80px 0;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  /* No animations on tablet portrait */
  .sal-animate {
    animation: none !important;
    transition: none !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section-padding {
    padding: 75px 0;
  }
  
  .price-card.featured {
    transform: scale(1.02); /* Reduced scale for tablet */
  }
  
  /* Conservative animations on tablet landscape */
  @media (prefers-reduced-motion: no-preference) {
    .sal-animate {
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 80px 0;
  }
  
  /* Full animations on desktop */
  @media (prefers-reduced-motion: no-preference) {
    .sal-animate {
      transition: all 0.5s ease;
    }
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .section-padding {
    padding: 100px 0;
  }
  
  /* Enhanced spacing for large screens */
  .service-card,
  .feature-card,
  .team-card {
    padding: 2.5rem 2rem;
  }
  
  .price-card {
    padding: 3rem 2.5rem;
  }
  
  .contact-form {
    padding: 3.5rem;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Height-based media queries for better mobile experience */
@media (max-height: 600px) and (max-width: 767.98px) {
  .hero-section {
    min-height: auto;
    padding: 40px 0;
  }
  
  .section-padding {
    padding: 40px 0;
  }
}

/* Landscape mobile adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }
  
  .section-padding {
    padding: 60px 0;
  }
}

/* Print styles */
@media print {
  .hero-decoration,
  .sal-animate,
  .navbar,
  .footer {
    display: none !important;
  }
  
  .section-padding {
    padding: 20px 0;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #d6c5c8;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--text-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-dark);
  }
  
  .form-control {
    border: 2px solid var(--text-dark);
  }
}

/* Reduced transparency for accessibility */
@media (prefers-reduced-transparency: reduce) {
  .hero-decoration {
    opacity: 0.3;
  }
  
  .card {
    background: white;
  }
}

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

.hero-section h1 {
    padding-top: 125px;
}