﻿

/* Container for the entire content */
.blockcain-content-2 {
    position: relative;
    display: flex;
}

/* Add keyframe animations at the bottom of your CSS */
@keyframes imageFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.2);
        /* Slight zoom effect */
    }

    100% {
        opacity: 1;
        transform: scale(1);
        /* Normal size */
    }
}

@keyframes overlaySlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
        /* Start slightly lower */
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        /* Original position */
    }
}

/* Apply the animations to the respective elements */
.background-image img {
    animation: imageFadeIn 1.5s ease-in-out forwards;
}

.hover-content-2 {
    animation: overlaySlideIn 1.5s ease-in-out 0.5s forwards;
    opacity: 0;
    /* Start hidden and animate in */
}

/* Unique item containers */
.unique-item-container {
    cursor: pointer;
    margin-bottom: 20px;
}

/* Display container for the dynamic content */
.content-display-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    background-color: transparent;
}

/* Background image container */
.background-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 20px;
}

    /* Image inside the background */
    .background-image img {
        width: 100%;
        height: auto;
        transition: all 0.5s ease-in-out;
        border-radius: 20px;
        border: 1px solid #fff;
        animation: none;
    }

/* Blur effect for the image on hover */
.unique-item-container:hover ~ .content-display-container .background-image img {
    filter: blur(8px);
    /* Blur effect */
    opacity: 0.5;
    /* Slight transparency */
}

/* Hover content container */
.hover-content-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark overlay background */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
}

/* Show content with overlay on hover */
.unique-item-container:hover ~ .content-display-container .hover-content-2 {
    opacity: 1;
}

/* Dynamic text styling */
.dynamic-text {
    font-size: 22px;
    color: #fff;
    max-width: 80%;
    text-align: left;
    line-height: 1.5;
    padding: 15px;
    border-left: 3px solid #fff;
}

/* Icon Container - Positioned top right */
.icon-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 70px;
    height: 70px;
    z-index: 3;
}

/* Icon Styling */
.content-icon {
    width: 100% !important;
    height: 100% !important;
    transition: all 0.3s ease !important;
    background-color: #fff;
    border-radius: 74px !important;
    padding: 7px;
}

/* Icon Hover Effect */
.icon-container:hover .content-icon {
    fill: #ffcc00;
    /* Change the color on hover */
    filter: drop-shadow(0px 0px 10px #ffcc00);
    /* Optional: Glow effect */
}

/* Additional Smooth Transitions */
.background-image img {
    transition: opacity 0.7s ease, filter 0.7s ease;
}

.hover-content-2 {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .hover-content-2.active {
        opacity: 1;
    }

/* General container styles */
.blockcain-content-2 {
    position: relative;
    display: flex;
}

/* Margin for unique items */
.unique-item-container {
    cursor: pointer;
    margin-bottom: 20px;
}

/* Container for Vertical Layout */
.mobile-flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin: 20px;
}

/* Main Step Styles */
.mobile-step {
    position: relative;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    padding: 5px;
}

/* Sub-Step Styles */
.mobile-sub-step {
    position: relative;
    border: 1px solid #ccc;
    background-color: #e5e5e5;
    margin-left: 220px;
}

/* Step and Sub-Step Common Styles */
.mobile-step, .mobile-sub-step {
    display: inline-grid;
    justify-items: center;
    text-align: center;
    width: 100px;
    font-size: 10px;
    padding: 10px 5px;
    border-radius: 20px;
    background-image: linear-gradient(to top right, #180151 0%, #680093 90%, #36054f 100%);
    color: #fff;
    text-transform: uppercase;
    line-height: 15px;
}

    /* Hover effect for smooth shadow on step boxes */
    .mobile-step:hover, .mobile-sub-step:hover {
        border: 1px solid #ffffff;
    }

/* General Arrow Styles */
.mobile-arrow {
    position: absolute;
    width: 1px;
    background-color: #fff;
    opacity: 0;
    height: 0; /* Start height for animation */
    transition: height 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
}

/* Long Animated Line from Step 1.1 to Step 4.1 */
.mobile-arrow-long {
    max-height: calc(100% + 430px); /* Adjust to reach Step 4.1 */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* Hover to trigger height expansion */
.mobile-step-1-1:hover .mobile-arrow-long {
    height: calc(100% + 430px);
    opacity: 1;
}

/* Regular Vertical Arrow */
.mobile-arrow-vertical {
    max-height: 40px;
    width: 1px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* Wider line for Step 4 to Step 5 */
.mobile-arrow-to-step-5 {
    max-height: calc(100% + 150px); /* Wider arrow from Step 4 to Step 5 */
    width: 1px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-arrow-to-step-2 {
    max-height: calc(100% + 80px);
    width: 1px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-arrow-to-step-41 {
    max-width: calc(100% + 80px);
    height: 1px;
    left: 100%;
    top: 60%;
    transform: translateY(-50%);
}

.mobile-arrow-vertical-1 {
    max-height: calc(100% + 80px);
    left: 145%;
    top: 60%;
    transform: translateX(-50%);
}

.mobile-arrow-to-step-42 {
    max-height: calc(100% + 15px);
    width: 1px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-arrow-vertical-gp {
    max-height: calc(100% + 580px);
    width: 1px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-arrow-to-step-42-5 {
    max-width: calc(100% + 80px);
    height: 1px;
    left: 25%;
    top: 200%;
    transform: translateX(-50%);
}

.mobile-flow-img-fluid {
    width: 40%;
    margin-bottom: 8px;
    filter: invert(1);
}

/* Show all arrows with consistent animation */
.mobile-step-1:hover .mobile-arrow-horizontal,
.mobile-step-1:hover .mobile-arrow-vertical,
.mobile-step-2:hover .mobile-arrow-vertical,
.mobile-step-3:hover .mobile-arrow-vertical,
.mobile-step-4:hover .mobile-arrow-vertical,
.mobile-step-4-1:hover .mobile-arrow-vertical,
.mobile-step-4:hover .mobile-arrow-to-step-5,
.mobile-step-4-2:hover .mobile-arrow-to-step-42 {
    height: 100%;
    opacity: 1;
}

.mobile-step-1:hover .mobile-arrow-to-step-2 {
    height: 180%;
    opacity: 1;
}

.mobile-step-4-2:hover .mobile-arrow-to-step-42-5 {
    width: 50%;
    opacity: 1;
}

.mobile-step-1:hover .mobile-arrow-to-step-41 {
    width: 45%;
    opacity: 1;
}

.mobile-step-1:hover .mobile-arrow-vertical-1 {
    height: 180%;
    opacity: 1;
}

.mobile-step-4:hover .mobile-arrow-to-step-41 {
    width: 45%;
    opacity: 1;
}

.mobile-step-4:hover .mobile-arrow-vertical-1 {
    height: 180%;
    opacity: 1;
}

.mobile-step-4:hover .mobile-arrow-vertical-gp {
    height: 300%;
    opacity: 1;
}
.mobile-flow-container{
    display:none;
}

@media (max-width: 840px) {
    .flow-container{
        display:none;
    }
    .mobile-flow-container {
        display: flex;
    }
}


    /* Mobile Responsive Styles */
    @media (max-width: 768px) {
        .blockcain-content-2 {
            flex-direction: column;
            align-items: center;
        }

        /* Unique item containers should take full width on mobile */
        .unique-item-container {
            width: 100%;
        }

        /* Dynamic content should display full-width */
        .content-display-container {
            flex-basis: 48%;
            justify-content: center;
            padding: 10px;
        }

        /* Reduce padding for mobile */
        .background-image {
            padding: 10px;
            align-content: end;
        }

            /* Reduce image size for mobile */
            .background-image img {
                width: 100%;
                height: auto;
            }

        /* Adjust dynamic text for mobile */
        .dynamic-text {
            font-size: 18px;
            max-width: 100%;
        }

        /* Adjust icon size for mobile */
        .icon-container {
            width: 50px;
            height: 50px;
        }

        /* Adjust icon size for mobile */
        .content-icon {
            width: 100%;
            height: 100%;
        }

        .hover-content-2 {
            height: 95%;
            top: 10px;
            margin: 0px 25px 0px 10px;
            width: 100%;
            left: -10px;
            border-radius: 15px;
        }

        .hero__btn {
            height: 50px;
            font-size: 16px;
        }
    }

    @media (max-width: 480px) {

        /* Further reduce padding for smaller screens */
        .background-image {
            padding: 5px;
            align-content: end;
        }

        /* Dynamic text font-size for very small screens */
        .dynamic-text {
            font-size: 12px;
        }

        /* Further reduce icon size */
        .icon-container {
            width: 50px;
            top: 27px;
            height: 50px;
        }
    }

