/* Responsive Styles */

/* Mobile First Approach */
/* Base styles are for mobile devices */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-content {
        padding: 2rem 1.5rem;
    padding-top: 225px;
}
    
    .display-4 {
        font-size: 2.75rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-content {
        padding: 3rem 2rem;
    padding-top: 225px;
}
    
    .display-4 {
        font-size: 3rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .service-card .card-img-top {
        height: 220px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-content {
        padding: 4rem 3rem;
    padding-top: 225px;
}
    
    .display-4 {
        font-size: 3.5rem;
    }
    
    .service-card .card-img-top {
        height: 250px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .process-step,
    .timeline-item {
        margin-bottom: 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content {
        padding: 5rem 4rem;
    padding-top: 225px;
}
    
    .display-4 {
        font-size: 4rem;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Mobile Specific Styles */
@media (max-width: 767.98px) {
    /* No animations on mobile to respect performance */
    .feature-card:hover,
    .service-card:hover,
    .card:hover,
    .team-member:hover img,
    .gallery img:hover,
    .service-detail-card:hover,
    .expertise-card:hover,
    .tier-card:hover,
    .support-card:hover,
    .getting-started-step:hover,
    .mission-card:hover,
    .story-milestone:hover,
    .value-card:hover,
    .leader-card:hover,
    .culture-element:hover,
    .info-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Disable button hover effects on mobile */
    .btn:hover {
        transform: none;
    }
    
    /* Adjust hero section for mobile */
    .hero-section {
        min-height: auto;
    }
    
    .hero-image-wrapper {
        height: 300px;
    }
    
    /* Stack hero content on mobile */
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    /* Adjust typography for mobile */
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.75rem;
    }
    
    .h4 {
        font-size: 1.25rem;
    }
    
    /* Adjust padding for mobile */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    padding-top: 225px;
}
    
    /* Mobile navigation */
    .navbar-collapse {
        background: var(--white);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--neutral-light);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    /* Mobile form styles */
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Mobile card adjustments */
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Mobile team grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Mobile process steps */
    .process-step,
    .timeline-item,
    .getting-started-step {
        margin-bottom: 2rem;
    }
    
    .step-number,
    .timeline-year,
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Mobile service cards */
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Mobile gallery */
    .gallery img {
        margin-bottom: 1rem;
    }
    
    /* Mobile footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-image-wrapper {
        height: 400px;
    }
    
    .service-card .card-img-top {
        height: 200px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high resolution displays */
    .navbar-brand,
    .btn,
    .card {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-image-wrapper {
        height: 100vh;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Print Styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    .breadcrumb-section,
    footer {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card,
    .service-card,
    .feature-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    /* Ensure content fits on page */
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Dark Mode Support */

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
@media (hover: none) and (pointer: coarse) {
    /* Touch device specific styles */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content {
        padding: 6rem 5rem;
    padding-top: 225px;
}
}

/* Small height screens (landscape phones) */
@media (max-height: 500px) {
    .hero-section {
        min-height: auto;
    }
    
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
} 