/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .team-section .card-img-top {
        height: 180px;
        width: 150px;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .team-section .card-img-top {
        height: 200px;
        width: 170px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 70px 0;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .team-section .card-img-top {
        height: 220px;
        width: 180px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .team-section .card-img-top {
        height: 250px;
        width: 200px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    section {
        padding: 100px 0;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .team-section .card-img-top {
        height: 280px;
        width: 220px;
    }
}

/* High Resolution Screens (1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    section {
        padding: 120px 0;
    }
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .bg-light {
        background-color: #f8f9fa !important;
    }
    
    .text-primary {
        color: #000 !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Note: Dark theme is prohibited per requirements, but media query exists for future use */
}

/* Landscape Orientation Fixes */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 70vh;
        padding: 50px 0 20px;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Container Responsive Adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Form Responsive Adjustments */
@media (max-width: 767.98px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact-info {
        margin-top: 3rem;
    }
}

/* Gallery Responsive */
@media (max-width: 575.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Timeline Responsive */
@media (max-width: 767.98px) {
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-item::before {
        left: -0.25rem;
    }
}

/* Process Steps Responsive */
@media (max-width: 767.98px) {
    .process-step {
        padding: 1.5rem 0.5rem;
    }
}

/* Card Responsive Adjustments */
@media (max-width: 575.98px) {
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}