/* Responsive Styles - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    .h3 {
        font-size: 1.32rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile optimization */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    #hero .col-lg-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Navigation mobile adjustments */
    .navbar-brand {
        font-size: 1.24rem;
    }
    
    /* Card spacing on mobile */
    .card {
        margin-bottom: 1.74rem;
    }
    
    /* Button adjustments */
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.98rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    /* Section padding reduction */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Team member layout */
    #team .col-lg-2 {
        margin-bottom: 1.75rem;
    }
    
    /* Gallery grid adjustment */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* FAQ cards mobile spacing */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Services grid mobile */
    #services .col-lg-4 {
        margin-bottom: 1.58rem;
    }
    
    /* Price plan mobile */
    #priceplan .col-lg-4 {
        margin-bottom: 1.65rem;
    }
    
    /* Features mobile layout */
    #ede095tures .col-lg-3,
    #about .col-lg-3 {
        margin-bottom: 1.72rem;
    }
    
    /* Contact form mobile */
    #contacts .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile adjustments */
    #footer .col-lg-4 {
        margin-bottom: 1.74rem;
        text-align: center;
    }
    
    /* Additional pages mobile */
    .col-lg-2.col-md-4.col-6 {
        margin-bottom: 1.67rem;
    }
    
    /* Disable animations on mobile as per requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Mobile-specific hover effects removal */
    .card:hover {
        transform: none;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    }
    
    #gallery img:hover {
        transform: none;
        opacity: 1;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #team .text-center:hover img {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    h1, .display-4 {
        font-size: 2.37rem;
    }
    
    /* Grid adjustments */
    #services .col-lg-4 {
        margin-bottom: 1.65rem;
    }
    
    #priceplan .col-lg-4 {
        margin-bottom: 1.73rem;
    }
    
    /* Team layout */
    #team .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    /* Disable scroll animations on mobile */
    * {
        animation: none !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section tablet */
    #hero {
        min-height: 85vh;
    }
    
    h1, .display-4 {
        font-size: 2.65rem;
    }
    
    /* Services grid tablet */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Price plan tablet */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Features tablet layout */
    #fff89dtures .col-lg-3,
    #about .col-lg-3 {
        margin-bottom: 1.66rem;
    }
    
    /* Team tablet layout */
    #team .col-lg-2 {
        margin-bottom: 1.74rem;
    }
    
    /* FAQ tablet layout */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Large Devices (desktops, 997px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Fine-tune spacing for large screens */
    .container {
        max-width: 960px;
    }
    
    /* Hero full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Optimal card spacing */
    .card {
        margin-bottom: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Maximum container width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hero section */
    #hero {
        min-height: 100vh;
    }
    
    /* Larger font sizes for XL screens */
    h1, .display-4 {
        font-size: 3rem;
    }
    
    .h3 {
        font-size: 1.79rem;
    }
    
    .lead {
        font-size: 1.39rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .form-control {
        border-width: 1px;
    }
}

/* Landscape Orientation Specific */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero height on landscape mobile */
    #hero {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    /* Compact section padding */
    .py-5 {
        padding-top: 1.70rem !important;
        padding-bottom: 1.63rem !important;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    #header,
    .btn,
    #contacts form {
        display: none;
    }
    
    /* Ensure proper page breaks */
    section {
        page-break-inside: avoid;
    }
    
    /* Print-friendly colors */
    * {
        color: black !important;
        background: white !important;
    }
    
    /* Remove shadows and effects */
    .card {
        box-shadow: none;
        border: 1px solid #b9b9b9;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    /* Remove 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;
    }
    
    /* Disable Sal.js animations */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    /* Enhanced contrast for accessibility */
    .card {
        border: 2px solid var(--text-color);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
    
    .form-control {
        border: 2px solid var(--text-color);
    }
}

/* Dark Mode Preference */

/* Container Responsive Behavior */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Gallery Responsive Grid */
@media (max-width: 767.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Team Grid Responsive */
@media (max-width: 991.98px) {
    #team .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 575.98px) {
    #team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Services Grid Responsive */
@media (max-width: 991.98px) {
    #services .col-lg-4 {
        margin-bottom: 1.71rem;
    }
}

/* Form Responsive Enhancements */
@media (max-width: 767.98px) {
    #contacts .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid var(--secondary-color);
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer .list-unstyled {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    #footer .list-unstyled li {
        margin-bottom: 0;
    }
}

/* Additional Pages Responsive */
@media (max-width: 991.98px) {
    .col-lg-2.col-md-4.col-6 {
        margin-bottom: 1.58rem;
    }
}

@media (max-width: 575.98px) {
    .col-lg-2.col-md-4.col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
}

/* Breadcrumb Responsive */
@media (max-width: 575.98px) {
    .breadcrumb {
        justify-content: center;
    }
} 

body {
    overflow-x: hidden;
}