/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No animations on mobile as per requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 1.8rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .h4 {
        font-size: 1.1rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding-top: 70px;
    }
    
    .hero-content {
        text-align: center;
        padding: 20px;
    padding-top: 125px;
}
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Section spacing */
    section {
        padding: 40px 0;
    }
    
    /* Team photos */
    .team-photo img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps */
    .step-number {
        font-size: 2rem;
    }
    
    /* Case numbers */
    .case-number {
        font-size: 2rem;
    }
    
    /* Timeline years */
    .timeline-year {
        font-size: 1.2rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 20px;
    }
    
    /* Gallery spacing */
    #gallery .row {
        gap: 10px;
    }
    
    /* Service cards */
    .service-card .card-img-top {
        height: 150px;
    }
    
    /* Blog cards */
    .blog-card .card-img-top {
        height: 150px;
    }
    
    /* Pricing cards */
    .pricing-card {
        margin-bottom: 20px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.7rem;
    }
    
    /* Hero adjustments */
    .hero-content {
        text-align: center;
        padding: 30px;
    padding-top: 125px;
}
    
    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    
    /* Section spacing */
    section {
        padding: 50px 0;
    }
    
    /* Team photos */
    .team-photo img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 25px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 2.2rem;
    }
    
    /* Hero adjustments */
    .hero-content {
        padding: 40px;
    padding-top: 125px;
}
    
    /* Section spacing */
    section {
        padding: 60px 0;
    }
    
    /* Team layout */
    .team-member {
        margin-bottom: 30px;
    }
    
    /* Service cards grid */
    .service-card {
        margin-bottom: 20px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard spacing maintained */
    section {
        padding: 70px 0;
    }
    
    /* Fine-tune team layout */
    .team-photo img {
        width: 110px;
        height: 110px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Maximum container width */
    .container {
        max-width: 1140px;
    }
    
    /* Full section spacing */
    section {
        padding: 80px 0;
    }
    
    /* Hero enhancements */
    .hero-content {
        padding: 60px;
    padding-top: 125px;
}
    
    /* Team photos at full size */
    .team-photo img {
        width: 120px;
        height: 120px;
    }
}

/* Specific component responsive adjustments */

/* Navigation responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Hero responsive */
@media (max-width: 991.98px) {
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-image {
        margin-bottom: 30px;
    }
    
    .hero-image img {
        border-radius: 15px;
        max-height: 300px;
        width: 100%;
        object-fit: cover;
    }
}

/* Grid adjustments */
@media (max-width: 767.98px) {
    /* Services grid - 1 column on mobile */
    #services .col-lg-4 {
        margin-bottom: 20px;
    }
    
    /* Features grid - 1 column on mobile */
    #features .col-lg-3 {
        margin-bottom: 20px;
    }
    
    /* Process steps - 2 columns on mobile */
    #process .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 20px;
    }
    
    /* Timeline - 2 columns on mobile */
    #timeline .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 20px;
    }
    
    /* Team - 2 columns on mobile */
    #team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 20px;
    }
    
    /* Core info - 1 column on mobile */
    #coreinfo .col-lg-4 {
        margin-bottom: 20px;
    }
    
    /* Gallery - 2 columns on mobile */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Pricing table responsive */
@media (max-width: 991.98px) {
    .pricing-card {
        max-width: 400px;
        margin: 0 auto 30px;
    }
}

/* Contact section responsive */
@media (max-width: 991.98px) {
    .contact-info {
        margin-bottom: 40px;
    }
    
    .contact-item {
        margin-bottom: 25px;
        text-align: center;
    }
}

/* Footer responsive */
@media (max-width: 767.98px) {
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 30px;
        text-align: center;
    }
    
    footer .row.align-items-center {
        text-align: center;
    }
    
    footer .col-md-6.text-md-end {
        text-align: center;
        margin-top: 20px;
    }
}

/* Form responsive */
@media (max-width: 575.98px) {
    .form-control {
        padding: 10px 12px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Cards responsive */
@media (max-width: 575.98px) {
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .service-card .card-body,
    .blog-card .card-body,
    .review-card .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
}

/* Typography responsive fine-tuning */
@media (max-width: 575.98px) {
    h1, .h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3, .h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    h4, .h4 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    h5, .h5 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    p, .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Image responsive */
@media (max-width: 767.98px) {
    .card-img-top {
        height: 180px;
    }
}

/* Button responsive */
@media (max-width: 575.98px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Spacing adjustments for mobile */
@media (max-width: 575.98px) {
    .mb-3 {
        margin-bottom: 1rem;
    }
    
    .mb-4 {
        margin-bottom: 1.2rem;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* 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;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }
    
    .navbar {
        padding: 5px 0;
    }
    
    section {
        padding: 30px 0;
    }
}

/* Print responsive */
@media print {
    * {
        color: black;
        background: white;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    .row {
        display: block;
    }
    
    .col-lg-6,
    .col-md-6,
    .col-sm-6 {
        width: 50%;
        float: left;
    }
    
    .col-lg-4,
    .col-md-4 {
        width: 33.333%;
        float: left;
    }
    
    .col-lg-3,
    .col-md-3 {
        width: 25%;
        float: left;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .card {
        border: 1px solid black;
        break-inside: avoid;
    }
} 