/* Responsive Fixes for INMOBOT */

/* Base responsive improvements */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container improvements */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Video container responsive */
.video-background-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #667eea;
}

.video-background-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Navigation improvements */
.navbar-top-default {
    transition: all 0.3s ease;
}

.sidemenu_btn {
    z-index: 1000;
}

.side-menu {
    z-index: 1050;
}

/* Stats section improvements */
.stats-box {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Gallery cards improvements */
.gallery-card {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Pricing table improvements */
.pricing-table-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    background: white;
}

/* Form improvements */
.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Button improvements */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Mobile First Approach - Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .heading {
        font-size: 24px !important;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .slider-area .slider-content .heading {
        font-size: 28px !important;
        line-height: 1.2;
    }
    
    .team-section .stats-heading-area .heading,
    .gallary-sec .stats-heading-area .heading {
        font-size: 28px !important;
        line-height: 1.3;
    }
    
    /* Video container */
    .video-background-container {
        height: 200px !important;
        margin-top: 20px;
        border-width: 2px;
    }
    
    /* Navigation */
    .navbar-top-default {
        padding-bottom: 15px;
    }
    
    .agency-num {
        font-size: 16px;
        right: 5px;
    }
    
    .whatsapp-num {
        display: none;
    }
    
    /* Stats */
    .stats-box {
        min-height: 150px;
        padding: 20px 15px;
    }
    
    .stats-number {
        font-size: 1.8rem !important;
    }
    
    /* Gallery */
    .gallery-card {
        margin-bottom: 20px;
    }
    
    /* Pricing table */
    .pricing-table-wrapper {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .pricing-table {
        min-width: 600px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
    
    /* Forms */
    .contact-form {
        padding: 0;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Logo */
    .logo-stats {
        max-height: 50px !important;
    }
    
    /* Project section */
    .project-sec .project-area .project-detail .project-heading {
        font-size: 20px !important;
    }
    
    /* Benefits */
    .benefit-box {
        padding: 20px 15px;
        text-align: center;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    /* Portals */
    .portal-logo {
        height: 60px !important;
        padding: 15px;
    }
    
    .portal-logo img {
        max-height: 30px !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .heading {
        font-size: 28px !important;
    }
    
    .slider-area .slider-content .heading {
        font-size: 32px !important;
    }
    
    .video-background-container {
        height: 250px !important;
        margin-top: 30px;
    }
    
    .stats-box {
        min-height: 180px;
    }
    
    .stats-number {
        font-size: 2rem !important;
    }
    
    .pricing-table {
        min-width: 700px;
    }
    
    .logo-stats {
        max-height: 60px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .heading {
        font-size: 32px !important;
    }
    
    .slider-area .slider-content .heading {
        font-size: 36px !important;
    }
    
    .video-background-container {
        height: 300px !important;
        margin-top: 40px;
    }
    
    .stats-box {
        min-height: 200px;
    }
    
    .pricing-table {
        min-width: 800px;
    }
    
    .agency-num {
        font-size: 20px;
    }
    
    .logo-stats {
        max-height: 70px !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .video-background-container {
        height: 350px;
    }
    
    .logo-stats {
        max-height: 75px !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .video-background-container {
        height: 400px;
    }
    
    .logo-stats {
        max-height: 80px !important;
    }
}

/* Landscape orientation fixes */
@media (orientation: landscape) and (max-height: 500px) {
    .video-background-container {
        height: 200px !important;
    }
    
    .slider-area .slider-content {
        margin-top: 20px;
    }
    
    .navbar-top-default {
        padding-bottom: 10px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .logo-stats {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .video-background-container {
        display: none !important;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .stats-box,
    .gallery-card,
    .testimonial-card,
    .pricing-table-wrapper {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .contact-form input,
    .contact-form textarea {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
}

/* Focus improvements for accessibility */
.btn:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error states */
.error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Success states */
.success {
    border-color: #38a169 !important;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}