/* ========================================================================
   RESPONSIVE CSS - Mobile-First Responsive Design
   Bootstrap 5 Breakpoints: xs (<576px), sm (≥576px), md (≥768px), lg (≥992px), xl (≥1200px), xxl (≥1400px)
   ======================================================================== */

/* Base Mobile Styles (default) */
/* Already defined in main.css for mobile-first approach */

/* Disable animations for mobile devices */
@media (max-width: 767.98px) {
  [data-sal],
  [data-sal-delay],
  [data-sal-duration] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    visibility: visible !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2.75rem;
  }
  
  .section-subtitle {
    font-size: 1.375rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .section-subtitle {
    font-size: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.75rem;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .review-card {
    padding: 2.5rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 3.5rem;
  }
  
  .section-subtitle {
    font-size: 1.75rem;
  }
  
  .navbar-brand {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 3rem;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  .review-card {
    padding: 3rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .decorative-shape {
    display: block;
  }
  
  .shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .shape-2 {
    width: 200px;
    height: 200px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 5rem;
  }
  
  .hero-subtitle {
    font-size: 2.25rem;
  }
  
  .section-title {
    font-size: 4rem;
  }
  
  .section-subtitle {
    font-size: 2rem;
  }
  
  .shape-1 {
    width: 300px;
    height: 300px;
  }
  
  .shape-2 {
    width: 250px;
    height: 250px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 5.5rem;
  }
  
  .hero-subtitle {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 4.5rem;
  }
  
  .section-subtitle {
    font-size: 2.25rem;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 1rem 0;
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .decorative-shape {
    display: none;
  }
  
  .btn-primary,
  .btn-outline-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-header {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .timeline-item {
    margin-left: 1rem;
  }
  
  .timeline-item::before {
    left: -1rem;
  }
  
  .process-step {
    padding: 1.5rem;
  }
  
  .price-plan {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .price-plan-price {
    font-size: 2.5rem;
  }
  
  .case-study {
    padding: 1.5rem;
  }
  
  .career-position {
    padding: 1rem;
  }
  
  .core-info-item {
    padding: 1rem;
  }
  
  .blog-post-content {
    padding: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Tablet landscape adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .review-card {
    margin-bottom: 2rem;
  }
  
  .price-plan {
    margin-bottom: 2rem;
  }
  
  .case-study {
    margin-bottom: 2rem;
  }
  
  .career-position {
    margin-bottom: 1.5rem;
  }
  
  .core-info-item {
    margin-bottom: 1.5rem;
  }
  
  .blog-post {
    margin-bottom: 2rem;
  }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section {
    background-attachment: fixed;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .decorative-shape {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
    background: white;
    color: black;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .btn-primary,
  .btn-outline-primary {
    display: none;
  }
  
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Dark mode support */

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-1: #000080;
    --primary-2: #800080;
    --primary-3: #008080;
    --primary-4: #808000;
    --primary-5: #800000;
    --text-primary: #000000;
    --text-secondary: #333333;
    --bg-light: #ffffff;
    --bg-lighter: #ffffff;
  }
  
  .card,
  .service-card,
  .review-card,
  .contact-form,
  .faq-card,
  .price-plan,
  .case-study,
  .career-position,
  .core-info-item,
  .blog-post,
  .process-step,
  .timeline-item {
    border: 2px solid var(--text-primary);
  }
  
  .btn-primary,
  .btn-outline-primary {
    border: 2px solid var(--text-primary);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-section {
    background-attachment: scroll;
  }
  
  .card:hover,
  .service-card:hover,
  .review-card:hover,
  .blog-post:hover,
  .price-plan:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: none;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:focus,
  .btn-outline-primary:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-1);
    outline-offset: 2px;
  }
}

/* Container max-width adjustments for better readability */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Ensure proper spacing on very small screens */
@media (max-width: 380px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .service-card,
  .review-card,
  .contact-form {
    padding: 1rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .price-plan-price {
    font-size: 2rem;
  }
}

/* Additional production-ready enhancements */
@media (max-width: 575.98px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .navbar-toggler {
    padding: 0.5rem;
    border: none;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  }
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: -webkit-fill-available;
  }
}

/* Better scrolling for mobile */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
}

.hero-content {
    padding-top: 175px;
}