/*--------------------INTRO ABOUT US SECTION---------------------*/

section.intro-aboutUs-section {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    width: 100%;
    max-height: 1200px;
    margin: 0;
    padding: 0;
    gap: 0;
}

section.intro-aboutUs-section:nth-of-type(3){
    flex-direction: row;
}

section.intro-aboutUs-section .text {
    max-width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    margin: 0 auto;
    gap: 1rem;
    color: var(--dark-color);
    background-color: white;
    padding: 2.5rem;
}

section.intro-aboutUs-section .text h2 {
    font-size: 3.8rem;
    margin-bottom: 5rem;
    align-self: center;
}

section.intro-aboutUs-section .text p {
    font-size: 1.7rem;
    color: var(--dark-color);
}

section.intro-aboutUs-section .text a {
    color: var(--accent-color);
    text-decoration: none;
}

section.intro-aboutUs-section .text a:hover {
    text-decoration: underline;
}

section.intro-aboutUs-section .image {
    width: 65%;
    max-width: none;
    display: flex;
    justify-content: end;
    align-items: end;
    height: 100%;
    min-height: 400px;
}

section.intro-aboutUs-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}


section.intro-aboutUs-section .about-block {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 425px;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

section.intro-aboutUs-section .about-block .img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5.7rem;
    width: 5.7rem;
    aspect-ratio: 1 / 1;
    background-color: var(--detail-color);
    border-radius: 100%;
    padding: 0.8rem;
    margin-right: 1rem;
}

section.intro-aboutUs-section .about-block img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    filter: invert(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0);
}

/*-----VALUES ABOUT US SECTION-----*/

section#values-aboutUs-section{
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

section#values-aboutUs-section *{
    color: var(--dark-color) !important;
}

section#values-aboutUs-section .values-wrapper{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

section#values-aboutUs-section .values-wrapper:nth-of-type(odd){
    flex-direction: row-reverse;
}


section#values-aboutUs-section .values-wrapper .values{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    max-width: 50%;
    padding: 2.5rem;
    font-size: 1rem;
    gap: 3rem;
}

section#values-aboutUs-section .values-wrapper .values h2{
    width: auto !important;
    font-size: 3.8em;
}

section#values-aboutUs-section .values-wrapper .values .value{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 800px;
    gap: 1.5rem;
}


section#values-aboutUs-section .values-wrapper .values .value article h3 {
    font-size: 2em;
}


section#values-aboutUs-section .values-wrapper .values .value article p {
    font-size: 1.7em;
}

section#values-aboutUs-section .values-wrapper .values .value .icon-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5.7rem;
    height: 5.7rem;
    padding: 0.8rem;
    background-color: var(--detail-color);
    border-radius: 100%;
    flex-shrink: 0;
}

section#values-aboutUs-section .values-wrapper .values .value .icon-wrapper img{    
    display: block;
    height: 100%;
    width: auto;
    object-fit: contain;
    box-shadow: none;
    filter: invert(1);
}

section#values-aboutUs-section .values-wrapper .img-wrapper{
    display: flex;
    width: 50%;
    max-width: 50%;
    height: 100%;
}

section#values-aboutUs-section .values-wrapper .img-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/*------MILESTONE SECTION--------*/


section#milestone-aboutUs-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
    background: 
        linear-gradient(var(--detail-color), var(--accent-color), var(--detail-color));
    padding: 2rem;
}

section#milestone-aboutUs-section h2{
    display: flex;
    justify-content: center;
    width: 100%;
    color: var(--background-color);
    font-size: 3rem;
}


section#milestone-aboutUs-section .timeline{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 400px;
    max-width: 1800px;
}


section#milestone-aboutUs-section .timeline span{
    display: flex;
    font-size: 5rem;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.8rem;
    background-color: transparent;
    transition: 0.3s ease;
}

section#milestone-aboutUs-section .timeline span:hover{
    scale: 1.05;
}

.arrow-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#nextArrow-aboutUs-timeline,
#prevArrow-aboutUs-timeline {
  transition: opacity 0.3s ease;
}

section#milestone-aboutUs-section .timeline .timeline-wrapper{
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    height: 100%;
    width: 100%;
    max-width: 90vw;
    padding: 1rem 0;
    overflow: hidden;
    box-sizing: border-box;
}

section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    height: 100%;
    max-height: 100%;
    min-width: 300px;
    max-width: 300px;
    width: 20%;
    flex: 0 0 auto;
    position: relative;
    transition: opacity 0.3s ease;
}

section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone:nth-of-type(even){
    justify-content: end;
}


section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background-color: var(--background-color);
    z-index: 1;
    max-width: 100%;
    opacity: 1;
    pointer-events: none;
}


section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-circle{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 100%;
    background-color: var(--background-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    padding: 0.9rem;
}

section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-circle img{
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 0;
    z-index: 1000;
}


section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-circle::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 4px;
    height: 120%;
    background-color: var(--background-color);
    z-index: 999;
}

section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone:nth-of-type(even) .milestone-circle::before{
    transform: translate(-50%, 0) rotate(180deg);
}

section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-circle::after{
    content: "";
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--background-color);
    z-index: 999;
}

section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone:nth-of-type(even) .milestone-circle::after{
    top: 190%;
}

section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-details{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    max-height: 30%;
    max-width: 95%;
    padding: 0.5rem;
    z-index: 5;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    padding: 1.2rem 1.5rem;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone:nth-of-type(even) .milestone-details{
    justify-content: end;
}


section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-details h3{
    display: flex;
    color: var(--background-color);
    font-size: 2rem;
    text-align: center;
}

section#milestone-aboutUs-section .timeline .timeline-wrapper  .milestone .milestone-details p{
    display: flex;
    color: var(--background-color);
    max-width: 90%;
    text-align: center;
}

/*--------STATS ABOUT US SECTION------------*/

section#stats-aboutUs-section{
    background: var(--detail-color);
}

section#stats-aboutUs-section .stats-card-wrapper{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    max-width: 1600px;
    flex-wrap: wrap;
    background: var(--detail-color);
    gap: 1rem;
}


section#stats-aboutUs-section .stats-card-wrapper .stat-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 0 250px;
    height: 200px;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-weight: bold;
  font-size: clamp(4rem, calc(5vw + 1rem), 5rem);
  line-height: 1;
  color: white;
  font-family: monospace;
}

section#stats-aboutUs-section .stats-card-wrapper .stat-card p{
    color: var(--background-color);
    font-size: clamp(0.8rem, calc(3vw + 1rem), 2rem);
}

.digit {
  position: relative;
  width: 1ch;
  height: 1em;
  overflow: hidden;
}

.digit-inner {
  transition: transform 0.5s ease-out;
}

.digit-inner div {
  height: 1em;
  line-height: 1em;
  text-align: center;
  user-select: none;
  pointer-events: none;
}



@media(max-width: 1024px){

    /*-----INTRO 1024px-----*/
    section.intro-aboutUs-section {
        flex-direction: column;
        max-height: none;
    }

    section.intro-aboutUs-section:nth-of-type(3) {
        flex-direction: column;
    }

    section.intro-aboutUs-section .text {
        width: 100%;
        max-width: 100%;
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        gap: 1rem;
        padding: 2.5rem;
    }

    section.intro-aboutUs-section .image {
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 400px;
    }

    section.intro-aboutUs-section .image img {
        width: 100%;
        height: 100%;
    }


    /*-----VALUES 1024px------*/
    section#values-aboutUs-section .values-wrapper{
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    section#values-aboutUs-section .values-wrapper:nth-of-type(odd){
        flex-direction: column-reverse;
    }


    section#values-aboutUs-section .values-wrapper .values{
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 2.5rem;
        font-size: 1rem;
        gap: 3rem;
    }

    section#values-aboutUs-section .values-wrapper .values h2{
        width: auto !important;
        font-size: 3.8em;
    }

    section#values-aboutUs-section .values-wrapper .values .value{
        flex-direction: row;
        align-items: center;
        width: 100%;
        max-width: 800px;
        gap: 1.5rem;
    }


    section#values-aboutUs-section .values-wrapper .values .value article h3 {
        font-size: 2em;
    }


    section#values-aboutUs-section .values-wrapper .values .value article p {
        font-size: 1.7em;
    }

    section#values-aboutUs-section .values-wrapper .values .value .icon-wrapper{
        justify-content: center;
        align-items: center;
        width: 5.7rem;
        height: 5.7rem;
        padding: 0.8rem;
    }


    section#values-aboutUs-section .values-wrapper .img-wrapper{
        display: flex;
        width: 100%;
        max-width: 100%;
        height: 100%;
    }

    section#values-aboutUs-section .values-wrapper .img-wrapper img{
        width: 100%;
        height: 100%;
        max-height: 650px;
    }
}


/*-----MEDIA 750px--------*/
@media(max-width: 750px){

    /*------MILESTONE SECTION--------*/
    section#milestone-aboutUs-section{
        padding: 2rem;
    }

    section#milestone-aboutUs-section h2{
        display: flex;
        justify-content: center;
        width: 100%;
        color: var(--background-color);
        font-size: 3rem;
    }


    section#milestone-aboutUs-section .timeline{
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 600px;
        max-width: 1600px;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone{
        height: 100%;
        max-height: 100%;
        min-width: 200px;
        max-width: 200px;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-circle::before{
        height: 200%;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone:nth-of-type(even) .milestone-circle::before{
        transform: translate(-50%, 0) rotate(180deg);
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-circle::after{
        bottom: 220%;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone:nth-of-type(even) .milestone-circle::after{
        top: 270%;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-details{
        justify-content: center;
        align-items: center;
        max-height: 30%;
        min-height: 28%;
        max-width: 95%;
        text-align: center;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone:nth-of-type(even) .milestone-details{
        justify-content: center;
    }

}

/*------MEDIA 480px------*/
@media(max-width: 480px){

    /*INTRO 480px*/
    section.intro-aboutUs-section .text {
        max-width: 650px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        gap: 1rem;
        padding: 1rem;
    }

    section.intro-aboutUs-section .text h2 {
        font-size: 2.5em;
        margin: 2rem 0;
        text-align: center;
    }

    section.intro-aboutUs-section .text p {
        font-size: 1.2em;
    }

    section.intro-aboutUs-section .about-block .img-wrapper {
        width: 4.5em;
        height: 4.5em;
    }

    /*VALUES 480px*/
    section#values-aboutUs-section{
        gap: 2rem;
    }

    section#values-aboutUs-section .values-wrapper {
        padding: 0;
    }

    section#values-aboutUs-section .values-wrapper .values {
        padding: 1rem;
        gap: 2rem;
    }

    section#values-aboutUs-section .values-wrapper .values h2{
        width: auto !important;
        font-size: 2.5em;
    }

    section#values-aboutUs-section .values-wrapper .values .value{
        gap: 1.5rem;
    }

    section#values-aboutUs-section .values-wrapper .values .value {
        font-size: 0.7rem;
    }

    section#values-aboutUs-section .values-wrapper .values .value article h3 {
        font-size: 2em;
    }


    section#values-aboutUs-section .values-wrapper .values .value article p {
        font-size: 1.7em;
    }

    section#values-aboutUs-section .values-wrapper .values .value .icon-wrapper{
        width: 4rem;
        height: 4rem;
    }

    section#values-aboutUs-section .values-wrapper .img-wrapper{
        display: flex;
        height: 100%;
        min-height: 400px;
    }

    /*------TIMELINE 480px----------*/

    section#milestone-aboutUs-section{
        padding: 0.5rem;
    }

    section#milestone-aboutUs-section h2{
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }


    section#milestone-aboutUs-section .timeline{
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 600px;
        max-width: 1600px;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone{
        height: 100%;
        max-height: 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-circle::before{
        height: 160%;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone:nth-of-type(even) .milestone-circle::before{
        transform: translate(-50%, 0) rotate(180deg);
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-circle::after{
        bottom: 180%;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone:nth-of-type(even) .milestone-circle::after{
        top: 230%;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-details{
        justify-content: center;
        align-items: center;
        max-height: 30%;
        min-height: 28%;
        max-width: 100%;
        text-align: center;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone:nth-of-type(even) .milestone-details{
        justify-content: center;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-circle{
        width: 4rem;
    }

    section#milestone-aboutUs-section .timeline span{
        display: flex;
        font-size: 3rem;
        margin-top: 0.5rem;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper .milestone .milestone-details h3{
        font-size: 1.5rem;
        text-align: center;
    }

    section#milestone-aboutUs-section .timeline .timeline-wrapper  .milestone .milestone-details p{
        display: flex;
        color: var(--background-color);
        font-size: 1rem;
        max-width: 90%;
        text-align: center;
    }

    .stat-card h3 {
    font-size: clamp(3rem, calc(5vw + 1rem), 5rem);
    line-height: 1;
    color: white;
    font-family: monospace;
    }

    section#stats-aboutUs-section .stats-card-wrapper .stat-card p{
        color: var(--background-color);
        font-size: clamp(0.5rem, calc(3vw + 1rem), 2rem);
    }
}