
html {
    scroll-behavior: smooth;
}


/*Logo*/


.logo-container {
    width: 1600px;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 150px;
    margin-top: 90px;
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}


/*Animations*/


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    0% {
        transform: translateX(-100px); 
        opacity: 0;                    
    }
    100% {
        transform: translateX(0);      
        opacity: 1;                    
    }
    }


/*First Text*/


.first-text{
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}

.first-text h1{
    font-family: "Onest", sans-serif ;
    font-size: 150px;
    padding: 0;
    margin: 0;
    color: white;
    justify-content: center;
    justify-self: center;
    font-weight: 700;
    semibold{
        font-weight: 600;
    }
    
}

.first-text p{
    font-family: "Onest", sans-serif ;
    font-size: 100px;
    color: #0fff20;
    justify-content: center;
    justify-self: center;
    margin-top: -40px;
    bold{
        font-weight: 900;
    }
    
}


/*Body*/


body {
    margin: 0;
    padding: 0;

    background-color: #0a0a0a;
    background-image: radial-gradient(
    ellipse 80% 80% at 50% -20%,
    rgba(73, 73, 73, 0.3),
    rgba(255, 255, 255, 0)
    );
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}


/*Social Buttons*/


.social-buttons-right {
    position: fixed;          
    top: 50%;                
    left: 15px;               
    transform: translateY(-50%); 
    
    display: flex;
    flex-direction: column;   
    align-items: center;
    gap: 25px;                
    
    z-index: 1000;            
}


.social-buttons-right .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 45px;
    height: 45px;
    
    color: white; 
    text-decoration: none;
    
    transition: all 0.3s ease;
}


.social-buttons-right .btn:hover {
    transform: scale(1.25) translateX(8px);
    opacity: 0.85;
    color: #0fff20;
}



.btn.github {
    color: white;
}

.btn.linkedin {
    color: white;
}

.btn.instagram {
    color: white;
}


/*Nav*/


nav {
    position: fixed;
    top: 53%;
    right: 25px;                 
    transform: translateY(-50%);
    
    display: flex;
    flex-direction: column;      
    align-items: center;
    gap: 25px;                   
    
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px
}

nav ul li a {
    display: inline-block;
    transform: translateX(0) scale(1);
    transform-origin: left center;      
    transition: transform .25s ease, color .25s ease, opacity .25s ease;
    will-change: transform;   
    color: white;   
    
}

nav ul li a:hover {
    transform: translateX(-10px) scale(1.15); 
    opacity: 0.85;
    color: #0fff20;
}


/*About Me Section*/


section .about-me {
    font-family: "Onest", sans-serif;
    font-weight: 500;
    font-size: 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;  
    text-align: left;
    margin: 0;
    padding: 0 24px;
}

section h1 {
    font-size: 50px;
    font-weight: 800;
    color: rgb(255, 255, 255);
    margin-bottom: 5px;
}

section p {
    font-size: 20px;
    line-height: 1.6;
    color: #ffffff;
    margin-top: 0;
}

section p strong {
    color: #f3d250;
    font-weight: 700;
}




/*About Me Info*/


#welcome-section,
#info-me {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 80px;
}


#welcome-section {
    margin-top: 220px; 
    margin-bottom: 30px; 
}

#info-me {
    margin-top: 0; 
    margin-bottom: 80px;
    justify-content: center;
    margin-bottom: 400px;
    line-height: 1.8;
    strong {
        color: #f7e498;
        font-weight: 500;
        }
}


#welcome-section .hero-row {
    justify-content: right;
    justify-items: right;
    align-items: right;
    margin-right: 0;
}

#welcome-section .texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#welcome-section .texto  p {
    color: #f7e498;
}

#grand-skills {
    font-family: "Onest", sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 80px;
    margin-bottom: 60px;
    margin-top: 250px;
    
}


#welcome-section .subrow {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;     
}


#welcome-section .subtitle {
    margin: 0;
    color: #f7e498;
    font-size: 20px;
    line-height: 1;
}


#welcome-section .social-buttons {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    max-width: none;
    justify-content: flex-start;
}


#welcome-section .social-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 8px;
}

#about-me{
    padding: 0;
    margin-bottom: 400px;
    justify-content: center;
    justify-items: center;  
}

.about-me-header {
    display: flex;
    align-items: center;     
    gap: 30px;               
    margin-bottom: 40px;     
    padding-right: 193px;
}

/* ajustamos la imagen redonda */
.perfil {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;          /* evita que se achique */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.perfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

}

.about-me-tittle {
    font-family: "Onest", sans-serif;
    font-size: 36px;
    color: #0fff20;
    margin-bottom: 20px;
    font-weight: 700;
    justify-items: center;
    justify-content: center;

}



.about-me-text {
    line-height: 1.8;
    justify-content: center;
    justify-items: center;
    width: 898px;
    height: 216px;
    strong {
        color: #0fff20;
        font-weight: 500;
    }

}

.about-me-bottons .btn {
    font-family: "Onest", sans-serif;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: white;
    align-self: flex-end;  
    display: flex;
    gap: 10px;
}

.about-me-bottons .btn:hover {
    transform: translateY(-3px);
    
}
.btn.contact:hover {
    color: #0fff20; 
    
}

.btn.mail:hover {
    color: #0fff20; 
}

.btn.cv:hover {
    color: #0fff20; 
}

.about-me-bottons {
    display: flex;                 
    justify-content: left;       
    align-items: left;           
    gap: 30px;                     
    margin-top: -20px;  
    margin-left: -10px;          
}


/*Skills*/


#grand-skills{
    justify-content: center;
    justify-items: center;
    padding: 0;
    margin-bottom: 400px;
}

.skill-tittle h2 {
    font-family: "Onest", sans-serif;
    font-size: 36px;
    color: #0fff20;
    font-weight: 700;
    justify-content: center;
    justify-items: center;

}

.skills-content p {
    line-height: 1.8;
    justify-content: center;
    justify-items: center;

    strong {
        color: #0fff20;
        font-weight: 500;
    }

}


/*Projects*/

.project-tittle  {
    font-family: "Onest", sans-serif;
    font-size: 28px;
    color: #0fff20;
    justify-content: center;
    justify-items: center;

}

.project-content {
    font-family: "Onest", sans-serif;
    font-size: 28px;
    color: #0fff20;
    margin-bottom: 15px;
    font-weight: 700;
    justify-content: center;
    justify-items: center;

}

/*Centrar buqueda nav*/
:target { scroll-margin-top: 160px; }
.anchor { display:block; height:0; margin-top:-160px; }


/* Espaciado vertical general entre secciones */
#about-me,
#grand-skills{
    margin-bottom: 600px;
}

.separador {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* separador centrado y con espacio simétrico */
/* Imagen separadora centrada entre secciones */
.separador {
    display: block;
    margin: 300px auto;     /* espacio arriba y abajo simétrico */
    width: 120px;           /* tamaño del separador */
    height: auto;
    opacity: 0.8;
}

/* Evitar márgenes desiguales de las secciones contiguas */
#about-me { margin-bottom: 0; }
#grand-skills { margin-bottom: 0; }
#projects { margin-top: 0; }



/* =========================Mobile========================= */

@media (max-width: 430px) {
    /* nunca scroll lateral */
    html, body { overflow-x: hidden; }
    *, *::before, *::after { box-sizing: border-box; }

    /* imágenes y svg nunca exceden el ancho */
    img, svg { max-width: 100%; height: auto; }

    /* ---- HERO / LOGO ---- */
    .logo-container {
        width: 100%;
        height: auto;
        margin: 40px auto 10px;
        margin-left: 0;             /* anula el 150px del desktop */
        display: flex; justify-content: center; align-items: center;
    }
    .logo-container img, .logo { width: 88%; height: auto; object-fit: contain; }

    .first-text { text-align: center; margin-top: 8px; }
    .first-text h1 { font-size: 44px; line-height: 1.12; margin: 0; }
    .first-text p  { font-size: 28px; margin: 6px 0 0; }

    /* ---- NAV como barra inferior compacta ---- */
    nav {
        position: fixed; left: 0; right: 0; bottom: 10px; top: auto;
        transform: none; display: flex; justify-content: center;
        background: rgba(10,10,10,.6); backdrop-filter: blur(8px);
        padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12);
        z-index: 1000;
    }
    nav ul { flex-direction: row; gap: 18px; }
    nav ul li a { transform: none; }            /* sin empujes laterales en mobile */
    nav ul li a:hover { transform: scale(1.06);}/* hover suave */

    /* ---- Redes: en fila y chicas ---- */
    .social-buttons-right {
        position: static; transform: none; top: auto; left: auto;
        display: flex; flex-direction: row; gap: 14px; justify-content: center;
        margin: 18px auto 0;
    }
    .social-buttons-right .btn { width: 34px; height: 34px; }
    .social-buttons-right .btn:hover { transform: scale(1.06); } /* sin translateX */

    /* ---- Secciones: ancho fluido + padding lateral chico ---- */
    #welcome-section,
    #about-me,
    #grand-skills,
    #projects {
        width: 100%; max-width: 100%;
        margin-left: auto; margin-right: auto;
        padding: 0 16px;                    /* controla “ancho visual” */
    }

    /* separaciones uniformes entre bloques */
    #welcome-section,
    #about-me,
    #grand-skills,
    #projects { margin-top: 180px; margin-bottom: 180px; }

    /* ---- SOBRE MÍ: apilar para que entre cómodo ---- */
    .about-me-header {
    display: flex;
    flex-direction: row;      /* ✅ pone foto y título uno al lado del otro */
    align-items: center;      /* centra verticalmente */
    justify-content: center;  /* centra el conjunto */
    gap: 16px;                /* espacio entre ambos */
    padding-right: 0;
    }

    .perfil { width: 110px; height: 110px; }
    .about-me-tittle { font-size: 26px; text-align: center; margin: 0; }

    /* anula anchos fijos del desktop */
    .about-me-text { width: auto; height: auto; text-align: justify; font-size: 17px; line-height: 1.65; }

    /* ---- SKILLS / PROJECTS ---- */
    .skill-tittle h2, .project-tittle h2 { font-size: 26px; text-align: center; }
    .skills-content p, .project-content p { font-size: 17px; line-height: 1.65; text-align: justify; }

    /* ---- Separadores: centrados y sin superponerse ---- */
    .separador { display: block; width: 72px; margin: 200px auto; opacity: .9; }
    #about-me + .separador,
    .separador + #grand-skills,
    #grand-skills + .separador,
    .separador + #projects { margin-top: 200px; margin-bottom: 200px; }

    /* ---- Quita padding-left heredados del desktop ---- */
    #welcome-section,
    #grand-skills { padding-left: 0; }

    /* ---- Desactiva movimientos laterales que puedan generar overflow ---- */
    .social-buttons-right .btn:hover,
    nav ul li a:hover { will-change: transform; }
    }
