/* ----- ABOUT SECTION ----- */

.about-tilt-section {
    perspective: 1000px;
    position: relative;
    padding-bottom: 4rem;
}

.about-halo {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, rgba(204, 11, 13, 0) 70%);
    pointer-events: none;
}

/* Halo 1 */
.about-halo:nth-child(1) {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 20%;
    animation: float-1 25s infinite linear;
    opacity: 0.22;
}

/* Halo 2 */
.about-halo:nth-child(2) {
    width: 250px;
    height: 250px;
    top: 60%;
    left: 70%;
    animation: float-2 30s infinite linear;
    opacity: 0.18;
}

/* Halo 3 */
.about-halo:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 90%;
    left: 25%;
    animation: float-3 22s infinite linear;
    opacity: 0.25;
}

/* Halo 4 */
.about-halo:nth-child(4) {
    width: 300px;
    height: 300px;
    top: 30%;
    left: 80%;
    animation: float-4 35s infinite linear;
    opacity: 0.17;
}

/* Halo 5 */
.about-halo:nth-child(5) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 60%;
    animation: float-5 28s infinite linear;
    opacity: 0.20;
}


/* Animations pour chaque halo */
@keyframes float-1 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(100px, 50px);
    }

    50% {
        transform: translate(50px, 150px);
    }

    75% {
        transform: translate(-70px, 100px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes float-2 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-120px, -60px);
    }

    50% {
        transform: translate(-60px, -180px);
    }

    75% {
        transform: translate(80px, -120px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes float-3 {
    0% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(80px, -70px);
    }

    66% {
        transform: translate(-60px, -40px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes float-4 {
    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-100px, 80px);
    }

    40% {
        transform: translate(-150px, 0px);
    }

    60% {
        transform: translate(-70px, -120px);
    }

    80% {
        transform: translate(50px, -50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes float-5 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-50px, 100px);
    }

    50% {
        transform: translate(-150px, 50px);
    }

    75% {
        transform: translate(-100px, -70px);
    }

    100% {
        transform: translate(0, 0);
    }
}


.about-tech-border::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 20px;
    height: 20px;
    border-top: 2px solid #CC0B0D;
    border-left: 2px solid #CC0B0D;
}

.about-tech-border::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #CC0B0D;
    border-right: 2px solid #CC0B0D;
}

.about-container {
    position: relative;
    margin: 0 auto;
    padding: 0 1rem;
    z-index: 10;
}

.about-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
}

.about-title {
    position: relative;
    width: 90vw;
    margin-bottom: 4rem;
    text-align: center;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
}

.about-portrait-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    align-self: center;
    max-width: 640px;
}

.about-tilt-image-container {
    position: relative;
    /* width: 90vw; */
    margin-bottom: 3rem;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 1px solid rgba(204, 11, 13, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

.about-tilt-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
    transform: scale(1);
    transition: transform 0.4s ease-in;
}

.about-tilt-image-container:hover img {
    transform: scale(1.05);
}


/* .about-glow-text */
.about-glow-text {
    text-shadow: 0 0 10px rgba(204, 11, 13, 0.5);
}

/* .about-tech-badge */
.about-tech-badge {
    background: rgba(204, 11, 13, 0.1);
    border: 1px solid rgba(204, 11, 13, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* .about-grid-pattern */
.about-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(135deg, #131313, #111111);
    background-size: 20px 20px, 20px 20px, cover;
    background-repeat: repeat, repeat, no-repeat;
    background-position: 0 0, 0 0, 0 0;
    border-top: 1px solid var(--accent);
    overflow: hidden;
}

/* .about-presentation {
    width: 90vw;
    text-align: left;
    margin: 2rem auto 0 auto;
} */

/* Laser scan effect - .about-laser-box */
.about-laser-box {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.about-laser-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0px solid transparent;
    pointer-events: none;
    z-index: 1;
}

/* .about-laser-scan */
.about-laser-scan {
    position: absolute;
    background-color: #CC0B0D;
    box-shadow: 0 0 8px 1px #CC0B0D;
    z-index: 2;
    opacity: 0;
}

/* .about-laser-top */
.about-laser-top {
    top: 0;
    left: 0;
    height: 1px;
    width: 0%;
}

/* .about-laser-right */
.about-laser-right {
    top: 0;
    right: 0;
    width: 1px;
    height: 0%;
}

/* .about-laser-bottom */
.about-laser-bottom {
    bottom: 0;
    right: 0;
    height: 1px;
    width: 0%;
}

/* .about-laser-left */
.about-laser-left {
    bottom: 0;
    left: 0;
    width: 1px;
    height: 0%;
}

@keyframes scanTop {
    0% {
        width: 0%;
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes scanRight {
    0% {
        height: 0%;
        opacity: 1;
    }

    100% {
        height: 100%;
        opacity: 1;
    }
}

@keyframes scanBottom {
    0% {
        width: 0%;
        right: 0;
        opacity: 1;
    }

    100% {
        width: 100%;
        right: 0;
        opacity: 1;
    }
}

@keyframes scanLeft {
    0% {
        height: 0%;
        bottom: 0;
        opacity: 1;
    }

    100% {
        height: 100%;
        bottom: 0;
        opacity: 1;
    }
}

/* .about-border-appear */
.about-border-appear {
    padding: 1.5rem 1.5rem 0;
    opacity: 0;
}

.about-presentation .about-laser-box p {
    margin-bottom: 1rem;
    line-height: 1.625;
}

/* .about-highlight-box */
.about-highlight-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #CC0B0D;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.about-highlight-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
}

.about-expert-container {
    margin: 0 auto;
    max-width: 640px;
}

.about-expert-container h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 2.5rem 0;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 5px;
}

.expert-mobile {
    display: block;
}

.about-expert-badges {
    text-align: center;
}

.expert-desktop {
    display: none;
}

.about-conclusion p {
    padding: 0.75rem 0;
    margin-top: 2.5rem;
    text-align: center;
    max-width: none;
    font-size: 1.25rem;
    /* font-weight: 500; */
}


@keyframes appearBorder {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media (min-width: 640px) {
    .about-content {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .about-content {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .about-container {
        padding: 0 2rem;
    }

    .about-content {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        font-size: 1.25rem;
    }

    .about-title {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: 2;
        text-align: left;
    }

    .about-title::after {
        left: 0;
        transform: translateX(0);
    }

    .about-portrait-container {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 2;
        grid-row-end: 3;
    }

    .about-tilt-image-container {
        width: 100%;
        height: auto;
    }

    .about-presentation {
        width: 100%;
        grid-column-start: 2;
        grid-row-start: 2;
    }

    .about-laser-box {
        grid-column-start: 2;
        grid-row-start: 2;
        margin-top: 3rem;
    }

    /* .about-expert-container {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 3;
        grid-row-end: 4;
    } */

    .about-expert-container h4 {
        margin-top: 0;
    }

    .expert-mobile {
        display: none;
    }

    .expert-desktop {
        display: block;
    }

    .about-conclusion {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 3;
        grid-row-end: 4;
    }

    .about-conclusion p {
        margin-top: 0;
    }
}

@media (min-width: 1280px) {
    .about-content {
        font-size: 1.25rem;
    }
}

@media (min-width: 1536px) {
    .about-content {
        font-size: 1.5rem;
    }
}