/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    #hero .display-4 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    /* Section padding reduction */
    section {
        padding: 3rem 0;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Button sizing */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Team member photos */
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Process section mobile layout */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Timeline mobile layout */
    #timeline .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Contact form mobile */
    #contacts .form-control {
        margin-bottom: 1rem;
    }
    
    /* Gallery mobile - 2 columns */
    #gallery .col-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* No animations on mobile as required */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Mobile navigation adjustments */
    .navbar-collapse {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1, .display-4 {
        font-size: 2.25rem;
    }
    
    h2, .h2 {
        font-size: 1.875rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 85vh;
    }
    
    /* Section padding */
    section {
        padding: 4rem 0;
    }
    
    /* Team layout */
    #team .col-6 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Gallery - 3 columns */
    #gallery .col-6 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* No mobile animations */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Typography */
    h1, .display-4 {
        font-size: 2.5rem;
    }
    
    /* Services cards layout adjustment */
    #services .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Features layout */
    #features .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Team layout - 5 members per row */
    #team .col-md-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Process steps */
    #process .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Timeline events */
    #timeline .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Career positions */
    #career .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Core info items */
    #coreinfo .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* FAQ layout */
    #faq .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Gallery - 4 columns */
    #gallery .col-md-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Standard section padding */
    section {
        padding: 5rem 0;
    }
    
    /* Services grid adjustments */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team members proper spacing */
    #team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Process steps spacing */
    #process .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    /* Timeline spacing */
    #timeline .col-lg-2 {
        margin-bottom: 1rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero section */
    #hero {
        min-height: 100vh;
    }
    
    /* Container max-width adjustment */
    .container {
        max-width: 1200px;
    }
    
    /* Typography scaling */
    h1, .display-4 {
        font-size: 3rem;
    }
    
    h2, .h2 {
        font-size: 2.25rem;
    }
    
    /* Section padding increase */
    section {
        padding: 6rem 0;
    }
    
    /* Card hover effects for desktop */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    }
    
    /* Button hover effects */
    .btn-primary:hover {
        transform: translateY(-3px);
    }
    
    /* Gallery hover effects */
    #gallery img:hover {
        transform: scale(1.08);
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero height on landscape mobile */
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Smaller typography */
    h1, .display-4 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    
    .btn {
        border-width: 1px;
    }
    
    #header {
        box-shadow: 0 1px 8px rgba(0,0,0,0.12);
    }
}

/* Print Media Queries */
@media print {
    /* Hide unnecessary elements */
    #header,
    #footer,
    .btn,
    .navbar {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    /* Ensure content fits on page */
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Typography for print */
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .card:hover,
    .btn-primary:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* Dark Mode Support */

/* Focus Management for Keyboard Navigation */
@media (any-hover: none) {
    /* Touch device optimizations */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Wide Screen Optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Increase spacing for very wide screens */
    section {
        padding: 7rem 0;
    }
    
    /* Larger typography for wide screens */
    h1, .display-4 {
        font-size: 3.5rem;
    }
    
    h2, .h2 {
        font-size: 2.5rem;
    }
} 