/* B2B Split Hero */
.b2b-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 7rem 4rem 5rem;
}

.b2b-hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.b2b-hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.b2b-hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.consulting-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -1px;
}

.consulting-heading em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent), #00d1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.consulting-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 520px;
    line-height: 1.8;
}

.b2b-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.b2b-pill {
    background: rgba(191, 90, 242, 0.08);
    border: 1px solid rgba(191, 90, 242, 0.25);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.b2b-hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.b2b-hero-cta .primary-btn {
    text-decoration: none;
    display: inline-block;
}

.b2b-hero-cta .ghost-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.b2b-hero-cta .ghost-btn:hover {
    border-color: var(--accent);
    color: #fff;
}

/* Animated Network Graphic */
.b2b-hero-graphic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-network-svg {
    width: 100%;
    max-width: 620px;
    height: auto;
    margin-top: -3rem;
}

.net-node {
    animation: nodePulse 3s ease-in-out infinite;
}

.net-node:nth-child(2) {
    animation-delay: 0.5s;
}

.net-node:nth-child(3) {
    animation-delay: 1s;
}

.net-node:nth-child(4) {
    animation-delay: 1.5s;
}

.net-node:nth-child(5) {
    animation-delay: 2s;
}

.net-node:nth-child(6) {
    animation-delay: 2.5s;
}

@keyframes nodePulse {
    0%,
    100% {
        opacity: 0.5;
        r: 6;
    }

    50% {
        opacity: 1;
        r: 9;
    }
}

.net-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease forwards;
}

.net-line:nth-child(1) {
    animation-delay: 0.1s;
}

.net-line:nth-child(2) {
    animation-delay: 0.3s;
}

.net-line:nth-child(3) {
    animation-delay: 0.5s;
}

.net-line:nth-child(4) {
    animation-delay: 0.7s;
}

.net-line:nth-child(5) {
    animation-delay: 0.9s;
}

.net-line:nth-child(6) {
    animation-delay: 1.1s;
}

.net-line:nth-child(7) {
    animation-delay: 1.3s;
}

.net-line:nth-child(8) {
    animation-delay: 1.5s;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.net-ping {
    animation: ping 2.5s ease-in-out infinite;
}

.net-ping:nth-child(2) {
    animation-delay: 0.8s;
}

.net-ping:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes ping {
    0% {
        r: 6;
        opacity: 0.8;
    }

    70% {
        r: 22;
        opacity: 0;
    }

    100% {
        r: 6;
        opacity: 0;
    }
}

.shield-rotate {
    animation: slowSpin 20s linear infinite;
    transform-origin: 260px 200px;
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.data-dash {
    stroke-dasharray: 8 6;
    animation: dashMove 1.5s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -28;
    }
}

@media (max-width: 900px) {
    .b2b-hero {
        grid-template-columns: 1fr;
        padding: 6rem 2rem 3rem;
    }

    .b2b-hero-graphic {
        display: none;
    }
}

.consulting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 6rem auto;
    padding: 0 2rem;
}

.consulting-card {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.consulting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    transition: opacity 0.4s ease;
}

.consulting-card.red::before {
    background: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.25), transparent);
}

.consulting-card.blue::before {
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.25), transparent);
}

.consulting-card.purple::before {
    background: linear-gradient(90deg, transparent, rgba(191, 90, 242, 0.25), transparent);
}

.consulting-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(191, 90, 242, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.consulting-card:hover {
    transform: translateY(-6px);
}

.consulting-card.red {
    border-color: rgba(255, 51, 51, 0.1);
}

.consulting-card.red:hover {
    border-color: rgba(255, 51, 51, 0.25);
    box-shadow: 0 20px 40px rgba(255, 51, 51, 0.04);
}

.consulting-card.red .consulting-icon {
    color: #ff3333;
}

.consulting-card.red::after {
    background: radial-gradient(circle at top right, rgba(255, 51, 51, 0.15), transparent 70%);
}

.consulting-card.red:hover::after {
    opacity: 1;
}

.consulting-card.blue {
    border-color: rgba(0, 209, 255, 0.1);
}

.consulting-card.blue:hover {
    border-color: rgba(0, 209, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 209, 255, 0.04);
}

.consulting-card.blue .consulting-icon {
    color: #00d1ff;
}

.consulting-card.blue::after {
    background: radial-gradient(circle at top right, rgba(0, 209, 255, 0.15), transparent 70%);
}

.consulting-card.blue:hover::after {
    opacity: 1;
}

.consulting-card.purple {
    border-color: rgba(191, 90, 242, 0.1);
}

.consulting-card.purple:hover {
    border-color: rgba(191, 90, 242, 0.25);
    box-shadow: 0 20px 40px rgba(191, 90, 242, 0.04);
}

.consulting-card.purple .consulting-icon {
    color: #bf5af2;
}

.consulting-card.purple::after {
    background: radial-gradient(circle at top right, rgba(191, 90, 242, 0.15), transparent 70%);
}

.consulting-card.purple:hover::after {
    opacity: 1;
}

.consulting-icon {
    margin-bottom: 1.5rem;
}

.consulting-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.consulting-card-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.consulting-link {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: auto;
}

.consulting-card.red .consulting-link:hover {
    color: #000;
    background: #ff3333;
    border-color: #ff3333;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

.consulting-card.blue .consulting-link:hover {
    color: #000;
    background: #00d1ff;
    border-color: #00d1ff;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
}

.consulting-card.purple .consulting-link:hover {
    color: #000;
    background: #bf5af2;
    border-color: #bf5af2;
    box-shadow: 0 0 20px rgba(191, 90, 242, 0.3);
}

.consulting-link span {
    transition: transform 0.3s ease;
}

.consulting-link:hover span {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .tabs-nav {
        justify-content: center !important;
        flex-wrap: wrap !important;
        padding: 0 1rem !important;
    }

    .tab-btn {
        flex: 1 1 auto !important;
        min-width: max-content !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .consulting-grid {
        grid-template-columns: 1fr;
    }
}

/* Coming Soon Modal (matches about.html style) */
.cert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cert-modal {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(191, 90, 242, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(191, 90, 242, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cert-modal-overlay.active .cert-modal {
    transform: translateY(0);
}

.cert-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.cert-modal-close:hover {
    color: #fff;
}

/* Service Card Marquee */
.service-marquee {
    background: #ffcc00;
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    letter-spacing: 1px;
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 20s linear infinite;
    flex-shrink: 0;
    min-width: 100%;
}

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

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

.service-marquee.green {
    background: #00ff00;
    color: #000;
}
