@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --brand-primary: #2E3F7F;
    /* Dark Blue */
    --brand-secondary: #0097B2;
    /* Teal */
    --brand-accent: #F39C12;
    /* Orange */

    --primary-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-text: var(--brand-primary);
    --btn-bg: var(--brand-primary);
    --btn-text: #ffffff;
    --dropdown-bg: rgba(255, 255, 255, 0.95);
    --hover-bg: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
}

html,
body {
    background: var(--primary-bg);
    min-height: 100vh;
    color: #1a1a1a;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body.no-scroll {
    overflow: hidden !important;
}

.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.unified-nav-box {
    display: flex;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: clamp(20px, 5vw, 100px);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container .logo-link {
    display: block;
    line-height: 0;
    transition: opacity 0.3s ease;
}

.logo-container .logo-link:hover {
    opacity: 0.8;
}

.logo-container .logo {
    height: 32px;
    object-fit: contain;
}

.pill-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px;
    margin-right: 24px;
}

.nav-item a {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-item a:hover,
.dropdown:hover>a {
    color: var(--brand-accent) !important;
}

.arrow {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.arrow.right {
    margin-left: auto;
    padding-left: 12px;
}

/* Dropdown Base */
.dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown-menu,
.submenu {
    position: absolute;
    background: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 8px 0;
    z-index: 100;
}

.dropdown-menu {
    top: calc(100% + 12px);
    left: -12px;
    transform: translateY(10px);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a,
.submenu a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--nav-text);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.dropdown-menu a:hover,
.submenu a:hover {
    color: var(--brand-accent);
}

.submenu {
    top: -9px;
    left: calc(100% + 5px);
    transform: translateX(0);
}

.submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 100%;
}

.dropdown-submenu:hover>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Buttons */
.btn-contact {
    background: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    background: var(--brand-accent);
    color: var(--brand-primary);
}

.btn-primary {
    background-color: var(--brand-secondary);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #007d93;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--brand-primary);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(46, 63, 127, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(46, 63, 127, 0.05);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

/* Sections */
.hero-section {
    background-color: #F4F7FB;
    background-image: linear-gradient(rgba(244, 247, 251, 0.75), rgba(244, 247, 251, 0.75)), url('../assets/website_banner_clean.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 160px 0 60px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1.2;
}

.water-bubble-container {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* animation: bubble-float 6s ease-in-out infinite; */
}

.bubble-logo-wrapper {
    position: absolute;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble-logo {
    width: 320px;
    height: auto;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(0, 151, 178, 0.4)) brightness(1.1);
    /* animation: logo-drift 5s ease-in-out infinite; */
}

.bubble-lens {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    z-index: 2;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.4) 0%, rgba(135, 206, 235, 0.1) 45%, rgba(46, 63, 127, 0.2) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 0 50px rgba(135, 206, 235, 0.4),
        inset -20px -20px 60px rgba(0, 151, 178, 0.1),
        0 40px 80px rgba(0, 0, 0, 0.15);
    /* animation: bubble-wobble 10s ease-in-out infinite; */
    overflow: hidden;
}

.bubble-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(35px);
    pointer-events: none;
}

.bubble-surface-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: rgba(135, 206, 235, 0.15);
    filter: url(#water-ripples);
    mix-blend-mode: overlay;
    pointer-events: none;
    border-radius: inherit;
}

.wave-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0.6;
}

.wave-blob.b1 {
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.5) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    /* animation: blob-move-1 12s ease-in-out infinite; */
}

.wave-blob.b2 {
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    /* animation: blob-move-2 15s ease-in-out infinite; */
}

.wave-blob.b3 {
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(46, 63, 127, 0.4) 0%, transparent 70%);
    top: 20%;
    left: 20%;
    /* animation: blob-move-3 10s ease-in-out infinite; */
}

.wave-blob.b4 {
    width: 45%;
    height: 45%;
    background: radial-gradient(circle, rgba(0, 151, 178, 0.4) 0%, transparent 70%);
    bottom: 5%;
    left: 25%;
    /* animation: blob-move-1 14s ease-in-out infinite reverse; */
}

.wave-blob.b5 {
    width: 50%;
    height: 40%;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.5) 0%, transparent 70%);
    top: 40%;
    right: 15%;
    /* animation: blob-move-2 11s ease-in-out infinite 2s; */
}

.bubble-glitter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.glitter {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 15px rgba(135, 206, 235, 0.6);
    opacity: 0;
    animation: glitter-sparkle 5s ease-in-out infinite;
}

.glitter.g1 {
    top: 25%;
    left: 35%;
    animation-delay: 0s;
}

.glitter.g2 {
    top: 65%;
    left: 25%;
    animation-delay: 1.2s;
}

.glitter.g3 {
    top: 15%;
    left: 65%;
    animation-delay: 2.5s;
}

.glitter.g4 {
    top: 75%;
    left: 55%;
    animation-delay: 0.8s;
}

.glitter.g5 {
    top: 45%;
    left: 75%;
    animation-delay: 3.2s;
}

.bubble-caustics {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 10%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 15%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 15%);
    filter: blur(15px);
    animation: caustic-move 15s linear infinite;
    opacity: 0.6;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 4;
}

.bubble-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E%3C/svg%3E");
    opacity: 0.04;
    border-radius: inherit;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 5;
}

.bubble-reflection-main {
    position: absolute;
    top: 12%;
    left: 15%;
    width: 35%;
    height: 15%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 50%;
    transform: rotate(-30deg);
    filter: blur(3px);
    pointer-events: none;
    z-index: 6;
}

.bubble-reflection-sub {
    position: absolute;
    bottom: 15%;
    right: 20%;
    width: 50px;
    height: 25px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(5px);
    pointer-events: none;
    z-index: 6;
}

/* Satellite Bubbles */
.satellite-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4);
    z-index: 3;
}

.satellite-bubble.b1 {
    width: 35px;
    height: 35px;
    top: 10%;
    right: 10%;
    animation: sat-float 8s ease-in-out infinite;
}

.satellite-bubble.b2 {
    width: 20px;
    height: 20px;
    bottom: 20%;
    left: 5%;
    animation: sat-float 12s ease-in-out infinite reverse;
}

.satellite-bubble.b3 {
    width: 14px;
    height: 14px;
    top: 40%;
    left: -8%;
    animation: sat-float 10s ease-in-out infinite 1s;
}

.sphere-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 151, 178, 0.3) 0%, rgba(46, 63, 127, 0.15) 45%, transparent 75%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes bubble-wobble {

    0%,
    100% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
        transform: scale(1) rotate(0deg);
    }

    20% {
        border-radius: 48% 52% 47% 53% / 53% 47% 53% 47%;
        transform: scale(1.01) rotate(1deg);
    }

    40% {
        border-radius: 52% 48% 52% 48% / 47% 53% 47% 53%;
        transform: scale(0.99) rotate(-1deg);
    }

    60% {
        border-radius: 47% 53% 53% 47% / 50% 50% 50% 50%;
        transform: scale(1.02) rotate(0.5deg);
    }

    80% {
        border-radius: 53% 47% 48% 52% / 52% 48% 52% 48%;
        transform: scale(0.98) rotate(-0.5deg);
    }
}

@keyframes sat-float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

@keyframes caustic-move {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes blob-move-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20%, 10%) scale(1.1);
    }
}

@keyframes blob-move-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-15%, -15%) scale(1.2);
    }
}

@keyframes blob-move-3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1.1);
    }

    50% {
        transform: translate(5%, 20%) scale(0.9);
    }
}

@keyframes glitter-sparkle {

    0%,
    100% {
        transform: scale(0);
        opacity: 0;
    }

    40%,
    60% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes logo-drift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(8px, -6px) rotate(1.5deg);
    }

    66% {
        transform: translate(-8px, 6px) rotate(-1.5deg);
    }
}

@keyframes bubble-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

.hero-title {
    font-size: 64px;
    font-weight: 600;
    color: var(--brand-primary);
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 850px;
}

.hero-title .highlight {
    color: var(--brand-secondary);
}

.hero-description {
    font-size: 18px;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.content-section {
    padding: 80px 0 60px 0;
    min-height: auto;
    display: flex;
    align-items: center;
}

.bg-white {
    background-color: #ffffff;
}

.bg-light {
    background-color: #f8fafc;
}

.page-view-active {
    padding-top: 160px !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
}

.page-header {
    margin-bottom: 40px;
}

.page-header p {
    margin-bottom: 24px;
}

.page-header .btn-primary,
.page-header .btn-secondary {
    display: inline-flex;
    margin-top: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 24px;
}

.section-desc {
    font-size: 18px;
    color: #4A5568;
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.subsection-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 32px;
}

/* Service Card Refinement */
.service-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--brand-primary);
}

.service-card p {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Portfolio Detailed Items */
.portfolio-item-detailed {
    background: #ffffff;
    padding: 48px;
    border-radius: 24px;
    border: 1px solid rgba(46, 63, 127, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.split-right .portfolio-item-detailed {
    margin-top: 8px;
}

.portfolio-item-detailed h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.portfolio-item-detailed p {
    font-size: 16px;
    margin-bottom: 32px;
    color: #4A5568;
}

/* Methodology & Mandate Items */
.mandate-item {
    margin-bottom: 40px;
}

.mandate-content h4 {
    margin-bottom: 12px;
}

.mandate-tags {
    margin-top: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(46, 63, 127, 0.05);
    border: 1px solid rgba(46, 63, 127, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-secondary);
    border-radius: 50%;
    display: inline-block;
}

/* Grids */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Carousel Refinement */
.carousel-container {
    position: relative;
    margin-bottom: 48px;
}

.carousel-track {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 20px 0;
    margin-bottom: 24px;
    grid-template-columns: none !important;
    /* Override grid for carousel */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .service-card {
    flex: 0 0 calc(33.333% - 16px);
    scroll-snap-align: start;
    min-width: 320px;
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: -12px;
}

.carousel-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(46, 63, 127, 0.1);
    background: #ffffff;
    color: var(--brand-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-btn:hover {
    background: var(--brand-primary);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(46, 63, 127, 0.2);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1100px) {
    .carousel-track .service-card {
        flex: 0 0 calc(50% - 12px);
    }
}


.service-card,
.bento-item {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(46, 63, 127, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.service-card h3,
.bento-item h3,
.portfolio-item-detailed h3 {
    color: var(--brand-primary);
    transition: color 0.3s ease;
}

.service-card p,
.bento-item p,
.portfolio-item-detailed p {
    transition: color 0.3s ease;
}

/* --- Card Hover Logic --- */

/* Small Card Hover: High-Impact Inversion */
.service-card:not(.static-card):not(.portfolio-item-detailed):hover,
.bento-item:not(.large):not(.wide):hover {
    background: var(--brand-primary) !important;
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover h3,
.bento-item:not(.large):not(.wide):hover h3,
.service-card:hover h4,
.bento-item:not(.large):not(.wide):hover h4 {
    color: var(--brand-accent) !important;
}

.service-card:hover p,
.bento-item:not(.large):not(.wide):hover p,
.service-card:hover span,
.bento-item:not(.large):not(.wide):hover span,
.service-card:hover strong,
.bento-item:not(.large):not(.wide):hover strong {
    color: #ffffff !important;
}

.service-card:hover .icon-wrapper,
.bento-item:not(.large):not(.wide):hover .icon-wrapper {
    background: transparent;
}

.service-card:hover .icon-wrapper svg,
.bento-item:not(.large):not(.wide):hover .icon-wrapper svg {
    stroke: var(--brand-accent) !important;
    color: var(--brand-accent) !important;
}

/* Large Card Hover: Refined Highlight */
.portfolio-item-detailed:hover,
.bento-item.large:hover,
.bento-item.wide:hover {
    transform: translateX(12px);
    background: #ffffff !important;
    border-left: 6px solid var(--brand-secondary);
    box-shadow: 0 20px 60px rgba(46, 63, 127, 0.1);
}

.portfolio-item-detailed:hover h3,
.bento-item.large:hover h3,
.bento-item.wide:hover h3 {
    color: var(--brand-secondary) !important;
}

/* Disable Hover for specific sections */
.no-hover-cards .service-card:hover,
.no-hover-cards .portfolio-item-detailed:hover,
.no-hover-cards .bento-item:hover,
#contact-page .portfolio-item-detailed:hover,
#contact-us .portfolio-item-detailed:hover {
    background: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
    border-left: 1px solid rgba(46, 63, 127, 0.1) !important;
}

.no-hover-cards .service-card:hover p,
.no-hover-cards .portfolio-item-detailed:hover p,
.no-hover-cards .bento-item:hover p {
    color: #4A5568 !important;
}

.no-hover-cards .service-card:hover span,
.no-hover-cards .service-card:hover strong,
.no-hover-cards .bento-item:hover span,
.no-hover-cards .bento-item:hover strong,
.no-hover-cards .service-card:hover .mandate-meta,
.no-hover-cards .service-card:hover .hub-link {
    color: var(--brand-primary) !important;
}

.no-hover-cards .service-card:hover .icon-wrapper svg,
.no-hover-cards .bento-item:hover .icon-wrapper svg {
    stroke: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}

.no-hover-cards .service-card:hover .mandate-tags span {
    background: rgba(46, 63, 127, 0.05) !important;
    color: var(--brand-primary) !important;
}

.no-hover-cards .service-card:hover h3,
.no-hover-cards .service-card:hover h4,
.no-hover-cards .portfolio-item-detailed:hover h3,
.no-hover-cards .bento-item:hover h3,
#contact-page .portfolio-item-detailed:hover h3,
#contact-us .portfolio-item-detailed:hover h3 {
    color: var(--brand-primary) !important;
}

/* Hub Styles */
.hub-link {
    margin-top: auto;
    padding-top: 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icons */
.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(46, 63, 127, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.icon-wrapper svg {
    stroke: currentColor;
}

/* Metrics */
.metrics-section {
    padding: 60px 48px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1a2a5a 100%);
    position: relative;
    overflow: hidden;
}

.metrics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 151, 178, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(243, 156, 18, 0.08) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.metric-number {
    font-size: 72px;
    font-weight: 800;
    color: var(--brand-secondary);
    margin-bottom: 12px;
    line-height: 1;
    text-shadow: 0 0 30px rgba(0, 151, 178, 0.3);
}

.metric-label {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-section .metrics-section {
    margin: 60px -48px;
}

/* Portfolio Metadata */
.mandate-meta {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.service-card:hover .hub-link {
    color: var(--brand-accent) !important;
}

.service-card:hover .mandate-tags span {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

#portfolio .service-card:hover .mandate-meta {
    color: #ffffff !important;
}

/* Certification Ribbon */
.cert-ribbon {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
    padding: 32px;
    background: rgba(46, 63, 127, 0.02);
    border-radius: 24px;
    border: 1px dashed rgba(46, 63, 127, 0.2);
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-badge svg {
    width: 24px;
    height: 24px;
    color: var(--brand-secondary);
}

/* Forensic View */
.forensic-view {
    position: relative;
}

.forensic-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(46, 63, 127, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* CTA Boxes */
.cta-box {
    margin-top: 60px;
    background: var(--brand-primary);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    color: #ffffff;
}

.cta-box h3 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #ffffff !important;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    color: #ffffff !important;
}

.modern-cta {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1a2a5a 100%);
    position: relative;
    overflow: hidden;
}

.modern-cta::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 151, 178, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.tech-grid span {
    background: #fff;
    border: 1px solid rgba(46, 63, 127, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--brand-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    display: block;
    background: #f8fafc !important;
    border: 1px solid rgba(46, 63, 127, 0.1) !important;
    padding: 16px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-secondary) !important;
    box-shadow: 0 0 0 4px rgba(0, 151, 178, 0.1);
}

.contact-form .btn-primary {
    justify-content: center;
    border: none;
    cursor: pointer;
    margin-top: 8px;
}

/* Disable All Animations for Contact */
#contact-page,
#contact-page *,
#contact-us,
#contact-us * {
    transition: none !important;
    animation: none !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--brand-primary);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}

.mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Footer Refinement */
.main-footer {
    background: #0f172a;
    color: #ffffff;
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 64px;
}

.footer-logo {
    height: 36px;
    margin-bottom: 24px;

}

.footer-tagline {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand-accent);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #94a3b8;
    font-size: 14px;
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--brand-secondary);
    margin-top: 2px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #ffffff;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    color: var(--brand-secondary);
}

.footer-bottom {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* Service & Bento Grid Improvements */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 24px;
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.forensic-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(46, 63, 127, 0.1);
}

.card-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-secondary), transparent);
    animation: scan 3s linear infinite;
    opacity: 0.3;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.mandate-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.mandate-tags span {
    background: rgba(46, 63, 127, 0.05);
    color: var(--brand-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline & Methodology */
.mandate-timeline {
    position: relative;
    padding-left: 32px;
}

.mandate-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(46, 63, 127, 0.1);
}

.mandate-item {
    position: relative;
    margin-bottom: 48px;
}

.mandate-marker {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--brand-secondary);
    border-radius: 50%;
    z-index: 1;
}

.mandate-content h4 {
    color: var(--brand-primary);
    font-size: 18px;
    margin-bottom: 8px;
}

.mandate-content p {
    color: #4A5568;
    font-size: 15px;
    line-height: 1.6;
}

/* Split Layout */
.split-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.split-left {
    flex: 1.2;
}

.split-right {
    flex: 0.8;
}

.pillar {
    margin-bottom: 32px;
}

.pillar h4 {
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.pillar p {
    color: #4A5568;
    line-height: 1.6;
}

.blueprint-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(46, 63, 127, 0.1);
}

.blueprint-list {
    list-style: none;
    margin: 32px 0;
}

.blueprint-list li {
    margin-bottom: 24px;
}

.blueprint-list strong {
    display: block;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.blueprint-list span {
    font-size: 14px;
    color: #4A5568;
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .unified-nav-box {
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-section .metrics-section {
        margin: 60px -32px;
    }

    /* Tablet Grid Adjustments */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .bento-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-item.wide {
        grid-column: span 2;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .content-section {
        padding: 60px 20px;
    }

    .page-view-active {
        padding-top: 100px !important;
    }

    .hero-section {
        padding: 120px 20px 60px 20px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        flex: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        display: none;
    }

    .water-bubble-container {
        width: 300px;
        height: 300px;
    }

    .bubble-lens {
        width: 240px;
        height: 240px;
    }

    .sphere-logo {
        width: 140px;
    }


    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .section-title {
        font-size: 32px;
        word-wrap: break-word;
    }

    .subsection-title {
        font-size: 24px;
    }

    .unified-nav-box {
        width: calc(100% - 20px);
        margin: 0 20px;
        justify-content: space-between;
        padding: 8px 16px;
    }

    .carousel-track .service-card {
        flex: 0 0 100%;
        min-width: unset;
    }

    .carousel-controls {
        justify-content: center;
        margin-top: 16px;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .pill-nav {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        background: #ffffff;
        border-radius: 16px;
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease, visibility 0.15s ease;
        border: 1px solid rgba(46, 63, 127, 0.05);
    }

    .pill-nav.mobile-active {
        transform: translateY(10px);
        opacity: 1;
        visibility: visible;
        max-height: 90vh;
        overflow-y: auto;
        /* Allow internal menu scrolling if needed */
        overflow-x: hidden;
        /* Prevent side-to-side scrolling */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(46, 63, 127, 0.05);
    }

    .dropdown-menu,
    .submenu {
        position: static;
        width: 100%;
        min-width: unset;
        opacity: 0.25;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
        /* Keep hidden until we decide how to show them on mobile */
    }

    .dropdown-menu.show-dropdown {
        display: block !important;
    }

    .nav-item a {
        padding: 16px 0;
        width: 100%;
        justify-content: space-between;
    }

    .service-grid,
    .project-specs,
    .footer-grid,
    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .bento-item.large,
    .bento-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .content-section .metrics-section {
        margin: 60px -20px;
        padding: 60px 20px;
    }

    .split-layout {
        flex-direction: column;
        gap: 40px;
    }
}

/* ==========================================================================
   Utilities & Custom Components
   ========================================================================== */
.text-xs {
    font-size: 11px;
}

.text-sm {
    font-size: 13px;
}

.text-md {
    font-size: 14px;
}

.text-lg {
    font-size: 16px;
}

.text-20 {
    font-size: 20px;
}

.text-22 {
    font-size: 22px;
}

.text-h4 {
    font-size: 18px;
}

.text-h3 {
    font-size: 24px;
}

.text-brand-primary {
    color: var(--brand-primary);
}

.text-brand-secondary {
    color: var(--brand-secondary);
}

.text-gray {
    color: #4A5568;
}

.uppercase-tracking {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.italic {
    font-style: italic;
}

.leading-relaxed {
    line-height: 1.6;
}

.flex-center {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.full-width {
    width: 100%;
}

.ml-8 {
    margin-left: 8px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-8 {
    margin-bottom: 8px !important;
}

.mb-12 {
    margin-bottom: 12px !important;
}

.mb-16 {
    margin-bottom: 16px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-24 {
    margin-bottom: 24px !important;
}

.mb-32 {
    margin-bottom: 24px !important;
}

.mb-40 {
    margin-bottom: 32px !important;
}

.mb-48 {
    margin-bottom: 40px !important;
}

.mb-60 {
    margin-bottom: 48px !important;
}

.mt-8 {
    margin-top: 8px !important;
}

.mt-60 {
    margin-top: 48px !important;
}

.p-24 {
    padding: 24px !important;
}

.p-32 {
    padding: 32px !important;
}

.p-40 {
    padding: 40px !important;
}

.border-dashed {
    border-style: dashed !important;
}

/* Evolution Timeline */
.evolution-step {
    padding: 0;
    display: block;
}

.evolution-step h4 {
    font-size: 17px;
    color: var(--brand-primary);
}

/* Career & About Specifics */
#career-page .service-card:hover,
.testimonial-card:hover {
    background: #ffffff !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(46, 63, 127, 0.2);
}

#career-page .service-card:hover h4,
.testimonial-card:hover .testimonial-author {
    color: var(--brand-secondary) !important;
}

#career-page .service-card:hover p,
.testimonial-card:hover p {
    color: #4A5568 !important;
}

.feature-card {
    min-height: auto;
}

.testimonial-card {
    border-radius: 16px;
    border: 1px solid rgba(46, 63, 127, 0.1);
    background: #fff;
}

.testimonial-text {
    font-style: italic;
    font-size: 14px;
    margin-bottom: 16px;
}

.testimonial-author {
    display: block;
    font-size: 13px;
    color: var(--brand-primary);
    font-weight: 700;
}

.btn-sm {
    padding: 10px 20px !important;
    font-size: 13px !important;
}

.btn-white-outline {
    border-color: #fff !important;
    color: #fff !important;
}

.blueprint-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.blueprint-list li strong {
    color: var(--brand-primary);
    font-size: 14px;
}

.blueprint-list li span {
    font-size: 13px;
    color: #4A5568;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .metric-number {
        font-size: 48px;
    }

    .hero-description {
        font-size: 16px;
    }
}

/* Components */
.project-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(46, 63, 127, 0.02);
    border-radius: 16px;
}

.project-specs div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-specs strong {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--brand-secondary);
}

.project-specs span {
    font-size: 14px;
    color: var(--brand-primary);
    font-weight: 500;
}

/* ==========================================================================
   Stunning Metrics Section
   ========================================================================== */
.metrics-section {
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.metrics-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 151, 178, 0.15) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
    pointer-events: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.metric-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.metric-item:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 151, 178, 0.4);
    box-shadow: 0 10px 40px rgba(0, 151, 178, 0.2);
}

.metric-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 151, 178, 0.2) 0%, rgba(46, 63, 127, 0.2) 100%);
    border-radius: 16px;
    color: var(--brand-secondary);
    transition: all 0.3s ease;
}

.metric-item:hover .metric-icon {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    color: #fff;
}

.metric-icon svg {
    width: 32px;
    height: 32px;
}

.metric-number {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.metric-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Infinite Scroll Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    padding: 20px 0;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Partner Logo Hover Effect */
.partner-logo span {
    opacity: 0 !important;
    display: block !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    pointer-events: none;
    /* Prevents flickering when hovering text */
}

.partner-logo:hover span {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Ensure images have a consistent look */
.partner-logo img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .content-section .metrics-section,
    .metrics-section {
        margin: 40px -20px;
        padding: 40px 0;
    }

    .metrics-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    .metric-item {
        padding: 16px 4px;
        border-radius: 12px;
    }

    .metric-number {
        font-size: 28px;
        margin-bottom: 4px;
    }

    .metric-label {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .metric-icon {
        width: 32px;
        height: 32px;
        margin: 0 auto 8px auto;
        border-radius: 8px;
    }

    .metric-icon svg {
        width: 16px;
        height: 16px;
    }
}