/* Hover Effects */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-light);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Button Animations */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Card Animations */
.card {
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--purple-primary), transparent);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 1;
}

/* Modal Animations */
.modal {
    transition: opacity 0.3s ease;
}

.modal-content {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Enhance card hover effect */
.card::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.1),
        transparent
    );
}

/* Add subtle pulse to buttons */
@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.btn-primary {
    animation: buttonPulse 2s infinite;
}

/* Enhance card entrance animation */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card {
    animation: cardEntrance 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Sidebar link hover effect */
.nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    background: var(--purple-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 6px;
}

/* Card hover glow effect */
.card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, 
        var(--purple-primary),
        transparent,
        var(--purple-light)
    );
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 0.5;
}

/* Button hover animation */
.card-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg,
        var(--purple-light),
        var(--purple-primary),
        var(--purple-dark)
    );
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-btn:hover::before {
    opacity: 1;
}

/* Utilities and Credits Page Animations */
.animate-section {
    opacity: 0;
    transform: translateY(20px);
    animation: sectionEntrance 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardEntrance 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Stagger the card animations */
.animate-card:nth-child(1) { animation-delay: 0.1s; }
.animate-card:nth-child(2) { animation-delay: 0.2s; }
.animate-card:nth-child(3) { animation-delay: 0.3s; }
.animate-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes sectionEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover animations for utilities and credits */
.mod-card:hover,
.credit-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px -10px var(--purple-primary);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
} 