.about-sec-modern {
    background: linear-gradient(to top right, #2b0d0e, #1a2129);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Glow on text */
.text-glow h2, .text-glow p {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Animate image hover */
.image-box {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}
.image-box img {
    transition: transform 1s ease;
}
.image-box:hover img {
    transform: scale(1.05);
}

/* Bubble background animation */
.bubble-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.bubble {
    position: absolute;
    bottom: -100px;
    background: #7DDA58;
    border-radius: 50%;
    animation: rise infinite ease-in;
    filter: blur(2px);
}

/* Generate bubble randomness */
.bubble:nth-child(1) { left: 5%; width: 20px; height: 20px; animation-duration: 15s; }
.bubble:nth-child(2) { left: 10%; width: 40px; height: 40px; animation-duration: 22s; }
.bubble:nth-child(3) { left: 20%; width: 30px; height: 30px; animation-duration: 20s; }
.bubble:nth-child(4) { left: 25%; width: 60px; height: 60px; animation-duration: 24s; }
.bubble:nth-child(5) { left: 35%; width: 15px; height: 15px; animation-duration: 19s; }
.bubble:nth-child(6) { left: 40%; width: 25px; height: 25px; animation-duration: 21s; }
.bubble:nth-child(7) { left: 50%; width: 35px; height: 35px; animation-duration: 26s; }
.bubble:nth-child(8) { left: 60%; width: 50px; height: 50px; animation-duration: 23s; }
.bubble:nth-child(9) { left: 70%; width: 22px; height: 22px; animation-duration: 17s; }
.bubble:nth-child(10) { left: 80%; width: 45px; height: 45px; animation-duration: 25s; }
/* Repeat for all bubbles up to 20... */

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-1200px) scale(1.2);
        opacity: 0;
    }
}

/* Fade and zoom on load */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
}
.animate-img {
    opacity: 0;
    animation: zoomIn 1.2s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
