/* Mobile First - Base styles for small screens */

/* Mobile Optimization */
@media (max-width: 767.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;
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    min-height: 70vh;
    padding: 3rem 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none; /* Remove decorative elements on mobile */
  }
  
  /* Section padding reduction for mobile */
  section {
    padding: 3rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  /* Services items mobile layout */
  .services-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .services-item img {
    height: 150px;
  }
  
  /* Team member adjustments */
  .team-member {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Price cards mobile layout */
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .price-card.featured {
    transform: none; /* Remove scale on mobile */
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Contact form mobile layout */
  .contact-form,
  .contact-info {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Process steps mobile */
  .process-step {
    padding: 1.5rem;
  }
  
  .process-step::before {
    top: -15px;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  /* FAQ mobile adjustments */
  .faq-card {
    padding: 1.5rem;
  }
  
  /* Review cards mobile */
  .review-card {
    padding: 1.5rem;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Feature items mobile */
  .feature-item {
    padding: 1.5rem;
  }
  
  .feature-item i {
    font-size: 2.5rem;
  }
  
  /* Case study cards mobile */
  .case-card {
    padding: 1.5rem;
  }
  
  /* Mobile no animations for scroll elements */
  .sal-animate {
    animation: none !important;
    transition: none !important;
  }
  
  /* Mobile hover states disabled */
  .services-item:hover {
    transform: none;
  }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  /* Hero section tablet adjustments */
  .hero-section {
    min-height: 80vh;
  }
  
  /* Services grid for tablet */
  .services-item {
    margin-bottom: 2rem;
  }
  
  /* Team members for tablet */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Price cards for tablet */
  .price-card {
    margin-bottom: 2rem;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  
  /* Large screens - enhanced spacing */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Enhanced hover effects for desktop */
  .services-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }
  
  .review-card:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
  }
  
  .feature-item:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
  }
}

/* Large desktop screens */
@media (min-width: 1200px) {
  
  /* Enhanced typography for large screens */
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  /* Enhanced decorative elements */
  .hero-section::before {
    width: 600px;
    height: 600px;
  }
  
  .hero-section::after {
    width: 400px;
    height: 400px;
  }
  
  /* Enhanced spacing for large screens */
  section {
    padding: 6rem 0;
  }
  
  .section-header {
    margin-bottom: 5rem;
  }
}

/* Extra large screens */
@media (min-width: 1400px) {
  
  /* Container max-width for very large screens */
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced hero for very large screens */
  .hero-section {
    padding: 5rem 0;
  }
}

/* Height-based media queries for better mobile experience */
@media (max-height: 600px) and (max-width: 767.98px) {
  
  /* Adjust hero for short mobile screens */
  .hero-section {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  /* Compact section spacing */
  section {
    padding: 2rem 0;
  }
}

/* Landscape mobile orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  
  /* Adjust hero for landscape mobile */
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  /* Compact elements for landscape */
  .section-header {
    margin-bottom: 1.5rem;
  }
  
  section {
    padding: 2.5rem 0;
  }
}

/* Print styles */
@media print {
  
  /* Hide unnecessary elements for print */
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  /* Print-friendly colors */
  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  
  /* Print typography */
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  /* Ensure content fits on page */
  section {
    padding: 1rem 0;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
  
  /* Disable 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;
  }
  
  /* Remove hover transforms */
  .services-item:hover,
  .review-card:hover,
  .feature-item:hover {
    transform: none !important;
  }
  
  /* Remove decorative animations */
  .hero-section::before,
  .hero-section::after {
    animation: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  
  /* Enhanced contrast for accessibility */
  :root {
    --primary-color: #000;
    --secondary-color: #333;
    --neutral-dark: #000;
    --neutral-light: #fff;
  }
  
  /* High contrast borders */
  .services-item,
  .review-card,
  .feature-item,
  .faq-card {
    border: 2px solid #000;
  }
  
  /* High contrast buttons */
  .btn-primary-custom,
  .btn-secondary-custom {
    background-color: #000;
    border-color: #000;
    color: #fff;
  }
}

/* Dark mode support */

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