/* Responsive Design - Mobile First Approach */

/* Base styles are mobile-first, then we enhance for larger screens */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile adjustments */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    #hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    #hero h2 {
        font-size: 1.25rem;
    }
    
    #hero .lead {
        font-size: 1rem;
    }
    
    /* Remove animations on mobile for better performance */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    /* Section padding adjustments */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 180px;
    }
    
    #team .card-img-top {
        height: 200px;
    }
    
    /* Process section mobile layout */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Contact form adjustments */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero h2 {
        font-size: 1.375rem;
    }
    
    /* Card grid adjustments */
    .services-grid .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Process section */
    .process-step .step-number {
        width: 55px;
        height: 55px;
    }
    
    /* Team section */
    #team .card-img-top {
        height: 220px;
    }
    
    /* Gallery adjustments */
    #gallery .col-sm-6 {
        margin-bottom: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero h1 {
        font-size: 2.25rem;
    }
    
    #hero h2 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Services section */
    #services .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Features section tablet layout */
    #features .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Team section */
    #team .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Price plan section */
    #priceplan .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Process section */
    .process-step .step-number {
        width: 60px;
        height: 60px;
    }
    
    /* Timeline adjustments */
    #timeline .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Career section */
    #career .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ section */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero section full size */
    #hero h1 {
        font-size: 2.5rem;
    }
    
    /* Services grid */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team section adjustments */
    #team .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Process section desktop layout */
    .process-step {
        padding: 0 0.5rem;
    }
    
    /* Timeline desktop layout */
    #timeline .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    /* Core info section */
    #coreinfo .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Maximum container width */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section full desktop */
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero h2 {
        font-size: 1.75rem;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 5rem 0;
    }
    
    /* Process section full width */
    .process-step {
        padding: 0 1rem;
    }
    
    /* Team section optimal spacing */
    #team .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Gallery optimal grid */
    #gallery .col-lg-3 {
        margin-bottom: 2rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    #hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    #hero h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    #hero .lead {
        font-size: 1rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high DPI displays */
    .card-img-top,
    #team .card-img-top,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print media queries */
@media print {
    /* Hide interactive elements */
    .navbar,
    #footer,
    .btn,
    form {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    .container {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Hide decorative elements */
    .hero-decoration,
    .process-step .step-number {
        display: none;
    }
}

/* Accessibility - Reduced motion */
@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;
    }
    
    /* Remove hover effects that use transforms */
    .card:hover,
    #gallery img:hover,
    .hover-lift:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #000;
        --text-color: #000;
        --text-muted: #666;
        --border-color: #000;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}

/* Dark mode support */

/* Container max-width adjustments for different breakpoints */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    /* Touch devices - remove hover effects */
    .card:hover,
    #gallery img:hover,
    .hover-lift:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
    
    /* Larger touch targets */
    .btn,
    .nav-link,
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Custom breakpoints for specific sections */
@media (min-width: 480px) and (max-width: 767px) {
    /* Services section specific layout */
    #services .card {
        max-width: 400px;
        margin: 0 auto 2rem;
    }
    
    /* Team section specific layout */
    #team .card {
        max-width: 300px;
        margin: 0 auto 2rem;
    }
}

/* Aspect ratio maintenance for images */
@supports (aspect-ratio: 1 / 1) {
    .card-img-top {
        aspect-ratio: 16 / 9;
        height: auto;
    }
    
    #team .card-img-top {
        aspect-ratio: 4 / 5;
        height: auto;
    }
    
    #gallery img {
        aspect-ratio: 1 / 1;
        height: auto;
    }
}

/* Container queries support (future-proofing) */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card-title {
            font-size: 1rem;
        }
        
        .card-text {
            font-size: 0.875rem;
        }
    }
} 