/******************************/
/*** Content Section Common ***/
/******************************/

.content-section {
    padding-top: 200px ;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
    z-index: 1;
}

.content-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section__container {
    max-width: 1280px;
    margin: 0 auto;
}

.content-section__decorators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.content-section__decorator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    animation: bounce 1.5s ease-in-out infinite;
}

.content-section__decorator:nth-child(1) {
    background-color: var(--color-secondary);
    animation-delay: 0s;
}

.content-section__decorator:nth-child(2) {
    background-color: var(--color-tertiary);
    animation-delay: 0.2s;
}

.content-section__decorator:nth-child(3) {
    background-color: var(--color-secondary);
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.content-section__heading {
    font-size: 45px;
    font-weight: var(--fw-black);
    color: var(--color-secondary);
    margin-bottom: 100px;
    animation: heading-entrance 1s ease-out;
}

@keyframes heading-entrance {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section__description {
    font-size: 17px;
    color: var(--color-primary);
    line-height: 40px;
}

.content-section__description--emphasis {
    font-weight: var(--fw-bold);
}

/**************************/
/*** Trusted-By Section ***/
/**************************/

.trusted-by {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.trusted-by__item {
    width: 180px;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 35px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: card-fade-in 0.6s ease-out both;
    position: relative;
    overflow: hidden;
}

.trusted-by__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(175, 145, 225, 0.12), transparent);
    transition: left 0.6s;
}

.trusted-by__item:hover::before {
    left: 100%;
}

.trusted-by__item:nth-child(1) { animation-delay: 0.1s; }
.trusted-by__item:nth-child(2) { animation-delay: 0.2s; }
.trusted-by__item:nth-child(3) { animation-delay: 0.3s; }

@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.trusted-by__item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(165, 130, 220, 0.2);
}

.trusted-by__logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: all 0.3s ease;
}

.trusted-by__item:hover .trusted-by__logo {
    filter: grayscale(0%) brightness(1.1);
}

/************************/
/*** About-Us Section ***/
/************************/

.about-us {
    position: relative;
    width: 630px;
    height: 600px;
    margin: 100px auto 0;
}

.about-us__item {
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.about-us__item:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.about-us__item--accessibility {
    background-color: var(--color-primary-75);
    top: 0;
    left: 0;
}

.about-us__item--innovation {
    background-color: var(--color-secondary-75);
    top: 0;
    right: 0;
}

.about-us__item--sovereignty {
    background-color: var(--color-tertiary-90);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.about-us__title {
    font-size: 25px;
    font-weight: var(--fw-medium);
    color: white;
    margin-bottom: 30px;
    line-height: 20px;
    text-align: center;
}

.about-us__description {
    font-size: 17px;
    font-weight: var(--fw-light);
    color: white;
    line-height: 30px;
    text-align: center;
}

/**************************/
/*** What-We-Do Section ***/
/**************************/

.what-we-do {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
}

.what-we-do__card {
    background-color: white;
    border-radius: 15px;
    padding: 0 0 20px 0;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    animation: card-slide-up 0.8s ease-out both;
    position: relative;
}

.what-we-do__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(175, 145, 225, 0.08), transparent);
    transition: left 0.6s;
}

.what-we-do__card:hover::before {
    left: 100%;
}

.what-we-do__card:nth-child(1) { animation-delay: 0.1s; }
.what-we-do__card:nth-child(2) { animation-delay: 0.2s; }
.what-we-do__card:nth-child(3) { animation-delay: 0.3s; }
.what-we-do__card:nth-child(4) { animation-delay: 0.4s; }

@keyframes card-slide-up {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.what-we-do__card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(165, 130, 220, 0.25);
}

.what-we-do__thumbnail {
    position: relative;
    height: 180px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 20px 20px;
}

.what-we-do__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.5;
}

.what-we-do__number {
    display: none;
}

.what-we-do__title {
    font-size: 25px;
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    margin: 25px 20px;
    text-align: center;
}

.what-we-do__description {
    font-size: 17px;
    color: var(--color-primary);
    line-height: 25px;
    margin: 10px 15px;
    text-align: center;
}

/**************************/
/*** Who-We-Are Section ***/
/**************************/

.who-we-are {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    margin: 100px auto 0;
}

.who-we-are__member {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: member-pop-in 0.8s ease-out both;
}

@keyframes member-pop-in {
    from {
        opacity: 0;
        transform: scale(0.7) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

.who-we-are__member:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.who-we-are__member--ai {
    background-color: var(--color-primary-75);
    animation-delay: 0.1s;
}

.who-we-are__member--hardware {
    background-color: var(--color-tertiary-90);
    animation-delay: 0.3s;
}

.who-we-are__member--software {
    background-color: var(--color-secondary-75);
    animation-delay: 0.5s;
}

.who-we-are__role {
    font-size: 25px;
    font-weight: var(--fw-medium);
    color: white;
    margin: 15px 0 20px;
    line-height: 35px;
    text-align: center;
}

.who-we-are__expertise {
    font-size: 17px;
    font-weight: var(--fw-light);
    color: white;
    line-height: 25px;
    text-align: center;
    margin: 10px 0;
}

/*********************************/
/*** Latest Activities Section ***/
/*********************************/

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.instagram-feed__post {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 800px;
    position: relative;
    animation: feed-fade-in 0.6s ease-out both;
}

@keyframes feed-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.instagram-feed__post:nth-child(1) { animation-delay: 0.1s; }
.instagram-feed__post:nth-child(2) { animation-delay: 0.2s; }
.instagram-feed__post:nth-child(3) { animation-delay: 0.3s; }

.instagram-feed__post::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    border-radius: 0 0 15px 15px;
}

.instagram-feed__post:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(165, 130, 220, 0.2);
}

.instagram-feed__embed {
    margin: 0 !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

/*************************/
/*** Community Section ***/
/*************************/

.community {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 100px;
}

.community__link {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: icon-bounce 0.8s ease-out both;
    position: relative;
    overflow: hidden;
}

@keyframes icon-bounce {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.community__link:nth-child(1) { animation-delay: 0.2s; }
.community__link:nth-child(2) { animation-delay: 0.4s; }
.community__link:nth-child(3) { animation-delay: 0.6s; }

.community__link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(175, 145, 225, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.community__link:hover::before {
    width: 200px;
    height: 200px;
}

.community__link:hover {
    transform: translateY(-15px) scale(1.15) rotate(10deg);
    box-shadow: 0 20px 50px rgba(165, 130, 220, 0.3);
}

.community__icon {
    font-size: 60px;
    color: var(--color-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.community__link:hover .community__icon {
    color: var(--color-secondary-75);
    transform: scale(1.1);
}
