/* Responsive CSS - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .h4 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 100px;
        min-height: 100vh;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Disable animations on mobile as per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Cards and Components */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card {
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .contact-form .btn {
        width: 100%;
    }
    
    /* Team Members */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Gallery */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        margin-right: 1rem;
    }
    
    /* Disable animations on mobile as per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    /* Hero adjustments */
    #hero {
        padding-top: 120px;
    }
    
    /* Service cards in rows of 2 */
    .service-card {
        min-height: 400px;
    }
    
    /* Team layout adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    /* Service cards in rows of 3 */
    .service-card {
        min-height: 450px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hover effects for larger screens */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover {
        transform: translateY(-10px);
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Larger typography for ultra-wide screens */
    .display-4 {
        font-size: 3rem;
    }
    
    .h2 {
        font-size: 2.5rem;
    }
}

/* Height-based Media Queries */
@media (max-height: 600px) {
    #hero {
        min-height: 80vh;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .hero-buttons {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    overflow-x: hidden;
}
    
    .container {
        max-width: none !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion Preferences - Override animations */
@media (prefers-reduced-motion: reduce) {
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .btn:hover {
        transform: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (if system preference) */

/* Focus Visible for Better Accessibility */
@media (any-hover: hover) {
    .btn:focus-visible,
    .nav-link:focus-visible,
    .form-control:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Container Adjustments for Different Screen Sizes */
@media (min-width: 576px) {
    .container-sm {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container-md {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container-lg {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container-xl {
        max-width: 1140px;
    }
}

/* Specific Component Responsive Adjustments */

/* Pricing Cards Mobile Stack */
@media (max-width: 767.98px) {
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .pricing-card .badge {
        position: relative !important;
        transform: none !important;
        margin-bottom: 1rem;
        display: inline-block;
    }
}

/* Gallery Responsive Grid */
@media (max-width: 575.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Contact Info Responsive Layout */
@media (max-width: 767.98px) {
    .contact-info {
        margin-bottom: 1.5rem;
        text-align: center;
    }
}

/* Footer Responsive Adjustments */
@media (max-width: 767.98px) {
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer .row:last-child .col-md-8,
    #footer .row:last-child .col-md-4 {
        text-align: center;
    }
}

/* Breadcrumb Responsive */
@media (max-width: 575.98px) {
    .breadcrumb-section {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-icon {
        width: 20px;
        height: 20px;
    }
}

/* Step Numbers Responsive */
@media (max-width: 767.98px) {
    .step-number,
    .step-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .step-number .h4,
    .step-icon i {
        font-size: 1.25rem;
    }
}

/* Metric Cards Responsive */
@media (max-width: 575.98px) {
    .metric-number {
        font-size: 2rem !important;
    }
} 