/* ================================================
   Cloud Pattern Consulting - Custom Styles
   ================================================ */

/* --- Global Particles Background --- */
#global-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.22;
}

/* Ensure all page content sits above the global particles */
header, main, section, footer, .bcg-hero {
    position: relative;
    z-index: auto;
}

/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Ubuntu', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* --- Subtle Animated Background (non-homepage) --- */
body.animated-bg::before,
body.animated-bg::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.12;
}

body.animated-bg::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(12, 75, 94, 0.6), transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatBlob1 20s ease-in-out infinite;
}

body.animated-bg::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 52, 144, 0.5), transparent 70%);
    bottom: -80px;
    left: -80px;
    animation: floatBlob2 25s ease-in-out infinite;
}

@keyframes floatBlob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-60px, 80px) scale(1.1); }
    50% { transform: translate(-120px, 160px) scale(0.95); }
    75% { transform: translate(-40px, 100px) scale(1.05); }
}

@keyframes floatBlob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, -60px) scale(1.08); }
    50% { transform: translate(150px, -120px) scale(0.92); }
    75% { transform: translate(60px, -80px) scale(1.04); }
}

/* --- BCG-Style Hero Carousel --- */
.bcg-hero {
    position: relative;
    width: 100%;
    background: #0a0a0a;
    padding-top: 20px;
    padding-bottom: 2rem;
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Main heading */
/* --- Hero entrance keyframes --- */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroLineExpand {
    from { width: 0; opacity: 0; }
    to   { width: 60px; opacity: 1; }
}
@keyframes heroShimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes heroPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(58, 175, 190, 0); }
    50%       { box-shadow: 0 0 24px 4px rgba(58, 175, 190, 0.18); }
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bcg-hero-heading {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0 1.5rem;
    /* entrance */
    opacity: 0;
    animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

/* Decorative shimmer rule under the heading */
.bcg-hero-heading::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    margin: 0.75rem auto 0;
    background: linear-gradient(90deg, transparent, #3AAFBE, #B8A850, #3AAFBE, transparent);
    background-size: 400px 1px;
    animation: heroLineExpand 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards,
               heroShimmer 3s linear 2s infinite;
}

.bcg-hero-sub {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.bcg-hero-heading h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    /* word-by-word reveal via clip */
    clip-path: inset(0 100% 0 0);
    animation: heroClipReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}
@keyframes heroClipReveal {
    to { clip-path: inset(0 0% 0 0); }
}

/* Spotlight keywords row */
.bcg-spotlight {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
    /* entrance */
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

.bcg-spot-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #B8A850;
    text-transform: uppercase;
}

.bcg-spotlight a {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bcg-spotlight a:hover {
    color: #B8A850;
}

.bcg-spot-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Card Carousel — manual drag, no auto-marquee */
.bcg-carousel-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    /* entrance */
    opacity: 0;
    animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

.bcg-carousel-wrap::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.bcg-carousel-wrap.is-dragging {
    cursor: grabbing;
}

.bcg-carousel-track {
    display: flex;
    gap: 1.25rem;
    padding: 0 2rem;
    transition: transform 0.1s linear;
    align-items: flex-end;
    width: max-content;
    margin: 0 auto;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

/* Individual Cards — BCG style: click to reveal overlay at bottom */
.bcg-card {
    flex-shrink: 0;
    width: 320px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #161616;
    transition: all 0.55s cubic-bezier(0.23, 1, 0.32, 1);
    align-self: flex-end;
    animation: cardFloat 3.6s ease-in-out infinite;
}

/* Stagger each card's float so they move independently */
.bcg-card:nth-child(1) { animation-delay: 0s; }
.bcg-card:nth-child(2) { animation-delay: 0.6s; }
.bcg-card:nth-child(3) { animation-delay: 1.2s; }
.bcg-card:nth-child(4) { animation-delay: 1.8s; }
.bcg-card:nth-child(5) { animation-delay: 2.4s; }
.bcg-card:nth-child(6) { animation-delay: 3.0s; }

.bcg-card:hover:not(.is-active) {
    animation-play-state: paused;
    transform: translateY(-4px);
}

/* Stop float when expanded */
.bcg-card.is-active {
    width: 440px;
    transform: none;
    z-index: 10;
    animation: none;
}

/* Card Image */
.bcg-card-visual {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    transition: height 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.bcg-card.is-active .bcg-card-visual {
    height: 520px;
}

.bcg-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    animation: kenBurns 9s ease-in-out infinite alternate;
}
@keyframes kenBurns {
    0%   { transform: scale(1)    translateX(0)    translateY(0); }
    100% { transform: scale(1.06) translateX(-1%)  translateY(-1%); }
}

.bcg-card.is-active .bcg-card-visual img {
    transform: scale(1.04);
    animation: none;
}

/* Category label badge */
.bcg-card-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(27, 61, 111, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    z-index: 3;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.bcg-card.is-active .bcg-card-label {
    opacity: 0.7;
}

/* Card info panel — OVERLAY inside .bcg-card-visual, slides up from bottom */
.bcg-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: rgba(10, 20, 50, 0.93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem 1.75rem 1.75rem;
    transform: translateY(100%);
    transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #1B3D6F 0%, #3AAFBE 50%, #B8A850 100%) 1;
}

.bcg-card.is-active .bcg-card-info {
    transform: translateY(0);
}

.bcg-card-type {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #3AAFBE;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s 0.1s ease, transform 0.35s 0.1s ease;
}

.bcg-card.is-active .bcg-card-type {
    opacity: 1;
    transform: translateY(0);
}

.bcg-card-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s 0.18s ease, transform 0.4s 0.18s ease;
}

.bcg-card.is-active .bcg-card-info h3 {
    opacity: 1;
    transform: translateY(0);
}

.bcg-card-info p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin-bottom: 0.9rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s 0.26s ease, transform 0.4s 0.26s ease;
}

.bcg-card.is-active .bcg-card-info p {
    opacity: 1;
    transform: translateY(0);
}

.bcg-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #B8A850;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s 0.34s ease, transform 0.4s 0.34s ease, color 0.2s ease;
}

.bcg-card.is-active .bcg-card-link {
    opacity: 1;
    transform: translateY(0);
}

.bcg-card-link:hover {
    color: #3AAFBE;
}

.bcg-card-link span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.bcg-card-link:hover span {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bcg-hero {
        padding-top: 16px;
    }

    .bcg-card {
        width: 260px;
    }

    .bcg-card.is-active {
        width: 320px;
    }

    .bcg-card-visual {
        height: 280px;
    }

    .bcg-card.is-active .bcg-card-visual {
        height: 420px;
    }

    .bcg-spotlight {
        gap: 0.75rem;
    }

    .bcg-spotlight a {
        font-size: 0.55rem;
    }
}

/* --- Partners Marquee --- */
.partners-track {
    display: flex;
    animation: marquee 25s linear infinite;
    gap: 4rem;
    align-items: center;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    transition: all 0.4s ease;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1B3D6F, #3B8CA6);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 1rem;
}

.service-card:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(27, 61, 111, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #B8A850;
}

.service-card:hover h3 {
    color: white;
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.service-card:hover .service-arrow {
    color: #B8A850;
    transform: translateX(4px);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf9fb;
    color: #1B3D6F;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.4s ease;
}

.service-arrow {
    color: #3AAFBE;
    transition: all 0.3s ease;
}

/* --- Stats Counter --- */
.stats-section {
    background: linear-gradient(135deg, #1B3D6F 0%, #3B8CA6 45%, #0F1E42 100%);
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3AAFBE, #B8A850);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

/* --- FAQ Accordion --- */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.faq-item:hover {
    border-color: #3AAFBE;
}

.faq-item.active {
    border-color: #3AAFBE;
    box-shadow: 0 4px 20px rgba(58, 175, 190, 0.12);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1A2332;
    transition: all 0.3s ease;
    gap: 1rem;
}

.faq-question:hover {
    color: #3AAFBE;
}

.faq-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9fb;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    background: #3AAFBE;
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: #6b7280;
    line-height: 1.8;
    font-size: 0.925rem;
}

/* --- Page Header Banner --- */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-color: #060d1e;
    overflow: hidden;
    padding-bottom: 0;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Dark gradient overlay over the bg image */
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 13, 30, 0.62) 0%,
        rgba(6, 13, 30, 0.46) 45%,
        rgba(6, 13, 30, 0.80) 85%,
        rgba(6, 13, 30, 0.94) 100%
    );
    z-index: 0;
}

.page-header::after {
    display: none;
}

/* --- Alternating Service Detail Sections --- */
.service-detail-section {
    border-bottom: 1px solid #f3f4f6;
}

.service-detail-section:last-child {
    border-bottom: none;
}

/* --- Scroll animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #3B8CA6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3AAFBE;
}

/* --- Button Hover Effects --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* --- Image Hover Effects --- */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

.img-hover-zoom img {
    transition: transform 0.6s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* ================================================
   NAVBAR — Transparent/Gradient Scroll Reveal
   ================================================ */

/* Base state: fixed, rich navy-to-transparent gradient — clearly visible against all backgrounds */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s ease;
}

/* Extended gradient overlay — starts solid at top, fades out 220px below */
.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(
        to bottom,
        rgba(205, 220, 218, 0.97) 0%,
        rgba(202, 218, 216, 0.82) 40%,
        rgba(200, 216, 214, 0.40) 70%,
        rgba(200, 216, 214, 0.0) 100%
    );
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.4s ease;
}

/* Scrolled-up state: solid teal-gray with glass blur */
.navbar.nav-scrolled {
    background: rgba(205, 220, 218, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(27, 61, 111, 0.15);
    border-bottom: 1px solid rgba(58, 175, 190, 0.25);
}

/* Hide the extended gradient tail once scrolled — solid bar takes over */
.navbar.nav-scrolled::after {
    opacity: 0;
}

/* Default nav link — dark navy over light gradient */
.nav-default {
    color: rgba(27, 61, 111, 0.85);
}
.nav-default:hover {
    color: #1B3D6F;
    background: rgba(27, 61, 111, 0.10);
}

/* Active nav link — gold accent pill */
.nav-active {
    background: rgba(184, 168, 80, 0.20);
    color: #B8A850 !important;
    font-weight: 600;
}

/* Logo shrinks slightly once scrolled */
.navbar.nav-scrolled .navbar-logo {
    height: 3rem !important;
}

/* Mobile menu button */
.navbar-mobile-btn i {
    color: rgba(27, 61, 111, 0.9);
}
.navbar-mobile-btn:hover {
    background: rgba(27, 61, 111, 0.10);
}

/* Mobile dropdown panel */
.navbar-mobile-panel {
    background: rgba(205, 220, 218, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.navbar-mobile-panel .nav-default {
    color: rgba(27, 61, 111, 0.85);
}
.navbar-mobile-panel .nav-default:hover {
    background: rgba(27, 61, 111, 0.08);
    color: #1B3D6F;
}
.navbar-mobile-panel .nav-active {
    background: rgba(184, 168, 80, 0.18);
    color: #B8A850 !important;
}

/* --- Why Choose Card --- */
.why-card {
    position: relative;
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.4s ease;
}

.why-card:hover {
    border-color: #3B8CA6;
    box-shadow: 0 10px 40px rgba(59, 140, 166, 0.12);
    transform: translateY(-4px);
}

.why-card-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #d9f0f4, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

/* --- Portfolio Card --- */
.portfolio-card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.portfolio-card .portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(27, 61, 111, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card .portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-info {
    transform: translateY(0);
}

/* --- Contact Info Card --- */
.contact-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-card:hover {
    border-color: #3AAFBE;
    box-shadow: 0 4px 15px rgba(58, 175, 190, 0.1);
}

/* --- Team Card --- */
.team-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-card .team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(27, 61, 111, 0.88));
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(calc(100% - 80px));
    transition: transform 0.4s ease;
}

.team-card:hover .team-overlay {
    transform: translateY(0);
}

/* --- Vision/Mission/Values cards --- */
.vmv-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.vmv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B3D6F, #B8A850);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.vmv-card:hover::before {
    transform: scaleX(1);
}

.vmv-card:hover {
    border-color: #B8A850;
    box-shadow: 0 15px 40px rgba(184, 168, 80, 0.12);
    transform: translateY(-6px);
}

/* --- Back to top button --- */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1B3D6F;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 61, 111, 0.3);
}

#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
}

#backToTop:hover {
    background: #3AAFBE;
    transform: translateY(-3px);
}

/* ================================================
   GRADIENT THEME ENHANCEMENTS
   Navy: #1B3D6F  |  Teal: #3AAFBE  |  Mid-Teal: #3B8CA6  |  Gold: #B8A850  |  Purple: #3B3490
   ================================================ */

/* --- Section background gradient tints --- */
.section-teal-wave {
    background: linear-gradient(150deg, #f0fbfc 0%, #ffffff 45%, #f4f8ff 100%);
}

.section-navy-wave {
    background: linear-gradient(150deg, #f4f7ff 0%, #f9fafb 45%, #edfbfc 100%);
}

/* --- Partners strip edge fade (left/right mask) --- */
.partners-fade {
    position: relative;
}
.partners-fade::before,
.partners-fade::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}
.partners-fade::before {
    left: 0;
    background: linear-gradient(90deg, #f4f7ff 0%, transparent 100%);
}
.partners-fade::after {
    right: 0;
    background: linear-gradient(-90deg, #edfbfc 0%, transparent 100%);
}

/* --- Why Choose Us icon container gradient --- */
.why-icon-grad {
    background: linear-gradient(135deg, #dceeff 0%, #ccf5f9 100%) !important;
    color: #1B3D6F !important;
}

/* --- Experience Finance / generic card gradient top border on hover --- */
.exp-card-grad {
    position: relative;
    overflow: hidden;
}
.exp-card-grad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B3D6F 0%, #3AAFBE 50%, #B8A850 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.exp-card-grad:hover::before {
    opacity: 1;
}

/* --- Director's quote: tri-color gradient left border --- */
.director-quote {
    position: relative;
    padding-left: 1.5rem;
    border-left: none !important;
    margin-bottom: 2rem;
}
.director-quote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #1B3D6F 0%, #3AAFBE 55%, #B8A850 100%);
}

/* --- Section label accent lines → gradient --- */
span.w-8[class*="h-\[2px\]"],
.bg-accent-400[class*="w-8"] {
    background: linear-gradient(90deg, #1B3D6F, #3AAFBE) !important;
    border-radius: 2px;
}

/* --- Footer gradient top bar --- */
footer {
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #1B3D6F, #3AAFBE, #B8A850, #3AAFBE, #1B3D6F) 1;
}

/* --- Navbar gradient bottom indicator --- */
nav::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, #1B3D6F, #3AAFBE, #B8A850);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.navbar.nav-scrolled nav::after {
    opacity: 1;
}

/* --- Service icon: richer gradient background --- */
.service-icon {
    background: linear-gradient(135deg, #e8f7fa 0%, #dceeff 100%) !important;
}

/* --- Why card number: full brand gradient --- */
.why-card-number {
    background: linear-gradient(135deg, #1B3D6F 0%, #3B8CA6 50%, #3AAFBE 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* --- Stats section: richer 4-stop gradient --- */
.stats-section {
    background: linear-gradient(135deg, #0F1E42 0%, #1B3D6F 30%, #3B8CA6 70%, #0F1E42 100%) !important;
}

/* --- Page header: image-based — bg set inline per page --- */

/* --- Approach step number circles (services page) --- */
.approach-step-num {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    background: linear-gradient(135deg, #1B3D6F, #3AAFBE);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(27, 61, 111, 0.3);
}

/* --- VMV card: each gets unique gradient top bar color --- */
.vmv-vision::before  { background: linear-gradient(90deg, #1B3D6F, #3AAFBE) !important; }
.vmv-mission::before { background: linear-gradient(90deg, #3AAFBE, #B8A850) !important; }
.vmv-values::before  { background: linear-gradient(90deg, #B8A850, #1B3D6F) !important; }

/* --- Contact icon gradient background --- */
.contact-icon-grad {
    background: linear-gradient(135deg, #1B3D6F, #3AAFBE);
    color: white;
    border-radius: 0.75rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ================================================
   PREMIUM DESIGN UPGRADES
   ================================================ */

/* --- CTA Button shimmer sweep --- */
@keyframes shimmer-sweep {
    0%   { transform: translateX(-130%) skewX(-18deg); }
    100% { transform: translateX(230%)  skewX(-18deg); }
}
.cta-shimmer {
    position: relative;
    overflow: hidden;
}
.cta-shimmer::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 45%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    animation: shimmer-sweep 3s ease infinite;
    pointer-events: none;
}

/* --- Gradient headline text utility --- */
.grad-text {
    background: linear-gradient(135deg, #ffffff 0%, #3AAFBE 40%, #B8A850 70%, #ffffff 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradTextFlow 6s ease-in-out infinite alternate;
}
@keyframes gradTextFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* --- Section background patterns --- */
.section-teal-wave {
    background:
        radial-gradient(circle at 15% 50%, rgba(58,175,190,0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(27,61,111,0.05) 0%, transparent 50%),
        linear-gradient(160deg, #f0fbfc 0%, #ffffff 50%, #f4f8ff 100%) !important;
}
.section-navy-wave {
    background:
        radial-gradient(circle at 85% 60%, rgba(58,175,190,0.06) 0%, transparent 50%),
        radial-gradient(circle at 10% 30%, rgba(59,52,144,0.05) 0%, transparent 45%),
        radial-gradient(circle at 55% 85%, rgba(184,168,80,0.03) 0%, transparent 40%),
        linear-gradient(160deg, #f4f7ff 0%, #fafafa 50%, #edfbfc 100%) !important;
}

/* --- Dot-grid texture overlay --- */
.dot-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(27,61,111,0.055) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: 0;
}
.dot-grid > * { position: relative; z-index: 1; }

/* --- Diagonal section divider --- */
.section-slash {
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
    margin-top: -1.5%;
    margin-bottom: -1.5%;
    padding-top: calc(1.5% + 4rem) !important;
    padding-bottom: calc(1.5% + 4rem) !important;
}

/* ---- PREMIUM SERVICE CARDS ---- */
.service-card {
    position: relative;
    background: #fff;
    border-radius: 1.35rem !important;
    padding: 2.25rem !important;
    border: 1.5px solid #e8edf5 !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1B3D6F 0%, #3B8CA6 55%, #3AAFBE 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}
/* Animated left-edge accent stripe */
.service-card::after {
    content: '';
    position: absolute;
    left: 0; top: 8%; bottom: 8%;
    width: 4px;
    background: linear-gradient(180deg, #1B3D6F, #3AAFBE, #B8A850);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card:hover::after { transform: scaleY(1); }
.service-card:hover {
    border-color: transparent !important;
    transform: translateY(-10px) scale(1.015) !important;
    box-shadow: 0 30px 60px -10px rgba(27,61,111,0.2), 0 0 0 1px rgba(58,175,190,0.1) !important;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    background: linear-gradient(135deg, #e4f5fb 0%, #dceeff 100%) !important;
    color: #1B3D6F !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 14px rgba(27,61,111,0.1) !important;
    transition: all 0.4s ease !important;
}
.service-card:hover .service-icon {
    background: rgba(255,255,255,0.14) !important;
    color: #B8A850 !important;
    box-shadow: none !important;
}

/* ---- PREMIUM WHY CHOOSE US (dark glass) ---- */
.why-card {
    position: relative;
    padding: 2.5rem 2rem !important;
    border-radius: 1.35rem !important;
    background: linear-gradient(145deg, #0F1E42, #1a3560) !important;
    border: 1px solid rgba(58,175,190,0.13) !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    overflow: hidden;
    color: white !important;
}
.why-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58,175,190,0.13), transparent 70%);
    transition: transform 0.5s ease;
    pointer-events: none;
}
.why-card:hover {
    border-color: rgba(58,175,190,0.38) !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 28px 56px rgba(10,20,60,0.45), 0 0 0 1px rgba(58,175,190,0.2), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
.why-card:hover::before { transform: scale(2); }
.why-card-number {
    font-size: 5rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, rgba(58,175,190,0.9), rgba(58,175,190,0.18)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1 !important;
    margin-bottom: 0.75rem !important;
}
.why-icon-grad {
    background: linear-gradient(135deg, rgba(58,175,190,0.14), rgba(184,168,80,0.09)) !important;
    border: 1px solid rgba(58,175,190,0.22) !important;
}
.why-card .why-icon-grad [data-lucide],
.why-card [data-lucide] { color: #3AAFBE !important; }
.why-card h3 { color: #ffffff !important; }
.why-card p  { color: rgba(255,255,255,0.58) !important; }

/* ---- GLASS STAT CARDS ---- */
.stats-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1428 0%, #0F1E42 30%, #1B3D6F 55%, #3B8CA6 80%, #0a1428 100%) !important;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem !important;
    border-radius: 1.25rem;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}
.stat-item:hover {
    background: rgba(255,255,255,0.09) !important;
    border-color: rgba(184,168,80,0.3) !important;
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(0,0,0,0.25), 0 0 0 1px rgba(184,168,80,0.15);
}
.stat-number {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #ffffff 0%, #3AAFBE 50%, #B8A850 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1 !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.02em;
}
.stat-label {
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---- EXPERIENCE FINANCE — Full Overlay Image Cards ---- */
.exp-card {
    position: relative;
    border-radius: 1.35rem;
    overflow: hidden;
    cursor: pointer;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.23,1,0.32,1);
}
.exp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(15,30,66,0.28);
}
.exp-card-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.23,1,0.32,1);
}
.exp-card:hover .exp-card-img { transform: scale(1.09); }
.exp-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,18,48,0.1) 0%, rgba(8,18,48,0.65) 55%, rgba(8,18,48,0.97) 100%);
    transition: background 0.5s ease;
}
.exp-card:hover .exp-card-overlay {
    background: linear-gradient(180deg, rgba(8,18,48,0.2) 0%, rgba(8,18,48,0.7) 45%, rgba(8,18,48,0.98) 100%);
}
.exp-card-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 2rem 1.75rem;
}
.exp-card-icon {
    width: 2.75rem; height: 2.75rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.875rem;
    background: rgba(184,168,80,0.14);
    border: 1px solid rgba(184,168,80,0.32);
    color: #B8A850;
    margin-bottom: 0.875rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.45s 0.08s ease;
}
.exp-card:hover .exp-card-icon { opacity: 1; transform: translateY(0); }
.exp-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.exp-card-content p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.65;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.45s 0.12s ease, max-height 0.45s 0.12s ease;
}
.exp-card:hover .exp-card-content p {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
}
.exp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #B8A850;
    margin-top: 0.875rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.45s 0.2s ease;
    text-decoration: none;
}
.exp-card:hover .exp-card-link { opacity: 1; transform: translateY(0); }
.exp-card-link:hover { color: #3AAFBE; }

/* ---- PREMIUM FAQ ---- */
.faq-item {
    border: 1.5px solid rgba(27,61,111,0.09) !important;
    border-radius: 1.1rem !important;
    background: #ffffff !important;
    margin-bottom: 0.875rem !important;
    transition: all 0.35s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.faq-item:hover:not(.active) {
    border-color: rgba(58,175,190,0.28) !important;
    box-shadow: 0 6px 24px rgba(58,175,190,0.08) !important;
}
.faq-item.active {
    border-color: #3AAFBE !important;
    box-shadow: 0 8px 32px rgba(58,175,190,0.13) !important;
    background: linear-gradient(135deg, rgba(27,61,111,0.012), rgba(58,175,190,0.025)) !important;
}
.faq-icon {
    background: linear-gradient(135deg, rgba(27,61,111,0.07), rgba(58,175,190,0.09)) !important;
    border: 1px solid rgba(58,175,190,0.18) !important;
    color: #3B8CA6 !important;
}
.faq-item.active .faq-icon {
    background: linear-gradient(135deg, #3AAFBE, #1B3D6F) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(58,175,190,0.4) !important;
}

/* ---- DIRECTOR QUOTE ---- */
.director-quote {
    padding: 2rem 2rem 2rem 2.75rem !important;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(27,61,111,0.03), rgba(58,175,190,0.04)) !important;
    position: relative;
}
.director-quote::before {
    content: '\201C' !important;
    position: absolute;
    top: -0.75rem; left: 1.25rem;
    font-size: 6rem;
    line-height: 1;
    color: rgba(58,175,190,0.18);
    font-family: Georgia, serif;
    pointer-events: none;
}

/* ---- PAGE HEADER (IMAGE HERO BANNER) ---- */
.page-header {
    background-size: cover !important;
    background-position: center center !important;
    background-color: #060d1e !important;
    min-height: 420px !important;
    position: relative !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

/* Full-bleed dark gradient overlay */
.page-header::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: linear-gradient(
        to bottom,
        rgba(6, 13, 30, 0.62) 0%,
        rgba(6, 13, 30, 0.46) 45%,
        rgba(6, 13, 30, 0.80) 85%,
        rgba(6, 13, 30, 0.94) 100%
    ) !important;
    z-index: 0 !important;
    transform: none !important;
    pointer-events: none !important;
}

/* Remove old glow orb */
.page-header::after {
    display: none !important;
}

/* Gradient fade divider — blends photo into page bg */
.page-header-fade {
    width: 100%;
    height: 130px;
    position: relative;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 60%,
        rgba(255, 255, 255, 1) 100%
    );
}

/* ---- VMV CARDS WITH GLOW ---- */
.vmv-card {
    border-radius: 1.5rem !important;
    transition: all 0.5s cubic-bezier(0.23,1,0.32,1) !important;
    overflow: hidden;
}
.vmv-card::before {
    height: 4px !important;
    transform: scaleX(1) !important; /* always visible */
    border-radius: 0 !important;
}
.vmv-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 24px 55px rgba(27,61,111,0.13) !important;
    border-color: transparent !important;
}

/* ---- TEAM CARDS ---- */
.team-card {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transition: all 0.5s cubic-bezier(0.23,1,0.32,1) !important;
}
.team-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 28px 56px rgba(27,61,111,0.22) !important;
}

/* ---- PORTFOLIO CARDS ---- */
.portfolio-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.45s ease !important;
}
.portfolio-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 22px 52px rgba(27,61,111,0.2) !important;
}

/* ---- CONTACT CARDS ---- */
.contact-card {
    border-radius: 1.25rem !important;
    border: 1.5px solid #edf2f7 !important;
    transition: all 0.4s ease !important;
}
.contact-card:hover {
    border-color: rgba(58,175,190,0.4) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 40px rgba(58,175,190,0.12) !important;
}

/* ---- FOOTER ---- */
footer.bg-dark {
    background: #050f25 !important;
    border-top: none !important;
    position: relative;
}
footer.bg-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B3D6F 0%, #3B3490 20%, #3AAFBE 40%, #B8A850 60%, #3AAFBE 80%, #1B3D6F 100%);
}
footer.bg-dark a:hover svg,
footer.bg-dark a:hover [data-lucide] { color: white !important; }
footer.bg-dark a:hover { background: linear-gradient(135deg, #1B3D6F, #3AAFBE) !important; }

/* ---- BACK TO TOP ---- */
#backToTop {
    background: linear-gradient(135deg, #1B3D6F, #3AAFBE) !important;
    border: none !important;
    box-shadow: 0 8px 26px rgba(27,61,111,0.38) !important;
    transition: all 0.38s ease !important;
}
#backToTop:hover {
    background: linear-gradient(135deg, #3AAFBE, #B8A850) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 34px rgba(58,175,190,0.45) !important;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1B3D6F, #3AAFBE);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: #3AAFBE; }

/* ---- NAVBAR SCROLL STATE (see top of file for full rules) ---- */

/* ---- SMOOTH IMAGE HOVER ZOOM ---- */
.img-hover-zoom img {
    transition: transform 0.65s cubic-bezier(0.23,1,0.32,1) !important;
}
.img-hover-zoom:hover img { transform: scale(1.06) !important; }

/* ---- HERO CTA BUTTONS ---- */
.bcg-cta-row a:first-child {
    background: linear-gradient(135deg, #B8A850, #a8952e) !important;
    box-shadow: 0 8px 24px rgba(184,168,80,0.28);
    transition: all 0.38s ease !important;
}
.bcg-cta-row a:first-child:hover {
    background: linear-gradient(135deg, #cbbf60, #B8A850) !important;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(184,168,80,0.38) !important;
}

/* ================================================
   RESPONSIVE — Mobile & Tablet Enhancements
   ================================================ */

/* Touch-friendly scroll snap for hero carousel on mobile/tablet */
@media (max-width: 1023px) {
    .bcg-carousel-wrap {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .bcg-card {
        scroll-snap-align: start;
    }
}

/* Touch-only devices: reveal hover-only overlays so content is accessible */
@media (hover: none) {
    .portfolio-card .portfolio-overlay {
        opacity: 1;
    }
    .portfolio-card .portfolio-info {
        transform: translateY(0);
    }
    .team-card .team-overlay {
        transform: translateY(0);
    }
    .exp-card .exp-card-icon {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    .exp-card .exp-card-content p {
        max-height: 120px !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    .exp-card .exp-card-link {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* ---- Mobile: ≤ 640px ---- */
@media (max-width: 640px) {
    /* Hero section */
    .bcg-hero {
        padding-top: 10px;
        padding-bottom: 1.25rem;
    }
    .bcg-hero-heading {
        padding: 0 1rem;
        margin-bottom: 0.75rem;
    }
    .bcg-spotlight {
        gap: 0.5rem;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    .bcg-spotlight a {
        font-size: 0.5rem;
        letter-spacing: 0.1em;
    }
    .bcg-spot-dot {
        display: none;
    }

    /* Carousel */
    .bcg-carousel-track {
        padding: 0 1rem 1rem;
        gap: 0.75rem;
    }
    .bcg-card {
        width: clamp(220px, 78vw, 260px);
    }
    .bcg-card.is-active {
        width: clamp(270px, 90vw, 320px);
    }
    .bcg-card-visual {
        height: 240px;
    }
    .bcg-card.is-active .bcg-card-visual {
        height: 360px;
    }
    .bcg-card-info {
        padding: 1.1rem 1.25rem 1.25rem;
    }
    .bcg-card-info h3 {
        font-size: 0.92rem;
    }

    /* Stats */
    .stat-item {
        padding: 1.25rem 0.75rem !important;
    }
    .stat-number {
        font-size: 2rem !important;
    }
    .stat-label {
        font-size: 0.65rem !important;
    }

    /* Diagonal section */
    .section-slash {
        clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
        padding-top: calc(2% + 2rem) !important;
        padding-bottom: calc(2% + 2rem) !important;
    }

    /* Back to top */
    #backToTop {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 2.75rem;
        height: 2.75rem;
    }

    /* Page header inner pages */
    .page-header {
        padding-top: 1.75rem !important;
        padding-bottom: 0 !important;
    }
    /* Cards */
    .service-card {
        padding: 1.5rem !important;
    }
    .why-card {
        padding: 1.75rem 1.25rem !important;
    }
    .why-card-number {
        font-size: 3.5rem !important;
    }
    .vmv-card {
        padding: 2rem 1.25rem !important;
    }
    .exp-card {
        min-height: 260px;
    }
    .exp-card-content {
        padding: 1.5rem 1.25rem;
    }

    /* Director quote */
    .director-quote {
        padding: 1.5rem 1.25rem 1.5rem 2rem !important;
    }
    .director-quote::before {
        font-size: 3.5rem !important;
    }

    /* Partners marquee */
    .partners-track {
        gap: 2.5rem;
    }
    .partners-fade::before,
    .partners-fade::after {
        width: 60px;
    }

    /* FAQ */
    .faq-question {
        font-size: 0.875rem;
        padding: 1rem 1.25rem;
    }
    .faq-answer-inner {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ---- Tablet: 641px – 1023px ---- */
@media (min-width: 641px) and (max-width: 1023px) {
    .bcg-card {
        width: clamp(260px, 42vw, 300px);
    }
    .bcg-card.is-active {
        width: clamp(320px, 56vw, 380px);
    }
    .bcg-card-visual {
        height: 290px;
    }
    .bcg-card.is-active .bcg-card-visual {
        height: 440px;
    }
    .stat-number {
        font-size: 2.5rem !important;
    }
    .exp-card {
        min-height: 310px;
    }
    .why-card-number {
        font-size: 4rem !important;
    }
}

/* ================================================
   GLOBAL UI ENHANCEMENTS
   ================================================ */

/* ---- Section label chips (inline-flex label rows) ---- */
span.inline-flex.items-center.gap-2.text-primary-600,
span.inline-flex.items-center.gap-2.text-primary-600.text-sm {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    background: linear-gradient(135deg, rgba(27,61,111,0.07) 0%, rgba(58,175,190,0.09) 100%) !important;
    border: 1px solid rgba(58,175,190,0.2) !important;
    padding: 0.3rem 0.9rem !important;
    border-radius: 999px !important;
    letter-spacing: 0.1em !important;
    font-size: 0.72rem !important;
    color: #1B3D6F !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(58,175,190,0.08) !important;
}

/* ---- Section heading h2 rhythm & depth ---- */
section h2.text-3xl,
section h2.text-4xl,
section h2.md\:text-4xl {
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
}

/* ---- Decorative top border on content sections ---- */
.section-teal-wave,
.section-navy-wave {
    border-top: 1px solid rgba(58,175,190,0.1);
}

/* ---- Section background depth ---- */
section.bg-white {
    background: #ffffff !important;
}
section.bg-gray-50 {
    background: linear-gradient(160deg, #f8fafc 0%, #f4f7ff 100%) !important;
}

/* ---- Image containers — subtle glow ring on hover ---- */
.img-hover-zoom {
    box-shadow: 0 8px 32px rgba(27,61,111,0.1);
    transition: box-shadow 0.5s ease !important;
}
.img-hover-zoom:hover {
    box-shadow: 0 20px 56px rgba(27,61,111,0.18), 0 0 0 3px rgba(58,175,190,0.15) !important;
}

/* ---- Floating info cards (e.g. "Since 2018", "Have Questions?") ---- */
.absolute.bg-white.rounded-2xl.shadow-xl {
    box-shadow: 0 12px 40px rgba(27,61,111,0.14), 0 0 0 1px rgba(58,175,190,0.1) !important;
    backdrop-filter: blur(8px);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.absolute.bg-white.rounded-2xl.shadow-xl:hover {
    box-shadow: 0 20px 56px rgba(27,61,111,0.2), 0 0 0 1px rgba(58,175,190,0.2) !important;
    transform: translateY(-3px);
}

/* ---- Check-list items on service detail pages ---- */
li.flex.items-start.gap-3 span.text-gray-600 {
    font-size: 0.9rem;
    line-height: 1.65;
}
li.flex.items-start.gap-3 {
    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem;
    transition: background 0.25s ease;
}
li.flex.items-start.gap-3:hover {
    background: rgba(58,175,190,0.05);
}

/* ---- "Read More" / CTA buttons on service detail sections ---- */
button.inline-flex.items-center.gap-2.px-6.py-3.rounded-full,
a.inline-flex.items-center.gap-2.px-6.py-3.rounded-full {
    position: relative;
    overflow: hidden;
    transition: all 0.38s cubic-bezier(0.23,1,0.32,1) !important;
    box-shadow: 0 4px 16px rgba(13,79,110,0.22) !important;
    letter-spacing: 0.01em;
}
button.inline-flex.items-center.gap-2.px-6.py-3.rounded-full:hover,
a.inline-flex.items-center.gap-2.px-6.py-3.rounded-full:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(13,79,110,0.3) !important;
}

/* ---- VMV (Vision/Mission/Values) icon containers ---- */
.vmv-card .w-16.h-16.bg-primary-50 {
    background: linear-gradient(135deg, #dceeff, #d4f5f9) !important;
    box-shadow: 0 4px 16px rgba(27,61,111,0.12) !important;
}
.vmv-card h3 {
    font-size: 1.2rem !important;
    letter-spacing: -0.01em;
}

/* ---- Partners strip ---- */
.partners-track img {
    filter: grayscale(1) brightness(0.85);
    transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease !important;
}
.partners-track img:hover {
    filter: grayscale(0) brightness(1) !important;
    transform: scale(1.07);
    opacity: 1 !important;
}

/* ---- Breadcrumb rows ---- */
.flex.items-center.justify-center.gap-3.mt-8.text-sm,
.flex.items-center.gap-3.mt-8.text-sm {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-flex !important;
}

/* ---- Contact card icons ---- */
.contact-card .w-14.h-14.bg-primary-50 {
    background: linear-gradient(135deg, #dceeff, #d4f5f9) !important;
    box-shadow: 0 4px 14px rgba(27,61,111,0.1) !important;
}
.contact-card .w-14.h-14.bg-green-50 {
    background: linear-gradient(135deg, #dcfce7, #d1fae5) !important;
    box-shadow: 0 4px 14px rgba(22,163,74,0.1) !important;
}

/* ---- Portfolio card category badge ---- */
.portfolio-info .inline-block.bg-accent-400 {
    background: linear-gradient(135deg, #B8A850, #a8952e) !important;
    letter-spacing: 0.04em;
    font-size: 0.68rem !important;
    padding: 0.3rem 0.85rem !important;
    box-shadow: 0 2px 8px rgba(184,168,80,0.3) !important;
}

/* ---- Navbar glass effect — handled by .nav-scrolled in new system ---- */

/* ---- Footer links hover ---- */
footer a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* ---- Section spacing rhythm ---- */
section.pt-10.pb-24 {
    padding-top: 4.5rem !important;
    padding-bottom: 5.5rem !important;
}

/* ---- Service detail section headings ---- */
.service-detail-section h2.text-3xl {
    position: relative;
    padding-bottom: 0.9rem;
    margin-bottom: 1.5rem !important;
}
.service-detail-section h2.text-3xl::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1B3D6F, #3AAFBE);
}

/* ---- About page intro image accent shapes ---- */
.absolute.w-32.h-32.bg-accent-400\/15 {
    background: linear-gradient(135deg, rgba(184,168,80,0.18), rgba(58,175,190,0.12)) !important;
    border-radius: 1.25rem !important;
}
.absolute.w-20.h-20.bg-primary-400\/15 {
    background: linear-gradient(135deg, rgba(27,61,111,0.14), rgba(58,175,190,0.1)) !important;
    border-radius: 1.25rem !important;
}

/* ---- Responsive: mobile label chips ---- */
@media (max-width: 640px) {
    span.inline-flex.items-center.gap-2.text-primary-600 {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.75rem !important;
    }
    .service-detail-section h2.text-3xl::after {
        width: 36px;
    }
}

/* ================================================
   PER-SECTION PARTICLE BACKGROUND SUPPORT
   The fix: sections need isolation:isolate to create
   a proper stacking context. Without it, z-index:-1
   on the canvas falls through to the body context,
   landing behind the section background → invisible.
   With isolation:isolate the canvas sits above the
   section's own background but below all content.
   ================================================ */

/* ================================================
   HERO SLIDER — Full-Screen Professional Swiper
   ================================================ */

.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 520px;
    max-height: 960px;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    overflow: hidden;
}

/* Ken Burns: bg starts zoomed in, active slide zooms out smoothly */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 8s ease-out;
    will-change: transform;
}

.swiper-slide-active .hero-slide-bg {
    transform: scale(1);
}

/* Gradient overlay: stronger at bottom for text legibility */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 20, 50, 0.90) 0%,
        rgba(10, 20, 50, 0.55) 40%,
        rgba(10, 20, 50, 0.22) 75%,
        rgba(10, 20, 50, 0.10) 100%
    );
    z-index: 1;
}

/* Slide text — anchored to bottom */
.hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding-bottom: 7.5rem;
}

/* Eyebrow label */
.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #B8A850;
    margin-bottom: 0.9rem;
    opacity: 0;
    transform: translateY(18px);
}

.swiper-slide-active .hero-eyebrow {
    animation: heroContentIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

/* Main headline */
.hero-headline {
    font-size: clamp(2.1rem, 5.2vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    max-width: 720px;
    opacity: 0;
    transform: translateY(18px);
}

.swiper-slide-active .hero-headline {
    animation: heroContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.text-right .hero-headline,
.text-right .hero-eyebrow {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

/* Subtext */
.hero-subtext {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 2.25rem;
    opacity: 0;
    transform: translateY(18px);
}

.swiper-slide-active .hero-subtext {
    animation: heroContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

/* CTA Buttons Row */
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(18px);
}

.swiper-slide-active .hero-cta-row {
    animation: heroContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards;
}

.swiper-slide-active .hero-breadcrumb {
    animation: heroContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.78s forwards;
}

@keyframes heroContentIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Primary CTA */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #B8A850;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.9rem 1.8rem;
    border-radius: 3rem;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(184, 168, 80, 0.38);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn-primary:hover {
    background: #cbbf60;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(184, 168, 80, 0.48);
}

/* Secondary CTA */
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.9rem 1.8rem;
    border-radius: 3rem;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-3px);
}

/* Navigation arrows */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background: rgba(184, 168, 80, 0.75);
    border-color: #B8A850;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 0.85rem;
    font-weight: 800;
}

/* Pagination bullets */
.hero-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.40);
    opacity: 1;
    transition: all 0.35s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #B8A850;
    width: 28px;
    border-radius: 4px;
}

/* Scroll-down indicator */
.hero-scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    animation: scrollBounce 2.2s ease-in-out infinite;
}

.hero-scroll-line {
    width: 1.5px;
    height: 38px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide-content {
        padding-bottom: 5.5rem;
    }
    .hero-subtext { font-size: 0.9rem; }
    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 0.8rem;
        padding: 0.75rem 1.4rem;
    }
    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next { display: none; }
}

/* ================================================
   PAGE BANNER — Static hero for inner pages
   Mirrors the homepage hero slide exactly:
   same bg/overlay/content classes, Ken Burns on
   load, text entrance animations fire immediately.
   ================================================ */

.page-banner {
    position: relative;
    height: 100vh;
    min-height: 520px;
    max-height: 960px;
    overflow: hidden;
}

/* Ken Burns plays once on page load */
.page-banner .hero-slide-bg {
    transform: scale(1.08);
    animation: pageBannerKenBurns 12s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes pageBannerKenBurns {
    to { transform: scale(1); }
}

/* Text entrance — fire immediately (no swiper-slide-active needed) */
.page-banner .hero-eyebrow {
    animation: heroContentIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.page-banner .hero-headline {
    animation: heroContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}
.page-banner .hero-subtext {
    animation: heroContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}
.page-banner .hero-breadcrumb {
    animation: heroContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards;
}

/* Breadcrumb row */
.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(18px);
}

@media (max-width: 768px) {
    .page-banner {
        height: 100vh;
        min-height: 520px;
    }
}

section:not(.bcg-hero):not(.page-header):not(.hero-slider-section):not(.page-banner) {
    position: relative;   /* required — makes section the containing block for position:absolute canvas */
    isolation: isolate;   /* creates internal stacking context so z-index:-1 stays inside the section */
}

/* The canvas injected by JS into each section */
.sp-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    display: block;
    border-radius: inherit;
}
