/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    body {
        padding-top: 60px;
    overflow-x: hidden;
}
    
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Navbar brand size adjustment */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Hero section mobile optimization */
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    padding-top: 225px;
}
    
    .hero-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    /* Hide decorative shapes on mobile for better performance */
    .shape-blob-1,
    .shape-blob-2 {
        display: none;
    }
    
    /* Mobile animations disabled */
    @media (prefers-reduced-motion: no-preference) {
        [data-sal] {
            animation: none !important;
            transform: none !important;
            opacity: 1 !important;
        }
    }
    
    /* Cards mobile spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Feature cards mobile */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Process steps mobile */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Team member images mobile */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form mobile */
    .form-control {
        padding: 10px 12px;
    }
    
    .btn-success,
    .btn-primary {
        padding: 10px 20px;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Gallery mobile optimization */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    #footer .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Additional page items mobile */
    .story-item,
    .approach-item,
    .cert-item,
    .impact-item,
    .goals-item,
    .custom-item,
    .corporate-item,
    .event-item,
    .subscription-item,
    .support-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    body {
        padding-top: 65px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Reduce blob animations on small devices */
    .shape-blob-1,
    .shape-blob-2 {
        opacity: 0.2;
        animation-duration: 10s;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
    
    /* Hero section tablet optimization */
    .hero-section {
        padding: 5rem 0;
    }
    
    /* Cards tablet spacing */
    .feature-card {
        margin-bottom: 2rem;
    }
    
    /* Process steps tablet */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Team layout tablet */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full hero section height on desktop */
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    /* Optimal spacing for desktop */
    .feature-card,
    .info-card {
        margin-bottom: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Maximum container width control */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section full height */
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    /* Enhanced typography for large screens */
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    /* Enhanced feature cards */
    .feature-card {
        padding: 2.5rem;
    }
    
    /* Enhanced info cards */
    .info-card {
        padding: 2.5rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .shape-blob-1,
    .shape-blob-2 {
        display: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and icons for retina displays */
    .card-img-top,
    .team-member img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .shape-blob-1,
    .shape-blob-2 {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        color: #000;
        background: #fff;
    }
    
    .hero-section {
        background: none;
        color: #000;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    /* Disable 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 floating animations */
    .shape-blob-1,
    .shape-blob-2 {
        animation: none;
        transform: none;
    }
    
    /* Remove hover transforms */
    .card:hover,
    .feature-card:hover,
    .info-card:hover {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --primary-light: #333;
        --primary-dark: #000;
        --secondary-color: #fff;
        --secondary-light: #f5f5f5;
        --secondary-dark: #ddd;
        --accent-color: #000;
        --accent-light: #333;
        --accent-dark: #000;
    }
    
    .card,
    .feature-card,
    .info-card {
        border: 2px solid #000;
    }
}

/* Dark Mode Support */

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
} 