html {
    scroll-behavior: smooth;
}
body {
    /* Fondo de color tecnología */
    background: #36D1DC; /* Azul claro */
    /* Fallback para navegadores antiguos */
    background: -webkit-linear-gradient(to right, #36D1DC, #5B86E5); /* Para Webkit */
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #36D1DC, #5B86E5); /* Estándar */
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    font-family: sans-serif;
}

.navbar {
    /* Gradiente claro a oscuro */
    background: linear-gradient(to right, #000000, #5bdc33);
    /* Otros estilos */
    z-index: 1;
    font-size: 18px;
    font-family: sans-serif;
}

.navbar-nav {
    color: rgb(215, 0, 0);
}

/* Cambiar el color del borde a blanco */
.custom-button {
    border-color: rgb(242, 8, 8);
}

/* Cambiar el color del fondo del botón a blanco (si es necesario) */
.custom-button {
    background-color: white;
}

/* Cambiar el color del texto a negro (si es necesario) */
.custom-button {
    color: black;
}

.section-heading {
    color: rgb(0, 0, 0);
    margin-bottom: 60px;
}
.section-heading {
    color: white;
    font-weight: bold;
    font-size: 40px;
}

#sobre-mi {
    color: white;
    font-weight: bold;
    font-size: 20px;
}

#video-background {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
}

#myVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card {
    background-color: #333;
    color: #fff;
}

.card-title {
    color: rgb(193, 205, 16);
    font-weight: 700;
    text-align: center;
}

.descricion {
    text-align: justify;
    font-family: sans-serif;
}

.card-text {
    color: white;
    text-align: justify;
    font-family: sans-serif;
}

.descrip {
    text-align: justify;
    text-align-last: center;
    font-family: sans-serif;
}

/* --- Cambios para la foto de perfil --- */

/* Contenedor para la imagen de perfil */
.profile-image-container {
    width: 90;
    height: 30px;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Sombra más pronunciada */
    
    /* Mantenemos las animaciones de borde aquí */
    animation: waterFlow 6s infinite linear, heartbeat 3s infinite;
    background: conic-gradient(from 0deg,
            red 0%,
            blue 25%,
            green 50%,
            yellow 75%,
            rgb(231, 199, 231) 100%);
    background-size: 400% 100%;
    background-position: 100% 0;
    /* Quitamos el clip-path y el border para usar el contenedor */
}

/* Estilos para la imagen dentro del contenedor */
.profile-image {
    width: 15%;
    height: 40%;
    object-fit: cover; /* Esto es clave para que no se vea contraída */
    border-radius: 50%; /* Opcional, pero asegura que la imagen sea circular */
    border: 5px solid #ffffff; /* Borde blanco para enmarcar la imagen */
    /* Quitamos todas las animaciones de aquí para que solo afecten al contenedor */
    animation: none;
    clip-path: none;
    background: none;
    background-size: auto;
    background-position: auto;
}

@keyframes waterFlow {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
/* --- Fin de cambios para la foto de perfil --- */

.social-icons {
    list-style-type: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.social-icons li {
    margin: 0 10px;
}

.social-icons a {
    color: #f00;
    font-size: 25px;
}

.footer {
    background-color: #111;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    height: 100%;
    padding-bottom: 2px;
    font-size: 25px;
}

.footer p {
    font-size: 15px;
}
/* --- Sección de habilidades en cuadritos --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-box {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    color: #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.1rem;
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
