/* ===================================
   RESPONSIVE STYLES
   ================================== */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    /* Disable autoplay and effects for tablets */
    .swiper-slide {
        transition: none !important;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container-xl {
        max-width: 1320px;
    }
}

/* Mobile Navigation */
@media (max-width: 767.98px) {
    .navbar-collapse {
        background: var(--primary-dark-blue);
        margin-top: 1rem;
        border-radius: 8px;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }
    
    .team-card:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../SOU_images/hero-bg@2x.webp');
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .hero-section {
        display: none !important;
    }
    
    .section-padding {
        padding: 1rem 0;
    }
    
    .service-card,
    .team-card,
    .review-card {
        box-shadow: none;
        border: 1px solid var(--gray);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .team-card,
    .gallery-item,
    .btn-primary {
        transition: none !important;
    }
    
    .swiper-slide {
        transition: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --dark-gray: #e0e0e0;
        --black: #ffffff;
    }
    
    body {
  overflow-x: hidden;
        background-color: var(--white);
        color: var(--dark-gray);
    }
    
    .service-card,
    .team-card,
    .review-card,
    .contact-form,
    .faq-item,
    .element-item {
        background: var(--light-gray);
        border: 1px solid #404040;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}

/* Ultra-wide Screens */
@media (min-width: 1920px) {
    .container-fluid {
        max-width: 1800px;
        margin: 0 auto;
    }
}

/* Mobile Specific Swiper Adjustments */
@media (max-width: 767.98px) {
    .swiper-container {
        overflow: visible;
    }
    
    .swiper-slide {
        margin-bottom: 1rem;
    }
    
    /* Disable autoplay and effects on mobile */
    .swiper-container[data-swiper-autoplay] {
        --swiper-autoplay-delay: 0;
    }
} 