/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --h1-size: 1.75rem;
        --h2-size: 1.5rem;
        --h3-size: 1.25rem;
        --navbar-brand-size: 1.25rem;
        --section-padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-shapes {
        display: none;
    }
    
    .service-card,
    .feature-card,
    .team-card,
    .review-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px !important;
        padding: 0.5rem 0;
    }
    
    .btn-submit {
        width: 100%;
        padding: 1rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.25rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .blob-1, .blob-2, .blob-3 {
        display: none;
    }
    
    .footer {
        text-align: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-shapes {
        width: 40%;
    }
    
    .blob-1 { width: 250px; height: 250px; }
    .blob-2 { width: 180px; height: 180px; }
    .blob-3 { width: 120px; height: 120px; }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 3rem 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-shapes {
        width: 45%;
    }
    
    .service-card {
        height: auto;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        max-width: var(--container-max-width);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-image,
    .team-photo,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .feature-card:hover,
    .gallery-item:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .btn-submit:hover,
    .btn-primary-custom:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px !important;
        padding: 1rem 0.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-shapes,
    .btn-submit,
    .btn-primary-custom {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    body {
  overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4 {
        color: black;
        page-break-after: avoid;
    }
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .service-card,
    .feature-card,
    .team-card,
    .review-card,
    .gallery-item,
    .blog-card,
    .price-card,
    .btn-submit,
    .btn-primary-custom {
        transition: none;
    }
    
    .swiper-slide {
        transition: none;
    }
}

