/* ========== Enhanced Responsive Design for Fixbee IT Services ========== */

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    .navbar-header {
        width: 100%;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
    
    .navbar-collapse {
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin-top: 15px;
        border-radius: 8px;
        padding: 20px;
    }
    
    .navbar-nav {
        margin: 0;
    }
    
    .navbar-nav li {
        margin: 5px 0;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin: 0 !important;
        background: #f8f9fa !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 5px !important;
        margin-top: 10px !important;
    }
    
    .attr-nav {
        margin-top: 15px;
        text-align: center;
    }
}

/* Banner Responsive Improvements */
@media (max-width: 768px) {
    .banner-area {
        min-height: 60vh;
    }
    
    .banner-area .content h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .banner-area .content h2 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .col-xl-7.offset-xl-5,
    .col-lg-8.offset-lg-4,
    .col-md-10.offset-md-1 {
        text-align: center;
    }
    
    .banner-angle-shape {
        display: none;
    }
}

@media (max-width: 576px) {
    .banner-area .content h2 {
        font-size: 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Services Section Responsive */
@media (max-width: 768px) {
    .services-style-one {
        margin-bottom: 30px;
    }
    
    .services-style-one .item {
        padding: 30px 20px;
        text-align: center;
    }
}

/* About Section Responsive */
@media (max-width: 768px) {
    .about-style-one {
        margin-bottom: 30px;
    }
    
    .about-style-one .thumb {
        text-align: center;
    }
    
    .about-style-one .experience {
        text-align: center;
        margin-top: 30px;
    }
}

/* Portfolio Section Responsive */
@media (max-width: 768px) {
    .gallery-items.colums-3 {
        column-count: 1;
    }
    
    .gallery-item {
        margin-bottom: 20px;
        break-inside: avoid;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-items.colums-3 {
        column-count: 2;
    }
}

/* Contact Form Responsive */
@media (max-width: 768px) {
    .quick-contact-style-one {
        margin-bottom: 40px;
        text-align: center;
    }
    
    .contact-form .row .col-lg-6 {
        margin-bottom: 15px;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .f-item {
        margin-bottom: 40px;
        text-align: center;
    }
    
    .footer-bottom .row > div {
        text-align: center !important;
    }
    
    .footer-bottom ul {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Top Bar Responsive */
@media (max-width: 768px) {
    .top-bar .info ul {
        text-align: center;
    }
    
    .top-bar .info ul li {
        display: block;
        margin: 5px 0;
    }
    
    .top-bar .social {
        text-align: center;
        margin-top: 15px;
    }
}

/* Enhanced Swiper Banner Styles */
.banner-fade.swiper-container {
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

@media (max-width: 768px) {
    .banner-fade.swiper-container {
        height: 70vh;
        min-height: 500px;
    }
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    color: white;
    font-weight: bold;
}

.swiper-pagination {
    bottom: 30px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .container-fill {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .default-padding {
        padding: 60px 0;
    }
    
    .site-heading h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .site-heading h4 {
        font-size: 14px;
    }
}

/* Improved Button Responsiveness */
@media (max-width: 768px) {
    .btn {
        display: inline-block;
        width: auto;
        min-width: 150px;
    }
    
    .button {
        text-align: center;
    }
}

/* Enhanced Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Table Responsiveness */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Enhanced Text Readability on Mobile */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
}

/* WhatsApp Mobile Optimizations */
@media (max-width: 768px) {
    .whatsapp-floating {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-menu {
        min-width: 250px;
        right: -10px;
    }
    
    .whatsapp-main-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-main-btn i {
        font-size: 24px;
    }
}

/* Enhanced Touch Targets */
@media (max-width: 768px) {
    a, button, .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-toggle {
        padding: 10px;
        min-height: 44px;
        min-width: 44px;
    }
}

/* Improved Form Elements on Mobile */
@media (max-width: 768px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }
    
    select.form-control {
        font-size: 16px;
    }
}

/* Enhanced Loading Performance */
@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) {
    .navbar-collapse {
        background: #2d3748;
        color: white;
    }
    
    .dropdown-menu {
        background: #4a5568 !important;
        color: white;
    }
}
