/* Animations for website elements - Optimized */

/* Glow effect for elements */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(78, 205, 196, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
    }
}

/* Hover animations for interactive elements */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
}

/* Pulse animation for highlights */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Float animation for elements */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Terminal scan line effect */
.terminal-body {
    position: relative;
    overflow: hidden;
}

.terminal-body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(78, 205, 196, 0.2);
    animation: scanline 6s linear infinite;
    opacity: 0.5;
    pointer-events: none;
    z-index: 5;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(300px);
    }
}

/* Terminal flicker effect */
.terminal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

/* Apply animations to elements where needed */
.terminal {
    position: relative;
    animation: glow 4s infinite;
    overflow: hidden;
}