/* ================= CONTAINER ================= */
#features {
    width: 80%;
    margin: auto;
}

/* ================= CARD ================= */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 30px;
    height: 100%;
    background: #fff;
    border: 2px solid rgba(var(--site-main-color-rgb, 29, 78, 137), 0.45);
    box-shadow: 0 6px 20px rgba(29, 78, 137, 0.22);
    transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    cursor: pointer;
}

/* BOTTOM GRADIENT REVEAL — sweeps up on hover */
.product-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 0;
    background: linear-gradient(
        to top,
        rgba(var(--site-main-color-rgb, 29, 78, 137), 0.08) 0%,
        transparent 100%
    );
    transition: height 0.5s ease;
    pointer-events: none;
    z-index: 0;
}
.product-card:hover::before { height: 100%; }

/* SHIMMER SWEEP — diagonal light flash on hover */
.product-card::after {
    content: '';
    position: absolute;
    top: -60%; left: -75%;
    width: 50%; height: 220%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 70%
    );
    transform: skewX(-15deg) translateX(0);
    transition: transform 0.65s ease;
    pointer-events: none;
    z-index: 3;
}
.product-card:hover::after {
    transform: skewX(-15deg) translateX(400%);
}

/* HOVER LIFT + GLOW */
.product-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 24px 50px rgba(var(--site-main-color-rgb, 29, 78, 137), 0.28);
    border-color: rgba(var(--site-main-color-rgb, 29, 78, 137), 0.7);
    z-index: 10;
}

/* CONTENT */
.product-top {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ICON CIRCLE */
.product-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(var(--site-main-color-rgb, 29, 78, 137), 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* ICON STYLE */
.product-icon i {
    font-size: 36px;
    color: var(--site-main-color-dark, #1e0a49);
    transition: color 0.4s ease;
}

/* ICON HOVER — little darker */
.product-card:hover .product-icon {
    background: rgba(var(--site-main-color-rgb, 29, 78, 137), 0.75);
}

/* ICON BOUNCE KEYFRAME */
@keyframes fc-icon-bounce {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.28) translateY(-6px) rotate(-8deg); }
    55%  { transform: scale(1.15) translateY(3px) rotate(5deg); }
    75%  { transform: scale(1.22) translateY(-3px) rotate(-3deg); }
    100% { transform: scale(1.15); }
}

/* ICON GLOW PULSE after bounce settles */
@keyframes fc-icon-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--site-main-color-rgb, 29, 78, 137), 0); }
    50%       { box-shadow: 0 0 0 8px rgba(var(--site-main-color-rgb, 29, 78, 137), 0.18); }
}

/* HOVER EFFECT — bounce + glow */
.product-card:hover .product-icon {
    background: rgba(var(--site-main-color-rgb, 29, 78, 137), 0.75);
    animation: fc-icon-bounce 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards,
               fc-icon-glow 1.2s ease 0.55s infinite;
}

.product-card:hover .product-icon i {
    color: #fff;
}

/* TITLE */
.product-top h5 {
    color: #333;
    margin-bottom: 0;
}

/* BUTTON */
.product-btn {
    display: inline-block;
    background: var(--site-main-color-dark, #1e0a49);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.product-btn:hover {
    background: var(--site-main-color-dark, #0b294d);
    transform: translateX(6px);
    color: #fff;
}

/* OUTLINE BUTTON */
.product-btn-outline {
    border: 2px solid var(--site-main-color-dark, #1e0a49);
    color: var(--site-main-color-dark, #1e0a49);
    background: transparent;
    padding: 10px 26px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.product-btn-outline:hover {
    background: var(--site-main-color-dark, #1e0a49);
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #features {
        width: 95%;
    }
}
