﻿body {
    font-family: 'Shabnam', sans-serif;
    overflow-x: hidden;
}

.section-title {
    font-weight: bold;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards;
}

.benefit-box, .use-case-box, .step-box {
    transition: 0.4s ease;
    background-color: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

    .benefit-box:hover, .use-case-box:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
    }

    .benefit-box i, .use-case-box i {
        transition: transform 0.3s ease;
    }

    .benefit-box:hover i, .use-case-box:hover i {
        transform: scale(1.2) rotate(5deg);
    }

.step-circle {
    width: 50px;
    height: 50px;
    background: #7852A9;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 10px;
    font-weight: bold;
    animation: popIn 0.6s ease-out forwards;
    opacity: 0;
}

.icon-item {
    transition: 0.4s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 1s forwards;
}

    .icon-item i {
        margin-bottom: 8px;
        animation: bounce 2s infinite;
    }

.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #7852A9;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 9999;
    transition: 0.3s ease;
}

    .back-to-top.active {
        display: block;
        animation: zoomIn 0.4s ease;
    }

/* Animation Keyframes */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
   to {
        opacity: 1;
        transform: scale(1);
    }

    from {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animation delays for smooth cascade */
.row > div:nth-child(1) .benefit-box,
.row > div:nth-child(1) .use-case-box,
.row > div:nth-child(1) .step-box {
    animation-delay: 0.2s;
}

.row > div:nth-child(2) .benefit-box,
.row > div:nth-child(2) .use-case-box,
.row > div:nth-child(2) .step-box {
    animation-delay: 0.4s;
}

.row > div:nth-child(3) .benefit-box,
.row > div:nth-child(3) .use-case-box,
.row > div:nth-child(3) .step-box {
    animation-delay: 0.6s;
}

.row > div:nth-child(4) .benefit-box,
.row > div:nth-child(4) .use-case-box,
.row > div:nth-child(4) .step-box {
    animation-delay: 0.8s;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-alt));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 30px rgba(106, 74, 156, 0.6);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(20px);
}
