/* Responsive Design - Mobile First */

/* Base Mobile Styles */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.84rem;
    }
    
    h3 {
        font-size: 1.51rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.35rem;
    }
    
    /* Navigation */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 3px solid #e9f0ff;
        padding-top: 1rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 100px;
        min-height: auto;
    }
    
    #hero h1 {
        font-size: 2.00rem;
        margin-bottom: 1rem;
    }
    
    #hero h2 {
        font-size: 1.26rem;
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        font-size: 1rem;
        margin-bottom: 1.67rem;
    }
    
    #hero .btn {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Images */
    img[id^="team_"] {
        width: 100px;
        height: 100px;
    }
    
    .col-6 {
        margin-bottom: 1rem;
    }
    
    /* Process Steps */
    .bg-primary.rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1rem;
    }
    
    /* Contact Form */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    footer .text-end {
        text-align: start !important;
    }
    
    /* Remove animations on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    }
    
    /* Price Plan Cards */
    #priceplan .col-lg-4 {
        margin-bottom: 1.58rem;
    }
    
    /* Services Grid */
    .col-md-6.col-lg-4 {
        margin-bottom: 1.65rem;
    }
    
    /* Statistics Display */
    .display-4 {
        font-size: 2.63rem;
    }
}

/* Tablet Styles */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.39rem;
    }
    
    /* Hero adjustments */
    #hero h1 {
        font-size: 2.30rem;
    }
    
    #hero h2 {
        font-size: 1.60rem;
    }
    
    /* Team images */
    img[id^="team_"] {
        width: 110px;
        height: 110px;
    }
    
    /* Process steps */
    .bg-primary.rounded-circle {
        width: 55px !important;
        height: 55px !important;
    }
}

/* Small Desktop */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Team layout adjustments */
    .col-lg-2.col-md-4 {
        margin-bottom: 1.67rem;
    }
    
    /* Services grid */
    .col-lg-4 {
        margin-bottom: 1.57rem;
    }
}

/* Large Desktop */
@media (min-width: 992px) {
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Enhanced hover effects */
    .card:hover {
        transform: translateY(-8px);
    }
    
    /* Team grid optimization */
    .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra Large Desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    /* Larger typography for better readability */
    h1 {
        font-size: 2.89rem;
    }
    
    h2 {
        font-size: 2.33rem;
    }
    
    .display-4 {
        font-size: 3rem;
    }
}

/* Ultra Wide Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Even more spacing for ultra-wide */
    .py-5 {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering */
    .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    img[id^="team_"] {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 100px 0 2rem;
    }
    
    .min-vh-100 {
        min-height: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .card:hover {
        box-shadow: none !important;
        transform: none !important;
    }
    
    .bg-primary,
    .bg-light {
        background: white !important;
        color: black !important;
    }
    
    a {
        text-decoration: underline !important;
    }
}

/* Focus States for Accessibility */
@media (min-width: 768px) {
    .btn:focus,
    .form-control:focus,
    .form-select:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: 0.25rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn,
    .nav-link,
    .form-control,
    .form-select {
        transition: none;
    }
    
    #hero::before {
        animation: none;
    }
}

/* Dark Mode Support (if needed in future) */

body {
    overflow-x: hidden;
}