/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.56rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-image img {
        width: 100%;
        height: 250px;
        margin-top: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.27rem !important;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .element-card {
        padding: 1.5rem;
        margin-bottom: 1.56rem;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.40rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .contact-form .form-control {
        padding: 0.75rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.87rem;
    }
    
    h3 {
        font-size: 1.31rem;
    }
    
    .price-tag {
        font-size: 1.55rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-text h1 {
        font-size: 2.28rem;
    }
    
    .hero-text h2 {
        font-size: 1.90rem;
    }
    
    .hero-image img {
        width: 100%;
        height: 300px;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .element-card {
        padding: 1.75rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .gallery-image {
        height: 220px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-text h1 {
        font-size: 2.51rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-image img {
        width: 100%;
        height: 350px;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .element-card {
        padding: 2rem;
    }
    
    .team-photo {
        width: 110px;
        height: 110px;
    }
    
    .gallery-image {
        height: 230px;
    }
    
    /* Stack sections vertically on tablets */
    .about-section .row,
    .features-section .row,
    .process-section .row {
        flex-direction: column;
        align-items: center;
    }
    
    .about-section .col-md-3,
    .features-section .col-lg-3,
    .process-section .col-lg-2 {
        max-width: 80%;
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-image img {
        width: 450px;
        height: 380px;
    }
    
    .gallery-image {
        height: 240px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-image img {
        width: 500px;
        height: 400px;
    }
    
    .gallery-image {
        height: 250px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
        min-height: auto;
        padding: 120px 0 50px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.62rem;
    }
    
    .hero-image img {
        width: 300px;
        height: 250px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .service-image,
    .team-photo,
    .gallery-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer-section,
    .breadcrumb-section {
        display: none;
    }
    
    .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
        background: none;
        color: black;
        padding: 2rem 0;
    }
    
    .feature-card,
    .service-card,
    .price-card {
        box-shadow: none;
        border: 1px solid #e0e0e0;
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .feature-card:hover,
    .service-card:hover,
    .btn-primary:hover,
    .gallery-image:hover {
        transform: none;
    }
    
    .fade-in-up,
    .pulse-animation {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #0b5534;
        --secondary-orange: #c05d00;
        --text-dark: #000000;
        --text-light: #474747;
        --background-light: #FFFFFF;
    }
    
    .feature-card,
    .service-card,
    .price-card {
        border: 2px solid var(--text-dark);
    }
}

