/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 250px;
}
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Remove animations on mobile */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-item:hover,
    .blog-card:hover,
    .faq-card:hover {
        transform: none;
    }
    
    /* Disable floating animations on mobile */
    .blob-1,
    .blob-2 {
        animation: none;
        display: none;
    }
    
    .step-number,
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1rem;
        text-align: center;
    }
    
    .process-step,
    .timeline-item,
    .info-item {
        padding: 1.5rem 0.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 250px;
}
    
    .hero-actions .btn {
        min-width: 140px;
    }
    
    .step-number,
    .timeline-year {
        width: 55px;
        height: 55px;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .process-step,
    .timeline-item {
        padding: 1.75rem 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 250px;
}
    
    .step-number,
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-year {
        width: 70px;
        height: 70px;
    }
    
    .team-member img {
        width: 115px;
        height: 115px;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-section .row {
        align-items: center;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .feature-item {
        padding: 2rem 0;
    }
    
    .contact-info {
        padding: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 250px;
}
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .timeline-year {
        width: 90px;
        height: 90px;
        font-size: 1.125rem;
    }
    
    .team-member img {
        width: 130px;
        height: 130px;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    padding-top: 250px;
}
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 250px;
}
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-item,
    .blog-card,
    .faq-card {
        border: 2px solid var(--text-primary);
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-decoration,
    .btn,
    footer {
        display: none;
    }
    
    .hero-section {
        background: none;
        padding: 1rem 0;
    }
    
    .container {
        max-width: none;
        width: 100%;
        padding: 0;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-item,
    .blog-card,
    .faq-card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5 {
        color: #000;
    }
    
    p, li {
        color: #333;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-item,
    .blog-card,
    .faq-card,
    .btn,
    #gallery img {
        transition: none;
        animation: none;
    }
    
    .blob-1,
    .blob-2 {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .form-check-input {
        width: 20px;
        height: 20px;
    }
}

/* Dark mode support (if system preference) */

body {
    overflow-x: hidden;
}