/* Responsive Design - Mobile First Approach */

/* Extra Large devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-5 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero section adjustments */
    #hero .display-5 {
        font-size: 2.75rem;
    }
    
    /* Process section - horizontal layout */
    #process .row {
        align-items: center;
    }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    /* Typography adjustments */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Card grid improvements */
    .card-img-top {
        height: 220px;
    }
    
    /* Team section - better spacing */
    #team .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Button improvements */
    .btn-lg {
        padding: 1rem 2.5rem;
    }
    
    /* Form improvements */
    .form-control {
        padding: 0.875rem 1rem;
    }
}

/* Mobile devices (up to 575px) */
@media (max-width: 575.98px) {
    /* NO SCROLL ANIMATIONS ON MOBILE - Following the rules */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Typography - smaller sizes for mobile */
    .display-5 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation - standard Bootstrap mobile menu */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        border: 1px solid rgba(0,0,0,.1);
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    #hero .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Remove hero shapes on mobile for better performance */
    .hero-shapes {
        display: none;
    }
    
    /* Section spacing - reduced for mobile */
    section {
        padding: 3rem 0;
    }
    
    /* Cards - full width on mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Buttons - full width on mobile */
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form - better mobile experience */
    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 1rem;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
    
    /* Process numbers - smaller on mobile */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    .circular-step {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    /* Statistics - stacked layout */
    .stat-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Team images - smaller on mobile */
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* Footer - stacked layout */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Gallery - 2 columns on mobile */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact section - single column */
    #contacts .col-lg-8,
    #contacts .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Services - single column cards */
    #services .card {
        margin-bottom: 1.5rem;
    }
    
    /* Price plans - single column */
    #priceplan .card {
        margin-bottom: 2rem;
    }
    
    /* Case studies - single column */
    #casestudy .card {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ - single column */
    #faq .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Reviews - single column */
    #reviews .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Feature icons - smaller */
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    /* Text alignment - center on mobile */
    .text-lg-start {
        text-align: center !important;
    }
    
    /* Spacing utilities for mobile */
    .mb-mobile-3 {
        margin-bottom: 1rem;
    }
    
    .py-mobile-2 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Extra small devices (up to 375px) */
@media (max-width: 374.98px) {
    /* Very small screens - further reductions */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.375rem; }
    
    /* Buttons - smaller padding */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    /* Cards - smaller images */
    .card-img-top {
        height: 150px;
    }
    
    /* Process/step numbers - even smaller */
    .process-number,
    .step-number,
    .circular-step {
        width: 45px;
        height: 45px;
        font-size: 0.875rem;
    }
    
    /* Team images - smaller */
    #team img {
        width: 100px;
        height: 100px;
    }
}

/* Tablet devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tablet-specific optimizations */
    .card-img-top {
        height: 200px;
    }
    
    /* Services - 2 columns on tablet */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team - 2 columns on tablet */
    #team .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Reviews - 2 columns on tablet */
    #reviews .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Process - 2 columns on tablet */
    #process .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Landscape mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    /* Reduce hero height in landscape */
    #hero {
        min-height: 80vh;
    }
    
    /* Reduce section padding in landscape */
    section {
        padding: 2rem 0;
    }
    
    /* Smaller process numbers in landscape */
    .process-number,
    .step-number,
    .circular-step {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card-img-top,
    #team img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced motion preferences - mobile specific */
@media (prefers-reduced-motion: reduce) and (max-width: 575.98px) {
    /* Ensure no animations on mobile when user prefers reduced motion */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover,
    #team img:hover {
        transform: none;
    }
    
    .btn,
    .form-control,
    .nav-link {
        transition: none;
    }
}

/* Print styles for mobile */
@media print {
    /* Ensure proper printing on all devices */
    .col-lg-4,
    .col-md-6,
    .col-sm-12 {
        width: 100% !important;
        float: none !important;
    }
    
    .card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .btn {
        display: none !important;
    }
} 

body {
    overflow-x: hidden;
}