body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
}

.background-image {
    background: linear-gradient(to top,rgba(3, 175, 255, 0.2), black);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#particles {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    bottom: 0;
    width: 2px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.7);
    animation: particle-animation 5s ease-out forwards;
    pointer-events: none;
    transform-origin: bottom center;
}

@keyframes particle-animation {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
}


.container {
    background: rgba(0, 0, 0, 0.8);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid rgb(0, 204, 255);
    border-radius: 10px;
    background-blend-mode: color-burn;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.custom-icons img {
    width: 100px;
    height: 100px;
    padding: 10px;
}

header, footer {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header {
    text-align: center;
    padding: 2rem 0;
}

header h1 {
    font-size: 3rem;
    color: rgb(0, 204, 255);
    text-shadow: 0 0 10px rgb(0, 204, 255);
}

header h2 {
    color: rgb(0, 204, 255);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

nav li {
    margin: 0 1rem;
}

nav a {
    text-decoration: none;
    color: rgb(0, 204, 255);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-shadow: 0 0 10px rgb(0, 204, 255);
}

nav a:hover {
    background-color: rgba(0, 204, 255, 0.2);
}

main {
    padding: 2rem;
}

main video {
    width: 100%;
    max-width: 100%;
}

section {
    margin-bottom: 3rem;
}

#about-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.perfil {
    flex: 0 0 200px;
    margin-left: 20px;
}

.perfil img {
    height: 270px;
    width: 200px;
    border-radius: 50px;
    border: 2px solid rgb(0, 204, 255);
}

.info {
    flex: 1;
    margin-right: 20px;
}

h2 {
    color: rgb(0, 204, 255);
    border-bottom: 2px solid rgb(0, 204, 255);
    padding-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 1rem 0;
}

footer p {
    color: rgb(0, 204, 255);
}

#skills details {
    margin-bottom: 10px;
}

#skills summary {
    font-size: 1.2em;
    cursor: pointer;
}

.skill-container {
    padding: 10px;
}

.skill {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.skill label {
    margin-left: 30px;
    flex-basis: 250px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

progress {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    width: 80%;
    height: 20px;
    margin-left: 10px;
}

progress::-webkit-progress-bar {
    background-color: #e0e0e0;
    border-radius: 10px;
}

progress::-webkit-progress-value {
    border-radius: 10px;
    background-color: #76c7c0;
}

progress::-moz-progress-bar {
    background-color: #76c7c0;
    border-radius: 10px;
}

.progress-low::-webkit-progress-value {
    background-color: #ff4d4d;
}

.progress-medium::-webkit-progress-value {
    background-color: #ffc107;
}

.progress-high::-webkit-progress-value {
    background-color: #4dff4d;
}

.progress-low::-moz-progress-bar {
    background-color: #ff4d4d;
}

.progress-medium::-moz-progress-bar {
    background-color: #ffc107;
}

.progress-high::-moz-progress-bar {
    background-color: #4dff4d;
}

#langSwitch {
    margin-left: 10px;
    padding: 5px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: rgba(0, 204, 255, 0.5);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    text-shadow: none;
}

#langSwitch:hover {
    background-color: rgba(0, 204, 255, 0.5);
}

.styled-select {
    background-color: #333;
    color: #fff;
    border: 1px solid #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
}

.styled-select option {
    background-color: #444;
    color: #fff;
    font-size: 14px;
}

.linkclass {
    color: rgb(0, 204, 255);
    text-decoration: none;
    font-weight: bold;
    background-color: transparent;
    padding: 5px 10px;
    border-radius: 5px;
    border: 2px solid rgb(0, 204, 255);
    transition: all 0.3s ease-in-out;
    text-shadow: 0 0 5px rgb(0, 204, 255), 0 0 10px rgb(0, 204, 255);
}

.linkclass:hover, .linkclass:focus {
    color: #fff;
    background-color: rgba(0, 255, 255, 0.2);
    text-shadow: 0 0 8px rgb(0, 204, 255), 0 0 15px rgb(0, 204, 255);
    border-color: #fff;
}

.background-redirect {
    background: linear-gradient(to top,rgba(3, 175, 255, 0.2), black);
    min-height: 100vh;
    background-repeat: no-repeat;
    background-position: center;
    font-family: 'Neon Tubes 2', sans-serif;
    font-size: 2rem;
    text-align: center;
    color: rgb(0, 204, 255);
    margin: 0;
    padding: 2rem;
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

@media screen and (max-width: 600px) {
    .container {
        width: 90%;
        padding: 5px;
        margin: 10px auto;
    }

    .background-redirect {
        width: 90%;
    }

    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin-bottom: 10px;
    }

    #about-me {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .perfil {
        display: none; /* Ocultar la imagen original en móviles */
    }

    .info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info h2 {
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
        padding-bottom: 0.5rem;
    }

    .info h2::before {
        content: "";
        display: inline-block;
        width: 100px; /* Tamaño de la imagen de perfil */
        height: 100px;
        background: url('recursos/foto_perfil.jpg') no-repeat center center;
        background-size: cover;
        border-radius: 50%; /* Hacer la imagen redonda */
        margin-left: 20px;
    }

    .skill {
        flex-direction: column; /* Colocar el texto y la barra de progreso en columnas */
        align-items: flex-start; /* Alinear elementos al inicio */
        width: 100%; /* Asegurarse de que la barra de progreso ocupe todo el ancho disponible */
    }

    .skill label {
        margin-bottom: 5px; /* Espacio entre el texto y la barra de progreso */
        width: 100%; /* Asegurar que el label ocupe todo el ancho */
        height: auto;
        flex-basis: 20px;
    }

    progress {
        margin-left: 0; /* Eliminar el margen izquierdo para dispositivos móviles */
        width: 100%; /* Asegurar que la barra de progreso ocupe todo el ancho */
    }

    #experience ul, #education ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    section, footer {
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .custom-icons img {
        width: 50px;
        height: 50px;
    }
}