/* Responsive Design - Mobile First Approach */

/* Large Devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.58rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.24rem;
        text-align: center;
    }
    
    .hero-desc {
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section img {
        margin-bottom: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.36rem !important;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .team-member {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    h1 { font-size: 1.89rem; }
    h2 { font-size: 1.63rem; }
    h3 { font-size: 1.44rem; }
    h4 { font-size: 1.35rem; }
    h5 { font-size: 1.21rem; }
    h6 { font-size: 1rem; }
    
    .hero-title {
        font-size: 1.88rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-section img {
        height: 250px;
    }
    
    .navbar-brand {
        font-size: 1.20rem !important;
    }
    
    .service-card, .feature-card, .pricing-card, .review-card,
    .case-study-card, .blog-card, .job-card, .info-card {
        margin-bottom: 1.73rem;
        padding: 1rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-top: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        margin-top: 1.62rem;
        padding: 1.5rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
    
    .timeline-item {
        padding: 1rem;
    }
    
    .accordion-item h6 {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .accordion-item p {
        padding: 0.75rem;
    }
    
    .gallery img {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    footer {
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.61rem;
    }
    
    .hero-subtitle {
        font-size: 0.92rem;
    }
    
    .hero-desc {
        font-size: 0.96rem;
    }
    
    .hero-section img {
        height: 200px;
    }
    
    .service-card img, 
    .case-study-card img, 
    .blog-card img {
        height: 150px;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .pricing-card ul {
        padding-left: 1rem;
    }
    
    .navbar-toggler {
        border: none;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
    
    .gallery img {
        height: 180px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    footer,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        background: none !important;
        color: black !important;
    }
    
    .service-card, .feature-card, .pricing-card,
    .review-card, .case-study-card, .blog-card {
        box-shadow: none;
        border: 1px solid #e1cbcb;
        page-break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section img,
    .service-card img,
    .case-study-card img,
    .blog-card img,
    .team-photo,
    .gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Preferences */
@media (prefers-color-scheme: dark) {
    /* Note: Template should not have dark theme for accessibility as per requirements */
    /* This is kept empty intentionally */
}

/* Container Adjustments */
@media (max-width: 1199.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 991.98px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Utility Classes for Responsive Design */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .hide-mobile {
        display: none;
    }
    
    .show-mobile {
        display: block;
    }
}

/* Responsive Text Alignment */
@media (max-width: 767.98px) {
    .text-md-center {
        text-align: center !important;
    }
    
    .text-md-left {
        text-align: left !important;
    }
}

/* Responsive Spacing */
@media (max-width: 991.98px) {
    .py-lg-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 767.98px) {
    .py-md-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-md-3 {
        margin-bottom: 1rem !important;
    }
    
    .mt-md-2 {
        margin-top: 0.61rem !important;
    }
}

/* Responsive Grid Adjustments */
@media (max-width: 767.98px) {
    .row-cols-md-1 > * {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
} 