/* ========================================== MEDIA QUERIES START ========================================== */

/* Base (very small devices) */
html, body {
    font-size: 9px;
}

/* Small devices (mobile phones, portrait) */
@media (min-width: 320px) and (max-width: 480px) {
    html, body {
        font-size: 10px;
    }
    
    /* Adjust top bar spacing */
    .el-top-bar {
        padding: 8px 0;
    }
    
    /* Adjust navbar for mobile */
    .el-navbar {
        padding: 15px 0;
        top: 0;
    }
    
    .el-navbar-brand img {
        width: 200px;
        height: auto;
    }
    
    /* Hero section adjustments */
    .el-hero {
        padding: 120px 0 60px;
        min-height: 80vh;
    }
    
    .el-hero-title {
        font-size: 1.8rem;
    }
    
    .el-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-service-types {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .hero-service-type {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .el-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Section spacing adjustments */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }
    
    /* Footer adjustments */
    .el-footer {
        padding: 60px 0 20px;
    }
    
    .el-footer .row {
        margin: 0 -10px;
    }
    
    .el-footer h5 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .el-copyright {
        margin-top: 30px;
        padding-top: 15px;
    }
    
    /* Floating buttons adjustments */
    .floating-chat-btn {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
    
    .chat-option {
        width: 45px;
        height: 45px;
        font-size: 10px;
    }
    
    .back-to-top {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
}

/* Medium devices (large phones & small tablets) */
@media (min-width: 481px) and (max-width: 767px) {
    html, body {
        font-size: 11px;
    }
    
    /* Adjust navbar */
    .el-navbar {
        padding: 18px 0;
    }
    
    /* Hero section adjustments */
    .el-hero {
        padding: 140px 0 80px;
        min-height: 85vh;
    }
    
    .el-hero-title {
        font-size: 2rem;
    }
    
    .el-hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Section spacing */
    section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Footer adjustments */
    .el-footer {
        padding: 70px 0 25px;
    }
    
        /* Floating buttons adjustments */
    .floating-chat-btn {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
    
    .chat-option {
        width: 45px;
        height: 45px;
        font-size: 10px;
    }
    
    .back-to-top {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
}

/* Large devices (tablets, small laptops) */
@media (min-width: 768px) and (max-width: 1024px) {
    html, body {
        font-size: 12px;
    }
    
    /* Adjust top bar */
    .el-top-contact-info span {
        margin-right: 15px;
        font-size: 0.8rem;
    }
    
    /* Hero section adjustments */
    .el-hero {
        padding: 160px 0 90px;
    }
    
    .el-hero-title {
        font-size: 2.1rem;
    }
    
    /* Section spacing */
    section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.1rem;
    }

        /* Floating buttons adjustments */
    .floating-chat-btn {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
    
    .chat-option {
        width: 45px;
        height: 45px;
        font-size: 10px;
    }
    
    .back-to-top {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
}

/* Extra large devices (desktops and laptops) */
@media (min-width: 1025px) and (max-width: 1440px) {
    html, body {
        font-size: 14px;
    }
    
    /* Adjust section spacing */
    section {
        padding: 90px 0;
    }
}

/* Ultra wide screens (large desktops, TVs) */
@media (min-width: 1441px) {
    html, body {
        font-size: 16px;
    }
    
    /* Container max-width adjustments for ultra-wide screens */
    .container {
        max-width: 1320px;
    }
    
    /* Adjust section spacing */
    section {
        padding: var(--section-spacing) 0;
    }
}

/* Additional responsive adjustments for all screen sizes */
@media (max-width: 991.98px) {
    /* Ensure navbar is always visible and properly styled on mobile/tablet */
    .el-navbar {
        background: var(--gradient-secondary) !important;
        position: fixed;
        top: 0;
        padding: 12px 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    }
    
    /* Adjust body padding to account for fixed navbar */
    body {
        padding-top: 70px;
    }
    
    /* Hero section adjustments for tablets */
    .el-hero {
        padding-top: 100px;
    }
    
    /* Footer column adjustments */
    .el-footer .col-lg-4 {
        margin-bottom: 30px;
    }
}

/* Special adjustments for very small screens */
@media (max-width: 350px) {
    .el-hero-title {
        font-size: 1.6rem;
    }
    
    .hero-service-type {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .el-btn {
        width: 100%;
        text-align: center;
    }
}

/* Adjustments for landscape orientation on mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .el-hero {
        min-height: 100vh;
        padding: 100px 0 60px;
    }
    
    .preloader-spinner {
        width: 50px;
        height: 50px;
    }
}

/* High-resolution displays adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering of text and elements */
    .el-navbar-brand {
        font-weight: 800;
    }
    
    .section-title {
        font-weight: 800;
    }
}

/* Print styles for better printing experience */
@media print {
    .el-top-bar,
    .floating-chat-container,
    .back-to-top {
        display: none !important;
    }
    
    .el-hero-video {
        display: none;
    }
    
    .el-hero {
        background: #f0f0f0 !important;
        color: #000 !important;
        padding: 50px 0 !important;
    }
    
    .el-hero-title,
    .el-hero-subtitle {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* ========================================== MEDIA QUERIES END ========================================== */