/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section */
    #hero {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        display: none;
    }
    
    /* Process steps */
    .process-step {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Team images */
    .team img,
    img[src*="team_"] {
        width: 100px;
        height: 100px;
    }
    
    /* Contact info */
    .contact-info {
        margin-top: 1rem;
        padding: 1.5rem;
    }
    
    /* Section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Gallery grid */
    #gallery .col-6 {
        padding: 0.25rem;
    }
    
    /* Form controls */
    .form-control {
        padding: 10px 14px;
    }
    
    /* Button sizing */
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Reduced animations on small devices */
    .card:hover {
        transform: translateY(-2px);
    }
    
    #gallery img:hover {
        transform: scale(1.02);
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    /* Team layout */
    .team .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    .process-step {
        width: 55px;
        height: 55px;
        font-size: 1.375rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 85vh;
    }
    
    /* Navbar brand */
    .navbar-brand {
        font-size: 1.375rem;
    }
    
    /* Card grid adjustments */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery spacing */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact form */
    .contact-info {
        margin-top: 0;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full animations enabled */
    .card:hover {
        transform: translateY(-5px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
    
    /* Hero full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Team grid */
    .team .col-lg-2 {
        margin-bottom: 1rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced animations for large screens */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    }
    
    /* Hero shapes visible */
    .hero-shapes .shape-1 {
        width: 120px;
        height: 120px;
    }
    
    .hero-shapes .shape-2 {
        width: 180px;
        height: 180px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        display: none;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #footer,
    .hero-shapes {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility - Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::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,
    #gallery img:hover,
    .navbar-nav .nav-link:hover {
        transform: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    /* Increase contrast for better accessibility */
    body {
        color: #000;
        background: #fff;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        border-color: #000;
        color: #fff;
    }
    
    .text-muted {
        color: #666 !important;
    }
}

/* Dark Mode Support */

/* Focus Styles for Keyboard Navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Ensure adequate spacing between interactive elements */
.btn, .nav-link, .form-control {
    margin: 0.25rem;
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(248, 249, 250, 0.95);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
} 