.deck {
    position: relative;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
    border: 2px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(10px);
}

.deck::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #1e3a8a, #0f172a, #1e293b, #334155);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.3;
}

.deck:hover::before {
    opacity: 0.5;
}

.deck:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(30, 58, 138, 0.3),
                0 0 30px rgba(15, 23, 42, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced skill circles for deck cards */
.deck .skill-circle svg {
    filter: drop-shadow(0 0 10px rgba(30, 58, 138, 0.3));
    transition: all 0.3s ease;
}

.deck .skill-circle:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(30, 58, 138, 0.5));
}

.deck .skill-circle:hover + p {
    color: #3b82f6 !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Add floating particles effect */
.deck::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 50%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatParticle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.2);
    }
}

/* Gear animations */
.gear-slow {
    animation: rotate-slow 20s linear infinite;
    transition: animation-duration 3s ease;
}

.gear-top {
    animation-direction: normal;
}

.gear-bottom {
    animation-direction: reverse;
}

.gear-slow:hover {
    animation-duration: 2s;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}