/* Mobile-First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-decoration {
    display: none;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  h1 {
    font-size: 1.53rem;
  }
  
  h2 {
    font-size: 1.36rem;
  }
  
  h3 {
    font-size: 1.22rem;
  }
  
  .ai-card {
    padding: 1.5rem;
    margin-bottom: 1.67rem;
  }
  
  .price-card {
    padding: 1.5rem;
    margin-bottom: 1.56rem;
  }
  
  .price-featured {
    transform: none;
  }
  
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  .process-step {
    padding-left: 3rem;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .gallery-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
  }
  
  .navbar-brand {
    font-size: 1.24rem;
  }
  
  .btn-ai-primary,
  .btn-ai-secondary {
    padding: 10px 20px;
    font-size: 1.01rem;
  }
  
  .ai-stat-number {
    font-size: 2rem;
  }
  
  .analytics-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .ai-card {
    padding: 1.75rem;
  }
  
  .gallery-row {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-row {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  .process-step {
    padding-left: 4rem;
  }
}

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

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-decoration {
    width: 250px;
    height: 250px;
  }
}

/* Print Styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
  
  .hero-decoration,
  .navbar,
  .footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  .ai-card,
  .price-card,
  .faq-card {
    border: 1px solid #d7cacc;
    background: white;
    break-inside: avoid;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .ai-card,
  .price-card,
  .faq-card {
    border-width: 3px;
  }
  
  .btn-ai-primary,
  .btn-ai-secondary {
    border-width: 3px;
  }
  
  .form-control {
    border-width: 3px;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-decoration {
    animation: none;
  }
  
  .ai-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-ai-primary:hover {
    transform: none;
  }
  
  * {
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Support (optional) */

/* Orientation-specific styles */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.25rem 1rem;
  }
}

/* Focus and accessibility improvements */
@media (any-hover: none) {
  .ai-card:hover,
  .gallery-item:hover,
  .btn-ai-primary:hover,
  .btn-ai-secondary:hover {
    transform: none;
  }
}

/* Support for older browsers */
@supports not (backdrop-filter: blur(10px)) {
  .navbar {
    background: rgba(255, 255, 255, 0.98);
  }
}

@supports not (display: grid) {
  .gallery-row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .gallery-item {
    flex: 1 1 250px;
    margin: 0.5rem;
  }
} 

.hero-section h1 {
    padding-top: 175px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
