/* --- Variables & Core Setup --- */
:root {
    --navy: #0a192f;
    --blue: #0066ff;
    --charcoal: #1f2937;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* --- Top Information Bar --- */
.nexa-top-bar {
    background-color: var(--navy);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
}

.nexa-top-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nexa-top-left span {
    margin-right: 20px;
    opacity: 0.9;
}

.nexa-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nexa-top-right a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.nexa-top-right a:hover {
    opacity: 1;
}

.nexa-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- Main Header Navigation --- */
.nexa-main-header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
}

.nexa-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nexa-nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    /* Slightly increased for better readability */
    margin: 0 auto;
    padding: 0;
    align-items: center;
}

.nexa-nav-menu li a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.nexa-nav-menu li a:hover {
    color: var(--blue);
}

/* --- Dropdown Components (Desktop) --- */
.nexa-has-dropdown {
    position: relative;
    text-align: start;
}

.nexa-chevron {
    font-size: 9px;
    margin-left: 4px;
    transition: transform 0.3s;
}

.nexa-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    width: 240px;
    padding: 15px 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid #f0f4f8;
    font-size: 10px;
}

.nexa-has-dropdown:hover .nexa-dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nexa-dropdown-list li a {
    padding: 10px 25px;
    display: block;
    font-weight: 500;
}

.nexa-dropdown-list li a:hover {
    background: #f8faff;
    color: var(--blue);
}

/* --- Buttons & Toggles --- */
.nexa-btn-quote {
    background: var(--charcoal);
    /* Matches branding */
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

.nexa-btn-quote:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.nexa-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nexa-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: 0.3s;
}

.nexa-close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 35px;
    color: var(--navy);
    cursor: pointer;
    line-height: 1;
}

.nexa-mobile-only {
    display: none;
}

.nexaservice-container {
    text-align: center;
    padding: 50px 80px;
}

.nexaservice-container h2 {
    font-weight: 700;
}

/* --- Combined Mobile Responsive (max-width: 1100px) --- */
@media (max-width: 1100px) {

    .nexa-top-bar,
    .nexa-desktop-action {
        display: none;
    }

    .nexa-menu-toggle,
    .nexa-close-menu,
    .nexa-mobile-only {
        display: flex;
    }

    .nexa-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 2000;
        align-items: flex-start;
        margin: 0;
    }

    .nexa-nav-menu.active {
        right: 0;
    }

    .nexa-mobile-only {
        margin-top: 20px;
    }

    /* Mobile Dropdown Specifics */
    .nexa-dropdown-list {
        position: static;
        display: none;
        /* Controlled by open class in JS */
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        padding-left: 0px;
        padding: 2px 0;
        width: 100%;
        border: none;
        /* border-left: 2px solid var(--blue);  */
        /* Brand accent */
        margin-top: 0px;
        align-items: flex-start;
    }

    .nexa-dropdown-list li {
        padding-bottom: 0px;
        margin-bottom: -10px;
        text-align: start;
    }

    .nexa-has-dropdown.open .nexa-dropdown-list {
        display: block;

    }

    .nexa-has-dropdown.open .nexa-chevron {
        transform: rotate(180deg);
    }

    /* Fixed: Mobile Header Alignment */
    .nexa-nav-flex {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        /* Ensure full width */
        padding: 20px 25px;
    }

    /* Overlay must not disrupt flex layout */
    .nexa-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .nexa-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nexa-nav-menu li a {
        font-size: 16px;
    }

    .nexaservice-container {
        text-align: center;
        padding: 20px 20px;
    }

}





/* ---  NEW SERVICE PAGE SECTION  
.nexa-hero-service {
    position: relative;
    padding: 120px 0 100px;
    background: #0a192f;
    color: white;
    overflow: hidden;
}

.nexa-hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nexa-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(35%);
}

.nexa-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.nexa-breadcrumbs {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.nexa-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.nexa-breadcrumbs .active {
    color: #0066ff;
    font-weight: 600;
}

.nexa-hero-content h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    margin-bottom: 25px;
}

.text-accent {
    color: #0066ff;
}

/* --- GRID LAYOUT 
.nexa-service-layout {
    background: #f8faff;
    padding: 80px 0;
}

.nexa-grid-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* --- CONTENT STYLING 
.nexa-content-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nexa-content-card h2 {
    color: #0a192f;
    margin-bottom: 20px;
}

.nexa-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.nexa-feat-card {
    padding: 25px;
    background: #f8faff;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    transition: 0.3s;
}

.nexa-feat-card:hover {
    border-color: #0066ff;
    transform: translateY(-5px);
    background: #fff;
}

.nexa-feat-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

/* --- SIDEBAR STYLING 
.nexa-sidebar {
    position: sticky;
    top: 100px;
    height: max-content;
}

.nexa-sidebar-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nexa-links-box {
    background: #0a192f;
    color: white;
}

.nexa-links-box h4 {
    margin-bottom: 20px;
    color: #0066ff;
}

.nexa-links-box ul {
    list-style: none;
    padding: 0;
}

.nexa-links-box li a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nexa-btn-submit {
    width: 100%;
    padding: 15px;
    background: #0066ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* --- MOBILE RESPONSIVE 
@media (max-width: 991px) {
    .nexa-grid-main {
        grid-template-columns: 1fr;
    }

    .nexa-sidebar {
        position: static;
    }

    .nexa-hero-service {
        padding: 160px 0 80px;
    }

    .nexa-feature-grid {
        grid-template-columns: 1fr;
    }
}

--- */

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--dark-bg);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    width: 50px;
    height: 50px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
    opacity: 0.8;
}

#scrollTopBtn:hover {
    background-color: var(--dark-bg);
    transform: translateY(-5px);
    opacity: 1;
}


/* --- CLIENT REVIEW SECTION  */

.client-review-section {
    background: linear-gradient(145deg, #0a0a0a, #141414);
    padding: 90px 0;
    overflow: hidden;

}

.review-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    color: #fff;
}

.review-pre {
    font-size: 14px;
    opacity: 0.7;
}

.review-heading {
    font-size: 42px;
    margin-top: 6px;
}

.review-title {
    width: 100%;
    min-width: 0;
}


/* Mobile First / Base Styles */
.review-slider {
    position: relative;
    overflow: hidden;
    /* Ensure no horizontal scrollbar on page */
    max-width: 100%;
}

.review-track {
    display: flex;
    gap: 30px;
    /* Consistent gap */
    transition: transform 0.5s ease;
    will-change: transform;
}

.review-slide {
    /* Default: Mobile - 1 slide visible */
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.review-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    height: 100%;
    /* Ensure card fills slide height if needed, 
       though usually handled by flex stretch in track if aligned */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-head {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
}

.avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e5e5;
    flex-shrink: 0;
}

.card-head h6 {
    margin: 0;
    font-size: 16px;
}

.card-head span {
    font-size: 14px;
    color: #777;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
    flex-grow: 1;
    /* Pushes footer down */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder {
    width: 80px;
    height: 18px;
    background: #e5e5e5;
    border-radius: 4px;
}

.stars {
    font-size: 14px;
    letter-spacing: 2px;
    color: #0066ff;
}

/* Pagination */
.review-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.review-pagination span {
    width: 8px;
    height: 8px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.review-pagination .active {
    background: #fff;
    /* Assuming dark background section? Or use generic dark color if light bg */
    opacity: 1;
}

/* Tablet (e.g. >= 768px) -> 2 Slides */
@media (min-width: 768px) {
    .review-slide {
        /* (100% - 1 gap) / 2 */
        flex: 0 0 calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
}

/* Desktop (e.g. >= 992px) -> 3 Slides */
@media (min-width: 992px) {
    .review-slide {
        /* (100% - 2 gaps) / 3 */
        flex: 0 0 calc((100% - 60px) / 3);
        max-width: calc((100% - 60px) / 3);
    }

    .review-heading {
        font-size: 42px;
    }
}

/* Adjust heading for lower screens if needed, mostly kept similar */
@media (max-width: 768px) {
    .review-heading {
        font-size: 30px;
    }
}

/* Counter Row */
.nexa-counter-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid #eef2f6;
    padding-top: 35px;
    justify-content: center;
    text-align: center;
}

.nexa-counter-num {
    font-size: 32px;
    font-weight: 800;
    color: #0a192f;
}

.nexa-plus {
    color: #0066ff;
    font-size: 24px;
    font-weight: 800;
}

.nexa-counter-item p {
    color: #718096;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

/* Animation triggers */
[data-reveal="left"] {
    opacity: 0;
    transform: translateX(-50px);
    transition: 1s ease;
}

[data-reveal="right"] {
    opacity: 0;
    transform: translateX(50px);
    transition: 1s ease;
}

.revealed {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* ============================================
   CONSULTANCY SECTION REDESIGN
   ============================================ */

.nexa-consultancy-section {
    padding: 100px 50px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.nexa-consultancy-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .nexa-consultancy-section {
        padding: 60px 20px;
    }

    .nexa-consultancy-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .nexa-consultancy-images {
        height: 450px;
        /* Reduced height for tablet/mobile */
        width: 100%;
        max-width: 600px;
        /* Limit width */
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .nexa-feat-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Row layout for mobile features */
    .nexa-feat-box {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .nexa-feat-icon-circle {
        flex-shrink: 0;
        width: 45px;
        height: 45px;
    }

    .nexa-consultancy-images {
        visibility: hidden;
        display: none;
    }

    .nexa-consultancy-content h2 {
        font-size: 26px;
    }


}



.nexa-consultancy-content .section-label {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.nexa-consultancy-content h2 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 25px;
}

.nexa-consultancy-desc {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Feature Grid */
.nexa-feat-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}



.nexa-feat-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nexa-feat-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
    transition: var(--transition);
}

.nexa-feat-box:hover .nexa-feat-icon-circle {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateX(360deg);
}

.nexa-feat-box h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.nexa-feat-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Image Stack */
.nexa-consultancy-images {
    position: relative;
    height: 550px;
    width: 100%;
}

.consult-img-back {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 1;
}

.consult-img-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 60%;
    object-fit: cover;
    border-radius: 20px;
    border: 8px solid #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 2;
}