/* Animations for hero and acquisition sections */

/* Hero Animation Styles */
.animated-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: rgba(249, 250, 252, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Chart bars */
.chart-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 200px;
    width: 80%;
}

.chart-bar {
    width: 40px;
    background: var(--gradient-primary);
    border-radius: 6px 6px 0 0;
    transform-origin: bottom;
    animation: growBar 2s ease-out forwards;
    opacity: 0;
}

.bar1 {
    height: 60%;
    animation-delay: 0.2s;
}

.bar2 {
    height: 80%;
    animation-delay: 0.4s;
}

.bar3 {
    height: 70%;
    animation-delay: 0.6s;
}

.bar4 {
    height: 90%;
    animation-delay: 0.8s;
}

.bar5 {
    height: 100%;
    animation-delay: 1s;
}

@keyframes growBar {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Growth line */
.growth-line {
    position: absolute;
    bottom: 50px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--secondary);
    transform-origin: left;
    animation: drawLine 2s ease-out forwards 1.2s;
    opacity: 0;
    z-index: 2;
}

@keyframes drawLine {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Pulse circles */
.pulse-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pulse-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(71, 51, 255, 0.1);
    animation: pulse 3s infinite;
}

.circle1 {
    top: 30%;
    left: 20%;
    animation-delay: 0.5s;
}

.circle2 {
    top: 60%;
    left: 70%;
    animation-delay: 1s;
}

.circle3 {
    top: 20%;
    left: 60%;
    animation-delay: 1.5s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

/* Floating elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    animation: float 5s ease-in-out infinite;
    opacity: 0;
}

.element1 {
    top: 20%;
    left: 30%;
    animation-delay: 0.2s;
}

.element2 {
    top: 30%;
    left: 70%;
    animation-delay: 0.6s;
}

.element3 {
    top: 70%;
    left: 25%;
    animation-delay: 1s;
}

.element4 {
    top: 60%;
    left: 65%;
    animation-delay: 1.4s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: translateY(10px) rotate(-5deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
}

/* Acquisition Animation Styles */
.animated-acquisition {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: rgba(249, 250, 252, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Funnel container */
.funnel-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.funnel-section {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.section1 {
    width: 100%;
    animation-delay: 0.2s;
}

.section2 {
    width: 85%;
    animation-delay: 0.4s;
}

.section3 {
    width: 70%;
    animation-delay: 0.6s;
}

.section4 {
    width: 55%;
    animation-delay: 0.8s;
}

.funnel-label {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.funnel-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: rgba(71, 51, 255, 0.1);
    border-radius: var(--radius);
    width: 100%;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0;
    animation: fadeInDot 0.5s forwards;
}

.section1 .dot:nth-child(1) { animation-delay: 1s; }
.section1 .dot:nth-child(2) { animation-delay: 1.1s; }
.section1 .dot:nth-child(3) { animation-delay: 1.2s; }
.section1 .dot:nth-child(4) { animation-delay: 1.3s; }
.section1 .dot:nth-child(5) { animation-delay: 1.4s; }
.section1 .dot:nth-child(6) { animation-delay: 1.5s; }
.section1 .dot:nth-child(7) { animation-delay: 1.6s; }
.section1 .dot:nth-child(8) { animation-delay: 1.7s; }

.section2 .dot:nth-child(1) { animation-delay: 1.8s; }
.section2 .dot:nth-child(2) { animation-delay: 1.9s; }
.section2 .dot:nth-child(3) { animation-delay: 2s; }
.section2 .dot:nth-child(4) { animation-delay: 2.1s; }
.section2 .dot:nth-child(5) { animation-delay: 2.2s; }
.section2 .dot:nth-child(6) { animation-delay: 2.3s; }

.section3 .dot:nth-child(1) { animation-delay: 2.4s; }
.section3 .dot:nth-child(2) { animation-delay: 2.5s; }
.section3 .dot:nth-child(3) { animation-delay: 2.6s; }
.section3 .dot:nth-child(4) { animation-delay: 2.7s; }

.section4 .dot:nth-child(1) { animation-delay: 2.8s; }
.section4 .dot:nth-child(2) { animation-delay: 2.9s; }

@keyframes fadeInDot {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Connection lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.connection-line {
    position: absolute;
    width: 2px;
    height: 40px;
    background: var(--secondary);
    opacity: 0;
    animation: drawVerticalLine 1s forwards;
}

.line1 {
    top: 25%;
    left: 30%;
    animation-delay: 1.5s;
}

.line2 {
    top: 45%;
    left: 70%;
    animation-delay: 2s;
}

.line3 {
    top: 65%;
    left: 50%;
    animation-delay: 2.5s;
}

@keyframes drawVerticalLine {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Acquisition icons */
.acquisition-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.acquisition-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeInRotate 1s forwards;
}

.icon1 {
    top: 15%;
    left: 30%;
    animation-delay: 1.2s;
}

.icon2 {
    top: 35%;
    left: 70%;
    animation-delay: 1.7s;
}

.icon3 {
    top: 55%;
    left: 30%;
    animation-delay: 2.2s;
}

.icon4 {
    top: 75%;
    left: 70%;
    animation-delay: 2.7s;
}

@keyframes fadeInRotate {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Algorithm Animation Styles */
.animated-algorithm {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: rgba(249, 250, 252, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible .animated-algorithm {
    opacity: 1;
    transform: translateY(0);
}

/* Algorithm grid */
.algorithm-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.algorithm-node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible .algorithm-node {
    opacity: 1;
    transform: scale(1);
}

.node1 {
    top: 20%;
    left: 20%;
    transition-delay: 0.1s;
}

.node2 {
    top: 30%;
    left: 50%;
    transition-delay: 0.3s;
}

.node3 {
    top: 20%;
    left: 80%;
    transition-delay: 0.5s;
}

.node4 {
    top: 70%;
    left: 20%;
    transition-delay: 0.7s;
}

.node5 {
    top: 60%;
    left: 50%;
    transition-delay: 0.9s;
}

.node6 {
    top: 70%;
    left: 80%;
    transition-delay: 1.1s;
}

/* Algorithm connections */
.algorithm-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.connection {
    position: absolute;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    height: 2px;
    opacity: 0;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s ease, opacity 1s ease;
}

.animate-on-scroll.visible .connection {
    opacity: 0.5;
    transform: scaleX(1);
}

.connection1 {
    top: 25%;
    left: 25%;
    width: 25%;
    transition-delay: 1.3s;
}

.connection2 {
    top: 25%;
    left: 55%;
    width: 25%;
    transition-delay: 1.5s;
}

.connection3 {
    top: 35%;
    left: 25%;
    width: 25%;
    transform-origin: left;
    transform: rotate(45deg) scaleX(0);
    transition-delay: 1.7s;
}

.animate-on-scroll.visible .connection3 {
    transform: rotate(45deg) scaleX(1);
}

.connection4 {
    top: 65%;
    left: 25%;
    width: 25%;
    transition-delay: 1.9s;
}

.connection5 {
    top: 65%;
    left: 55%;
    width: 25%;
    transition-delay: 2.1s;
}

/* Data particles */
.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.data-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0;
}

.animate-on-scroll.visible .data-particle {
    animation: moveParticle 3s linear infinite;
}

.particle1, .particle2 {
    top: 25%;
    left: 25%;
}

.particle1 {
    animation-delay: 2.3s;
}

.particle2 {
    animation-delay: 2.8s;
}

.particle3, .particle4 {
    top: 25%;
    left: 55%;
}

.particle3 {
    animation-delay: 2.5s;
}

.particle4 {
    animation-delay: 3s;
}

.particle5, .particle6 {
    top: 65%;
    left: 25%;
}

.particle5 {
    animation-delay: 2.7s;
}

.particle6 {
    animation-delay: 3.2s;
}

.particle7, .particle8 {
    top: 65%;
    left: 55%;
}

.particle7 {
    animation-delay: 2.9s;
}

.particle8 {
    animation-delay: 3.4s;
}

@keyframes moveParticle {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(25%);
        opacity: 0;
    }
}

/* Algorithm highlights */
.algorithm-highlights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.highlight {
    /*position: absolute;*/
    padding: 5px 10px;
    background-color: rgba(71, 51, 255, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: bold;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible .highlight {
    opacity: 1;
    transform: translateY(0);
}

.highlight1 {
    top: 40%;
    left: 30%;
    transition-delay: 2.3s;
}

.highlight2 {
    top: 50%;
    left: 60%;
    transition-delay: 2.6s;
}

.highlight3 {
    top: 30%;
    left: 70%;
    transition-delay: 2.9s;
}

/* About Us Animation Styles - New Modern Version */
.animated-about-us-new {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: rgba(249, 250, 252, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

/* Grid layout for cards */
.about-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.about-us-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease;
}

.animate-on-scroll.visible .animated-about-us-new .about-us-card {
    transform: translateY(0);
    opacity: 1;
}

.about-us-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card1 {
    transition-delay: 0.1s;
}

.card2 {
    transition-delay: 0.2s;
}

.card3 {
    transition-delay: 0.3s;
}

.card4 {
    transition-delay: 0.4s;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.card-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.card-content {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Circle with orbiting icons */
.about-us-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.5s;
}

.animate-on-scroll.visible .animated-about-us-new .about-us-circle {
    opacity: 1;
    transform: scale(1);
}

.circle-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.circle-core i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.circle-core span {
    font-size: 0.7rem;
    font-weight: bold;
}

.circle-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.orbit-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow);
    animation: counterRotate 20s linear infinite;
}

@keyframes counterRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.icon1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.icon2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.icon3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.icon4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animated-about-us-new {
        height: auto;
        min-height: 500px;
    }

    .about-us-grid {
        grid-template-columns: 1fr;
    }

    .about-us-circle {
        margin-top: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animated-hero,
    .animated-acquisition,
    .animated-algorithm,
    .animated-about-us {
        height: 300px;
    }

    .chart-container {
        gap: 10px;
    }

    .chart-bar {
        width: 20px;
    }

    .floating-element,
    .acquisition-icon,
    .algorithm-node,
    .member-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .funnel-container,
    .stack-layers {
        width: 90%;
    }

    .team-container {
        gap: 20px;
    }

    .badge {
        padding: 5px 8px;
    }

    .badge span {
        font-size: 0.8rem;
    }
}
