/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    /* Disable autoplay and effects for Swiper on mobile */
    .swiper-wrapper {
        transition-duration: 0ms;
    }
    
    .swiper-slide {
        transition: none;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    .service-card {
        padding: 2.5rem;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 6rem 0;
    }
}

/* Disable animations on mobile devices less than 768px */
@media (max-width: 767.98px) {
    .swiper-container {
        overflow: hidden;
    }
    
    .swiper-wrapper {
        transform: none !important;
        transition: none !important;
    }
    
    .swiper-slide {
        float: left;
        width: 100%;
        transition: none !important;
        transform: none !important;
    }
    
    /* Disable hover effects on touch devices */
    .service-card:hover,
    .blog-card:hover,
    .gallery-item:hover img {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .swiper-pagination,
    .swiper-navigation {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .service-card,
    .blog-card,
    .testimonial-slide {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero-section::before {
        opacity: 0.1;
    }
    
    .service-card,
    .blog-card,
    .testimonial-slide,
    .contact-form {
        border: 2px solid var(--dark-color);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .swiper-wrapper,
    .swiper-slide {
        transition: none !important;
        animation: none !important;
    }
    
    .service-card,
    .blog-card,
    .btn-primary,
    .gallery-item img {
        transition: none !important;
    }
    
    .hero-section::before {
        animation: none !important;
    }
} 