/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.75rem;
    }
    
    .h4 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    #hero .display-4 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    #hero .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-img-top {
        height: 180px;
    }
    
    /* Team Members */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Stats */
    .stat-number,
    .metric-number {
        font-size: 1.5rem;
    }
    
    /* Form */
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        margin-bottom: 0.5rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Custom Components - Mobile Adjustments */
    .tech-item,
    .research-item,
    .resource-item,
    .engagement-item {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }
    
    .method-card,
    .training-module,
    .partner-card,
    .metric-card,
    .career-card,
    .info-card,
    .case-study-card {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .timeline-marker {
        width: 15px;
        height: 15px;
    }
    
    /* Price Plans */
    .price {
        margin-bottom: 2rem;
    }
    
    /* Contact Section */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* No animations on mobile for reduced motion */
    .card:hover,
    .feature-card:hover,
    .tech-item:hover,
    .method-card:hover,
    .impact-stat:hover,
    .training-module:hover,
    .innovation-card:hover,
    .research-item:hover,
    .partner-card:hover,
    .resource-item:hover,
    .metric-card:hover,
    .engagement-item:hover,
    .career-card:hover,
    .info-card:hover,
    .case-study-card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    .h2 {
        font-size: 1.85rem;
    }
    
    #hero {
        padding-top: 100px;
    }
    
    .card-img-top {
        height: 190px;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .process-step .step-number {
        width: 55px;
        height: 55px;
    }
    
    .stat-number,
    .metric-number {
        font-size: 1.75rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #hero {
        padding-top: 80px;
    }
    
    .card-img-top {
        height: 195px;
    }
    
    .team-member img {
        width: 115px;
        height: 115px;
    }
    
    .process-step .step-number {
        width: 58px;
        height: 58px;
    }
    
    .stat-number,
    .metric-number {
        font-size: 2rem;
    }
    
    /* Tablet specific adjustments */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Custom components for tablets */
    .tech-item,
    .research-item,
    .resource-item,
    .engagement-item {
        padding: 1.5rem !important;
    }
    
    .method-card,
    .training-module,
    .partner-card,
    .metric-card,
    .career-card,
    .info-card,
    .case-study-card {
        padding: 1.5rem !important;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .stat-number,
    .metric-number {
        font-size: 2.25rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 2.75rem;
    }
    
    .h2 {
        font-size: 2.25rem;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .stat-number,
    .metric-number {
        font-size: 2.5rem;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Custom components for large screens */
    .tech-item,
    .research-item,
    .resource-item,
    .engagement-item {
        padding: 2rem !important;
    }
    
    .method-card,
    .training-module,
    .partner-card,
    .metric-card,
    .career-card,
    .info-card,
    .case-study-card {
        padding: 2rem !important;
    }
}

/* Landscape Orientation Adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 2rem;
    }
    
    #hero .display-4 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    #hero .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .team-member img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Responsive */
@media print {
    .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
    .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
    .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
        float: left;
    }
    
    .col-lg-1 { width: 8.33333%; }
    .col-lg-2 { width: 16.66667%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.33333%; }
    .col-lg-5 { width: 41.66667%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.33333%; }
    .col-lg-8 { width: 66.66667%; }
    .col-lg-9 { width: 75%; }
    .col-lg-10 { width: 83.33333%; }
    .col-lg-11 { width: 91.66667%; }
    .col-lg-12 { width: 100%; }
}

/* Accessibility Responsive */
@media (prefers-reduced-motion: reduce) {
    @media (max-width: 575.98px) {
        .card,
        .feature-card,
        .tech-item,
        .method-card,
        .impact-stat,
        .training-module,
        .innovation-card,
        .research-item,
        .partner-card,
        .resource-item,
        .metric-card,
        .engagement-item,
        .career-card,
        .info-card,
        .case-study-card {
            transition: none !important;
        }
    }
}

/* Container Responsive Adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .h2 {
        font-size: 2.5rem;
    }
    
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .feature-card:hover,
    .btn:hover {
        transform: none;
        box-shadow: initial;
    }
} 