/* Responsive Design - Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin: 0 0.5rem 0 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .navbar-nav {
        margin-left: auto;
    }
    
    .hero-section {
        min-height: 100vh;
        padding: 120px 0;
    }
    
    .feature-card {
        height: 100%;
    }
    
    .service-card .card-body {
        padding: 2rem;
    overflow-x: hidden;
}
    
    .team-member .member-photo {
        width: 150px;
        height: 150px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 150px;
}
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 2.5rem;
    }
    
    .pricing-card .card-body {
        padding: 3rem 2rem;
    }
    
    .contact-form {
        padding: 3rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    padding-top: 150px;
}
    
    section {
        padding: 100px 0;
    }
}

/* Mobile-specific styles (max-width: 767px) */
@media (max-width: 767px) {
    /* Disable animations on mobile as required */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Remove all CSS animations on mobile */
    *, *::before, *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0s !important;
    }
    
    /* Mobile navigation */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--light-cream);
    }
    
    .nav-link {
        padding: 0.75rem 0;
        text-align: center;
        border-bottom: 1px solid var(--light-cream);
    }
    
    /* Mobile hero section */
    .hero-section {
        min-height: 80vh;
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 2rem;
    }
    
    /* Mobile typography */
    h1, .display-4 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    h4, .h4, h5, .h5 {
        font-size: 1.1rem;
    }
    
    p.lead {
        font-size: 1rem;
    }
    
    /* Mobile buttons */
    .btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 14px 25px;
    }
    
    .hero-buttons {
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Mobile sections */
    section {
        padding: 40px 0;
    }
    
    /* Mobile cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .case-study-card,
    .blog-card,
    .career-card,
    .review-card {
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
    
    .pricing-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    /* Mobile team section */
    .team-member {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    /* Mobile reviews */
    .review-card {
        margin-bottom: 1rem;
    }
    
    .review-card .card-body {
        padding: 1.5rem;
        text-align: center;
    }
    
    /* Mobile process steps */
    .process-step {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .step-number .badge {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Mobile timeline */
    .timeline-item {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    /* Mobile FAQ */
    .faq-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile gallery */
    #gallery .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    #gallery img {
        margin-bottom: 1rem;
    }
    
    /* Mobile contact form */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    /* Mobile footer */
    #footer {
        text-align: center;
    }
    
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    #footer .row.align-items-center {
        text-align: center;
    }
    
    #footer .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Very small screens typography */
    h1, .display-4 {
        font-size: 1.5rem;
    }
    
    h2, .h2 {
        font-size: 1.35rem;
    }
    
    /* Compact sections */
    section {
        padding: 30px 0;
    }
    
    .hero-section {
        padding: 60px 0 30px;
    }
    
    /* Smaller cards */
    .feature-card,
    .faq-item {
        padding: 1rem;
    }
    
    .service-card .card-body,
    .pricing-card .card-body {
        padding: 1.25rem;
    }
    
    /* Smaller buttons */
    .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 10px 12px;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
}

/* Landscape phone adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 60px 0 30px;
    }
    
    section {
        padding: 35px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    .hero-decoration .blob {
        will-change: transform;
    }
    
    .service-card .card-img-top img,
    .case-study-card .card-img-top img,
    .blog-card .card-img-top img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    .hero-decoration,
    .navbar,
    #footer,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-decoration .blob {
        animation: none;
    }
    
    .service-card:hover .card-img-top img {
        transform: none;
    }
    
    *:hover {
        transform: none !important;
    }
}

/* Dark mode support (future enhancement) */

/* Focus improvements for accessibility */
@media (min-width: 768px) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-teal);
        outline-offset: 2px;
    }
} 