/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.8rem;
    padding-top: 275px;
}
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card .card-img-top {
        height: 150px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .process-step {
        padding: 1rem;
    }
    
    .case-study-card .card-img-top {
        height: 150px;
    }
    
    .contact-info .contact-item {
        margin-bottom: 1rem;
    }
    
    .service-item, .tech-item, .platform-item, 
    .cloud-item, .dev-item, .qa-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Disable animations on mobile for reduced motion */
    @media (prefers-reduced-motion: no-preference) {
        .feature-card:hover,
        .service-card:hover,
        #gallery img:hover {
            transform: none;
        }
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.2rem;
    padding-top: 275px;
}
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    .feature-card {
        padding: 1.75rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .case-study-card .card-img-top {
        height: 160px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.3rem;
    padding-top: 275px;
}
    
    .service-card .card-img-top {
        height: 190px;
    }
    
    .case-study-card .card-img-top {
        height: 170px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    padding-top: 275px;
}
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-section,
    #hero,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ffffff;
        --secondary-color: #f0f0f0;
        --accent-color: #e0e0e0;
        --highlight-color: #f8f8f8;
        --neutral-color: #f5f5f5;
        --dark-primary: #000000;
        --dark-secondary: #333333;
        --dark-accent: #0066cc;
        --dark-highlight: #cc6600;
        --dark-neutral: #666666;
    }
    
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .faq-card {
        border: 2px solid #000000;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 568px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    padding-top: 275px;
}
    
    .hero-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
}

/* Focus styles for accessibility */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--dark-accent);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--dark-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-to-content:focus {
    top: 6px;
} 