/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No animations on mobile as per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Typography adjustments for mobile */
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .section-desc {
        font-size: var(--font-size-base);
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-section .display-4 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Hide decorative shapes on mobile for performance */
    .hero-shapes {
        display: none;
    }
    
    /* Navbar brand size reduction */
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    /* Service cards stack properly */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team member photos smaller on mobile */
    .team-photo {
        width: 60px;
        height: 60px;
    }
    
    /* Process steps stack vertically */
    .process-step {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    /* Contact form adjustments */
    .contact-form {
        padding: 2rem 1rem;
    }
    
    /* Pricing cards mobile spacing */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    /* Gallery images responsive */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile adjustments */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Additional page cards */
    .insight-card,
    .application-card,
    .metric-card,
    .practice-card,
    .innovation-card,
    .resource-card,
    .tool-card,
    .training-card,
    .support-card,
    .community-card {
        margin-bottom: 1.5rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-section .display-4 {
        font-size: var(--font-size-3xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .team-photo {
        width: 70px;
        height: 70px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Re-enable animations on tablet and up */
    [data-sal] {
        transform: initial;
        opacity: initial;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 2.5rem;
    }
    
    /* Service cards in 2 columns on tablets */
    .service-card {
        height: 100%;
    }
    
    /* Team photos standard size */
    .team-photo {
        width: 75px;
        height: 75px;
    }
    
    /* Process steps with better spacing */
    .process-step {
        margin-bottom: 1.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Full size team photos */
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    /* Service cards hover effects enhanced */
    .service-card:hover {
        transform: translateY(-8px);
    }
    
    /* Feature cards enhanced hover */
    .feature-card:hover {
        transform: translateY(-8px);
    }
    
    /* Process steps horizontal layout */
    .process-step {
        margin-bottom: 0;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    /* Enhanced hover effects for larger screens */
    .pricing-card:hover {
        transform: translateY(-10px);
    }
    
    .case-study-card:hover {
        transform: translateY(-8px);
    }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Larger hero section for very large screens */
    .hero-section .display-4 {
        font-size: 3.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.5rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Optimize images and icons for retina displays */
    .team-photo,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and decorative elements */
    .navbar,
    .hero-shapes,
    .btn,
    #footer {
        display: none !important;
    }
    
    /* Optimize content for print */
    .hero-section,
    .section {
        padding: 1rem 0;
    }
    
    .container {
        max-width: 100%;
    }
    
    /* Remove shadows and transitions for print */
    .card,
    .service-card,
    .feature-card,
    .review-card {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    /* Ensure text is readable */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    .navbar-brand {
        font-size: var(--font-size-base);
    }
    
    /* Compact layout for landscape mobile */
    .section-title {
        font-size: var(--font-size-xl);
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: 0.5rem;
    }
}

/* Dark Mode Support (if user prefers dark mode) */

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Override any animations for users who prefer reduced motion */
    .hero-shapes,
    [data-sal] {
        animation: none !important;
        transition: none !important;
    }
    
    .service-card:hover,
    .feature-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover {
        transform: none !important;
    }
    
    /* Keep only essential transitions */
    .btn,
    .nav-link {
        transition: color 0.1s ease, background-color 0.1s ease;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    /* Enhance contrast for accessibility */
    .card,
    .service-card,
    .feature-card {
        border: 2px solid var(--gray-400);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
    
    .btn-outline-primary {
        border: 2px solid var(--primary-color);
    }
}

/* Custom Breakpoints for specific components */

/* Navbar collapse point adjustment */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
}

/* Gallery responsive adjustments */
@media (max-width: 575.98px) {
    #gallery .col-lg-4 {
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    #gallery .col-md-6:nth-child(2n) {
        margin-bottom: 1rem;
    }
}

/* Contact section responsive layout */
@media (max-width: 991.98px) {
    .contact-info {
        margin-top: 2rem;
        text-align: center;
    }
}

/* FAQ section responsive */
@media (max-width: 767.98px) {
    .faq-card {
        margin-bottom: 1rem;
    }
}

/* Team section responsive grid */
@media (max-width: 575.98px) {
    .team-member {
        margin-bottom: 2rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .team-member {
        margin-bottom: 1.5rem;
    }
} 

.hero-section h1 {
    padding-top: 200px;
}