/* Responsive Design - Mobile First Approach */

/* Base styles are for mobile (320px and up) */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    /* Hero section adjustments */
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero .lead {
        font-size: 1.25rem;
    }
    
    /* Services cards in 2 columns */
    #services .row .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Team section adjustments */
    #team img {
        width: 140px;
        height: 140px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    /* Hero section full layout */
    #hero {
        min-height: 100vh;
    }
    
    #hero h1 {
        font-size: 3.5rem;
    }
    
    /* Navigation improvements */
    .navbar-nav .nav-link {
        padding: 0.5rem 1.5rem;
    }
    
    /* Services cards in 3 columns */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Features section layout */
    #features .row {
        align-items: center;
    }
    
    /* Team section layout */
    #team .col-lg-2 {
        text-align: center;
    }
    
    #team img {
        width: 120px;
        height: 120px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero h1 {
        font-size: 4rem;
    }
    
    /* Larger spacing for desktop */
    section {
        padding: 6rem 0;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Mobile-specific styles (up to 767px) */
@media (max-width: 767px) {
    /* Disable animations on mobile as per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Mobile navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 100vh;
        padding-top: 80px;
        text-align: center;
    }
    
    #hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        font-size: 1.125rem;
    }
    
    #hero .btn {
        margin-top: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Section spacing mobile */
    section {
        padding: 3rem 0;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Services section mobile */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Features section mobile */
    #features .d-flex {
        margin-bottom: 2rem;
    }
    
    #features .fa-2x {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Price plans mobile */
    #priceplan .card.border-primary {
        transform: none;
        margin-bottom: 1.5rem;
    }
    
    #priceplan .text-primary {
        font-size: 1.75rem;
    }
    
    /* Team section mobile */
    #team .col-lg-2 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Reviews mobile */
    #reviews .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ mobile */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery mobile - 2 columns */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact section mobile */
    #contact .row.mt-5 .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #footer .col-md-6 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    #footer .col-md-6.text-end {
        text-align: center;
    }
}

/* Tablet specific styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Hero section tablet */
    #hero .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Services tablet - 2 columns */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team tablet */
    #team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Gallery tablet - 3 columns */
    #gallery .col-lg-3 {
        margin-bottom: 1.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card-img-top,
    #gallery img,
    #team img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    #hero h1 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Print styles for responsive design */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    #contact form,
    #footer {
        display: none;
    }
    
    /* Optimize layout for print */
    .container {
        max-width: none;
        width: 100%;
    }
    
    .col-lg-4,
    .col-lg-6,
    .col-md-6 {
        width: 50%;
        float: left;
    }
    
    .col-lg-12 {
        width: 100%;
    }
    
    /* Ensure proper spacing */
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #000;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
}

/* Accessibility improvements for different screen sizes */
@media (min-width: 768px) {
    /* Larger focus indicators for desktop */
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline-width: 3px;
    }
}

/* Reduced motion preferences - mobile specific */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Dark mode support (if system prefers dark) */

body {
    overflow-x: hidden;
}