/* Realistic Interest Click Animations */
/* CSS animations for thematic interest representations */

/* Enhanced Neon Glow Effects for Interest Cards */
.interest-card {
    position: relative;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 15px rgba(0, 243, 255, 0.1),
        0 0 30px rgba(0, 243, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.interest-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 243, 255, 0.6);
    box-shadow: 
        0 8px 30px rgba(0, 243, 255, 0.3),
        0 0 50px rgba(0, 243, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.interest-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 243, 255, 0.3), 
        rgba(255, 0, 255, 0.3), 
        rgba(0, 255, 0, 0.3), 
        rgba(255, 255, 0, 0.3));
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interest-card:hover::before {
    opacity: 1;
}

/* Base animation setup */
.interest-icon {
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    user-select: none;
    transform-style: preserve-3d;
    z-index: 2;
}

.interest-icon i {
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px currentColor);
}

.interest-icon:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px currentColor);
}

/* Override hover effects during animations */
.interest-icon.animating:hover i {
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

.interest-icon.animating {
    pointer-events: auto !important;
}

/* Ensure animations work regardless of hover state */
.interest-card.game-mode .interest-icon:hover i,
.interest-card.design-mode .interest-icon:hover i,
.interest-card.mobile-mode .interest-icon:hover i,
.interest-card.git-mode .interest-icon:hover i,
.interest-card.web-mode .interest-icon:hover i {
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

/* Additional override for any hover states during card mode animations */
.interest-card.game-mode .interest-icon:hover,
.interest-card.design-mode .interest-icon:hover,
.interest-card.mobile-mode .interest-icon:hover,
.interest-card.git-mode .interest-icon:hover,
.interest-card.web-mode .interest-icon:hover {
    transform: none !important;
}

/* Force animation styles to take precedence */
.interest-icon.animating,
.interest-icon.animating:hover {
    transform: none !important;
}

/* Enhanced Animation state classes with better neon effects */
.interest-card.game-mode {
    background: radial-gradient(circle at center, rgba(0,255,0,0.15), rgba(0,255,0,0.05), transparent);
    border-color: rgba(0,255,0,0.6);
    box-shadow: 
        0 0 30px rgba(0,255,0,0.4),
        0 0 60px rgba(0,255,0,0.2),
        inset 0 0 30px rgba(0,255,0,0.1);
}

.interest-card.design-mode {
    background: radial-gradient(circle at center, rgba(255,0,255,0.15), rgba(255,0,255,0.05), transparent);
    border-color: rgba(255,0,255,0.6);
    box-shadow: 
        0 0 30px rgba(255,0,255,0.4),
        0 0 60px rgba(255,0,255,0.2),
        inset 0 0 30px rgba(255,0,255,0.1);
}

.interest-card.mobile-mode {
    background: radial-gradient(circle at center, rgba(0,255,255,0.15), rgba(0,255,255,0.05), transparent);
    border-color: rgba(0,255,255,0.6);
    box-shadow: 
        0 0 30px rgba(0,255,255,0.4),
        0 0 60px rgba(0,255,255,0.2),
        inset 0 0 30px rgba(0,255,255,0.1);
}

.interest-card.git-mode {
    background: radial-gradient(circle at center, rgba(255,255,0,0.15), rgba(255,255,0,0.05), transparent);
    border-color: rgba(255,255,0,0.6);
    box-shadow: 
        0 0 30px rgba(255,255,0,0.4),
        0 0 60px rgba(255,255,0,0.2),
        inset 0 0 30px rgba(255,255,0,0.1);
}

.interest-card.web-mode {
    background: radial-gradient(circle at center, rgba(0,255,136,0.2), rgba(0,255,136,0.05), transparent);
    border-color: rgba(0,255,136,0.6);
    box-shadow: 
        0 0 30px rgba(0,255,136,0.4),
        0 0 60px rgba(0,255,136,0.2),
        inset 0 0 30px rgba(0,255,136,0.1);
    animation: webGlow 2s ease-in-out infinite;
}

/* Gaming animations */
@keyframes gameFloat {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) scale(0.8);
        opacity: 0;
    }
}

/* Design animations */
@keyframes wireframeDraw {
    0% {
        border-color: transparent;
        background: transparent;
    }
    50% {
        border-color: #00ffff;
        background: linear-gradient(45deg, transparent 40%, rgba(0,255,255,0.2) 50%, transparent 60%);
    }
    100% {
        border-color: #00ffff;
        background: linear-gradient(45deg, transparent 40%, rgba(0,255,255,0.1) 50%, transparent 60%);
    }
}

@keyframes swatchAppear {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.8;
    }
}

@keyframes protoAppear {
    0% {
        transform: scale(0) translateY(20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 0.9;
    }
}

/* Mobile development animations */
@keyframes typeText {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0.8;
    }
}

@keyframes devicePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px #00ffff;
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px #00ffff;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px #00ffff;
    }
}

@keyframes storeUpload {
    0% {
        transform: translateX(-50%) translateY(0) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) translateY(-10px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-20px) scale(0.8);
        opacity: 0;
    }
}

/* Git workflow animations */
@keyframes terminalType {
    0% {
        width: 0;
        opacity: 0;
        background: rgba(0,0,0,0.8);
    }
    50% {
        opacity: 1;
        background: rgba(0,0,0,0.6);
    }
    100% {
        width: 100%;
        opacity: 0.9;
        background: transparent;
    }
}

@keyframes branchGrow {
    0% {
        width: 0;
        opacity: 0;
    }
    30% {
        width: 30%;
        opacity: 1;
    }
    60% {
        width: 60%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0.8;
    }
}

@keyframes commitAppear {
    0% {
        transform: scale(0);
        opacity: 0;
        box-shadow: 0 0 0 #ffff00;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 10px #ffff00;
    }
    100% {
        transform: scale(1);    }
}

/* Web Development animations */
@keyframes codeAppear {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateX(0) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes buildStepAppear {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
        color: #888;
    }
    50% {
        opacity: 1;
        transform: translateY(-2px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes deploymentRise {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.3) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.9) rotate(360deg);
    }
}

@keyframes liveIndicatorPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        text-shadow: 0 0 5px currentColor;
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.4);
        text-shadow: 0 0 20px currentColor;
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        text-shadow: 0 0 15px currentColor;
    }
}

@keyframes binaryFloat {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.8) rotate(360deg);
    }
}

@keyframes webGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0,255,136,0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0,255,136,0.6);
    }
}

/* Enhanced hover effects - Removed to prevent conflict with cyberpunk styles */
/* Cyberpunk hover effects are handled in interests-cyberpunk.css */

.interest-icon:active {
    transform: scale(0.95);
}

/* Accessibility - respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .interest-icon,
    .interest-card {
        animation: none !important;
        transition: none !important;
    }
      /* Reduced motion hover effects - Simplified to prevent conflicts */
    .interest-icon:hover {
        filter: brightness(1.1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    @keyframes gameFloat {
        0%, 100% {
            transform: scale(0.8);
        }
        50% {
            transform: scale(1);
        }
    }
    
    @keyframes swatchAppear {
        0%, 100% {
            transform: scale(0.8);
        }
        50% {
            transform: scale(1);
        }
    }
    
    @keyframes protoAppear {
        0%, 100% {
            transform: scale(0.8);
        }
        50% {
            transform: scale(1);
        }
    }
    
    @keyframes storeUpload {
        0%, 100% {
            transform: scale(0.8);
        }
        50% {
            transform: scale(1);
        }
    }
      @keyframes commitAppear {
        0%, 100% {
            transform: scale(0.8);
        }
        50% {
            transform: scale(1);
        }
    }
  
      /* Removed hover transform to prevent conflict with cyberpunk styles */
}