/* =====================================================
   RESPONSIVE STYLES - MOBILE FIRST APPROACH
   ===================================================== */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    .display-5 {
        font-size: 2rem;
    }
    
    .h3 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    /* Hero section mobile */
    #hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    .hero-shapes {
        display: none; /* Hide decorative shapes on mobile */
    }
    
    /* Section padding adjustments */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Service cards mobile layout */
    .services-item {
        margin-bottom: 2rem;
    }
    
    /* Team member spacing */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Gallery adjustments */
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.5rem;
    }
    
    /* Process steps mobile */
    .process-step {
        width: 50px;
        height: 50px;
        font-size: 0.875rem;
    }
    
    /* Footer adjustments */
    .footer-section {
        margin-bottom: 2rem;
    }
    
    /* No animations on mobile (as per requirements) */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Button sizing */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments for small devices */
    #hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    /* Typography scaling */
    .display-5 {
        font-size: 2.25rem;
    }
    
    /* Process steps */
    .process-step {
        width: 55px;
        height: 55px;
    }
    
    /* No animations on mobile (as per requirements) */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section for tablets */
    #hero {
        padding-top: 7rem;
        padding-bottom: 5rem;
    }
    
    /* Team member layout */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Services grid adjustments */
    .services-grid .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Gallery grid */
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    /* Enable animations for tablets and up */
    [data-sal] {
        transition-duration: 0.6s;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero section full layout */
    #hero {
        padding-top: 8rem;
        padding-bottom: 6rem;
    }
    
    /* Hero shapes positioning */
    .hero-shapes {
        display: block;
    }
    
    /* Card hover effects */
    .card:hover {
        transform: translateY(-8px);
    }
    
    /* Enhanced animations for desktop */
    [data-sal] {
        transition-duration: 0.8s;
    }
    
    /* Gallery enhanced hover */
    .gallery-item:hover img {
        transform: scale(1.08);
    }
    
    /* Team layout optimization */
    .team-grid {
        justify-content: center;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .section-padding {
        padding: 6rem 0;
    }
    
    /* Typography scaling for large screens */
    .display-5 {
        font-size: 2.75rem;
    }
    
    .h3 {
        font-size: 1.875rem;
    }
    
    /* Hero section large screen adjustments */
    #hero {
        padding-top: 10rem;
        padding-bottom: 8rem;
    }
    
    /* Enhanced card spacing */
    .card-deck .card {
        margin-bottom: 0;
    }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Maximum spacing for very large screens */
    .section-padding {
        padding: 7rem 0;
    }
}

/* Portrait Orientation Specific */
@media (orientation: portrait) and (max-width: 768px) {
    /* Mobile portrait specific adjustments */
    #hero {
        min-height: 80vh;
    }
    
    /* Stack hero content vertically */
    .hero-content {
        text-align: center;
    }
    
    /* Gallery columns for portrait mobile */
    .gallery-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Landscape Orientation Specific */
@media (orientation: landscape) and (max-width: 768px) {
    /* Mobile landscape adjustments */
    #hero {
        min-height: 100vh;
        padding-top: 5rem;
    }
    
    /* Reduce section padding in landscape */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhanced shadows for retina */
    .card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .shadow-sm {
        box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable Sal.js animations */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Disable hover transforms */
    .card:hover,
    .hover-lift:hover {
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and footer for printing */
    .navbar,
    #footer {
        display: none !important;
    }
    
    /* Optimize content for print */
    .container {
        max-width: none;
        width: 100%;
    }
    
    /* Remove background colors and shadows */
    .bg-light,
    .bg-primary {
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    /* Ensure text is readable */
    body {
        color: black !important;
        background: white !important;
    overflow-x: hidden;
}
}

/* Dark Mode Support (if user prefers) */

/* Custom Breakpoints for specific components */

/* Service Cards Responsive Grid */
@media (min-width: 576px) and (max-width: 991.98px) {
    .services-grid .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

/* Team Member Responsive Layout */
@media (max-width: 991.98px) {
    .team-grid .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .team-grid .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
}

/* FAQ Responsive Grid */
@media (max-width: 767.98px) {
    .faq-grid .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Gallery Responsive Grid */
@media (max-width: 575.98px) {
    .gallery-grid .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Blog Grid Responsive */
@media (max-width: 991.98px) {
    .blog-grid .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Contact Form Responsive */
@media (max-width: 767.98px) {
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
} 