:root {
    --glow-hue: 0deg;
    --shadow-hue: 0deg;
    --spring-easing: linear(0, 0.002, 0.01 0.9%, 0.038 1.8%, 0.156, 0.312 5.8%, 0.789 11.1%, 1.015 14.2%,
            1.096, 1.157, 1.199, 1.224 20.3%, 1.231, 1.231, 1.226, 1.214 24.6%,
            1.176 26.9%, 1.057 32.6%, 1.007 35.5%, 0.984, 0.968, 0.956, 0.949 42%,
            0.946 44.1%, 0.95 46.5%, 0.998 57.2%, 1.007, 1.011 63.3%, 1.012 68.3%,
            0.998 84%, 1);
    --spring-duration: 1.33s;
}

.hero {
    /* height: 100vh; */
    width: 100vw;
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(204, 11, 13, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(204, 11, 13, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 50px;
    }
}

.hero-tech-line {
    position: absolute;
    height: 1px;
    background-color: rgba(204, 11, 13, 0.3);
    width: 100%;
    left: 0;
    animation: scan-line 3s linear infinite;
}

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

    100% {
        top: 100%;
    }
}

/* Nouveau conteneur pour les cercles */
.hero-tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 0;
    overflow: hidden;
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    text-align: left;
    z-index: 10;
}

.hero-title-container {
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}


.hero-line {
    display: block;
    margin-bottom: 0.1em;
    overflow: hidden;
}

/* 3 lignes de texte du H1 */
.hero-line-1 {
    margin-left: 0;
}

.hero-line-2 {
    margin-left: 4rem;
}

.hero-line-3 {
    margin-left: 8rem;
}

.hero-line-content {
    display: block;
    transform: translateY(102%);
}

.hero-red-text {
    color: #CC0B0D;
}

.hero-subtitle-1 span {
    color: var(--accent);
    font-weight: 700;
}

.white-color {
    color: var(--text) !important;
    white-space: nowrap;
}


.hero-tech-circle {
    position: absolute;
    border: 2px solid #CC0B0D;
    border-radius: 50%;
    opacity: 0.15;
}

.hero-tech-circle-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.hero-tech-circle-2 {
    width: 600px;
    height: 600px;
    bottom: -300px;
    left: -300px;
}

.hero-content {
    width: 90vw;
    padding: 7vw 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.hero-text-content {
    width: 90vw;
    height: auto;
    padding-bottom: 2rem;
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    order: 2;
}

.hero-subtitle-1 {
    font-size: 8vw !important;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
}

/* .hero-subtitle-1 span {
    color: var(--text);
} */

.hero-subtitle-2 {
    margin-bottom: 3rem;
    font-weight: 500;
    font-size: 3vw;
    text-align: center;
    text-transform: uppercase;
}

.hero-subtitle-2 span {
    color: var(--text);
}

.hero p {
    margin-bottom: 4rem;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
}

/* Typing effect CSS */
.typing-text {
    visibility: hidden;
    overflow: hidden;
    border-right: .15em solid #CC0B0D;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .05em;
    white-space: nowrap;
    animation:
        typing 3.5s steps(40, end) forwards,
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #CC0B0D;
    }
}

/* Cube Container */


.cube-animation {
    position: relative;
    height: 80vw;
    width: 80vw;
    margin: 4rem 0.5rem;
    order: 1;
}


.tech-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.2;
}


/* 
.service-card {
    transition: all 0.3s ease;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(204, 11, 13, 0.3);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(204, 11, 13, 0.3);
} */

.hero-tech-border {
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 15px rgba(204, 11, 13, 0.5);
    border-radius: 0.25rem;
    overflow: hidden;
}

.hero-tech-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: borderFlow 3s infinite linear;
}

@keyframes borderFlow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.cube-animation iframe {
    border: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cube-animation .border-accent {
    position: absolute;
    width: 6rem;
    height: 6rem;
    opacity: 0.6;
}

.cube-animation .bottom-right {
    bottom: -1.25rem;
    right: -1.25rem;
    border-right-width: 2px;
    border-bottom-width: 2px;
    border-top-width: 0;
    border-left-width: 0;
    border-color: var(--accent);
    border-style: solid;
}

.cube-animation .top-left {
    top: -1.25rem;
    left: -1.25rem;
    border-left-width: 2px;
    border-top-width: 2px;
    border-right-width: 0;
    border-bottom-width: 0;
    border-color: var(--accent);
    border-style: solid;
}



/* ***** 2 CTAs ***** */


.hero .cta-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
}


/* ##### RESPONSIVE ##### */


@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-line-2 {
        margin-left: 2rem;
    }

    .hero-line-3 {
        margin-left: 4rem;
    }
}



@media (min-width: 768px) {
    .hero-subtitle-1 {
        font-size: 4rem !important;
    }

    .hero-subtitle-2 {
        font-size: 18px;
    }

    .hero p {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    .hero .cta-container {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
    }

    .hero-text-content {
        width: 45vw;
        /* height: 45vw; */
        margin-top: 0;
        padding-bottom: 0;
        padding-right: 4rem;
        order: 1;
    }

    .hero-subtitle-1 {
        font-size: 2.25rem !important;
        text-align: left;
    }

    .hero-subtitle-2 {
        text-align: left;
    }

    .hero p {
        font-size: 1.25rem;
        line-height: 1.75rem;
        /* max-width: 32rem; */
        text-align: left;
    }

    .cube-animation {
        width: 45vw;
        height: 45vw;
        order: 2;
        margin-bottom: 4rem;
    }
    .hero .cta-container {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
}

@media (min-width: 1280px) {
    .hero-subtitle-1 {
        font-size: 3rem !important;
    }

    .hero-subtitle-2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1536px) {
    .hero-subtitle-1 {
        font-size: 3.75rem !important;
    }

    .hero-subtitle-2 {
        font-size: 1.875rem;
    }

    .hero p {
        font-size: 1.2rem;
        line-height: 2rem;
    }
}

@media (min-width: 1680px) {
    .hero .cta-container {
        flex-direction: row;
        justify-content: flex-start;
    }
}


