/* X-sē specific styles */
h1, h2, h3, p .header-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700; /* bold for headers */
}

body {
    background-color: black;
}
.hero-section {
    padding-top: 70px;
    width: 100%;
    height: 100vh; /* Adjust to your desired hero height */
    overflow: hidden; /* Recommended */
    position: relative; /* Needed if you have positioned overlay content */

    /* --- Gradient Background --- */

    /* Fallback solid color (using the darker edge color) */
    background-color: #ffffff;
}
#hero {
    position: relative;
    width: 100hw;
    height: calc(100vh - 70px);
    overflow: hidden;
    z-index: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.black-gradient {
    background: linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    z-index: 20;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 80px;
    pointer-events: none;
    display: none;
}

.blob {
    position: absolute;
    display: flex;
    flex-direction: column;
    z-index: 1;
    width: 30%;
    left: 20px;
}

.hero-graphic {
    width: auto;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    pointer-events: none;
}

.hero-graphic img {
    height: 150px;
    width: auto;
}

.viewer-container {
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: flex-end;
    position:absolute;
    z-index: 0;
}

.viewer-adjust {
    width: 60%;
    height: auto;
    position:relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.viewer-adjust::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,.5) 3%, rgba(255,255,255,0) 8%),
        linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,.5) 3%, rgba(255,255,255,0) 8%),
        linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,.5) 3%, rgba(255,255,255,0) 8%),
        linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,.5) 3%, rgba(255,255,255,0) 8%);
    background-blend-mode: lighten;
    pointer-events: none;
    z-index: 2;
}

spline-viewer {
    width: 100%;
    height: 100%;
}

  
/* New overlay container */
.overlay-contain {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-overlay {
    position: relative; /* NO absolute positioning here */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}


/* Style your text */
.hero-message {
    /* text-shadow: 0 2px 4px rgba(0,0,0,0.5); */
    display:flex;
    flex-direction:column;
    gap:5px;
    pointer-events: none;
}

.hero-message h1 {
    font-size:55px;
    font-weight:600;
    color:rgb(59, 59, 59);
    text-align: center;
    letter-spacing: -0.8px;
    pointer-events: none;
}

.sub-title {
    font-size:40px;
    font-weight:600;
    color: #532288;
    text-align: center;
    pointer-events: none;
}

.hero-description {
    font-size:27px;
    font-weight:300;
    color:rgb(59, 59, 59);
    margin-bottom:15px;
    text-align: center;
    letter-spacing: -0.7px;
    pointer-events: none;
}

.hero-sep {
    border-right:1px solid rgba(255, 255, 255, 0.425);
    height: 360px;
    width:1px;
    display: none;
}

.cta-container {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.cta-button {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-primary {
    background-color: #306fdb;
    color: #ffffff;
    border: 2px solid #306fdb;
}

.cta-primary:hover {
    background-color: #447fe4;
    border: 2px solid #447fe4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 218, 255, 0.2);
}

.cta-secondary {
    background-color: rgba(255, 255, 255, 0.645);
    color: #306fdb;
    border: 2px solid #306fdb;
}

.cta-secondary:hover {
    background-color: #306fdb;
    color: #ffffff;
    transform: translateY(-2px);
}

/* CONTENT START */
.xse-intro {
    display: block;
}
.intro-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 120px;
    margin-bottom: 60px;
    padding-left: 8%;
    padding-right: 8%;
    width: 100%;
}

.intro-copy h1 {
    color: white;
    font-size:38px;
    font-weight:600;
    line-height: 46px;
    text-align: center;
    letter-spacing: -0.8px;
}

.intro-copy p {
    font-size:20px;
    font-weight:300;
    color:rgb(255, 255, 255);
    margin-bottom:15px;
    text-align: center;
    letter-spacing: -0.2px;
    line-height: 28px;
}

/* CONTENT A */
.secton-content-a {
    background-image: url('/assets/x-se-bug-leftSide.png');
    background-repeat: no-repeat;
    background-position: left;
    background-size: 800px auto;
    position: relative;
    padding-top: 60px;
    padding-bottom: 120px;
}

.back-cover {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* CONTENT HOLDER */
.section-contain {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.xse-section {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px; /* Optional spacing between columns */
    align-content: center;
}

.xse-section-reverse {
    display: flex;
    flex-direction: row;
    gap: 20px; /* Optional spacing between columns */
    align-content: center;
    
}

.xse-section-text {
    /* text-shadow: 0 2px 4px rgba(0,0,0,0.5); */
    display:flex;
    flex-direction:column;
    justify-content: center;
    gap:5px;
}

.xse-section-text h2 {
    font-size:27px;
    font-weight:100;
    color:rgb(255, 255, 255);
    margin-bottom:10px;
    text-align: center;
    letter-spacing: -0.7px;
}

.xse-section-text p {
    font-size:16px;
    font-weight:300;
    color:rgb(255, 255, 255);
    margin-bottom:15px;
    text-align: center;
    line-height: 23px;
    padding-left: 40px;
    padding-right: 40px;
}

.xse-section-image {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 50px;
}

.xse-section-image img {
    max-width: 500px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 20px 80px rgba(15, 216, 238, 0.478);
}

/* FEATURES */
.xse-features {
    background-color: rgb(225, 225, 225);
    overflow: hidden;
    background-image: url('/assets/x-se-bug-rightSide.png');
    background-repeat: no-repeat;
    background-position: right;
    background-size: 760px auto;
    position: relative;
    padding-top: 80px;
    padding-bottom: 120px;
}

.back-cover-light {
    position: absolute;
    inset: 0;
    background-color: rgba(225, 225, 225, 0.898);
    z-index: 1;
    display: block;
}

.features-intro-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    margin-bottom: 100px;
    padding-left: 8%;
    padding-right: 8%;
    width: 100%;
    position: relative;
    z-index: 2;
}

.features-intro-copy h1 {
    color:rgb(49, 49, 49);
    font-size:38px;
    font-weight:600;
    line-height: 46px;
    text-align: center;
    letter-spacing: -0.8px;
}

.features-intro-copy p {
    font-size:20px;
    font-weight:300;
    color:rgb(49, 49, 49);
    margin-bottom:15px;
    text-align: center;
    letter-spacing: -0.2px;
    line-height: 28px;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

@keyframes animate {
    0% {
        opacity: 1;
        border-radius: 0;
        transform: transform(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        border-radius: 50%;
        transform: transform(-1000px) rotate(720deg);
    }
}

.xse-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
    opacity: 1;
}

.xse-feature-card {
    background-color: white;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border:2px solid rgb(182, 222, 232);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.5s ease;
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.xse-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.37);
}

/* INNER WRAPPER */
.xse-feature-wrap {
    position: relative;
    z-index: 3;
    width: 120px;
    aspect-ratio: 1;
    border-radius: 100%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PSEUDO ELEMENT FOR GRADIENT ANIMATION */
.xse-feature-wrap::after {
    position: absolute;
    z-index: 2;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background: linear-gradient(
        #4cd964,
        #5ac85a,
        #007aff,
        #7dc8e8,
        #5856d6,
        #ff2d55
    );
    transition: opacity 1s;
    animation: rotate 4s linear infinite;
    animation-play-state: paused;
    filter: saturate(2) blur(10px);
    opacity: 0;
}

/* ROTATION KEYFRAME */
@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

/* TRIGGER THE ANIMATIONS WHEN THE MAIN CARD IS HOVERED */
.xse-feature-card:hover .xse-feature-wrap::after {
    opacity: 0.5;
    animation-play-state: running;
}

.xse-feature-icon {
    width: 106px;
    height: 106px;
    background-color: #c3e7ff;
    border:0.5px solid rgb(185, 207, 226);
    border-radius: 100%;
    overflow:hidden;
    aspect-ratio:1;
    position: relative;
    z-index: 3;
}

.xse-feature-icon img {
    color: black;
}

.xse-feature-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    color: #000000;
    margin-bottom: 15px;
    text-align: center;
}

.xse-feature-description {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.2;
    color: #323232;
    text-align: center;
    margin-bottom: 20px;
}

.learn-more-btn {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background-color: #306fdb;
    color: #ffffff;
    border: 2px solid #306fdb;
}

.learn-more-btn:hover {
    background-color: #447fe4;
    border: 2px solid #447fe4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 218, 255, 0.2);
}

@media (min-width: 2000px) {
    .blob {
        margin-left: 200px;
    }

    .hero-message {
        gap:20px;
    }

    .hero-message h1 {
        line-height: 60px;
    }

    spline-viewer {
        width: 100%;
        height: 120%;
    }

    .section-contain {
        gap: 50px;
        max-width: 1800px;
    }

    .xse-section-image img {
        width: 100%;
        height: auto;
    }

    .xse-section {
        padding-left: 4%;
        padding-right: 4%;
        gap: 20px;
    }
    
    .xse-section-text h2 {
        font-size: 29px;
        font-weight: 600;
    }
    
    .xse-section-text p {
        font-size: 18px;
    }
}

@media (min-width: 1500px) and (max-width: 1999px) {
    .blob {
        margin-left: 200px;
    }

    .black-gradient {
        height: 80px;
    }

    .hero-graphic {
        width: auto;
        height: 120px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 50px;
    }
    
    .hero-graphic img {
        height: 120px;
        width: auto;
    }

    .hero-message {
        padding-left: 30px;
        padding-right: 30px;
        gap:5px;
    }

    .hero-message h1 {
        font-size:38px;
        font-weight:600;
        line-height: 46px;
    }
    
    .hero-description {
        font-size:20px;
        line-height: 28px;
    }

    spline-viewer {
        width: 100%;
        height: 100%;
    }
    
    .xse-section-text h2 {
        font-size: 28px;
    }
    
    .xse-section-text p {
        font-size: 16px;
    }
}

@media (max-width: 1499px) {
    .blob {
        width: 40%;
        left: 0px;
        margin-left: 80px;
    }

    .hero-graphic {
        width: auto;
        height: 120px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .hero-graphic img {
        height: 120px;
        width: auto;
    }

    .hero-message {
        padding-left: 0px;
        padding-right: 0px;
    }

    .hero-message h1 {
        font-size:38px;
        font-weight:600;
        line-height: 46px;
    }
    
    .hero-description {
        font-size:20px;
        line-height: 28px;
    }

    spline-viewer {
        width: 100%;
        height: 100%;
    }

    .xse-section {
        padding-left: 4%;
        padding-right: 4%;
        gap: 50px;
    }
    
    .xse-section-text h2 {
        font-size: 28px;
    }
    
    .xse-section-text p {
        font-size: 15px;
    }

    .xse-features-grid {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .blob {
        width: 40%;
        left: 0px;
        margin-left: 50px;
    }

    .hero-graphic {
        height: 100px;
        margin-bottom: 30px;
    }
    
    .hero-graphic img {
        height: 100px;
    }

    .hero-message {
        padding-left: 0px;
        padding-right: 0px;
    }

    .hero-message h1 {
        font-size:38px;
        font-weight:600;
        line-height: 46px;
    }
    
    .hero-description {
        font-size:20px;
        line-height: 28px;
    }

    .viewer-adjust {
        width: 50%;
        height: auto;
        position:relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    spline-viewer {
        width: 100%;
        height: 100%;
        margin-left: 0px;
    }

    .xse-hero-content, .xse-section {
        flex-direction: column;
    }
    
    .xse-section-reverse {
        flex-direction: column;
    }
    
    .xse-hero-text, .xse-section-text, .xse-hero-image, .xse-section-image {
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .xse-features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 20px;
        padding-right: 20px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 64px;
    }
    #hero {
        position: relative;
        height: calc(100vh - 64px);
    }

    .xse-features-grid {
        grid-template-columns: 1fr;
        padding-left: 10px;
        padding-right: 10px;
    }

    .blob {
        position: absolute;
        display: flex;
        flex-direction: column;
        z-index: 1;
        width: 50%;
        left: 0px;
        top: 20%;
        margin-left: 0px;
    }

    .hero-graphic {
        width: auto;
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .hero-graphic img {
        height: 80px;
        width: auto;
    }

    .hero-message {
        padding-left: 30px;
        padding-right: 30px;
    }

    .hero-message h1 {
        font-size:30px;
        font-weight:600;
        line-height: 38px;
        padding-bottom: 10px;
    }
    
    .hero-description {
        font-size:18px;
        line-height: 24px;
    }

    .cta-container {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .cta-button {
        padding: 14px 14px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
        text-align: center;
    }

    spline-viewer {
        width: 100%;
        height: 90%;
    }

    .intro-copy {
        margin-top: 120px;
        margin-bottom: 40px;
    }

    .back-cover {
        background-color: rgba(0, 0, 0, 1);
    }

    .section-contain {
        gap: 50px;
    }

    .xse-section-image img {
        width: 280px;
        height: auto;
    }

    .xse-section {
        padding-left: 4%;
        padding-right: 4%;
        gap: 20px;
        flex-direction: column;
    }
    
    .xse-section-text h2 {
        font-size: 22px;
        font-weight: 600;
    }
    
    .xse-section-text p {
        font-size: 15px;
    }

    .xse-features-grid {
        display: grid;
        grid-template-columns: repeat(1fr);
        gap: 20px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
        position: relative;
        z-index: 10;
        opacity: 1;
    }
}

@media (max-width: 390px) {
    .viewer-container {
        display: none;
    }

    .blob {
        position: absolute;
        display: flex;
        flex-direction: column;
        z-index: 1;
        width: 100%;
        left: 0px;
        top: 0px;
        margin-left: 0px;
    }

    .hero-graphic {
        height: 120px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .hero-graphic img {
        height: 100px;
    }

    .hero-message {
        padding-left: 30px;
        padding-right: 30px;
    }

    .hero-message h1 {
        font-size:35px;
        font-weight:600;
        line-height: 42px;
    }

    .hero-description {
        font-size:24px;
        line-height: 28px;
    }

    .cta-container {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .cta-button {
        padding: 14px 14px;
        font-size: 18px;
        font-weight: 500;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .viewer-container {
        display: none;
    }

    .blob {
        position: absolute;
        display: flex;
        flex-direction: column;
        z-index: 1;
        width: 100%;
        left: 0px;
        top: 0px;
        margin-left: 0px;
    }

    .hero-graphic {
        height: 80px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .hero-graphic img {
        height: 80px;
    }

    .hero-message {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-message h1 {
        font-size:28px;
        font-weight:600;
        line-height: 34px;
    }

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

    .cta-container {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .cta-button {
        padding: 14px 14px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
        text-align: center;
    }
}

@media (max-width: 320px) {
    .viewer-container {
        display: none;
    }

    .blob {
        position: absolute;
        display: flex;
        flex-direction: column;
        z-index: 1;
        width: 100%;
        left: 0px;
        top: 0px;
        margin-left: 0px;
    }

    .hero-graphic {
        height: 80px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .hero-graphic img {
        height: 80px;
    }

    .hero-message {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-message h1 {
        font-size:28px;
        font-weight:600;
        line-height: 34px;
    }
    
    .hero-description {
        font-size:16px;
        line-height: 20px;
    }

    .cta-container {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    
    .cta-button {
        padding: 14px 14px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
        text-align: center;
    }
}