.fancy-card {
width: 260px;
padding: 24px;
border-radius: 16px;
background: linear-gradient(135deg, #6d28d9, #3b82f6);
color: white;
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
cursor: pointer;
position: relative;
overflow: hidden;
}
.fancy-card::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 60%);
z-index: 0;
opacity: 0;
transform: scale(1);
transition: transform 0.4s ease, opacity 0.4s ease;
}
.fancy-card:hover {
transform: translateY(-6px);
box-shadow: 0 12px 40px rgba(93, 113, 255, 0.3);
animation: pulse-glow 1.5s infinite;
}
.fancy-card:hover::before {
opacity: 1;
transform: scale(1.4);
}
@keyframes pulse-glow {
0%, 100% {
box-shadow: 0 12px 40px rgba(93, 113, 255, 0.3);
}
50% {
box-shadow: 0 12px 50px rgba(157, 114, 255, 0.6);
}
}
.fancy-card .icon {
font-size: 36px;
margin-bottom: 12px;
z-index: 1;
position: relative;
transition: transform 0.3s ease;
}
.fancy-card:hover .icon {
transform: scale(1.2) rotate(8deg);
}
.fancy-card .title {
font-size: 20px;
font-weight: 800;
margin-bottom: 8px;
z-index: 1;
position: relative;
}
.fancy-card .desc {
font-size: 14px;
color: #e0e7ff;
z-index: 1;
position: relative;
}