/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 80px 0 60px 0;
        min-height: 80vh;
    }
    
    .hero-section .container {
        text-align: center;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .process-step h6 {
        font-size: 0.9rem;
    }
    
    .process-step p {
        font-size: 0.8rem;
    }
    
    .team-section img {
        width: 120px;
        height: 120px;
    }
    
    /* Mobile Swiper adjustments - Disable autoplay and effects */
    .swiper {
        overflow: visible;
    }
    
    .swiper-slide {
        width: 100% !important;
    }
    
    .reviews-slider .swiper-slide {
        margin-bottom: 20px;
    }
    
    .gallery-section .col-md-3 {
        margin-bottom: 15px;
    }
    
    .contact-info {
        margin-bottom: 20px;
    }
    
    footer .col-md-4 {
        margin-bottom: 30px;
        text-align: center;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    .hero-section {
        min-height: 85vh;
        padding-top: 80px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
    }
    
    .team-section img {
        width: 130px;
        height: 130px;
    }
    
    /* Swiper mobile adjustments continue */
    .swiper-pagination {
        position: relative;
        margin-top: 20px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 90vh;
        padding-top: 80px;
    }
    
    .hero-section .row {
        align-items: center;
    }
    
    .services-section .row .col-md-4:nth-child(3n+1) {
        clear: left;
    }
    
    .team-section .col-md-4:nth-child(3n+1) {
        clear: left;
    }
    
    .gallery-section .col-md-3:nth-child(4n+1) {
        clear: left;
    }
    
    /* Re-enable Swiper features for tablets */
    .swiper {
        overflow: hidden;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-section .container {
        max-width: 1200px;
    }
    
    .navbar-nav .nav-link {
        margin: 0 10px;
    }
    
    .services-section .card {
        transition: all 0.4s ease;
    }
    
    .team-section img {
        width: 150px;
        height: 150px;
    }
    
    /* Enhanced hover effects for larger screens */
    .card:hover {
        transform: translateY(-15px);
    }
    
    .gallery-section img:hover {
        transform: scale(1.08);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section .container {
        max-width: 1200px;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
    
    .services-section .col-md-4 {
        padding: 0 20px;
    }
    
    .team-section img {
        width: 180px;
        height: 180px;
    }
}

/* Mobile-specific Swiper Overrides */
@media (max-width: 767.98px) {
    /* Disable autoplay on mobile */
    .swiper[data-swiper-autoplay] {
        --swiper-autoplay-delay: 0;
    }
    
    /* Disable complex effects on mobile */
    .swiper-slide {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Simplified pagination for mobile */
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    /* Stack cards vertically on mobile */
    .reviews-slider .card {
        margin-bottom: 15px;
    }
    
    /* Ensure touch scrolling works properly */
    .swiper-wrapper {
        display: block;
    }
    
    .swiper-slide {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .reviews-slider .swiper-slide {
        width: 50%;
    }
    
    .services-section .col-md-4 {
        margin-bottom: 30px;
    }
}

/* Navigation mobile improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(26, 35, 50, 0.95);
        margin-top: 10px;
        border-radius: 10px;
        padding: 20px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Form improvements for mobile */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-lg {
        width: 100%;
        margin-top: 10px;
    }
}

/* Gallery responsive improvements */
@media (max-width: 575.98px) {
    .gallery-section .col-md-3 {
        padding: 5px;
    }
    
    .gallery-section img {
        border-radius: 5px;
    }
}

/* FAQ mobile improvements */
@media (max-width: 767.98px) {
    .accordion-button {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .accordion-body {
  overflow-x: hidden;
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* Footer responsive adjustments */
@media (max-width: 767.98px) {
    footer .container {
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 40px;
    }
    
    footer h5 {
        margin-bottom: 15px;
    }
    
    footer ul {
        list-style: none;
        padding: 0;
    }
    
    footer ul li {
        margin: 10px 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .swiper-pagination,
    footer {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .container {
        max-width: 100%;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: 50% 50%;
    }
    
    .gallery-section img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-section .container {
        padding-top: 0;
    }
} 