/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Header */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section .display-2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-section h3 {
        font-size: 1.2rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .hero-shapes .shape-1,
    .hero-shapes .shape-2,
    .hero-shapes .shape-3 {
        display: none;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Service Cards */
    .service-card {
        margin-bottom: 2rem;
    }
    
    .service-image {
        height: 150px;
    }
    
    /* Price Cards */
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Team Members */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Reviews */
    .review-card {
        margin-bottom: 1rem;
    }
    
    /* Gallery */
    .gallery-image {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    /* Footer */
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    .hero-section .display-2 {
        font-size: 2.5rem;
    }
    
    /* Service cards in 2 columns */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Gallery - 2 columns */
    .gallery-image {
        height: 220px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navbar */
    .navbar-nav .nav-link {
        margin: 0 0.3rem;
    }
    
    /* Hero section */
    .hero-section .display-2 {
        font-size: 3rem;
    }
    
    /* Service cards spacing */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Gallery - 3 columns */
    .gallery-image {
        height: 230px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
    /* Hero optimizations */
    .hero-section .container {
        max-width: 1140px;
    }
    
    /* Full desktop experience */
    .gallery-image {
        height: 250px;
    }
}

/* Landscape orientation fixes */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section .display-2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        margin-bottom: 2rem;
    }
}

/* Swiper responsive */
@media (max-width: 768px) {
    .reviews-swiper {
        padding: 1rem 0;
    }
    
    .swiper-slide {
        padding: 0 0.5rem;
    }
}

/* Animations disabled for mobile to save battery */
@media (max-width: 768px) {
    .hero-shapes .shape-1,
    .hero-shapes .shape-2,
    .hero-shapes .shape-3 {
        animation: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-member:hover,
    .review-card:hover,
    .info-card:hover,
    .gallery-image:hover,
    .blog-card:hover {
        transform: none;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-member:hover,
    .review-card:hover,
    .info-card:hover,
    .gallery-image:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-image,
    .blog-image,
    .gallery-image,
    .team-photo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-shapes,
    footer,
    .btn,
    .swiper-pagination {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        min-height: auto;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .service-card,
    .price-card,
    .feature-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-shapes .shape-1,
    .hero-shapes .shape-2,
    .hero-shapes .shape-3 {
        animation: none;
    }
    
    .swiper {
        overflow: visible;
    }
    
    .swiper-wrapper {
        transform: none !important;
        display: flex;
        flex-wrap: wrap;
    }
    
    .swiper-slide {
        width: auto;
        flex: 0 0 auto;
    }
}

/* Dark mode support (if user prefers) */
@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);
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .info-card,
    .blog-card,
    .contact-form {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .accordion-body {
overflow-x: hidden;
        background: #2d2d2d;
        color: #e0e0e0;
    }
}

/* Focus management for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus,
.accordion-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .info-card,
    .blog-card {
        border: 2px solid var(--dark-gray);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced transparency for better readability */
@media (prefers-reduced-transparency: reduce) {
    .hero-bg {
        opacity: 0.1;
    }
    
    .navbar {
        backdrop-filter: none;
        background: var(--primary-color);
    }
} 