body {
    margin: 0;
    padding: 0;
    /* Evita el scroll horizontal */
    overflow-x: hidden;
    background-color: #0b1120;
    background-image:
        radial-gradient(at 0% 0%, hsla(210, 100%, 23%, 1) 0px, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 80%, 30%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(190, 70%, 45%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(220, 90%, 15%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(240, 60%, 20%, 1) 0px, transparent 50%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: backgroundAnimation 10s ease-in-out infinite alternate;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-attachment: fixed;
    background-size: cover;
}

* {
    box-sizing: border-box;
}

.hero {
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}
html {
    scroll-behavior: smooth;
}
/* Contenedor para centrar el botón al final de la sección hero */
.scroll-down-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    width: 100%;
}

.scroll-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: bounce 2s infinite;
}

/* Efectos al pasar el mouse */
.scroll-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transform: scale(1.1);
}


.scroll-btn svg {
    transition: transform 0.3s ease;
}

.scroll-btn:hover svg {
    stroke: #00ff41;
}

.informacion {
    display: flex;
    align-items: flex-start;
    /* Alinea verticalmente el terminal con la foto */
    justify-content: center;
    gap: 40px;
    /* Espacio entre el terminal y la foto */
}

.contenido-principal {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Espacio entre el terminal y los iconos */
    flex: 1;
    /* Para que tome el espacio necesario */
    margin-top: 5px;
}

.icons {
    display: flex;
    gap: 15px;
    /* Espacio entre cada icono de tecnología */
    justify-content: flex-start;
    /* Alinea los iconos a la izquierda del terminal */
    margin-left: 10px;
}

.icons img {
    width: 40px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

.avatar img {
    width: 250px;
    height: 250px;
    border-radius: 20%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cmd {
    width: 100%;
    max-width: 600px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    display: flex;
    align-items: center;
}

.buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.close {
    background: #ff5f56;
}

.minimize {
    background: #ffbd2e;
}

.maximize {
    background: #27c93f;
}

.title {
    color: #888;
    font-size: 12px;
    margin-left: 10px;
}

.terminal-body {
    padding: 20px;
    color: #00ff41;
    font-size: 16px;
    min-height: 150px;
}

.cursor {
    animation: blink 1s infinite;
}

#response {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

#response.visible {
    opacity: 1;
    transform: translateY(0);
}

.projects {
    padding: 80px 10%;
    text-align: center;
    background: transparent;
    padding-bottom: 500px;
}

.titulo-seccion {
    font-family: 'Courier New', Courier, monospace;
    color: #00ff41;
    font-size: 2rem;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    gap: 25px;
    /* Centra las tarjetas si hay pocas */
    justify-content: center;
}

/* Estilo de la Card */
.project-card {
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-10px);
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.card-links img{
    width: 50px;
}

.card-content h3 {
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Courier New', Courier, monospace;
}

.card-content p {
    color: #8b949e;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tags span {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 15px;
    font-family: 'Courier New', Courier, monospace;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes backgroundAnimation {
    0% {
        background-size: 100% 100%;
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }

    50% {
        background-size: 120% 120%;
        background-position: 10% 20%, 30% 10%, 80% 20%, 10% 80%, 90% 90%;
    }

    100% {
        background-size: 110% 110%;
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

@keyframes float {

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

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

@media (max-width: 768px) {
    .informacion {
        flex-direction: column-reverse;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}