/* ======================
   MOBILE RESPONSIVE STYLES
   ====================== */

/* Fix horizontal scrolling on all mobile devices */
@media (max-width: 992px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .hero-section h1 {
        font-size: 48px;
    }

    .tagline-highlight {
        font-size: 1.25rem;
    }

    .brand-tagline {
        font-size: 0.6rem;
    }

    .navbar-logo {
        max-height: 85px;
        border-radius: 10px;
    }

    .breadcrumb-title {
        font-size: 2.5rem;
    }

    .breadcrumb-section {
        padding: 50px 0 40px 0;
    }

    .process-step::after {
        display: none;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .floating-social {
        bottom: 25px;
        right: 25px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .mega-menu {
        min-width: auto;
        width: 100%;
        padding: 15px;
        left: 0;
        transform: none;
        position: static;
        display: none;
        background: var(--light-bg);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        margin-top: 10px;
        max-height: 400px;
        overflow-y: auto;
    }

    .mega-menu.show {
        display: block;
    }

    .mega-menu .container {
        padding: 0;
    }

    .mega-menu .row {
        flex-direction: column;
        margin: 0;
    }

    .mega-menu .col-lg-3,
    .mega-menu .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 10px 0;
        margin-bottom: 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .mega-menu .col-lg-3:last-child,
    .mega-menu .col-md-6:last-child {
        border-bottom: none;
    }

    .mega-menu-title {
        font-size: 1rem;
        margin-bottom: 8px;
        color: var(--primary);
        font-weight: 600;
    }

    .mega-menu .dropdown-item {
        padding: 8px 0;
        font-size: 0.95rem;
        white-space: normal;
    }

    .mega-menu .list-unstyled {
        margin-bottom: 0;
    }

    /* Mobile Services Sidebar Menu */
    .mobile-services-menu {
        background: var(--light-bg);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        margin: 10px 0;
        padding: 10px;
    }

    .mobile-service-item {
        border-bottom: 1px solid var(--glass-border);
    }

    .mobile-service-item:last-child {
        border-bottom: none;
    }

    .mobile-service-link {
        display: flex;
        align-items: center;
        padding: 12px 10px;
        color: var(--white);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .mobile-service-link:hover {
        background: rgba(0, 204, 205, 0.1);
        color: var(--primary);
        border-radius: 6px;
    }

    .mobile-service-link i {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, rgba(0, 204, 205, 0.2), rgba(184, 233, 134, 0.1));
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        font-size: 1.1rem;
        color: var(--primary);
    }

    .mobile-service-link span {
        font-weight: 500;
        font-size: 0.95rem;
    }

    /* Reset navbar link underline for mobile */
    .nav-link::after {
        height: 1px;
    }

    .nav-link {
        padding: 8px 15px !important;
        margin: 0;
    }

    .dropdown-toggle {
        gap: 6px;
    }

    .stats-section h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
    }
    
    .hero-section {
        height: auto !important;
        min-height: 500px;
        padding: 100px 0 60px 0;
    }

    .hero-section h1 {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .lead-popup-container {
        max-width: 95%;
        border-radius: 12px;
    }

    .lead-popup-header {
        padding: 15px 18px 0;
    }

    .lead-popup-body {
        padding: 12px 18px 18px;
    }

    .lead-popup-header h4 {
        font-size: 1.1rem;
    }

    .lead-popup-body .form-control {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .lead-popup-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .tagline-highlight {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .case-study-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .case-study-badge .badge-label {
        font-size: 0.75rem;
    }
    
    .case-study-badge .badge-value {
        font-size: 0.85rem;
    }
    
    .trust-indicators {
        gap: 20px;
        margin-top: 30px !important;
    }
    
    .trust-item {
        font-size: 0.85rem;
    }

    .breadcrumb-title {
        font-size: 2rem;
    }

    .breadcrumb-subtitle {
        font-size: 1rem;
    }

    .breadcrumb-section {
        padding: 40px 0 35px 0;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .floating-social {
        bottom: 20px;
        right: 20px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .card-custom {
        padding: 1.5rem !important;
    }

    .card-icon {
        width: 100%;
        height: 160px;
        font-size: 2rem;
    }

    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .stats-section h3 {
        font-size: 1.75rem;
    }

    /* Premium Footer Mobile */
    .footer-cta {
        padding: 40px 0;
    }

    .footer-cta-title {
        font-size: 1.5rem;
    }

    .footer-cta-subtitle {
        font-size: 1rem;
    }

    .footer-main {
        padding: 60px 0 40px 0;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .footer-social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }

    .footer-bottom-links {
        justify-content: flex-start;
        margin-top: 10px;
    }

    footer {
        padding: 40px 0 15px 0;
    }

    footer h5 {
        font-size: 1.1rem;
    }

    .form-control {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    /* Navbar mobile fixes */
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-collapse {
        margin-top: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .btn-primary-custom.ms-lg-3 {
        margin-left: 0 !important;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    html, body {
        overflow-x: hidden !important;
    }
    
    .hero-section {
        height: auto !important;
        min-height: 450px;
        padding: 90px 0 50px 0;
    }

    .hero-section h1 {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    /* Premium Footer Small Mobile */
    .footer-cta {
        padding: 30px 0;
        text-align: center;
    }

    .footer-cta-title {
        font-size: 1.3rem;
    }

    .footer-cta-subtitle {
        font-size: 0.9rem;
    }

    .footer-main {
        padding: 50px 0 30px 0;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        max-height: 60px;
    }

    .footer-tagline {
        font-size: 0.95rem;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-contact li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info {
        align-items: center;
    }

    .footer-bottom {
        text-align: center;
        padding: 20px 0;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 15px;
    }
    
    /* Additional mobile fixes */
    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

.navbar-toggler {
    padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
    font-size: var(--bs-navbar-toggler-font-size);
    line-height: 1;
    color: var(--primary);
    background-color: transparent;
    border: 2px solid var(--primary);
    border-radius: var(--bs-navbar-toggler-border-radius);
    transition: var(--bs-navbar-toggler-transition);
}

.navbar-toggler:hover {
    background-color: var(--primary);
    color: var(--black);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 204, 205, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2816, 24, 32, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Dropdown Menu Styles */
@media (max-width: 991px) {
    .dropdown-menu {
        background-color: rgba(16, 24, 32, 0.98);
        border: 1px solid var(--glass-border);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    
    .dropdown-item {
        color: var(--white);
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: rgba(0, 204, 205, 0.1);
        color: var(--primary);
    }
    
    .mega-menu-title {
        color: var(--primary);
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .mega-menu .dropdown-item {
        color: var(--silver);
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .mega-menu .dropdown-item:hover {
        color: var(--primary);
        background-color: rgba(0, 204, 205, 0.1);
        padding-left: 20px;
    }
    
    /* Show mega menu properly on mobile */
    .mega-menu {
        background-color: rgba(16, 24, 32, 0.98);
        padding: 20px;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        margin-top: 10px;
    }
    
    .mega-menu .col-lg-3 {
        margin-bottom: 20px;
    }
    
    .mega-menu .col-lg-3:last-child {
        margin-bottom: 0;
    }
    
    /* Nav link colors in mobile menu */
    .nav-link {
        color: var(--white) !important;
        padding: 12px 15px !important;
        font-weight: 500;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary) !important;
    }
    
    /* Dropdown toggle arrow color */
    .dropdown-toggle::after {
        border-top-color: var(--primary);
    }
}

.case-study-badge .badge-value {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}


.tagline-highlight {
    font-size: 0.95rem;
}

.brand-tagline {
    display: none;
}

/* .navbar-logo {
    max-height: 75px;
    border-radius: 8px;
} */

.footer-logo {
    max-height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 204, 205, 0.2));
}

.breadcrumb-title {
    font-size: 1.75rem;
}

.breadcrumb-subtitle {
    font-size: 0.95rem;
}

.breadcrumb-section {
    padding: 35px 0 30px 0;
}

.hero-section p {
    font-size: 0.95rem;
}

.section-padding {
    padding: 40px 0;
}

.section-title {
    font-size: 1.5rem;
}

.section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.floating-social {
    bottom: 15px;
    right: 15px;
    gap: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.navbar-brand {
    font-size: 1.3rem;
}

.card-custom {
    padding: 1.25rem !important;
}

.stats-section h3 {
    font-size: 1.5rem;
}

.stats-section .card-custom {
    padding: 1.5rem !important;
}

footer h5 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-bottom {
    font-size: 0.85rem;
    text-align: center;
}

.mega-menu .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 25px;
}

.mega-menu .col-lg-3:last-child {
    margin-bottom: 0;
}

#techCarousel .carousel-control-prev,
#techCarousel .carousel-control-next {
    display: none;
}

#techCarousel .card-custom {
    padding: 1.5rem 1rem !important;
}

#techCarousel .card-custom i {
    font-size: 2.5rem !important;
}

#techCarousel .card-custom h5 {
    font-size: 0.95rem;
}

/* Contact Page Mobile Styles */
.breadcrumb-section {
    padding: 40px 0 30px 0;
}

.breadcrumb-title {
    font-size: 1.75rem;
}

.breadcrumb-subtitle {
    font-size: 1rem;
}

.contact-form-wrapper {
    padding: 25px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.map-wrapper iframe {
    height: 250px;
}

/* Fix all images to prevent overflow */
img {
    max-width: 100% !important;
    height: auto;
}

/* Fix carousel and other wide elements */
.carousel-inner {
    max-width: 100%;
    overflow: hidden;
}

/* Ensure navbar doesn't overlap content */
.navbar.fixed-top {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Fix mega menu on mobile */
@media (max-width: 991px) {
    .mega-menu {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin-top: 10px !important;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .nav-item.dropdown.show .mega-menu {
        display: block !important;
    }
}