.techno-activities {
    background: linear-gradient(180deg, #f8f9fa, #ffffff);
    position: relative;
}

/* section title */

.activities-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1b1b1b;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.activities-subtitle {
    max-width: 750px;
    margin: auto;
    color: #6c757d;
    font-size: 1.05rem;
}

/* card */

.activity-box {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    text-align: left;
    transition: all 0.45s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* soft glass highlight */

.activity-box::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -40%;
    width: 80%;
    height: 350%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: 0.7s;
    z-index: 4;
}

.activity-box:hover::before {
    left: 120%;
}

/* icon */

.activity-box i {
    font-size: 2.5rem;
    color: #f7931e;
    margin-bottom: 18px;
    display: inline-block;
    transition: 0.4s;
    position: relative;
    z-index: 5;
}

/* title */

.activity-box h5 {
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f1f1f;
    font-size: 1.18rem;
    position: relative;
    z-index: 5;
    transition: 0.35s;
}

/* text */

.activity-box p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
    position: relative;
    z-index: 5;
    transition: 0.35s;
}

/* hover card movement */

.activity-box:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.12);
}

/* floating image */

.activity-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.5s ease;
}

/* image */

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transform: scale(1.15);
    transition: transform 1s ease;
}

/* overlay */

.activity-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.75)
    );
}

/* reveal image */

.activity-box:hover .activity-image {
    opacity: 1;
}

/* image zoom animation */

.activity-box:hover .activity-image img {
    transform: scale(1);
}

/* text color when hover */

.activity-box:hover h5 {
    color: #ffffff;
}

.activity-box:hover p {
    color: #e6e6e6;
}

.activity-box:hover i {
    color: #ffffff;
    transform: scale(1.1) rotate(-4deg);
}

/* icon glow */

.activity-box:hover i::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 147, 30, 0.35),
        transparent 70%
    );
    z-index: -1;
}

/* responsive */

@media (max-width: 768px) {
    .activities-title {
        font-size: 2.2rem;
    }

    .activity-box {
        padding: 30px 24px;
    }
}
