/* Responsive Design - Mobile First Approach */

/* Base Mobile Styles (already defined in main.css) */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: var(--font-size-5xl);
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    padding-top: 120px;
  }
  
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .navbar-brand {
    font-size: var(--font-size-2xl);
  }
  
  .hero-section h1 {
    font-size: 3.57rem;
  }
  
  .feature-card {
    margin-bottom: 0;
  }
  
  .timeline-item {
    width: 45%;
  }
  
  .timeline-item:nth-child(odd) {
    margin-left: 0;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 55%;
  }
  
  .process-step {
    margin-bottom: var(--spacing-xl);
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .hero-section h1 {
    font-size: 4rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 var(--spacing-md);
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .feature-icon-lg {
    font-size: 3.61rem;
  }
  
  .service-image {
    height: 250px;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .team-card {
    padding: var(--spacing-lg);
  }
  
  .process-step {
    margin-bottom: 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section h1 {
    font-size: 4.60rem;
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    padding-top: 140px;
  }
  
  .feature-card {
    padding: var(--spacing-2xl);
  }
  
  .service-content {
    padding: var(--spacing-2xl);
  }
  
  .price-card {
    padding: var(--spacing-2xl);
  }
  
  .contact-form {
    padding: var(--spacing-2xl);
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-section h1 {
    font-size: 5rem;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
}

/* Mobile-specific styles */
@media (max-width: 767.98px) {
  .navbar-brand {
    font-size: var(--font-size-lg);
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    padding-top: 80px;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
  }
  
  .section-padding {
    padding: var(--spacing-2xl) 0;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .career-card,
  .case-card,
  .blog-card,
  .info-card {
    margin-bottom: var(--spacing-lg);
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: calc(100% - 40px);
    margin-left: 40px;
  }
  
  .timeline-item::before {
    left: -30px;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 40px;
  }
  
  .reviews-slider {
    grid-template-columns: 1fr;
  }
  
  .team-photo {
    width: 60px;
    height: 60px;
  }
  
  .team-card {
    margin-bottom: var(--spacing-md);
  }
  
  .process-step {
    margin-bottom: var(--spacing-lg);
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  .breadcrumb-nav {
    margin-top: 60px;
  }
  
  .space-content {
    padding: 80px 0 var(--spacing-2xl);
  }
  
  .feature-item {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
  
  .feature-icon-lg {
    font-size: var(--font-size-2xl);
  }
  
  /* Stack feature items vertically on mobile */
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-item .feature-icon-lg {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }
}

/* Tablet-specific styles */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .service-image {
    height: 200px;
  }
  
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .breadcrumb-nav,
  .footer-section {
    display: none;
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    padding-top: 0;
  }
  
  .section-padding {
    padding: var(--spacing-lg) 0;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .career-card,
  .case-card,
  .blog-card,
  .info-card,
  .review-card {
    border: 1px solid #b5b5b5;
    break-inside: avoid;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-size: 50% 50%;
  }
}

/* Orientation-specific styles */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    padding-top: 60px;
    min-height: 70vh;
  }
  
  .section-padding {
    padding: var(--spacing-xl) 0;
  }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .career-card:hover,
  .case-card:hover,
  .blog-card:hover,
  .info-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}



/* Container max-widths for different screen sizes */
@media (max-width: 575.98px) {
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
}

/* Grid adjustments for different screen sizes */
@media (max-width: 767.98px) {
  .row.g-4 > * {
    margin-bottom: var(--spacing-lg);
  }
  
  .reviews-slider {
    gap: var(--spacing-md);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .reviews-slider {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .reviews-slider {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Navigation adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-sm) 0;
    margin: 0;
  }
}

/* Footer adjustments */
@media (max-width: 767.98px) {
  .footer-section .row > div {
    margin-bottom: var(--spacing-lg);
    text-align: center;
  }
  
  .footer-section ul {
    display: inline-block;
  }
}

/* Contact form adjustments */
@media (max-width: 575.98px) {
  .contact-form .row .col-md-6 {
    margin-bottom: var(--spacing-md);
  }
}

/* Gallery adjustments */
@media (max-width: 575.98px) {
  .gallery-section .col-6 {
    margin-bottom: var(--spacing-sm);
  }
}

/* Feature items responsive behavior */
@media (max-width: 991.98px) {
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-item .ms-4 {
    margin-left: 0 !important;
    margin-top: var(--spacing-md);
  }
} 