/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    
    .h2 {
        font-size: 1.25rem !important;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section Mobile */
    #hero {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    #hero .col-lg-6 {
        text-align: center;
    }
    
    #hero img {
        margin-top: 2rem;
        max-width: 280px;
    }
    
    /* Navigation Mobile */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    /* Card Spacing */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Services Grid Mobile */
    #services .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Team Member Layout */
    #team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    #team img {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Process Steps Mobile */
    .process-step,
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .step-number,
    .timeline-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1rem !important;
    }
    
    /* Gallery Mobile */
    #gallery .col-lg-3 {
        margin-bottom: 0.5rem;
    }
    
    /* Contact Form Mobile */
    #contacts .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    /* Footer Mobile */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Remove hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    #team img:hover,
    #gallery img:hover {
        transform: none;
        filter: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem !important;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    #hero img {
        max-width: 350px;
    }
    
    .step-number,
    .timeline-icon {
        width: 55px !important;
        height: 55px !important;
    }
    
    #team img {
        width: 110px !important;
        height: 110px !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.5rem !important;
    }
    
    #hero {
        min-height: 90vh;
    }
    
    /* Team Layout Tablet */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Services Layout Tablet */
    #services .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Process Steps Tablet */
    .process-step,
    .timeline-item {
        margin-bottom: 1rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    /* Hero Section Large */
    #hero .col-lg-6 {
        padding: 0 2rem;
    }
    
    /* Team Spacing */
    #team .col-lg-2 {
        padding: 0 1rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 6rem 0;
    }
    
    .display-4 {
        font-size: 3rem !important;
    }
    
    /* Hero enhancements */
    #hero {
        min-height: 100vh;
    }
    
    #hero img {
        max-width: 500px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    #hero .display-4 {
        font-size: 1.5rem !important;
    }
    
    #hero .lead {
        font-size: 0.9rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    .card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    }
    
    .card:hover {
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    }
}

/* Print Media Queries */
@media print {
    /* Hide interactive elements */
    .btn,
    .navbar,
    #footer,
    .form-control,
    .form-check {
        display: none !important;
    }
    
    /* Adjust spacing for print */
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    /* Ensure text is readable */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    /* Hide decorative elements */
    .hero-shapes,
    .shape-1,
    .shape-2 {
        display: none;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover effects */
    .card:hover,
    #team img:hover,
    #gallery img:hover {
        transform: none !important;
        filter: none !important;
        box-shadow: inherit !important;
    }
}

/* Dark Mode Support */

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
} 