:root {
    --bg-color: #000;
    --accent: #ff3b3b;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    font-family: 'Poppins', sans-serif;
    color: white;
    /*background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);*/

}

.nav {
    padding-left: 5%;
}

section {
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    padding-left: 5%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    min-height: 100vh;
    gap: 2rem;
    margin-right: 5%;
    margin-left: 5%;
}

@keyframes float {

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

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

.logo {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        url("assets/images/devops-only.png") center/contain no-repeat;
    background-size: contain;
    max-width: 800px;
    max-height: 900px;
    aspect-ratio: 1;
    animation: float 3s ease-in-out infinite;
}

.logo::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
}

.info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    mix-blend-mode: difference;
}

.perfil {
    animation: float 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-self: center;
    align-items: center;
    justify-content: center;
    max-width: 450px;
    background-size: 100%;
    margin-bottom: 5%;
}

.border-wrapper {
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.border {
    display: flex;
    justify-content: center;
    align-items: center;
    height: autoyy;
    border-radius: 50%;
    padding: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.border::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(#4f3bff, #a701e9);
    animation: spin 3s linear infinite;
    z-index: -1;
}

.border::after {
    content: '';
    position: absolute;
    inset: 5px;
    background: #000000f1;
    z-index: -1;
    border-radius: 50%;
}

#perfil {
    width: 100%;
    max-width: 400px;
    height: auto;
    align-self: center;
    border-radius: 50%;
    object-fit: cover;
}

.btn {
    background: rgba(255, 59, 59, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 59, 59, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 32px 0 rgba(255, 59, 59, 0.2);
    font-family: monospace;
    font-size: 20px;
}

.btn:hover {
    transform: scale(1.05);
    background: rgba(255, 59, 59, 0.3);
    box-shadow: 0 8px 32px 0 rgba(255, 59, 59, 0.4);
}

.ct {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
}

.contenido {
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
}


.list {
    display: flex;
    justify-content: center;
    gap: 5rem;
    background-color: #3a3a3a;
    flex-wrap: wrap;
    transform: skewY(4.5deg);
    overflow: hidden;
    margin-bottom: 100px;
}

.item {
    /* Contra-inclinar para texto recto */
    transform: skewY(-4.5deg) translateX(200px);
    opacity: 0;
    transition: all 0.6s ease-out;
}

.item:hover img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px var(--accent)) drop-shadow(0 0 40px var(--accent)) brightness(1.2);
}

/* Efecto de brillo de fondo (opcional) */
.item::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(30px);
}

.item:hover::before {
    opacity: 0.4;
}

.item img {
    width: 150px;
    height: 150px;
    display: block;
}

.item:nth-child(1) {
    transition-delay: 0.1s;
}

.item:nth-child(2) {
    transition-delay: 0.2s;
}

.item:nth-child(3) {
    transition-delay: 0.3s;
}

.item:nth-child(4) {
    transition-delay: 0.4s;
}

/* Cuando está visible: centrado */
.list.visible .item {
    transform: skewY(-4.5deg) translateX(0);
    opacity: 1;
}

/* Cuando pasas la sección (bajas): van a la izquierda */
.list.passed .item {
    transform: skewY(-4.5deg) translateX(-200px);
    opacity: 0;
}


h1 {
    text-align: justify;
    font-family: monospace;
}


p {
    margin-left: 5%;
    margin-right: 5%;
    text-align: justify;
    font-family: monospace;
    font-size: 20px;
}

/* Media queries para responsividad */

/* Pantallas muy grandes */
@media (min-width: 1920px) {
    .presentation {
        min-height: 700px;
        max-width: 800px;
    }

    .perfil {
        max-width: 700px;
    }

    #perfil {
        max-width: 650px;
    }

    .info h1 {
        font-size: 3rem;
    }

    .info p {
        font-size: 1.5rem;
    }

    .btn {
        padding: 1.5rem 3rem;
        font-size: 1.2rem;
    }
}

/* Pantallas grandes (escritorio estándar) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .presentation {
        min-height: 600px;
        max-width: 700px;
    }

    .perfil {
        max-width: 600px;
    }

    #perfil {
        max-width: 550px;
    }

    .info h1 {
        font-size: 2.5rem;
    }

    .info p {
        font-size: 1.3rem;
    }

    .btn {
        padding: 1.3rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* Laptops grandes */
@media (min-width: 1200px) and (max-width: 1439px) {
    .presentation {
        min-height: 500px;
        max-width: 600px;
    }

    .perfil {
        max-width: 550px;
    }

    #perfil {
        max-width: 500px;
    }
}

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .hero-content {
        padding-left: 2%;
        gap: 1rem;
    }

    .presentation {
        min-height: 350px;
        max-width: 400px;
    }

    .perfil {
        max-width: 350px;
    }

    #perfil {
        max-width: 320px;
    }

    .item img {
        width: 100px;
        height: 100px;
    }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        padding: 2rem 1rem;
        min-height: auto;
    }

    .presentation {
        min-height: 300px;
        max-width: 350px;
        width: 80%;
        order: 1;
    }

    .info {
        margin-top: 0;
        padding: 1rem;
    }

    .perfil {
        max-width: 300px;
        width: 60%;
        order: 2;
        margin-top: 2rem;
    }

    #perfil {
        max-width: 100%;
    }

    .list {
        gap: 2rem;
    }

    .item img {
        width: 80px;
        height: 80px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }

    .presentation {
        min-height: 250px;
        max-width: 280px;
        width: 90%;
    }

    .info h1 {
        font-size: 1.5rem;
    }

    .info p {
        font-size: 0.9rem;
    }

    .perfil {
        width: 70%;
        max-width: 250px;
        margin-top: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .list {
        gap: 1rem;
    }

    .item img {
        width: 50px;
        height: 50px;
    }
}