/* Graph Section Styles */
.graph-section {
    padding: 100px 20px;
    background-color: #fff;
    /* Slight contrast background */
    text-align: center;
    overflow: hidden;
    position: relative;
    min-height: 50vh;
    /* Ensure enough height for triggering */
}

.graph-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 80px;
    color: #111;
    letter-spacing: -1px;
}

.graph-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 400px;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 0px;
}

/* Initial state of graph bars */
.graph-bar {
    width: 30px;
    background: linear-gradient(180deg, #00c6fb 0%, #005bea 100%);
    border-radius: 6px 6px 0 0;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    box-shadow: 0 0 15px rgba(0, 198, 251, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Animation triggered by active class on parent section */
.graph-section.active .graph-bar {
    opacity: 1;
    animation: riseUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Shine effect */
.graph-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg) translateX(-150%);
    animation: shine 2s infinite;
}

@keyframes riseUp {
    from {
        opacity: 0;
        transform: scaleY(0);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes shine {
    0% {
        transform: skewX(-20deg) translateX(-150%);
    }

    20% {
        transform: skewX(-20deg) translateX(150%);
    }

    100% {
        transform: skewX(-20deg) translateX(150%);
    }
}

/* Sequential Heights (Exponential Growth approx) */
.graph-bar:nth-child(1) {
    height: 5%;
    animation-delay: 0.05s;
}

.graph-bar:nth-child(2) {
    height: 7%;
    animation-delay: 0.1s;
}

.graph-bar:nth-child(3) {
    height: 9%;
    animation-delay: 0.15s;
}

.graph-bar:nth-child(4) {
    height: 12%;
    animation-delay: 0.2s;
}

.graph-bar:nth-child(5) {
    height: 15%;
    animation-delay: 0.25s;
}

.graph-bar:nth-child(6) {
    height: 18%;
    animation-delay: 0.3s;
}

.graph-bar:nth-child(7) {
    height: 22%;
    animation-delay: 0.35s;
}

.graph-bar:nth-child(8) {
    height: 26%;
    animation-delay: 0.4s;
}

.graph-bar:nth-child(9) {
    height: 30%;
    animation-delay: 0.45s;
}

.graph-bar:nth-child(10) {
    height: 35%;
    animation-delay: 0.5s;
}

.graph-bar:nth-child(11) {
    height: 40%;
    animation-delay: 0.55s;
}

.graph-bar:nth-child(12) {
    height: 46%;
    animation-delay: 0.6s;
}

.graph-bar:nth-child(13) {
    height: 52%;
    animation-delay: 0.65s;
}

.graph-bar:nth-child(14) {
    height: 59%;
    animation-delay: 0.7s;
}

.graph-bar:nth-child(15) {
    height: 66%;
    animation-delay: 0.75s;
}

.graph-bar:nth-child(16) {
    height: 74%;
    animation-delay: 0.8s;
}

.graph-bar:nth-child(17) {
    height: 82%;
    animation-delay: 0.85s;
}

.graph-bar:nth-child(18) {
    height: 90%;
    animation-delay: 0.9s;
}

.graph-bar:nth-child(19) {
    height: 95%;
    animation-delay: 0.95s;
}

.graph-bar:nth-child(20) {
    height: 98%;
    animation-delay: 1.0s;
}

.graph-bar:nth-child(21) {
    height: 100%;
    animation-delay: 1.05s;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .graph-container {
        height: 250px;
        gap: 6px;
    }

    .graph-bar {
        width: 12px;
        border-radius: 3px 3px 0 0;
    }
}

/* Generic Scroll Reveal Animation - Ensure it overrides */
.scroll-reveal {
    opacity: 0 !important;
    transform: translateY(60px) !important;
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) !important;
    will-change: opacity, transform;
}

.scroll-reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger delays trigger */
.product_list.scroll-reveal li:nth-child(1) {
    transition-delay: 0.1s;
}

.product_list.scroll-reveal li:nth-child(2) {
    transition-delay: 0.2s;
}

.product_list.scroll-reveal li:nth-child(3) {
    transition-delay: 0.3s;
}

.product_list.scroll-reveal li:nth-child(4) {
    transition-delay: 0.4s;
}

.product_list.scroll-reveal li:nth-child(5) {
    transition-delay: 0.5s;
}