/* Animation Effects Styles */

/* Cursor for typewriter effect */
.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Scroll reveal animation */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Project card highlight effect */
.project-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-highlight {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-click {
    animation: card-pulse 0.3s ease;
}

@keyframes card-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Skill progress bar */
.skill-tag {
    position: relative;
    overflow: hidden;
}

.skill-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(to right, var(--accent), var(--primary-light));
    transition: width 1s ease-in-out;
}

.skill-tag::after {
    content: attr(data-progress);
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.7em;
    opacity: 0.7;
}

/* Matrix controls */
.matrix-controls {
    position: absolute;
    bottom: 80px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.matrix-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--matrix-green);
    color: var(--matrix-green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.matrix-controls button:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: scale(1.1);
}

.matrix-controls button.active {
    background: var(--matrix-green);
    color: var(--matrix-bg);
}

/* Matrix ripple effect */
.matrix-ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--matrix-green);
    transform: translate(-50%, -50%);
    animation: ripple 1s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        border-width: 1px;
    }
}