/* ===== KEGIATAN ICONS SUPER KEREN ===== */

/* Card Icon Wrapper - Container untuk icon */
.card-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Icon - Icon utama dengan efek 3D */
.card-icon {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.15),
        0 5px 15px rgba(0,0,0,0.1),
        inset 0 -5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.card-icon i {
    font-size: 48px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated Ring Around Icon */
.card-icon::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    border: 3px solid currentColor;
    opacity: 0.3;
    animation: pulseRing 2s ease-in-out infinite;
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 2px dashed currentColor;
    opacity: 0.2;
    animation: rotateRing 8s linear infinite;
}

/* Hover Effects */
.kegiatan-card-modern:hover .card-icon {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.2),
        0 10px 20px rgba(0,0,0,0.15),
        inset 0 -5px 20px rgba(0,0,0,0.08);
}

.kegiatan-card-modern:hover .card-icon i {
    transform: scale(1.1) rotate(5deg);
}

/* Theme Colors for Icons */
.theme-blue .card-icon {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.theme-green .card-icon {
    background: linear-gradient(135deg, #27AE60, #229954);
    color: white;
}

.theme-purple .card-icon {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    color: white;
}

.theme-gold .card-icon {
    background: linear-gradient(135deg, #F39C12, #D68910);
    color: white;
}

.theme-orange .card-icon {
    background: linear-gradient(135deg, #E67E22, #CA6F1E);
    color: white;
}

.theme-red .card-icon {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: white;
}

.theme-teal .card-icon {
    background: linear-gradient(135deg, #1ABC9C, #16A085);
    color: white;
}

.theme-indigo .card-icon {
    background: linear-gradient(135deg, #5DADE2, #3498DB);
    color: white;
}

/* Floating Particles Around Icon */
.card-icon-wrapper::before,
.card-icon-wrapper::after {
    content: '✨';
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: floatParticle 3s ease-in-out infinite;
}

.card-icon-wrapper::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-icon-wrapper::after {
    bottom: 10%;
    right: 10%;
    animation-delay: 1.5s;
}

.kegiatan-card-modern:hover .card-icon-wrapper::before,
.kegiatan-card-modern:hover .card-icon-wrapper::after {
    opacity: 1;
}

/* Glow Effect on Hover */
.kegiatan-card-modern:hover .card-icon {
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.2),
        0 10px 20px rgba(0,0,0,0.15),
        0 0 30px currentColor,
        0 0 60px currentColor;
}

/* Featured Card Special Icon Effect */
.featured-card .card-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    animation: featuredPulse 2s ease-in-out infinite;
}

.featured-card .card-icon::before {
    border-color: #FFD700;
    animation: pulseRing 1.5s ease-in-out infinite;
}

/* Card Number Styling */
.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: currentColor;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 3;
}

.kegiatan-card-modern:hover .card-number {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Card Tag with Icon */
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.card-tag i {
    font-size: 14px;
}

.kegiatan-card-modern:hover .card-tag {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes pulseRing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
}

@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 
            0 20px 40px rgba(255, 215, 0, 0.3),
            0 10px 20px rgba(255, 215, 0, 0.2),
            0 0 30px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 
            0 20px 40px rgba(255, 215, 0, 0.5),
            0 10px 20px rgba(255, 215, 0, 0.3),
            0 0 50px rgba(255, 215, 0, 0.6);
    }
}

/* Shine Effect on Icon */
.card-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        transparent 40%,
        rgba(255,255,255,0.3) 50%,
        transparent 60%,
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* 3D Depth Effect */
.kegiatan-card-modern {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-icon-wrapper {
    transform-style: preserve-3d;
}

/* Responsive */
@media (max-width: 768px) {
    .card-icon-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .card-icon {
        width: 80px;
        height: 80px;
    }
    
    .card-icon i {
        font-size: 36px;
    }
    
    .card-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .card-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
    }
    
    .card-icon i {
        font-size: 32px;
    }
}

/* Additional Icon Hover Effects */
.theme-blue:hover .card-icon i {
    animation: bounce 0.6s ease;
}

.theme-green:hover .card-icon i {
    animation: heartbeat 0.8s ease;
}

.theme-purple:hover .card-icon i {
    animation: swing 0.6s ease;
}

.theme-gold:hover .card-icon i {
    animation: tada 0.8s ease;
}

.theme-orange:hover .card-icon i {
    animation: jello 0.8s ease;
}

.theme-red:hover .card-icon i {
    animation: rubberBand 0.8s ease;
}

.theme-teal:hover .card-icon i {
    animation: wobble 0.8s ease;
}

.theme-indigo:hover .card-icon i {
    animation: flip 0.8s ease;
}

/* Icon Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

@keyframes tada {
    0%, 100% { transform: scale(1) rotate(0deg); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
}

@keyframes jello {
    0%, 100% { transform: skewX(0deg) skewY(0deg); }
    30% { transform: skewX(25deg) skewY(25deg); }
    40% { transform: skewX(-15deg) skewY(-15deg); }
    50% { transform: skewX(15deg) skewY(15deg); }
    65% { transform: skewX(-5deg) skewY(-5deg); }
    75% { transform: skewX(5deg) skewY(5deg); }
}

@keyframes rubberBand {
    0%, 100% { transform: scale(1); }
    30% { transform: scaleX(1.25) scaleY(0.75); }
    40% { transform: scaleX(0.75) scaleY(1.25); }
    50% { transform: scaleX(1.15) scaleY(0.85); }
    65% { transform: scaleX(0.95) scaleY(1.05); }
    75% { transform: scaleX(1.05) scaleY(0.95); }
}

@keyframes wobble {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-25px) rotate(-5deg); }
    30% { transform: translateX(20px) rotate(3deg); }
    45% { transform: translateX(-15px) rotate(-3deg); }
    60% { transform: translateX(10px) rotate(2deg); }
    75% { transform: translateX(-5px) rotate(-1deg); }
}

@keyframes flip {
    0% { transform: perspective(400px) rotateY(0); }
    40% { transform: perspective(400px) rotateY(170deg); }
    50% { transform: perspective(400px) rotateY(190deg) scale(1); }
    80% { transform: perspective(400px) rotateY(360deg) scale(0.95); }
    100% { transform: perspective(400px) rotateY(360deg) scale(1); }
}

/* Sparkle Stars Effect */
.card-icon-wrapper {
    position: relative;
}

.card-icon-wrapper .sparkle-star {
    position: absolute;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    animation: sparkleFloat 2s ease-out infinite;
}

.card-icon-wrapper .sparkle-star:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card-icon-wrapper .sparkle-star:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: 0.5s;
}

.card-icon-wrapper .sparkle-star:nth-child(3) {
    bottom: 0;
    left: 0;
    animation-delay: 1s;
}

.card-icon-wrapper .sparkle-star:nth-child(4) {
    bottom: 0;
    right: 0;
    animation-delay: 1.5s;
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* Glow Pulse for Featured Card */
.featured-card .card-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.3), transparent);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}
