/* Mobile-first responsive design */

/* Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .hero-shapes {
        display: none;
    }
    
    .service-card .service-image img {
        height: 150px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 60px;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
    }
    
    .team-photo img {
        width: 80px;
        height: 80px;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* No scroll animations on mobile */
    [data-sal] {
        transform: none;
        opacity: 1;
        transition: none;
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.2rem;
    padding-top: 200px;
}
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .feature-item {
        margin-bottom: 1rem;
    }
    
    .service-card .service-image img {
        height: 180px;
    }
    
    .case-image img {
        height: 180px;
    }
    
    .blog-image img {
        height: 180px;
    }
    
    .contact-form {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 200px;
}
    
    section {
        padding: 100px 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-shapes,
    .shape-1,
    .shape-2 {
        display: none;
    }
    
    .about-feature,
    .service-card,
    .feature-item,
    .price-card,
    .review-card,
    .case-study-card,
    .career-card,
    .faq-card,
    .blog-card,
    .contact-form {
        border: 2px solid var(--text-dark);
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-shapes,
    .gallery,
    #footer {
        display: none;
    }
    
    .hero-section {
        padding-top: 0;
        min-height: auto;
    }
    
    section {
        padding: 30px 0;
        break-inside: avoid;
    }
    
    .service-card,
    .review-card,
    .case-study-card,
    .career-card,
    .faq-card,
    .blog-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
}

/* Dark mode support */