/* ===============================
   ABOUT SECTION
=================================*/
@font-face {
    font-family: "Neue Machina";
    src: url("../../public/assets/fonts/neue-machina-free-for-personal-use/NeueMachina-Light.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Tiempos Headline";
    src: url("../../public/assets/fonts/Tiempos-Font/TiemposHeadline-Light.otf") format("opentype");
    /* font-weight: 700; */
    font-style: normal;
}

@font-face {
    font-family: "Tiempos Headline bold";
    src: url("../../public/assets/fonts/Tiempos-Font/TiemposHeadline-Bold.otf") format("opentype");
    /* font-weight: 700; */
    font-style: normal;
}

@font-face {
    font-family: "Neue Haas Grotesk Text Pro";
    src: url("../../public/assets/fonts/Neue-Haas-Grotesk-Font/NHaasGroteskTXPro-55Rg.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Neue Haas Grotesk Text Pro";
    src: url("../../public/assets/fonts/Neue-Haas-Grotesk-Font/NHaasGroteskTXPro-65Md.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Neue Haas Grotesk Text Pro";
    src: url("../../public/assets/fonts/Neue-Haas-Grotesk-Font/NHaasGroteskTXPro-75Bd.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

.about-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    margin-top: -80px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-section {
    position: relative;

    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 5%,
            rgba(0, 0, 0, 0.5) 10%,
            rgba(0, 0, 0, 0.8) 15%,
            rgba(0, 0, 0, 1) 20%,
            rgba(0, 0, 0, 1) 100%);

    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 5%,
            rgba(0, 0, 0, 0.5) 10%,
            rgba(0, 0, 0, 0.8) 15%,
            rgba(0, 0, 0, 1) 20%,
            rgba(0, 0, 0, 1) 100%);
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* 
    background: linear-gradient(135deg,
            rgba(244, 246, 255, 0) 0%,
            rgba(244, 246, 255, 0.4) 20%,
            rgba(244, 246, 255, 0.7) 40%,
            #f4f6ff 70%); */
}


.about-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    /* Subtle dark shade */
    z-index: 2;
    pointer-events: none;
}

/* CLOTH LAYER */
.cloth-reveal-container {
    position: absolute;
    inset: 0;
    z-index: 20;
    /* High z-index to overlay everything during transition */
    pointer-events: none;
    overflow: hidden;
}

.cloth-wave {
    position: absolute;
    inset: 0;
    background: #ffffff;

    /* Start state: folded/hidden in bottom right */
    clip-path: circle(0% at 100% 100%);
    opacity: 1;

    /* Transition for fluid organic feel */
    transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Secondary layer for added depth */
.cloth-wave-2 {
    position: absolute;
    inset: 0;
    background: #f8f9fa;
    /* Slightly off-white for contrast */
    clip-path: circle(0% at 100% 100%);
    opacity: 0.6;
    z-index: 21;
    transition: clip-path 1.6s cubic-bezier(0.77, 0, 0.175, 1) 0.1s;
}

.about-section.reveal-active .cloth-wave,
.about-section.reveal-active .cloth-wave-2 {
    /* End state: covers the whole screen */
    clip-path: circle(150% at 100% 100%);
}

/* Fade out container after wave has passed */
.about-section.reveal-active .cloth-reveal-container {
    pointer-events: none;
    animation: fadeContainer 0.5s forwards 2s;
}

@keyframes fadeContainer {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.about-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    /* transition: opacity 1s ease-in-out 1.2s; */
    /* Show after wave passes */
}

.about-section.reveal-active .about-bg-video {
    opacity: 0.8;
}

.about-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 0 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: none;
    /* 🔥 Remove Y movement */
    transition: opacity 1s ease 1.8s;
    /* transform: translateY(30px); */
    /* transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s; */
    /* Staggered appear after cloth reveal */
}

.vision-container {
    max-width: 1200px;
    text-align: left;
    overflow: visible;
}


.about-vision-title {
    font-family: "Neue Haas Grotesk Text Pro";
    font-style: italic;
    font-size: 115px;
    font-weight: 400;
    margin-bottom: 4rem;
    white-space: nowrap;
    color: #030303;

    /* Hidden until animation runs — no initial flash */
    visibility: hidden;
    filter: blur(30px);
    opacity: 0;
    transform: translateX(-300px);
    will-change: transform, filter, opacity;
}

/* Animation when section becomes active */
.about-section.reveal-active .about-vision-title {
    animation: slideInFromLeftBlurToClear 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2s forwards;
}

@keyframes slideInFromLeftBlurToClear {
    0% {
        visibility: visible;
        transform: translateX(-400px);
        filter: blur(35px);
        opacity: 0;
    }

    25% {
        transform: translateX(-250px);
        filter: blur(25px);
        opacity: 0.3;
    }

    50% {
        transform: translateX(-120px);
        filter: blur(15px);
        opacity: 0.6;
    }

    75% {
        transform: translateX(-40px);
        filter: blur(5px);
        opacity: 0.85;
    }

    100% {
        visibility: visible;
        transform: translateX(0);
        filter: blur(0);
        opacity: 1;
    }
}

.vision-text {
    background: var(--Gradient-06, linear-gradient(71deg, #40C9FF 9.04%, #E81CFF 83.63%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Tiempos Headline";
    font-size: 120px;
    font-style: normal;
    font-weight: 600;
    line-height: 73px;
}

.about-vision-subtitle {
    color: #656566;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Neue Haas Grotesk Text Pro";
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 55px;
    text-indent: 89px;
    max-width: 1000px;
}

.about-visuals {
    position: absolute;
    right: -200px;
    top: 115%;
    transform: translateY(-50%);
    width: 307px;
    height: 307px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;

}

about-vision-subtitle {
    font: italic
}

.floating-abstract-icon {
    width: 100%;
    max-width: 550px;
    height: auto;
    transform: translate(30%, 30%) rotate(15deg) scale(0.8);
    transition: all 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s;
    transform: translate(30%, 30%) rotate(15deg) scale(0.8);

    transform-origin: center;
    animation: rotateToFro 6s ease-in-out infinite;
    animation-direction: alternate;

}

/* .about-section.reveal-active .floating-abstract-icon {
    transform: translate(0, 0) rotate(0) scale(1);
} */

.about-section.reveal-active .about-content {
    opacity: 1;
    /* transform: translateY(0); */
}

@keyframes rotateToFro {
    0% {
        transform: rotate(270deg);
    }

    50% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(235deg);
    }
}

/* ===============================
   ABOUT MOBILE VIEW
=================================*/

@media (max-width: 768px) {
    .about-section {
        /* min-height: auto;
        padding: 4rem 1.5rem 5rem;
        margin-top: 0; */
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        padding: 0 1.25rem;
        text-align: left;
    }

    .vision-container {
        max-width: 100%;
        text-align: left;
        margin-bottom: 2rem;
    }

    .about-vision-title {
        font-size: 1.75rem;
        line-height: 1.35;
        margin-bottom: 1.25rem;
        white-space: normal;
        color: #656566;
    }

    .vision-text {
        font-size: 1.75rem;
        line-height: 1.35;
    }

    .about-vision-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        color: #656566;
        font-weight: 500;
    }

    .about-visuals {
        position: absolute;
        right: -75px;
        top: 145%;
        transform: translateY(-50%);
        width: 150px;
        height: 130px;
        margin-top: 2rem;
        justify-content: flex-end;
        align-items: flex-end;
    }

    .floating-abstract-icon {
        max-width: 280px;
        transform: translate(15%, 15%) rotate(15deg) scale(0.65);
    }
}