.features-section {
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    justify-items: center;
}

.card {
    background: #fff;
    border-radius: 14px;
    width: 260px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1.5px solid #222;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    cursor: pointer;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.card-long {
    display: none;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e9e9e9;
    padding: 0 10px;
    z-index: 3;
    transition: all 0.3s ease;
}

.card:hover .card-long {
    display: block;
    padding: 5px 14px;
    font-size: 0.90rem;
    line-height: 1.45;
}

.card:hover {
    transform: scale(1.25) translateY(-20px);
    background: linear-gradient(145deg, #064d3d, #10755a);
    animation: rainbowBorder 3s linear infinite;
    border: none;
}

.card:hover .card-title {
    display: none;
}

@keyframes rainbowBorder {
    0% { box-shadow: 0 0 15px 2px #ff0000; }
    20% { box-shadow: 0 0 15px 2px #ff8800; }
    40% { box-shadow: 0 0 15px 2px #ffee00; }
    60% { box-shadow: 0 0 15px 2px #00ff55; }
    80% { box-shadow: 0 0 15px 2px #0088ff; }
    100% { box-shadow: 0 0 15px 2px #ff00aa; }
}

@media (max-width: 1100px) {
    .features-row {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
}

@media (max-width: 700px) {
    .features-row {
        grid-template-columns: 1fr;
    }

    .card {
        width: 80%;
        height: 160px;
    }

    .card:hover {
        transform: scale(1.15) translateY(-15px);
    }
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #a1a1a1);
    color: #000000;
    padding: 80px 20px;
    border-radius: 20px;
    margin: 80px auto;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-section:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 25px;
    color: #000000;
}

.cta-btnx {
    position: relative;
    display: inline-block;
    background: #0f3b2e;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    box-shadow: 0 5px 15px rgba(15, 59, 46, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
}

.cta-btnx:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(15, 59, 46, 0.8), 0 0 40px rgba(15, 59, 46, 0.4);
}

.cta-btnx::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: conic-gradient(
        from 0deg,
        #ff0040,
        #ff9900,
        #ffee00,
        #00ff80,
        #00bfff,
        #ff00ff,
        #ff0040
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

@keyframes border-race {
    0% { transform: rotate(0deg); box-shadow: 0 0 12px #ff0040; }
    25% { transform: rotate(90deg); box-shadow: 0 0 12px #ffee00; }
    50% { transform: rotate(180deg); box-shadow: 0 0 12px #00ff80; }
    75% { transform: rotate(270deg); box-shadow: 0 0 12px #00bfff; }
    100% { transform: rotate(360deg); box-shadow: 0 0 12px #ff00ff; }
}

.cta-btnx:hover::after {
    opacity: 1;
    animation: border-race 3s linear infinite;
    animation-delay: 2s;
}
