/* Estilos personalizados para la tipografía */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;

    /* ✅ Ocultar barra de scroll en todos los navegadores */
    overflow-y: scroll;      /* mantiene el scroll pero sin mostrar barra */
    scrollbar-width: none;   /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
}

/* ✅ Ocultar scrollbar en navegadores Webkit (Chrome, Safari, Opera, Edge Chromium) */
body::-webkit-scrollbar {
    display: none;
}

/* Animación para el texto en degradado */
@keyframes pulse-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
.animate-pulse-gradient {
    background-size: 200% 200%;
    animation: pulse-gradient 5s ease-in-out infinite;
}

/* ESTILOS ESPECÍFICOS PARA EL EFECTO DE MÁQUINA DE ESCRIBIR */
.typing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0c0a09;
    z-index: 50;
    transition: opacity 1s ease-in-out;
}
.typing-text {
    font-family: 'Fira Code', monospace;
    font-size: 8rem;
    color: #10b981;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid #10b981;
    animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #10b981; }
}
@media (max-width: 768px) {
    .typing-text {
        font-size: 4rem;
    }
}

/* ANIMACIONES DE ENTRADA PARA LAS SECCIONES */
.fade-in-down {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de borde para las tarjetas de habilidades */
@keyframes glowing-border {
    0% { border-color: #3f3f46; box-shadow: 0 0 5px rgba(255, 255, 255, 0); }
    50% { border-color: #22d3ee; box-shadow: 0 0 20px #22d3ee; }
    100% { border-color: #3f3f46; box-shadow: 0 0 5px rgba(255, 255, 255, 0); }
}
.animate-glowing-border {
    animation: glowing-border 4s infinite ease-in-out;
}

/* Animaciones de entrada */
.fade-in-up, .fade-in-down {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}
.fade-in-down {
    transform: translateY(-30px);
}
.fade-in-up.show, .fade-in-down.show {
    opacity: 1;
    transform: translateY(0);
}
