/* Responsive CSS for ModuSpace Template */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    h3, .h3 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar Brand Size */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    /* Hero Section */
    #hero {
        padding: 2rem 0;
        min-height: 80vh;
    }
    
    #hero .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Section Padding */
    section {
        padding: 2.5rem 0;
    }
    
    .py-5 {
        padding: 2.5rem 0;
    }
    
    /* Card Image Height */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Images */
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Icon Circles */
    .rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Process Steps Layout */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Timeline Layout */
    #timeline .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* FAQ Cards */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    #contact .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery Grid */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.75rem;
    }
    
    /* Additional Page Layouts */
    .col-lg-2.col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* NO ANIMATIONS ON MOBILE */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .rounded-circle:hover {
        transform: none !important;
    }
    
    #team img:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1, .h1 {
        font-size: 2.25rem;
    }
    
    h2, .h2 {
        font-size: 1.875rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 85vh;
    }
    
    #hero .btn {
        padding: 0.75rem 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    /* Section Padding */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding: 3rem 0;
    }
    
    /* Card Image Height */
    .card-img-top {
        height: 190px;
    }
    
    /* Team Images */
    #team img {
        width: 110px;
        height: 110px;
    }
    
    /* Process and Timeline */
    #process .col-lg-2,
    #timeline .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    /* Additional Page Elements */
    .col-lg-2.col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Footer */
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover,
    .rounded-circle:hover,
    #team img:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    #hero {
        min-height: 90vh;
    }
    
    /* Section Padding */
    section {
        padding: 3.5rem 0;
    }
    
    .py-5 {
        padding: 3.5rem 0;
    }
    
    /* Services Grid */
    #services .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Features Layout */
    #features .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Price Plan */
    #priceplan .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Reviews */
    #reviews .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Case Studies */
    #casestudy .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Blog Grid */
    #blog .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Career */
    #career .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Core Info */
    #coreinfo .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Contact Layout */
    #contact .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    /* Process and Timeline Grid */
    #process .col-lg-2,
    #timeline .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    /* Additional Pages */
    .col-lg-2.col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Team Layout */
    #team .col-lg-2 {
        margin-bottom: 1rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    #hero {
        min-height: 95vh;
    }
    
    /* Section Padding */
    section {
        padding: 4rem 0;
    }
    
    /* Services Grid Spacing */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Price Plan */
    #priceplan .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Reviews Grid */
    #reviews .col-lg-4:nth-child(4),
    #reviews .col-lg-4:nth-child(5) {
        margin-top: 1rem;
    }
    
    /* Blog Grid */
    #blog .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Case Studies */
    #casestudy .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Career Grid */
    #career .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Core Info Grid */
    #coreinfo .col-lg-4 {
        margin-bottom: 1rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Container Max Width */
    .container {
        max-width: 1200px;
    }
    
    /* Enhanced spacing for larger screens */
    section {
        padding: 5rem 0;
    }
    
    .py-5 {
        padding: 5rem 0;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #footer,
    .breadcrumb {
        display: none !important;
    }
    
    /* Adjust typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Remove shadows and borders */
    .card,
    .shadow,
    .shadow-sm {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    /* Ensure images fit on page */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}

/* High DPI/Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    /* Reduce hero height on landscape mobile */
    #hero {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
} 