/* Responsive Styles - Mobile First Approach */

/* Base mobile styles (already defined in main.css) */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
  
  .hero-content h1 {
    font-size: var(--font-4xl);
  }
  
  .section-title h2 {
    font-size: var(--font-3xl);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container-md {
    max-width: 720px;
  }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: var(--font-xl);
  }
  
  /* Hero section */
  #hero {
    min-height: 100vh;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content .lead {
    font-size: var(--font-xl);
  }
  
  /* Service cards grid */
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Team photos */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Contact form layout */
  .contact-form {
    padding: var(--spacing-2xl);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
  
  /* Typography scaling */
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
  
  /* Grid improvements */
  .feature-card,
  .service-card,
  .pricing-card,
  .team-card {
    margin-bottom: var(--spacing-xl);
  }
  
  /* Process steps horizontal layout */
  .process-step {
    text-align: center;
  }
  
  /* Gallery masonry effect */
  .gallery-item:nth-child(3n+2) .gallery-image {
    height: 300px;
  }
  
  /* FAQ two-column layout */
  .faq-container .row .col-lg-6:nth-child(odd) {
    padding-right: var(--spacing-md);
  }
  
  .faq-container .row .col-lg-6:nth-child(even) {
    padding-left: var(--spacing-md);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  /* Hero section full height */
  #hero {
    min-height: 100vh;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  /* Larger spacing for desktop */
  section {
    padding: var(--spacing-2xl) 0 4rem;
  }
  
  .section-title {
    margin-bottom: 4rem;
  }
  
  /* Service cards larger spacing */
  .service-card {
    padding: var(--spacing-2xl);
  }
  
  .pricing-card {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  /* Team layout */
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  /* Contact section layout */
  .contact-form,
  .contact-info {
    padding: var(--spacing-2xl);
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-content h1 {
    font-size: 4.5rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
}

/* Mobile-specific styles (up to 767.98px) */
@media (max-width: 767.98px) {
  /* Disable animations on mobile per requirements */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Conservative mobile typography */
  .hero-content h1 {
    font-size: var(--font-3xl);
    line-height: 1.1;
  }
  
  .hero-content .lead {
    font-size: var(--font-base);
  }
  
  .section-title h2 {
    font-size: var(--font-2xl);
  }
  
  /* Mobile navigation */
  .navbar-brand {
    font-size: var(--font-base);
  }
  
  .navbar-toggler {
    border: none;
    padding: var(--spacing-xs);
  }
  
  .navbar-collapse {
    margin-top: var(--spacing-sm);
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-sm) 0;
    text-align: center;
  }
  
  /* Mobile hero adjustments */
  #hero {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
    text-align: center;
  }
  
  #hero::before {
    display: none;
  }
  
  /* Mobile section spacing */
  section {
    padding: var(--spacing-xl) 0;
  }
  
  .section-title {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Mobile cards */
  .feature-card,
  .service-card,
  .pricing-card,
  .team-card,
  .review-card,
  .case-card,
  .career-card,
  .info-card,
  .blog-card {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
  }
  
  /* Mobile service images */
  .service-image {
    height: 180px;
  }
  
  /* Mobile team photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Mobile process steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-lg);
  }
  
  /* Mobile contact form */
  .contact-form,
  .contact-info {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
  }
  
  /* Mobile gallery */
  .gallery-image {
    height: 200px;
  }
  
  /* Mobile FAQ */
  .faq-card {
    padding: var(--spacing-md);
  }
  
  /* Mobile buttons */
  .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .btn-group .btn {
    width: auto;
  }
  
  /* Mobile footer */
  #footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: var(--spacing-lg);
  }
}

/* Tablet specific styles (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Tablet hero */
  .hero-content h1 {
    font-size: 3.25rem;
  }
  
  /* Tablet service grid */
  .service-card {
    height: auto;
    min-height: 400px;
  }
  
  /* Tablet team layout */
  .team-card {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Tablet pricing cards */
  .pricing-card {
    margin-bottom: var(--spacing-lg);
    min-height: 500px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  /* Adjust for retina displays */
  .feature-icon,
  .process-number,
  .contact-icon {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: var(--spacing-md) 0;
  }
  
  .hero-content h1 {
    font-size: var(--font-3xl);
  }
  
  section {
    padding: var(--spacing-lg) 0;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  img {
    max-width: 100% !important;
  }
  
  .navbar,
  #footer,
  .btn {
    display: none !important;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Focus styles for accessibility */
@media not (prefers-reduced-motion: reduce) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-melody);
    outline-offset: 2px;
  }
}

/* Dark mode support (optional) */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .sal-animate,
  .feature-card:hover,
  .service-card:hover,
  .pricing-card:hover,
  .team-card:hover,
  .case-card:hover,
  .career-card:hover,
  .info-card:hover,
  .blog-card:hover,
  .gallery-image:hover {
    transform: none !important;
    transition: none !important;
  }
  
  .btn:hover {
    transform: none !important;
  }
}

/* Container max-widths for consistency */
@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container,
  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm {
    max-width: 1320px;
  }
} 

body {
    overflow-x: hidden;
}