/* VR Section Block Styles */

.vr-section-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bottom-space-section {
    position: relative;
    padding: 80px 0 120px 0;
    background-color: var(--bg-dark, #0a0a0a);
}

.large-photo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.large-photo {
    position: relative;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform-style: preserve-3d;
}

.large-photo img {
    height: 100% !important;
}

.background-image-2,
.background-video-2 {
    position: absolute;
    top: 0;
    left: 4%;
    width: 93%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.background-video-2 {
    pointer-events: none;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.large-1800-base-container {
    position: relative;
    max-width: 99rem;
    margin: 0 auto;
    /* padding: 0 40px; */
    left: 45vw;
    z-index: 10;
}

.our-story-grig {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 80px; */
    align-items: center;
    min-height: 600px;
}
/* 
.right-grid-content {
    padding-left: 60px;
} */

.story-content {
    display: grid;
    color: var(--white, #ffffff);
    background: black;
    border-radius: 10px;
    padding: 40px 40px 0;
    grid-row-gap: 1rem;
}

/* Story Top Section */
.story-top {
    /* margin-bottom: 40px; */
    display: flex;
    align-items: center;
    gap: 14rem;
}

.subtitle-text {
    /* font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Rajdhani', sans-serif;
    white-space: nowrap; */
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    top: -6rem;
    font-family: 'Rajdhani', sans-serif;
    white-space: nowrap;
    position: relative;
}

/* Spin Image Container */
/* .spin-intro {
    position: relative;
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
} */

.spin-intro {
    position: relative;
    z-index: 12;
    width: 16rem;
    height: 16rem;
    transform-style: preserve-3d;
}

.spin-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
}

.spin-outside {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    position: relative;
}

[class^="spin-insides-"] {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
    position: absolute;
    /* animation: spinRotation 4s ease-in-out infinite; */
}

.spin-insides-01 { animation-delay: 0s; }
.spin-insides-02 { animation-delay: 0.5s; }
.spin-insides-03 { animation-delay: 1s; }
.spin-insides-04 { animation-delay: 1.5s; }

@keyframes spinRotation {
    0% { 
        transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg); 
    }
    25% { 
        transform: rotateY(90deg) rotateX(15deg) rotateZ(5deg); 
    }
    50% { 
        transform: rotateY(180deg) rotateX(0deg) rotateZ(-10deg); 
    }
    75% { 
        transform: rotateY(270deg) rotateX(-15deg) rotateZ(5deg); 
    }
    100% { 
        transform: rotateY(360deg) rotateX(0deg) rotateZ(0deg); 
    }
}

.spin-image,
.rotate-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    backface-visibility: hidden;
}

.spin-image {
    transform: rotateY(0deg);
    z-index: 2;
}

.rotate-image.back {
    transform: rotateY(180deg);
    z-index: 1;
}

.image-ov {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%);
    z-index: 2;
    border-radius: 8px;
    pointer-events: none;
}

.image-cover-3 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* S'assurer que les images sont visibles */
.spin-image img,
.rotate-image img {
    opacity: 1;
    visibility: visible;
}

/* Style par défaut pour une image visible */
[class^="spin-insides-"] {
    transform: rotateY(0deg);
}

/* S'assurer que l'image avant est toujours visible même sans image arrière */
.spin-image {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Si pas d'image arrière, cacher seulement la face arrière */
.rotate-image.back:not(:has(img)) {
    display: none;
}

/* Fallback pour navigateurs qui ne supportent pas :has() */
.rotate-image.back:empty {
    display: none;
}

/* S'assurer qu'au moins l'image de devant est visible */
.spin-intro .spin-image img {
    display: block !important;
    opacity: 1 !important;
}

/* Story Bottom Section */
/* .story-bottom {
    margin-top: 60px;
} */

.story-intro-content {
    margin-bottom: 40px;
}

.about-our-mission {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 30px 0;
    font-family: 'Monument Extended', sans-serif;
    letter-spacing: -2px;
    color: transparent;
    background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 2px 30px rgba(0,0,0,0.12);
}

.intro-par-grid {
    display: grid;
    /* height: 15vw; */
    margin-bottom: 2rem;
    border-bottom: 0.1px dashed rgba(255, 255, 255, 0.545);
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.intro-paragraph {
    font-size: 1rem !important;
    /* line-height: 1.7; */
    color: rgba(255, 255, 255, 0.75);
    /* margin: 0; */
    margin-bottom: 2rem;
    /* font-family: 'Inter', sans-serif; */
}

/* Link Styles */
.hero-link-wrapper {
    margin-top: 0px;
    margin-bottom: 16px;
}

.underline-main-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--white, #ffffff);
    font-size: 16px;
    font-weight: 500;
    left: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Chakra Petch', sans-serif;
}

.large-top-padding {
    padding-top: 0px;
}

.arrow-clip-wrap {
    position: relative;
    width: 24px;
    height: 24px;
    margin-left: 15px;
    overflow: hidden;
}

.clip-arrow-3 {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.bottom-arrow {
    transform: translateY(100%);
}

.project-small-arrow {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hover-line {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    overflow: hidden;
}

.line-top {
    bottom: -2px;
}

.hover-line-fill {
    width: 100%;
    height: 100%;
    background-color: var(--white, #ffffff);
    transform: translateX(-101%);
    transition: transform 0.3s ease;
}

/* Hover Effects */
.underline-main-link:hover {
    color: var(--accent-color, #ff3d29);
}

/* .underline-main-link:hover .clip-arrow-3:first-child {
    transform: translateY(-100%);
}

.underline-main-link:hover .bottom-arrow {
    transform: translateY(0%);
}

.underline-main-link:hover .hover-line-fill {
    transform: translateX(0%);
} */

/* Parallax Effect */
.large-photo {
    /* animation: parallaxFloat 8s ease-in-out infinite; */
}

@keyframes parallaxFloat {
    0%, 100% { transform: translate3d(0px, 0%, 0px) scale3d(1, 1, 1); }
    50% { transform: translate3d(0px, 2%, 0px) scale3d(1.02, 1.02, 1); }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .large-1800-base-container {
        left: 7rem;
    }
    
    .our-story-grig {
        gap: 60px;
    }
    
    .right-grid-content {
        padding-left: 40px;
    }
    
    .about-our-mission {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 991px) {
    .our-story-grig {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .right-grid-content {
        padding-left: 0;
        order: 1;
    }
    
    .story-top {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .intro-par-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .subtitle-text {
        top: 0rem !important;
    }
    .story-content {
        padding: 0 0 0 0 !important;
    }

    .bottom-space-section {
        padding: 60px 0 80px 0;
    }
    
    .large-1800-base-container {
        left: 0rem;
    }
    
    .about-our-mission {
        font-size: 2rem;
    }
    
    /* .spin-intro {
        width: 60px;
        height: 60px;
    } */
    
    .story-top {
        margin-bottom: 30px;
        gap: 20px;
    }
    
    .story-bottom {
        margin-top: 40px;
    }
}

@media screen and (max-width: 413px) {
    /* .intro-par-grid {
        height: 166vw !important;
    } */
}
@media screen and (max-width: 350px) {
    /* .intro-par-grid {
        height: 223vw !important;
    } */
}
@media screen and (max-width: 574px) {
    .story-top {
        gap: 0.5rem !important;
    }
    /* .hero-link-wrapper {
        margin-top: 25vw;
    } */
     .vr-section-wrapper {
        width: 100vw !important;
     }
    .large-1800-base-container {
        width: 85vw !important;
    }
    .story-bottom {
        text-align: left;
        padding: 27px;
    }
    .about-our-mission {
        letter-spacing: 1px;
        font-size: 1.7rem !important;
    }
    /* .subtitle-text {
        display: none;
    }
    .about-our-mission {
        position: relative;
        top: -8rem;
    }
    .spin-image, .rotate-image {
        overflow: visible;
    }
    .spin-intro .spin-image img {
        position: relative;
        top: 15vw;
        left: -1rem;
    } */
    .spin-intro {
        width: 60px;
        height: 60px;
    }
    .large-photo img {
        width: 100vw;
        left: 0;
    }
    .large-1800-base-container {
        border: 3px solid rgb(255 255 255 / 10%);
        box-shadow: 0 0 1px rgb(255 255 255 / 7%), inset 0 1px 0 #007bff4d, 0 0px 4px #007bff4d;
        backdrop-filter: blur(2px);
    }
    .about-our-mission {
        font-size: 1.8rem;
    }
    
    .intro-paragraph {
        font-size: 14px;
    }
    
    .subtitle-text {
        font-size: 12px;
        top: 0rem !important;
        left: -3rem !important;
    }
    /* .intro-par-grid {
        height: 29rem;
    } */
    [class^="spin-insides-"] {
        width: 8rem;
        height: 8rem;
    }
}