/* Responsive CSS - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .info-card,
    .blog-card,
    .career-card,
    .case-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .process-step,
    .timeline-item {
        padding: 1.5rem;
    }
    
    .timeline::before {
        left: 1.5rem;
    }
    
    .timeline-item {
        margin-left: 3rem;
    }
    
    .timeline-item::before {
        left: -3rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .gallery-section img {
        height: 150px;
    }
    
    .blog-card img,
    .case-card img,
    .service-card .card-img-top {
        height: 150px;
    }
    
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1.0rem; }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item {
        margin-left: 4rem;
    }
    
    .timeline-item::before {
        left: -4rem;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .service-card .card-img-top,
    .blog-card img,
    .case-card img {
        height: 180px;
    }
    
    .gallery-section img {
        height: 180px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 1.7rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .price-card.featured {
        transform: scale(1.01);
    }
    
    .timeline-item {
        margin-left: 3rem;
    }
    
    .timeline-item::before {
        left: -3rem;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    .service-card .card-img-top,
    .blog-card img,
    .case-card img {
        height: 200px;
    }
    
    .gallery-section img {
        height: 200px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: var(--font-size-h1);
    }
    
    .hero-section h2 {
        font-size: var(--font-size-h2);
    }
    
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.7rem;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .info-card,
    .blog-card,
    .career-card,
    .case-card {
        padding: 2.5rem;
    }
    
    .contact-form {
        padding: 3.5rem;
    }
}

/* Swiper Responsive Adjustments */
@media (max-width: 767.98px) {
    .reviews-swiper {
        padding: 1rem 0;
    }
    
    .swiper-slide {
        width: 100% !important;
    }
    
    .review-card {
        margin: 0 0.5rem;
    }
    
    /* Disable autoplay and effects on mobile as required */
    .swiper {
        --swiper-navigation-size: 0;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
}

/* Grid Responsive Adjustments */
@media (max-width: 575.98px) {
    .row > * {
        margin-bottom: 1rem;
    }
    
    .col-6 {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .gallery-section .col-6 {
        width: 50%;
    }
}

/* Form Responsive */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .form-control {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    .footer-section .col-md-3,
    .footer-section .col-md-6 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Typography Responsive Scaling */
@media (max-width: 575.98px) {
    .text-center h2,
    .text-center h3 {
        margin-bottom: 0.5rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Card Hover Effects - Disable on Touch Devices */
@media (hover: none) {
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .career-card:hover,
    .case-card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
    
    .gallery-section img:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar {
        backdrop-filter: blur(15px);
    }
    
    .box-shadow {
        --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer-section,
    .breadcrumb-section,
    .btn,
    .swiper-pagination {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        min-height: auto !important;
    }
    
    .hero-section h1,
    .hero-section h2,
    .hero-section p {
        color: black !important;
    }
    
    body {
    overflow-x: hidden;
        padding-top: 0 !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .info-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .reviews-swiper {
        overflow: visible;
    }
    
    .swiper-wrapper {
        transform: none !important;
    }
    
    .swiper-slide {
        position: static !important;
        margin-bottom: 2rem;
    }
}

/* Dark Mode Support (if browser supports) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme as specified in requirements */
    /* This media query is included for future enhancement */
}

/* Landscape Phone Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
} 