/* Mobile First Responsive Design */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .hero-shapes .shape-1 {
        width: 400px;
        height: 400px;
    }
    
    .hero-shapes .shape-2 {
        width: 300px;
        height: 300px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item::before {
        left: 22.5px !important;
        right: auto !important;
    }
    
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section Mobile */
    #hero {
        padding-top: 100px;
        min-height: 80vh;
    }
    
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        display: none;
    }
    
    /* Cards Mobile */
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .featured-article {
        margin-bottom: 1.5rem;
    }
    
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .blog-card .card-img-top,
    .featured-article .card-img-top {
        height: 180px;
    }
    
    /* Contact Section Mobile */
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.5rem;
    }
    
    /* Gallery Mobile */
    .gallery-img {
        height: 200px;
    }
    
    /* Timeline Mobile */
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    /* Team Mobile */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Mobile */
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    /* Buttons Mobile */
    .btn-primary,
    .btn-outline-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Typography Mobile */
    .h1, h1 {
        font-size: 1.75rem;
    }
    
    .h4, h4 {
        font-size: 1.25rem;
    }
    
    .h5, h5 {
        font-size: 1.1rem;
    }
    
    /* Spacing Mobile */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2.5rem !important;
    }
    
    /* Footer Mobile */
    #footer .row > div {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer .text-end {
        text-align: center !important;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 0.95rem !important;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .h5 {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    /* Hero Section Extra Small */
    #hero {
        padding-top: 80px;
        min-height: 70vh;
    }
    
    /* Cards Extra Small */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .blog-card .card-img-top,
    .featured-article .card-img-top {
        height: 150px;
    }
    
    /* Contact Extra Small */
    .contact-item {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 1rem;
    }
    
    .contact-icon i {
        font-size: 1.25rem;
    }
    
    /* Gallery Extra Small */
    .gallery-img {
        height: 150px;
    }
    
    /* Timeline Extra Small */
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 12.5px !important;
    }
    
    /* Team Extra Small */
    .team-member img {
        width: 60px;
        height: 60px;
    }
    
    /* Process Extra Small */
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    /* Buttons Extra Small */
    .btn-primary,
    .btn-outline-primary {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    /* Form Extra Small */
    .form-control {
        font-size: 0.9rem;
    }
    
    /* Spacing Extra Small */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    /* Price Display Extra Small */
    .price-display {
        padding: 15px 0;
    }
    
    .price-display .display-4 {
        font-size: 1.5rem;
    }
}

/* Landscape Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-img,
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .blog-card .card-img-top,
    .featured-article .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations on mobile for reduced motion */
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .featured-article:hover,
    .feature-card:hover,
    .info-card:hover,
    .career-card:hover,
    .faq-card:hover,
    .team-member:hover img,
    .gallery-img:hover,
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
}

/* Mobile Navigation Enhancements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: rgba(45, 90, 61, 0.1);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .featured-article:hover,
    .feature-card:hover,
    .info-card:hover,
    .career-card:hover,
    .faq-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .team-member:hover img,
    .gallery-img:hover {
        transform: none;
        filter: none;
    }
}

/* Print Optimizations */
@media print {
    @page {
        margin: 1in;
    }
    
    .container {
        max-width: none;
        width: 100%;
    }
    
    .col-lg-6,
    .col-lg-4,
    .col-lg-3,
    .col-md-6,
    .col-md-4 {
        width: 50% !important;
        float: left;
    }
    
    .py-5 {
        padding: 1rem 0 !important;
    }
    
    .card {
        break-inside: avoid;
        border: 1px solid #ddd !important;
    }
    
    .timeline-item {
        break-inside: avoid;
    }
} 