/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
        text-align: center;
    }
    
    #hero .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    /* Team section adjustments */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process section adjustments */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact form adjustments */
    .form-control {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile for performance */
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Services grid */
    .service-item {
        margin-bottom: 2rem;
    }
    
    /* Team grid */
    .team-member {
        margin-bottom: 1.5rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    /* Hero section */
    #hero {
        min-height: 95vh;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Process section */
    .process-step {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    /* Full sections */
    section {
        padding: 4rem 0;
    }
    
    /* Hero section */
    #hero {
        min-height: 100vh;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 5rem 0;
    }
    
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .card {
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .py-5 {
        padding: 1rem 0 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --primary-light: #333;
        --primary-dark: #000;
        --secondary-color: #fff;
        --secondary-light: #f8f9fa;
        --secondary-dark: #e9ecef;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-primary:hover {
        background-color: #333;
        border-color: #333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Dark Mode Support */

/* Focus Management */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.box-shadow-soft {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.border-radius-lg {
    border-radius: 10px;
}

.border-radius-xl {
    border-radius: 15px;
}

/* Icon Styles */
.icon-lg {
    font-size: 3rem;
}

.icon-xl {
    font-size: 4rem;
}

/* Spacing Utilities */
.section-padding {
    padding: 4rem 0;
}

.section-padding-sm {
    padding: 2rem 0;
}

.section-padding-lg {
    padding: 6rem 0;
}

/* Performance Optimizations */
.card img,
#gallery img {
    will-change: transform;
}

.navbar {
    will-change: transform;
}

/* Accessibility Improvements */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: var(--success-color);
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Button Variants */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Table Responsive */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
} 