/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile as per requirements */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transform: none !important;
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 2.5rem;
    padding-top: 250px;
}
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Spacing adjustments */
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Hero section */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    /* Cards spacing */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card,
    .faq-card,
    .content-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team photos */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 3rem;
    }
    
    .timeline-item::before {
        left: 0.5rem;
    }
    
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 0.5rem;
        right: auto;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Navbar brand size */
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 3rem;
    padding-top: 250px;
}
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .timeline-item {
        width: 80%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 3.25rem;
    padding-top: 250px;
}
    
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Timeline adjustments for tablets */
    .timeline-item {
        width: 70%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 30%;
    }
    
    .timeline-item:nth-child(even) {
        margin-right: 30%;
        margin-left: 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full desktop experience with animations enabled */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .content-card:hover {
        transform: translateY(-5px);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    .gallery-img:hover {
        transform: scale(1.05);
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    padding-top: 250px;
}
    
    .section-title {
        font-size: 3rem;
    }
}

/* Ultra Large devices (extra large desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Height-based media queries */
@media (max-height: 600px) {
    .hero-section {
        min-height: 500px;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .breadcrumb-nav {
        display: none;
    }
    
    .section-padding {
        padding: 1rem 0;
    }
    
    * {
        color: black !important;
        background: white !important;
        box-shadow: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #800080;
        --accent-color: #008080;
        --success-color: #008000;
        --warning-color: #FF8000;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card,
    .faq-card,
    .content-card {
        border: 2px solid #000;
    }
}

/* Dark mode support */

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 400px;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}

/* Focus and accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
    .smooth-scroll {
        scroll-behavior: smooth;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card,
    .service-card,
    .pricing-card,
    .content-card,
    .btn {
        transform: none !important;
    }
    
    .btn {
        min-height: 44px;
        padding: 1rem 2rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Specific component responsive adjustments */

/* Services grid */
@media (max-width: 767.98px) {
    #services .row > div {
        margin-bottom: 2rem;
    }
}

/* Team section */
@media (max-width: 991.98px) {
    .team-member {
        margin-bottom: 3rem;
    }
}

/* Gallery responsive */
@media (max-width: 767.98px) {
    .gallery-img {
        margin-bottom: 1rem;
    }
}

/* FAQ responsive */
@media (max-width: 767.98px) {
    .faq-card {
        padding: 1.5rem;
    }
}

/* Process steps responsive */
@media (max-width: 767.98px) {
    .process-step {
        margin-bottom: 3rem;
    }
} 

body {
    overflow-x: hidden;
}