/* Responsive Design - Mobile First Approach */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero h1 {
        font-size: 2.58rem;
    }
    
    .card-img-top {
        height: 220px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    #hero {
        padding-top: 90px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    #team .card-img-top {
        height: 230px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    #hero {
        padding-top: 85px;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero .lead {
        font-size: 1.15rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    #team .card-img-top {
        height: 200px;
    }
    
    /* Tablet specific adjustments */
    .navbar-brand {
        font-size: 1.45rem !important;
    }
    
    h2 {
        font-size: 1.83rem;
    }
    
    h3 {
        font-size: 1.42rem;
    }
    
    /* Services cards on tablet */
    #services .col-md-6:nth-child(3n+1) {
        clear: left;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    #hero {
        padding-top: 80px;
        text-align: center;
    }
    
    #hero h1 {
        font-size: 2.03rem;
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        font-size: 1.08rem;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .py-5 {
        padding-top: 3.60rem;
        padding-bottom: 3.69rem;
    }
    
    h2 {
        font-size: 1.62rem;
    }
    
    h3 {
        font-size: 1.40rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    #team .card-img-top {
        height: 180px;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.65rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.65rem 0.9rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Disable all animations on mobile */
    *, *::before, *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.22rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
    
    /* Hero section mobile */
    #hero {
        padding-top: 75px;
        padding-bottom: 3rem;
        text-align: center;
        min-height: 80vh;
    }
    
    #hero h1 {
        font-size: 1.86rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        font-size: 1rem;
        margin-bottom: 0.94rem;
    }
    
    #hero p {
        font-size: 0.91rem;
        margin-bottom: 1.64rem;
    }
    
    /* Typography mobile */
    h2 {
        font-size: 1.61rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.33rem;
    }
    
    h4 {
        font-size: 1.27rem;
    }
    
    h5 {
        font-size: 1.18rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.98rem;
        line-height: 1.5;
    }
    
    /* Section spacing mobile */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 1.58rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-img-top {
        height: 150px;
    }
    
    #team .card-img-top {
        height: 170px;
    }
    
    /* Buttons mobile */
    .btn {
        width: 100%;
        margin-bottom: 0.72rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1.02rem;
    }
    
    /* Form mobile */
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.97rem;
    }
    
    .form-label {
        font-size: 1.00rem;
    }
    
    /* Grid adjustments mobile */
    .row > * {
        margin-bottom: 1rem;
    }
    
    /* Process steps mobile */
    .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1.04rem;
    }
    
    /* Icons mobile */
    .fa-3x {
        font-size: 2rem;
    }
    
    .fa-2x {
        font-size: 1.58rem;
    }
    
    /* Footer mobile */
    #footer {
        text-align: center;
    }
    
    #footer .row > div {
        margin-bottom: 2rem;
    }
    
    #footer h5, #footer h6 {
        font-size: 1.23rem;
    }
    
    /* Contact info mobile */
    #contacts .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Gallery mobile */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Blog grid mobile */
    #blog_grid .col-lg-4 {
        margin-bottom: 1.58rem;
    }
    
    /* FAQ mobile */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Price plan mobile */
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    #priceplan .card-header h5 {
        font-size: 1.23rem;
    }
    
    #priceplan .card-body h3 {
        font-size: 1.86rem;
    }
    
    /* Services mobile */
    #services .col-lg-4 {
        margin-bottom: 1.74rem;
    }
    
    /* Features mobile */
    #f3e998tures .col-lg-3 {
        margin-bottom: 1.59rem;
    }
    
    /* About features mobile */
    #about .col-lg-3 {
        margin-bottom: 1.73rem;
    }
    
    /* Team mobile */
    #team .col-lg-4 {
        margin-bottom: 1.68rem;
    }
    
    /* Reviews mobile */
    #reviews .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Case studies mobile */
    #casestudy .col-lg-4 {
        margin-bottom: 1.56rem;
    }
    
    /* Process mobile */
    #process .col-lg-4 {
        margin-bottom: 1.59rem;
    }
    
    /* Timeline mobile */
    #timeline .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Career mobile */
    #career .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Core info mobile */
    #coreinfo .col-lg-4 {
        margin-bottom: 1.62rem;
    }
}

/* Landscape phone adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 70vh;
        padding-top: 70px;
        padding-bottom: 2rem;
    }
    
    #hero h1 {
        font-size: 1.64rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .py-5 {
        padding-top: 2.66rem;
        padding-bottom: 2.61rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    #team .card-img-top,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    #header,
    #footer,
    .btn,
    .navbar {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }
    
    .container {
        max-width: none;
        width: 100%;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #d1c8c9;
        box-shadow: none;
        page-break-inside: avoid;
    }
} 