/* ===== MOBILE FIRST RESPONSIVE DESIGN ===== */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No animations on mobile as per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Typography adjustments */
    .hero-section h1 {
        font-size: 1.80rem;
    padding-top: 250px;
}
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 1.83rem;
    }
    
    .display-6 {
        font-size: 1.47rem;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 150px;
    }
    
    /* Button sizing */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Team member images */
    #team img {
        width: 80px;
        height: 80px;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact form spacing */
    #contact .form-control {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable animations on mobile */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 250px;
}
    
    .card-img-top {
        height: 180px;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.43rem;
    padding-top: 250px;
}
    
    .card-img-top {
        height: 200px;
    }
    
    /* Services grid adjustments */
    #services .col-lg-4:nth-child(3n+1) {
        clear: left;
    }
    
    /* Team layout adjustments */
    #team .col-lg-2 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 2.71rem;
    padding-top: 250px;
}
    
    /* Enhanced hover effects for desktop */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .btn:hover {
        transform: translateY(-3px);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 250px;
}
    
    .lead {
        font-size: 1.42rem;
    }
}

/* ===== NAVBAR RESPONSIVE BEHAVIOR ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--background-light);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.91rem;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        border-bottom: 8px solid var(--neutral-light);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* ===== HERO SECTION RESPONSIVE ===== */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* ===== SERVICES RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 1.69rem;
    }
}

/* ===== FEATURES RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #ffd291tures .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    #fffdactures .fas {
        font-size: 2rem;
    }
}

/* ===== TEAM RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #team .col-lg-2 {
        margin-bottom: 1.74rem;
    }
    
    #team .row {
        justify-content: center;
    }
}

/* ===== PROCESS RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #process .col-lg-2 {
        margin-bottom: 1.72rem;
    }
    
    #process .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* ===== CORE INFO RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #coreinfo .col-lg-2 {
        margin-bottom: 1.87rem;
    }
    
    #coreinfo h4 {
        font-size: 1.64rem;
    }
}

/* ===== GALLERY RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #gallery img {
        border-radius: 0.5rem;
    }
}

/* ===== CONTACT RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #contact .col-md-4 {
        margin-bottom: 1.71rem;
        text-align: center;
    }
    
    #contact .fas {
        font-size: 1.69rem;
    }
}

/* ===== FAQ RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #faq .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* ===== BLOG RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #blog .col-lg-4 {
        margin-bottom: 1.97rem;
    }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #footer ul {
        text-align: center;
    }
}

/* ===== ADDITIONAL PAGE RESPONSIVE ===== */
@media (max-width: 767.98px) {
    .breadcrumb-section {
        padding-top: 5rem;
        text-align: center;
    }
    
    /* Additional page sections */
    [id^="add_page_"] .col-lg-2 {
        margin-bottom: 1.75rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 767.98px) {
    /* Reduce image quality on mobile for performance */
    img {
        image-rendering: optimizeSpeed;
    }
    
    /* Simplify shadows on mobile */
    .card {
        box-shadow: 0 4px 3px rgba(0, 0, 0, 0.1);
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 6px 3px rgba(0, 0, 0, 0.1);
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card-img-top,
    #team img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===== PRINT RESPONSIVE ===== */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    .form-control,
    #footer {
        display: none !important;
    }
    
    /* Optimize spacing for print */
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #d4bab8;
    }
    
    /* Ensure text is readable */
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
} 