/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    #hero-title-1 {
        font-size: 2rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .timeline-item {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: -30px !important;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    #hero-title-1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .timeline-item {
        width: 80%;
        margin-left: 10% !important;
    }
    
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item::before {
        left: -10px !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section .row {
        align-items: center;
    }
    
    .timeline-item {
        width: 70%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 30%;
    }
    
    /* Disable Swiper autoplay and effects on mobile/tablet */
    .swiper {
        --swiper-theme-color: var(--primary-color);
    }
    
    .swiper-slide {
        opacity: 1 !important;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .timeline-item {
        width: 45%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 55%;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero-title-1 {
        font-size: 3.5rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1.75rem;
    }
}

/* Disable animations and effects on mobile devices */
@media (max-width: 767.98px) {
    .swiper-slide {
        transform: none !important;
    }
    
    .swiper-wrapper {
        transform: none !important;
    }
    
    /* Disable hover effects on mobile */
    .service-card:hover,
    .team-member:hover,
    .blog-item:hover,
    .case-study-item:hover {
        transform: none;
    }
    
    /* Simplify mobile interactions */
    .btn:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .swiper-pagination,
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    body {
  overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    .service-card,
    .team-member,
    .blog-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000000;
        --text-dark: #000000;
        --text-light: #ffffff;
    }
    
    .service-card,
    .team-member,
    .blog-item {
        border: 2px solid #000000;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    #hero-title-1 {
        font-size: 2rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1.2rem;
    }
} 