/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    :root {
        --font-size-h1: 1.75rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.25rem;
        --navbar-brand-size: 1.1rem;
    }
    
    /* Hero section */
    .hero-section {
  padding-top: 50px;
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.77rem;
        margin-bottom: 1.23rem;
    }
    
    .hero-section h4 {
        font-size: 1.23rem;
    }
    
    /* Cards */
    .feature-card, .service-card, .price-card {
        padding: 1.5rem;
        margin-bottom: 1.57rem;
    }
    
    /* Team photos */
    .team-photo {
        width: 60px;
        height: 60px;
    }
    
    /* Timeline - vertical layout */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }
    
    .timeline-item .timeline-content::after {
        left: -10px !important;
        right: auto !important;
        border-right-color: var(--color-white) !important;
        border-left-color: transparent !important;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.23rem;
    }
    
    /* Contact form */
    .contact-form .row .col-md-6 {
        margin-bottom: 1.23rem;
    }
    
    /* Gallery images */
    .gallery-img {
        height: 150px;
        margin-bottom: 1.23rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2.09rem;
    }
    
    /* Price cards */
    .price-card.featured {
        transform: none;
        margin-bottom: 2.09rem;
    }
    
    /* Disable autoplay and effects for Swiper on mobile */
    .swiper {
        overflow: hidden;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.11rem;
    }
    
    .hero-section h4 {
        font-size: 1.23rem;
    }
    
    /* Cards in 2 columns */
    .col-6 {
        padding: 0.5rem;
    }
    
    .gallery-img {
        height: 180px;
    }
    
    /* Team layout */
    .team-member {
        margin-bottom: 2.09rem;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 3rem;
        padding-right: 1rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Disable Swiper autoplay and effects */
    .swiper-wrapper {
        transform: none !important;
    }
    
    /* Hero section */
    .hero-section {
  padding-top: 50px;
        padding: 4rem 0;
    }
    
    /* Services layout */
    .service-card {
        margin-bottom: 2.09rem;
    }
    
    /* Timeline - still vertical on medium screens */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 4rem;
        padding-right: 1rem;
    }
    
    .timeline-item .timeline-content::after {
        left: -10px;
        right: auto;
        border-right-color: var(--color-white);
        border-left-color: transparent;
    }
    
    /* Gallery */
    .gallery-img {
        height: 200px;
    }
    
    /* Team photos */
    .team-photo {
        width: 70px;
        height: 70px;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2.09rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Timeline - horizontal layout for desktop */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        width: 50%;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 2rem;
        padding-left: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 2rem;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after {
        right: -10px;
        left: auto;
        border-left-color: var(--color-white);
        border-right-color: transparent;
    }
    
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        right: auto;
        border-right-color: var(--color-white);
        border-left-color: transparent;
    }
    
    /* Hero section full height */
    .hero-section {
  padding-top: 50px;
        min-height: 100vh;
    }
    
    /* Hover effects enabled */
    .feature-card:hover,
    .service-card:hover,
    .blog-card:hover {
        transform: translateY(-5px);
    }
    
    .gallery-img:hover {
        transform: scale(1.05);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 4.18rem !important;
        padding-bottom: 4.10rem !important;
    }
    
    /* Hero section improvements */
    .hero-section h1 {
        font-size: 2.58rem;
    }
    
    .hero-section h4 {
        font-size: 1.52rem;
    }
    
    /* Service cards */
    .service-card .card-img-top {
        height: 250px;
    }
    
    /* Gallery images */
    .gallery-img {
        height: 250px;
    }
    
    /* Blog cards */
    .blog-card img {
        height: 250px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .swiper-pagination,
    .contact-form,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0;
    }
}

/* High DPI (Retina) Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
  padding-top: 50px;
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.11rem;
    }
}

/* Accessibility and Focus States */
@media (max-width: 767.98px) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Improved spacing for touch interfaces */
    .accordion-button {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1.57rem;
    }
}

/* Swiper Responsive Behavior */
@media (max-width: 767.98px) {
    .swiper {
        padding-bottom: 2.06rem;
    }
    
    .swiper-slide {
        width: 100%;
    }
    
    /* Disable autoplay on mobile */
    .swiper[data-swiper-autoplay] {
        --swiper-autoplay-delay: 0;
    }
}

@media (min-width: 768px) {
    .swiper-slide {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .swiper-slide {
        width: 33.333%;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .swiper {
        --swiper-autoplay-delay: 0;
    }
    
    .timeline-item,
    .feature-card,
    .service-card,
    .gallery-img {
        transform: none !important;
    }
    
    .hero-section::before {
        animation: none !important;
    }
} 