:root {
    --color-fondo: #0a0a1a;
    --color-texto: #ffffff;
    --primary: #3a86ff;
    --secondary: #8338ec;
    --accent: #06d6a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', sans-serif;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#techCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
}

.tech-font {
    font-family: 'Share Tech Mono', monospace;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradient 5s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-effect:hover::after {
    opacity: 1;
}

.skill-bar {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 20px;
    overflow: hidden;
    height: 10px;
}

.skill-progress {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(-45deg,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 75%,
            transparent);
    z-index: 1;
    background-size: 20px 20px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 20px 20px;
    }
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.nav-link {
    position: relative;
}

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

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

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.floating-element {
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.floating-element:hover {
    animation: none;
    transform: scale(1.05) rotate(5deg);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.tech-tag {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0 5px 5px 0;
    display: inline-block;
}

.cursor {
    animation: blink 1s infinite, glow 2s ease-in-out infinite alternate;
    font-weight: 300;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1em;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.8),
                     0 0 20px rgba(0, 255, 255, 0.6),
                     0 0 30px rgba(0, 255, 255, 0.4);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 0, 255, 0.8),
                     0 0 30px rgba(255, 0, 255, 0.6),
                     0 0 40px rgba(0, 255, 0, 0.4);
    }
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-slide {
    animation: slide 4s linear infinite;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.typing-text {
    display: inline-block;
}

/* Transición suave para el header */
header {
    transition: transform 0.3s ease-in-out;
}

/* Estilos para menú móvil */
#mobile-menu {
    transition: all 0.3s ease;
    transform-origin: top;
}

#mobile-menu.hidden {
    transform: scaleY(0);
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    transform: scaleY(1);
    opacity: 1;
}

.mobile-nav-link {
    position: relative;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.mobile-nav-link::before {
    content: '▶';
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.mobile-nav-link:hover::before {
    transform: translateX(3px);
}

/* Mejoras de responsividad general */
@media (max-width: 768px) {
    /* Ajustes para texto que no cubre Tailwind */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Ajustes para botones en móvil */
    .flex.space-x-4 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .flex.space-x-4 a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Ajustes adicionales para pantallas muy pequeñas */
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
    }
}