/* EMBS ProteinX AI - Interactive Hero */

.proteinx-hero {
    position: relative;
    width: 100%;
    min-height: 440px;
    aspect-ratio: 1920 / 650;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 65px 7%;
    margin: 0 auto 34px;
    background: #061426 url("../images/Animated%20ProteinX%20AI%20Lab%20Interface.gif") center center / cover no-repeat;
    border: 1px solid rgba(65, 164, 224, 0.18);
    border-radius: 5px;
}

#proteinx-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: none;
}

.proteinx-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 0;
}

.proteinx-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(4, 17, 32, 0.97) 0%,
        rgba(4, 17, 32, 0.86) 38%,
        rgba(4, 17, 32, 0.12) 100%
    );
}

.proteinx-hero-content {
    position: relative;
    z-index: 2;
    width: 58%;
    max-width: 650px;
    color: #ffffff;
}

.proteinx-hero-eyebrow {
    display: block;
    margin-bottom: 17px;
    color: #55c7f2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.proteinx-hero-content h1 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.proteinx-hero-content h1 span {
    color: #48bdf0;
}

.proteinx-hero-tagline {
    margin: 0 0 15px;
    color: #d5eafa;
    font-size: clamp(17px, 2vw, 23px);
    font-weight: 500;
}

.proteinx-hero-description {
    max-width: 520px;
    margin: 0 0 27px;
    color: #a9bfd2;
    font-size: 15px;
    line-height: 1.8;
}

.proteinx-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 13px 21px;
    color: #ffffff !important;
    background: linear-gradient(100deg, #087fbd, #13a8d5);
    border: 1px solid rgba(125, 218, 255, 0.4);
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.proteinx-hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 157, 224, 0.3);
}

.proteinx-hero-caption {
    position: absolute;
    z-index: 2;
    right: 25px;
    bottom: 19px;
    color: rgba(153, 209, 238, 0.65);
    font-size: 9px;
    letter-spacing: 2px;
}

@media (max-width: 700px) {
    .proteinx-hero {
        aspect-ratio: auto;
        min-height: 470px;
        padding: 55px 25px;
    }

    .proteinx-hero-content {
        width: 100%;
        max-width: 100%;
    }

    .proteinx-hero-overlay {
        background: rgba(4, 17, 32, 0.72);
    }

    .proteinx-hero-caption {
        right: 15px;
        bottom: 12px;
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .proteinx-hero-button {
        transition: none;
    }
}



/* Centered institutional credit panel */
.proteinx-hero-credit {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    width: calc(100% - 50px);
    max-width: 850px;
    box-sizing: border-box;
    margin: 0;
    padding: 11px 20px;
    color: #ffffff;
    background: rgba(3, 15, 30, 0.94);
    border: 1px solid rgba(72, 189, 240, 0.75);
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.25px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.proteinx-hero-caption {
    bottom: 68px;
}

@media (max-width: 700px) {
    .proteinx-hero-credit {
        bottom: 12px;
        width: calc(100% - 30px);
        padding: 9px 12px;
        font-size: 10px;
    }

    .proteinx-hero-caption {
        bottom: 75px;
    }
}
