/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        margin-bottom: 1rem;
    padding-top: 275px;
}
    
    .hero-section .btn {
        margin-top: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-img-top {
        height: 160px;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Section spacing */
    .py-5 {
        padding: 2rem 0;
    }
    
    /* Team member images */
    .team img {
        width: 120px;
        height: 120px;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer adjustments */
    footer .col-lg-4,
    footer .col-lg-3,
    footer .col-lg-2 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Hide decorative elements on mobile */
    .hero-section::before {
        display: none;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Process steps mobile */
    .process-step::after {
        display: none;
    }
    
    /* Timeline mobile */
    .timeline .card::before {
        display: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero section */
    .hero-section {
        min-height: 85vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 275px;
}
    
    /* Card grid adjustments */
    .card-img-top {
        height: 180px;
    }
    
    /* Team layout */
    .team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Services grid */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 275px;
}
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Card layouts */
    .card-img-top {
        height: 190px;
    }
    
    /* Team grid */
    .team .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 2rem;
    }
    
    /* Services grid adjustments */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* About features */
    #about .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Footer layout */
    footer .col-lg-4,
    footer .col-lg-3,
    footer .col-lg-2 {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero section */
    .hero-section {
        min-height: 95vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 275px;
}
    
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Card heights consistency */
    .card-img-top {
        height: 200px;
    }
    
    /* Team layout optimization */
    .team .col-lg-2 {
        margin-bottom: 1.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero section full height */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Maximum container width */
    .container {
        max-width: 1140px;
    }
    
    /* Optimized card heights */
    .card-img-top {
        height: 220px;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding: 5rem 0;
    }
    
    /* Team layout perfected */
    .team .col-lg-2 {
        margin-bottom: 1rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    padding-top: 275px;
}
    
    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .py-5 {
        padding: 1.5rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .team img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer,
    #gallery,
    .hero-section::before {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    .team img,
    #gallery img,
    .card-img-top {
        transition: none !important;
        animation: none !important;
    }
    
    .hero-section::before {
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000 !important;
    }
    
    .btn-primary {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #000 !important;
    }
    
    .btn-outline-primary {
        border: 2px solid #000 !important;
        color: #000 !important;
    }
    
    .text-primary {
        color: #000 !important;
    }
}

/* Focus management */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Mobile menu specific styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--background-light);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(108, 92, 231, 0.1);
    }
}

/* Ensure proper spacing on all screen sizes */
.section-spacing {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .section-spacing {
        margin-bottom: 3rem;
    }
}

@media (min-width: 1200px) {
    .section-spacing {
        margin-bottom: 4rem;
    }
} 