/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #05070a;
    color: #ffffff;
    overflow-x: hidden;
}

/* --- Header Styles --- */
header {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 180px;
    align-items: center;
    gap: 24px;
    min-height: 120px;
    padding: 18px clamp(24px, 5vw, 72px);
    background-color: #05070a;
    border-bottom: 1px solid rgba(185, 224, 32, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

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

/* Logo Image (uncropped) */
.header-logo {
    width: clamp(170px, 15vw, 230px);
    height: auto;
    object-fit: contain;
    display: block;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: clamp(18px, 2vw, 34px);
}

nav ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    color: #b8bec8;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: #b9e020;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

nav ul li.active a,
nav ul li a:hover {
    color: #b9e020;
}

nav ul li.active a::after,
nav ul li a:hover::after {
    transform: scaleX(1);
}

nav ul li a:focus-visible,
.btn-outline-black:focus-visible,
.menu-circle:focus-visible {
    outline: 2px solid #b9e020;
    outline-offset: 4px;
}

nav ul li a:active {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-outline-black {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #b9e020;
    color: #b9e020;
    min-height: 42px;
    padding: 0 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.btn-outline-black:hover {
    background-color: #b9e020;
    color: #05070a;
    border-color: #b9e020;
}

.menu-circle {
    background: #0066ff;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #b9e020;
    letter-spacing: -0.5px;
}

.sub-brand {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sub-brand .blue-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #0066ff;
}

.sub-brand .arrow {
    color: #0066ff;
    font-size: 20px;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 85vh;
    padding: 60px 8%;
    position: relative;
}

.hero-content {
    max-width: 50%;
    z-index: 2;
}

.tagline {
    color: #d8ff00;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 54px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
}

.highlight-green { color: #b7e608; }
.highlight-blue { color: #1e74f5; }

.hero-content p {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.6;
    max-width: 450px;
    font-weight: 400;
}

/* --- Hero Image Container --- */
.hero-graphic-wrapper {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* Optional: adds a subtle glow matching the image neon style */
    filter: drop-shadow(0 0 20px rgba(30, 116, 245, 0.1));
}

/* Responsive */
@media (max-width: 1024px) {
    header {
        grid-template-columns: 1fr auto;
        min-height: 88px;
        padding: 12px 20px;
    }

    .header-logo {
        width: 160px;
    }

    nav {
        display: block;
        grid-column: 1 / -1;
        order: 3;
    }

    nav ul {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: rgba(5, 7, 10, 0.98);
        border: 1px solid rgba(185, 224, 32, 0.18);
        border-radius: 8px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li a {
        width: 100%;
        min-height: 46px;
        padding: 0 10px;
    }

    nav ul li a::after {
        left: 10px;
        right: auto;
        width: 42px;
    }

    .btn-outline-black {
        min-height: 40px;
        padding: 0 18px;
    }

    .menu-circle {
        display: flex;
    }

    .hero { 
        flex-direction: column; 
        text-align: center; 
        padding: 40px 20px; 
    }
    .hero-content { 
        max-width: 100%; 
        margin-bottom: 40px; 
    }
    .hero-content p { 
        margin: 0 auto; 
    }
    .hero-graphic-wrapper { 
        width: 100%; 
        justify-content: center; 
    }
}

@media (max-width: 640px) {
    header {
        min-height: 76px;
        padding: 10px 16px;
    }

    .header-logo {
        width: 132px;
    }

    .btn-outline-black {
        display: none;
    }

    nav ul {
        left: 16px;
        right: 16px;
    }
}


/* ==========================================
   cards section

   ========================================== */

/* Filter Navigation */
.filter-nav {
    display: flex;
    gap: 15px;
    width: min(1250px, calc(100% - 40px));
    margin: 0 auto 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid #2a3441;
    color: #a0aab8;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #9acd00;
    color: #ffffff;
}

.filter-btn.active {
    background-color: #9acd00; /* Lime Green */
    border-color: #9acd00;
    color: #000000;
}

/* Cards Container */
.case-studies-wrapper {
    max-width: 1250px;
    width: min(1250px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Individual Card Layout */
.case-card {
    display: flex;
    background-color: #0b101a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #192130;
    min-height: 340px; /* Fixed height as per image */
}

/* 1. Image Column */
.card-image-col {
    width: 32%;
    min-width: 320px;
    position: relative;
    overflow: hidden;
    background-color: #05080e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2. Details Column */
.card-details-col {
    width: 42%;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
}

.sub-label {
    color: #9acd00;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-desc {
    color: #c8d0dc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.services-section {
    margin-top: auto;
}

.services-title {
    display: block;
    color: #9acd00;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 15px;
}

.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.s-icon {
    width: 22px;
    height: 22px;
    color: #9acd00;
}

.service-item span {
    color: #c8d0dc;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

/* 3. Results Column */
.card-results-col {
    width: 26%;
    padding: 35px 25px;
    border-left: 1px solid #192130;
    display: flex;
    flex-direction: column;
}

.results-title {
    color: #9acd00;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 20px;
    display: block;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.r-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.r-value {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.r-desc {
    display: block;
    color: #c8d0dc;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.view-study-btn {
    margin-top: auto;
    background: transparent;
    border: 1px solid #1a5bbf;
    color: #1e74f5;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.view-study-btn:hover {
    background-color: #1a5bbf;
    color: #ffffff;
}

/* Footer CTA */
.case-footer {
    width: 100vw;
    margin: 54px calc(50% - 50vw) 0;
    background: #02040a;
}

.case-footer-cta {
    position: relative;
    min-height: 132px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px clamp(32px, 14vw, 182px);
    background:
        radial-gradient(circle at 84% 50%, rgba(0, 86, 214, 0.32), transparent 34%),
        linear-gradient(90deg, #071229 0%, #081b48 50%, #071229 100%);
    border-top: 1px solid rgba(185, 224, 32, 0.12);
    border-bottom: 1px solid rgba(0, 102, 255, 0.16);
}

.case-footer-cta::before,
.case-footer-cta::after {
    content: '';
    position: absolute;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.95;
}

.case-footer-cta::before {
    left: -18px;
    top: -18px;
    width: 180px;
    height: 120px;
    background:
        linear-gradient(150deg, transparent 4%, #9acd00 5% 14%, transparent 15% 20%, #7fae00 21% 34%, transparent 35%),
        linear-gradient(164deg, transparent 18%, rgba(185, 224, 32, 0.88) 19% 26%, transparent 27%),
        linear-gradient(138deg, transparent 36%, rgba(185, 224, 32, 0.72) 37% 44%, transparent 45%);
    transform: skewX(-16deg);
}

.case-footer-cta::after {
    right: -22px;
    top: -4px;
    width: 200px;
    height: 128px;
    background:
        linear-gradient(32deg, transparent 18%, rgba(0, 82, 210, 0.88) 19% 28%, transparent 29%),
        linear-gradient(18deg, transparent 28%, rgba(0, 102, 255, 0.84) 29% 42%, transparent 43%),
        linear-gradient(52deg, transparent 42%, rgba(0, 69, 177, 0.9) 43% 52%, transparent 53%);
    transform: skewX(-14deg);
}

.case-footer-copy {
    position: relative;
    z-index: 1;
}

.case-footer-copy h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 900;
    line-height: 1.1;
}

.case-footer-copy p {
    margin: 0;
    color: #d5dbea;
    font-size: clamp(15px, 1.45vw, 20px);
    font-weight: 600;
}

.case-footer-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-width: 308px;
    min-height: 62px;
    padding: 0 34px;
    background: linear-gradient(180deg, #b8e600 0%, #93c900 100%);
    border: 1px solid rgba(211, 255, 40, 0.55);
    border-radius: 6px;
    box-shadow: 0 0 18px rgba(185, 224, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #06100a;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.case-footer-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(185, 224, 32, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.case-footer-btn span {
    font-size: 26px;
    line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .case-card {
        flex-direction: column;
        min-height: auto;
    }
    .card-image-col {
        width: 100%;
        min-width: unset;
        height: 250px;
    }
    .card-details-col {
        width: 100%;
        padding: 25px;
    }
    .card-results-col {
        width: 100%;
        border-left: none;
        border-top: 1px solid #192130;
        padding: 25px;
    }

    .case-footer-cta {
        padding: 28px 32px;
    }
}

@media (max-width: 760px) {
    .case-footer-cta {
        flex-direction: column;
        align-items: flex-start;
        min-height: 190px;
        padding: 32px 24px;
    }

    .case-footer-btn {
        width: 100%;
        min-width: 0;
    }
}
