/* Mobile-First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    #hero .container {
        padding: 0 1rem;
    }
    
    .hero-shapes {
        display: none; /* No animations on mobile */
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Team Photos */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number::after {
        display: none;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
    
    .timeline-marker {
        left: -1rem;
    }
    
    /* Contact Form */
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Spacing */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    #hero {
        min-height: 90vh;
    }
    
    .display-4 {
        font-size: 2.25rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    /* Buttons */
    .btn {
        width: auto;
    }
    
    .d-flex.gap-3 {
        flex-direction: row;
        gap: 1rem;
    }
    
    /* Team Photos */
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Process Steps */
    .step-number::after {
        display: block;
        width: 50px;
    }
    
    .process-step:nth-child(odd) .step-number::after {
        display: none;
    }
    
    /* Cards Grid */
    .row.g-4 > .col-md-6:nth-child(odd) {
        padding-right: 0.5rem;
    }
    
    .row.g-4 > .col-md-6:nth-child(even) {
        padding-left: 0.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    #hero {
        min-height: 80vh;
    }
    
    .hero-shapes .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .hero-shapes .shape-2 {
        width: 120px;
        height: 120px;
    }
    
    .hero-shapes .shape-3 {
        width: 80px;
        height: 80px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2.25rem;
    }
    
    /* Services Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Photos */
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    /* Process Steps */
    .step-number::after {
        width: 80px;
    }
    
    /* Timeline */
    .timeline-content {
        padding: 1.25rem;
    }
    
    /* Contact Section */
    .contact-info {
        padding: 1.75rem;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Typography */
    .display-4 {
        font-size: 3rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
    
    /* Services Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Process Steps */
    .step-number::after {
        width: 100px;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 2.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    /* Team Section */
    .team-member:nth-child(4),
    .team-member:nth-child(5) {
        margin-top: 2rem;
    }
    
    /* Case Studies */
    .case-study-card img {
        height: 220px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    .hero-shapes .shape-1 {
        animation: float 6s ease-in-out infinite;
    }
    
    .hero-shapes .shape-2 {
        animation: float 8s ease-in-out infinite reverse;
    }
    
    .hero-shapes .shape-3 {
        animation: float 10s ease-in-out infinite;
    }
    
    /* Typography */
    .display-4 {
        font-size: 3.5rem;
    }
    
    .display-5 {
        font-size: 3rem;
    }
    
    /* Services Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Team Photos */
    .team-photo {
        width: 160px;
        height: 160px;
    }
    
    /* Process Steps */
    .step-number::after {
        width: 120px;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 3rem;
    }
    
    .timeline-content {
        padding: 2rem;
    }
    
    /* Case Studies */
    .case-study-card img {
        height: 240px;
    }
    
    /* Contact Form */
    .contact-info {
        padding: 2.5rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Hero Section */
    .hero-shapes .shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .hero-shapes .shape-2 {
        width: 180px;
        height: 180px;
    }
    
    .hero-shapes .shape-3 {
        width: 120px;
        height: 120px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 4rem;
    }
    
    /* Services Cards */
    .card-img-top {
        height: 240px;
    }
    
    /* Case Studies */
    .case-study-card img {
        height: 260px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high-resolution displays */
    .card,
    .btn,
    .feature-card,
    .info-card {
        backface-visibility: hidden;
        transform: translateZ(0);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-shapes {
        display: none;
    }
    
    .navbar {
        padding: 0.25rem 1rem;
    }
}

/* Print Styles */
@media print {
    /* Reset for print */
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .container {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-md-4,
    .col-md-6 {
        width: 100%;
        float: none;
    }
    
    .card {
        border: 1px solid #ddd;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-shapes .shape-1,
    .hero-shapes .shape-2,
    .hero-shapes .shape-3 {
        animation: none;
    }
    
    .card:hover,
    .feature-card:hover,
    .info-card:hover,
    .btn:hover {
        transform: none;
    }
    
    .team-member:hover .team-photo {
        transform: none;
    }
    
    .contact-item:hover {
        transform: none;
    }
    
    #gallery img:hover,
    .case-study-card:hover img {
        transform: none;
    }
}

/* Dark Mode Support */

/* Focus Management for Keyboard Navigation */
@media (any-hover: none) and (any-pointer: coarse) {
    /* Touch device optimizations */
    .btn,
    .card,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .contact-item:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
} 