/* Estilos para la página habilidades.html */

.skills-main {
    padding: 140px 10% 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Introducción */
#skills-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px auto;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease-out forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#skills-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

#skills-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

#skills-intro p strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Grid de Habilidades */
#tech-skills {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s 0.3s ease-out forwards;
}

#tech-skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--headings-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    justify-items: center;
}

.skill-card {
    background-color: var(--card-bg);
    width: 120px;
    height: 120px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.3);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: transform 0.4s ease;
    animation: float 4s ease-in-out infinite;
}

.skill-card:hover i {
    transform: scale(1.1);
    animation: rainbow-shake 0.8s;
}

.skill-card span {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center; /* Centra el texto si se divide en dos líneas */
}

/* Estilo específico para el ícono de Django */
.django-icon {
    color: #092e20; /* Color oficial de Django */
    transition: color 0.4s ease;
}

/* Animación de "flote" para los íconos */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Fondo animado */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(50px);
    animation: move 25s infinite alternate;
}

.blob:nth-child(1) {
    width: 400px; height: 400px;
    top: -50px; left: -100px;
}
.blob:nth-child(2) {
    width: 300px; height: 300px;
    bottom: -80px; right: -50px;
    animation-duration: 20s;
    animation-delay: -10s;
}
.blob:nth-child(3) {
    width: 250px; height: 250px;
    top: 50%; left: 40%;
    animation-duration: 30s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1) rotate(0deg); }
    to { transform: translate(200px, 100px) scale(1.2) rotate(90deg); }
}

/* Animación de colores y movimiento al hacer hover */
@keyframes rainbow-shake {
    0%, 100% { transform: translateX(0) scale(1.1); color: #ff5e57; }
    10% { transform: translateX(-2px) rotate(-2deg) scale(1.1); }
    20% { transform: translateX(2px) rotate(2deg) scale(1.1); color: #ffbd48; }
    30% { transform: translateX(-2px) rotate(-2deg) scale(1.1); }
    40% { transform: translateX(2px) rotate(2deg) scale(1.1); color: #2ed573; }
    50% { transform: translateX(-2px) rotate(-2deg) scale(1.1); }
    60% { transform: translateX(2px) rotate(2deg) scale(1.1); color: #1e90ff; }
    70% { transform: translateX(-2px) rotate(-2deg) scale(1.1); }
    80% { transform: translateX(2px) rotate(2deg) scale(1.1); color: #8338ec; }
    90% { transform: translateX(-2px) rotate(-2deg) scale(1.1); }
}

/* Asegurarse de que el footer esté por encima del fondo animado */
footer {
    position: relative;
    z-index: 2;
}