/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile for better performance */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Section Spacing */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Cards */
    .service-card .card-img-top,
    .blog-card .card-img-top {
        height: 150px;
    }
    
    /* Team Members */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }
    
    /* Contact Form */
    .contact-form .form-control {
        padding: 10px 12px;
    }
    
    /* Gallery */
    #gallery .col-6 {
        padding: 0.25rem;
    }
    
    /* Typography */
    h1, .h1 {
        font-size: 1.8rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.3rem;
    }
    
    h4, .h4 {
        font-size: 1.1rem;
    }
    
    h5, .h5 {
        font-size: 1rem;
    }
    
    h6, .h6 {
        font-size: 0.9rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .small {
        font-size: 0.8rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .service-card .card-img-top,
    .blog-card .card-img-top {
        height: 180px;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .service-card .card-img-top,
    .blog-card .card-img-top {
        height: 190px;
    }
    
    .team-member img {
        width: 95px;
        height: 95px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .service-card .card-img-top,
    .blog-card .card-img-top {
        height: 200px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .btn,
    footer {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
    
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline-primary {
        color: #000;
        border-color: #000;
    }
    
    .text-muted {
        color: #333 !important;
    }
    
    /* High Contrast Footer */
    #footer {
        background: #000000 !important;
        color: #ffffff !important;
        border-top: 3px solid #ffffff !important;
    }
    
    #footer h4, #footer h5, #footer h6 {
        color: #ffffff !important;
    }
    
    #footer .text-muted, #footer p {
        color: #ffffff !important;
    }
    
    #footer a {
        color: #ffffff !important;
        background-color: #333333 !important;
        padding: 2px 4px !important;
        text-decoration: underline !important;
    }
    
    #footer a:hover, #footer a:focus {
        color: #000000 !important;
        background-color: #ffffff !important;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Focus Management for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Improved Touch Targets for Mobile */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
    }
} 

body {
    overflow-x: hidden;
}