/* ========================================
   RESPONSIVE STYLES
   Mobile-first approach with Bootstrap 5 breakpoints
   ======================================== */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    .h1, h1 {
        font-size: 1.5rem !important;
    }
    
    .h2, h2 {
        font-size: 1.375rem !important;
    }
    
    .h3, h3 {
        font-size: 1.25rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    #hero .container {
        text-align: center;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Section padding adjustments */
    section {
        padding: 2rem 0 !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Grid adjustments */
    .row.g-4 > * {
        margin-bottom: 1.5rem;
    }
    
    /* Team member images */
    #team img {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Process steps */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Timeline adjustments */
    #timeline .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Contact form */
    #contacts .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Hide animations on mobile for better performance */
    .fade-in,
    .card:hover,
    .btn:hover,
    #team img:hover,
    #gallery img:hover {
        transform: none !important;
        transition: none !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem !important;
    }
    
    .h1, h1 {
        font-size: 1.75rem !important;
    }
    
    #hero {
        min-height: 70vh;
    }
    
    .btn {
        width: auto;
        min-width: 140px;
    }
    
    /* Team grid adjustments */
    #team .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Services grid */
    #services .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.25rem !important;
    }
    
    .h1, h1 {
        font-size: 2rem !important;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Grid adjustments for tablets */
    .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Team layout for tablets */
    #team .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Process steps layout */
    #process .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Timeline layout */
    #timeline .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    /* Adjust team member spacing */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Process steps */
    #process .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Timeline steps */
    #timeline .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hover effects for larger screens */
    .card:hover {
        transform: translateY(-8px) !important;
    }
    
    .btn:hover {
        transform: translateY(-3px) !important;
    }
    
    #team img:hover {
        transform: scale(1.1) !important;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Increase section padding for ultra-wide screens */
    section {
        padding: 6rem 0 !important;
    }
    
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Portrait tablets and small laptops */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    #hero {
        min-height: 60vh;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    /* Adjust card layouts */
    .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .col-lg-6 {
        margin-bottom: 2rem;
    }
}

/* Landscape phones */
@media (min-width: 576px) and (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 50vh;
    }
    
    .navbar-nav {
        flex-direction: row;
        justify-content: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Reduce section padding in landscape */
    section {
        padding: 2rem 0 !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;
        image-rendering: crisp-edges;
    }
}

/* Specific component responsive adjustments */

/* Hero section responsive layout */
@media (max-width: 991.98px) {
    #hero .row {
        text-align: center;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    #hero .d-flex {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Services grid responsive */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Features section responsive */
@media (max-width: 991.98px) {
    #features .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    #features .d-flex {
        text-align: center;
        flex-direction: column;
    }
    
    #features .flex-shrink-0 {
        margin-bottom: 1rem;
    }
    
    #features .flex-grow-1 {
        margin-left: 0 !important;
    }
}

/* Pricing plans responsive */
@media (max-width: 991.98px) {
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Team section responsive */
@media (max-width: 575.98px) {
    #team .row {
        justify-content: center;
    }
    
    #team .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

/* Reviews section responsive */
@media (max-width: 991.98px) {
    #reviews .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    #reviews .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

/* Case studies responsive */
@media (max-width: 991.98px) {
    #casestudy .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Process section responsive */
@media (max-width: 575.98px) {
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    #process .rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    #process .h4 {
        font-size: 1rem !important;
    }
}

/* Timeline responsive */
@media (max-width: 575.98px) {
    #timeline .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    #timeline .bg-light {
        padding: 2rem 1rem !important;
    }
}

/* Career section responsive */
@media (max-width: 991.98px) {
    #career .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

/* Core info responsive */
@media (max-width: 767.98px) {
    #coreinfo .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    #coreinfo .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Blog section responsive */
@media (max-width: 991.98px) {
    #blog .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* FAQ responsive */
@media (max-width: 991.98px) {
    #faq .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

/* Gallery responsive */
@media (max-width: 767.98px) {
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Contact section responsive */
@media (max-width: 991.98px) {
    #contacts .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    #contacts .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    #contacts .row.g-3 .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Footer responsive */
@media (max-width: 991.98px) {
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .row.align-items-center {
        text-align: center;
    }
    
    footer .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Additional page sections responsive */
@media (max-width: 575.98px) {
    .col-lg-2.col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Utilities for responsive design */
.d-mobile-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block !important;
    }
}

.d-desktop-none {
    display: block !important;
}

@media (min-width: 768px) {
    .d-desktop-none {
        display: none !important;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 767.98px) {
    /* Disable expensive effects on mobile */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Simplify shadows on mobile */
    .shadow,
    .shadow-sm,
    .shadow-lg {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    /* Reduce border radius on mobile for better performance */
    .card,
    .btn,
    .form-control {
        border-radius: 0.375rem !important;
    }
}

/* Print responsive adjustments */
@media print {
    /* Ensure proper layout for printing */
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-md-4,
    .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 1rem !important;
    }
    
    /* Adjust font sizes for print */
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    .h1, h1 {
        font-size: 1.25rem !important;
    }
    
    .h2, h2 {
        font-size: 1.125rem !important;
    }
} 