/* === DROPDOWN CHEVRON BULLETPROOF FIX === */
.dropdown-chevron,
svg.dropdown-chevron {
    width: 14px !important;
    height: 14px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    transition: transform 0.3s ease !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
    stroke: #0d214f !important;
    /* Force Stroke Color */
    color: #0d214f !important;
    /* Force Color */
}

.dropdown-chevron path {
    stroke: #0d214f !important;
    /* Force Path Stroke */
    stroke-width: 3px !important;
}

/* Specific for mobile view to ensure they stay on far right */
@media (max-width: 991px) {
    .navbar-nav>li>a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .navbar-nav .dropdown-chevron {
        margin-left: auto !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* --- MOBILE MENU DROPDOWN CHEVRON SYNC V3 --- */
    /* Maximum specificity to force visibility on live server */
    header .main-nav .navbar-nav>li.nav-item-dropdown>a svg.dropdown-chevron {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        stroke: #0d214f !important;
        /* Ensure dark color on white mobile menu */
        margin-left: 15px !important;
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }

    header .main-nav .navbar-nav>li.nav-item-dropdown>a svg.dropdown-chevron path {
        stroke: #0d214f !important;
        stroke-width: 3px !important;
        display: block !important;
    }
}

/* Rotation when active */
.nav-item-dropdown.active>a .dropdown-chevron {
    transform: rotate(180deg) !important;
}

/* ============================================================
   LAPTOP & MEDIUM SCREEN ADAPTATIONS (13", 14", 15", 16")
   Targets screens between mobile/tablet and large desktop
   ============================================================ */

/* Large Laptops (15" - 16" and high-res 14") */
@media (min-width: 1201px) and (max-width: 1400px) {
    .navbar-nav {
        gap: 15px !important;
    }

    .navbar-nav>li {
        margin: 0 10px !important;
    }

    .navbar-nav a {
        font-size: 16px !important;
    }

    .navbar-brand img {
        height: 70px !important;
        width: auto !important;
    }
}

/* Medium Laptops (13" - 14") */
@media (min-width: 1025px) and (max-width: 1200px) {
    .navbar-nav {
        gap: 10px !important;
    }

    .navbar-nav>li {
        margin: 0 6px !important;
    }

    .navbar-nav a {
        font-size: 15px !important;
    }

    .navbar-brand img {
        height: 65px !important;
        width: auto !important;
    }

    .contact-info-left {
        gap: 20px !important;
    }

    .contact-info-left a,
    .contact-info-left span {
        font-size: 13px !important;
    }
}

/* Small Laptops / Top of Tablet range */
@media (min-width: 992px) and (max-width: 1024px) {
    .navbar-nav {
        gap: 5px !important;
    }

    .navbar-nav>li {
        margin: 0 4px !important;
    }

    .navbar-nav a {
        font-size: 14px !important;
    }

    .navbar-brand img {
        height: 60px !important;
        width: auto !important;
    }

    .main-nav .container {
        gap: 8px !important;
    }

    .contact-info-left {
        gap: 15px !important;
    }

    .contact-info-left a,
    .contact-info-left span {
        font-size: 12px !important;
    }
}


@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }
}

/* --- Hero Section Fixes --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    .left-content {
        max-width: 100% !important;
    }

    .right-content {
        max-width: 100% !important;
        margin-top: 20px;
    }

    .hero-banner {
        height: auto !important;
        min-height: 500px;
        padding-bottom: 60px !important;
        align-items: center !important;
    }
}

/* --- ABOUT SECTION LIVE SYNC FIX V3 --- */
@media (max-width: 992px) {
    .about-pro .about-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    .about-pro .about-image {
        order: 2 !important;
    }

    .about-pro .about-text {
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .about-pro .about-text p,
    .about-pro .about-text .features,
    .about-pro .about-text .cta-row {
        text-align: left !important;
        align-self: flex-start !important;
        width: 100% !important;
    }

    .about-pro .about-text .mini-tag {
        display: inline-block !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    .about-grid {
        grid-template-columns: 1fr !important;
    }

    .about-image img {
        height: 300px !important;
    }

    .floating-stats {
        position: absolute !important;
        bottom: 15px !important;
        left: 15px !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: auto !important;
        margin-top: 0 !important;
        z-index: 10 !important;
    }

    .stat-box {
        padding: 8px 15px !important;
        text-align: center !important;
        min-width: 100px;
    }

    .stat-box h3 {
        font-size: 1.4rem !important;
        margin: 0 !important;
    }

    .stat-box p {
        font-size: 0.75rem !important;
        margin: 0 !important;
    }

    .floating-badge {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        margin-top: 0 !important;
        display: flex !important;
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
        z-index: 10 !important;
    }
}

/* --- Benefits Section Fixes --- */
@media (max-width: 768px) {
    .benefits-title {
        font-size: 28px !important;
    }

    .benefit-card h3 {
        font-size: 20px !important;
    }
}

/* --- Have A Project Section Fixes --- */
@media (max-width: 768px) {
    .project-left {
        text-align: center !important;
    }

    .project-left h2 {
        font-size: 32px !important;
    }

    .stats-row {
        gap: 15px !important;
        /* Tighter gap between stacked stats */
        flex-direction: column;
        align-items: center;
        width: 100% !important;
        margin-bottom: 0 !important;
        /* Reset the 10% bottom margin */
    }

    .stat-item {
        text-align: center !important;
        align-items: center !important;
        margin-bottom: 5px !important;
        /* Minimal spacing between stats items */
    }

    .stat-item h3 {
        font-size: 40px !important;
        text-align: center !important;
        margin-bottom: 5px !important;
    }

    .project-container {
        padding: 40px 20px !important;
        gap: 5px !important;
        /* Even smaller gap between stats row and button */
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* --- Global Container Fix --- */
@media (max-width: 1200px) {
    .container {
        width: 92% !important;
        padding: 0 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* --- Prevention of Horizontal Scroll --- */
body,
html {
    overflow-x: hidden !important;
    width: 100%;
}

/* Fix for mobile row overflow only on small screens */
@media (max-width: 768px) {
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* --- Testimonials Mobile Fix --- */
@media (max-width: 480px) {
    .quote-card {
        min-width: 260px !important;
        padding: 20px !important;
    }

    .quote-text {
        font-size: 0.95rem !important;
    }
}

/* --- Case Studies Mobile Fix --- */
@media (max-width: 768px) {

    .cs-title-wrapper h2,
    .cs-title-wrapper h3 {
        font-size: 1.6rem !important;
    }

    .cs-image {
        height: 250px !important;
    }
}

/* --- Premium Mobile Menu Redesign --- */
@media (max-width: 991px) {
    .navbar-nav {
        display: block !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
        opacity: 0;
        background: #ffffff !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 10001 !important;
        /* Higher than social floating bar */
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        padding: 10px 0 !important;
    }

    .navbar-nav.active {
        max-height: 85vh;
        opacity: 1;
        overflow-y: auto;
    }

    .navbar-nav>li {
        width: 100%;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .navbar-nav>li:last-child {
        border-bottom: none;
    }

    .navbar-nav>li>a {
        padding: 18px 25px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px !important;
        color: #0d214f !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px;
        transition: background 0.3s ease;
    }

    .navbar-nav>li>a:active {
        background: #f8faff;
    }

    /* Sub-menu styling */
    .nav-item-dropdown .dropdown-menu {
        background: #fcfdfe !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        display: block !important;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
        opacity: 0;
        position: static !important;
        width: 100% !important;
        border: none !important;
        border-left: 3px solid #29b9ed;
        /* Visual indicator for open sub-menu */
        margin-left: 10px;
    }

    .nav-item-dropdown.active .dropdown-menu {
        max-height: 1000px;
        opacity: 1;
        padding: 5px 0 15px !important;
        visibility: visible !important;
    }

    .dropdown-menu li a {
        padding: 12px 35px !important;
        font-size: 15px !important;
        color: #64748b !important;
        font-weight: 500 !important;
        display: block;
        transition: color 0.3s ease;
    }

    .dropdown-menu li a:active {
        color: #29b9ed !important;
    }

    /* Chevron placement inside flex-link */
    .navbar-nav .dropdown-chevron {
        margin-left: auto !important;
        stroke: #0d214f !important;
        color: #0d214f !important;
    }

    .mobile-toggle {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        background: #f1f5f9 !important;
        color: #0d214f !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.3s ease;
    }

    .mobile-toggle:active {
        transform: scale(0.92);
        background: #e2e8f0 !important;
    }

    .mobile-toggle i {
        font-size: 22px !important;
    }

    .main-nav {
        position: relative !important;
        z-index: 9999 !important;
        padding: 12px 0 !important;
    }
}

/* --- Scroll To Top Button Circle Fix --- */
#scrollToTopBtn {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#scrollToTopBtn i {
    font-size: 20px !important;
    margin: 0 !important;
}

/* Ensure it shows as flex when active */
#scrollToTopBtn[style*="display: block"] {
    display: flex !important;
}

/* --- Redesigned Top Header for Mobile (Modern Executive Style) --- */
@media (max-width: 991px) {
    .header-top {
        padding: 14px 0 !important;
        background: #0d214f !important;
        /* Brand Navy */
        position: relative;
        overflow: hidden;
    }

    /* Elegant side accent decorations */
    .header-top::before,
    .header-top::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 20%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(41, 185, 237, 0.4), transparent);
        transform: translateY(-50%);
    }

    .header-top::before {
        left: 0;
    }

    .header-top::after {
        right: 0;
    }

    .header-top .container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 20px;
    }

    /* Precision Spaced Controls */
    .text-resizer {
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        gap: 30px !important;
        /* Wide, airy spacing */
        position: static !important;
        margin: 0 !important;
        z-index: 2;
    }

    .sizer-btn {
        width: auto !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        color: rgba(255, 255, 255, 0.7) !important;
        background: transparent !important;
        transition: all 0.3s ease !important;
        letter-spacing: 1px;
        cursor: pointer;
    }

    /* Dramatic interaction effect */
    .sizer-btn:active {
        color: #29b9ed !important;
        transform: scale(1.3);
        text-shadow: 0 0 10px rgba(41, 185, 237, 0.6);
        font-weight: 700 !important;
    }

    /* Hide Contact Info on Mobile as requested */
    .contact-info-left {
        display: none !important;
    }
}