.reason_one_cont {
    display: flex;
    justify-content: space-between;
    width: 100vw;
    background-color: rgb(26, 24, 27);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reason_inner_text {
    padding: 40px;
    /* Content animation */
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out 0.2s forwards;
}

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

.reason_inner_text .biggest_p {
    font-size: 30px;
    color: rgb(232, 225, 219);
    margin-top: 50px;
    transition: color 0.3s ease;
}

.reason_inner_text .colored_p {
    margin-top: 20px;
    color: rgb(23, 93, 131);
    font-size: 22px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.reason_inner_text p {
    font-size: 19px;
    color: rgb(232, 225, 219);
    text-align: left;
    transition: color 0.3s ease;
}

.reason_image_container img {
    width: 400px;
    height: 100%;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    /* Image animation */
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.6s ease-out 0.4s forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.reason_text_container {
    display: flex;
    position: relative;
}

.reason_text_container img {
    z-index: 10;
    width: 150px;
    height: 200px;
    border-radius: 15px;
    /* Floating images animation */
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
    transition: transform 0.3s ease;
}

.reason_text_container .one {
    position: absolute;
    right: -10vw;
    margin-top: 20px;
    animation-delay: 0.6s;
}

.reason_text_container .two {
    position: absolute;
    right: -15vw;
    margin-top: calc(20px + 180px + 10px);
    animation-delay: 0.8s;
}

.reason_text_container .three {
    position: absolute;
    right: -10vw;
    margin-top: calc(20px + 260px + 10px);
    animation-delay: 1s;
}

.reason_line {
    display: none;
}

/* Hover effects */
.reason_inner_text .biggest_p:hover,
.reason_inner_text .colored_p:hover,
.reason_inner_text p:hover {
    color: rgb(36, 151, 214);
}

.reason_text_container img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.reason_image_container img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Responsive transitions */
@media (max-width: 1037px) {
    .reason_line {
        display: block;
        font-size: 70px;
        font-weight: bold;
        color: rgb(232, 225, 219);
        opacity: 0;
        animation: fadeIn 0.6s ease-out 0.3s forwards;
    }

    .reason_one_cont {
        flex-direction: column;
        transition: flex-direction 0.5s ease;
    }

    .reason_image_container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 50px;
        flex-direction: column;
        transition: margin 0.5s ease;
    }

    .reason_image_container img {
        border-radius: 15px;
        transition: border-radius 0.5s ease;
    }

    .reason_text_container .one,
    .reason_text_container .two,
    .reason_text_container .three {
        display: none;
    }
}

@media (max-width: 425px) {
    .reason_image_container img {
        width: 300px;
        height: 400px;
        transition: width 0.5s ease, height 0.5s ease;
    }
}
