.code-block {
    background: linear-gradient(135deg, #0f1419 0%, #1e293b 100%);
    font-family: 'JetBrains Mono', monospace;
}

.tech-stack-item:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-hover:hover .project-overlay {
    opacity: 1;
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-line::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.experience-dot {
    position: absolute;
    left: 11px;
    top: 24px;
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #3b82f6;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    width: 0%;
    z-index: 100;
}

/* Navegación */
.nav-link {
    @apply text-gray-300 hover:text-blue-400 transition-colors duration-300 font-mono text-sm;
}

.sidenav-link {
    @apply block py-3 px-4 rounded-lg hover:bg-gray-800 hover:text-blue-400 text-gray-300 font-mono transition-all duration-300 border-l-2 border-transparent hover:border-blue-400;
}


.hamburger-line {
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Animaciones personalizadas */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes code-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }

    100% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
    }
}

@keyframes typewriter {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Clases de animación */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-code-scroll {
    animation: code-scroll 20s linear infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-typewriter {
    animation: typewriter 4s steps(44) 1s forwards;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

/* Estados iniciales para animaciones */
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
}

.animate-fade-in {
    opacity: 0;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .sidenav-link {
        font-size: 0.875rem;
    }

    .gradient-text {
        font-size: clamp(2rem, 8vw, 4rem);
    }
}

/* Mejoras visuales */
.project-overlay {
    transition: opacity 0.3s ease;
}

.tech-icon {
    transition: transform 0.3s ease;
}



/* Fix para el scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejora de contraste para accesibilidad */
@media (prefers-contrast: high) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* Reducir animaciones para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {

    .animate-float,
    .animate-code-scroll,
    .animate-glow,
    .animate-typewriter,
    .animate-slide-up,
    .animate-fade-in {
        animation: none;
    }

    .typing-cursor::after {
        animation: none;
    }
}