/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    body {
        padding-top: 70px;
    overflow-x: hidden;
}
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: 80vh;
    }
    
    .hero-section::before {
        animation: none;
    }
    
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    section h3 {
        font-size: 1.1rem;
    }
    
    .feature-card, .service-card, .contact-form {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .step-number .badge {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Disable hover effects on mobile */
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .pricing-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .career-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Mobile gallery adjustments */
    #gallery img:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content h2 {
        font-size: 1.35rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    section h2 {
        font-size: 2.25rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .container {
        max-width: 960px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Height-based media queries for mobile landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-actions {
        margin-top: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-actions,
    .btn,
    #footer {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        background: white;
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
    
    .btn-primary {
        background-color: #0000ff;
        border-color: #0000ff;
        color: #ffffff;
    }
    
    .btn-outline-primary {
        color: #0000ff;
        border-color: #0000ff;
    }
    
    .card,
    .feature-card {
        border: 2px solid #000000;
    }
}

/* Focus improvements for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Responsive navigation improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        border-radius: 0.5rem;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Responsive typography scaling */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
} 