:root {
    --blue: rgb(35, 49, 66);
    --lightblue: #455d7a;
    --green: #99ff80;
  }


*{
    margin: 0;
    padding: 0px;
    box-sizing: border-box;
}

html {
    scroll-behavior:smooth;
    scroll-padding-top: 50px;
    background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
    display: flex;
    flex-direction: column;
}

body{
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding-top: 50px;
}

#nav-text > li {
    list-style: none;
    margin-right: 40px;
}

a {
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease-out;
    display: inline-block;
}

ul, p, h1, h2, h3, h4, span, i, svg, b {
    color: white;
}

#content {
    background-image: linear-gradient(62deg, #0b1e72 0%, #0f172a 100%);
}

#header{
    background: #0f172a;
    text-align: center;
    padding: 10px 0px;
    height: 50px;
    align-content: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(5px);
    z-index: 1000;
}

#nav-text{
    display: flex;
    justify-content: center;
    text-decoration: none;
    padding: 0px 10px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

#nav-bar a:hover {
    transform: scale(1.1);
}

/* container de presentacion*/
#presentation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    height: calc(100vh - 50px); /* 100vh (alto pantalla) menos el alto del header */
}

#punto {
    background-color: var(--green); /* Color del punto */
    border-radius: 50%;
    width: 10px; /* Ancho del punto */
    height: 10px;
    margin-right: 10px;
}

/*container de disponibilidad*/
#cuadro-de-disponibilidad {
    display: flex;
    justify-content: center;
    align-items: center;
    border: var(--green) 1px solid;
    border-radius: 30px;
    margin: 10px auto;
    font-size: 15px;
    padding: 15px;
}

/*nombre en presentacion*/
#surname {
    display: flex;
    justify-content: center;
    font-weight: lighter;
    align-items: center;
    align-content: center;

}

/*apellido en presentacion*/
#name {
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

/*contenedor de nombre*/
#name-text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    text-align: center;
    font-size: 40px;
    width: 40%;
    flex-wrap: wrap; /* Permite que los elementos se ajusten automáticamente */
    gap: 10px;
}


#short-description {
    margin-bottom: 30px;
}

#personal-description {
    font-size: 15px;
    display: flex;
    justify-content: center;
    text-align: center;
}

#profile-picture {
    width: 250px; /* Ajusta el tamaño según lo necesites */
    height: 250px; /* Altura igual al ancho para mantener la forma circular */
    border-radius: 50%; /* Esto hace que la imagen sea circular */
    object-fit:cover;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.8); /* Opcional: agrega sombra */
    margin-bottom: 20px;
    object-position: top center;
}


.sector-title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    align-items: center;
    align-content: center;
}

.sector-title > h2 {
    flex-wrap:wrap-reverse;
    
}


#contenedor-texto-about-me {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    padding: 20px;
}


#projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
    width: 70%; /* Asegura que siempre ocupe el 100% del contenedor */
    margin: 0 auto; /* Centra el grid si hay espacio adicional */
    box-sizing: border-box; /* Evita que el padding desborde */
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.line {
    border: 1px solid white;
    width: 250px;
    margin: 30px;
}


#about-me-text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
}

.project-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05); 
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}


.project-container {
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    background: #0f172a; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.8);
    gap: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    

    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, box-shadow;
}

.project-container:hover {
    /* MEJORA: translate3d en lugar de translateY activa la GPU */
    transform: translate3d(0, -8px, 0); 
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.6);
}

/* encabezado/linea superior de cuadro de proyecto*/
.project-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap-reverse;
}


/* lista de tecnologias de proyectos*/
.project-header > ul {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    list-style: none;
    gap: 1.25rem;
}

.project-header > li {
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
}

/* unidad de tecnologia */
.proyect-language {
    border-radius: 30px;
    padding: 5px 10px 5px 10px;
    font-size: 12px;
    background-color: var(--lightblue);
}

/*cuadro ver mas */
#documentacion-proyecto {
    border: 1px solid var(--green);
    padding: 12px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    overflow: hidden;
}

#documentacion-proyecto:hover {
    transform: scale(1.05);
}


.project-description-text {
    font-size: 15px;
    padding-top: 10px;
}

.project-fotos{
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.single-project-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* MEJORA: Transición más suave y corrección de bordes dentados */
    transition: transform 0.4s ease-out;
    will-change: transform;
    backface-visibility: hidden; /* Evita que la imagen parpadee o tiemble al escalar */
    transform: translateZ(0); /* Hack adicional para fluidez en navegadores antiguos */
}

.single-project-foto:hover {
    transform: scale3d(1.15, 1.15, 1);
}


#dron-foto:hover {
    transform: scale(1.3); /* Amplía la imagen al pasar el mouse */
}

#landingpage-foto:hover {
    transform: scale(1.3); /* Amplía la imagen al pasar el mouse */
}

#timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

#timeline ul {
    list-style-type: none;
    padding-left: 20px; /* Añade relleno para evitar que los puntos se desborden */
}

#timeline ul li {
    margin-bottom: 20px; /* Ajusta este valor según la cantidad de espacio que desees */
    margin-left: 10px; /* Ajusta los puntos hacia la derecha */
}



.time-sector::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--green);
    border-radius: 50%;
    transform: translateY(-50%);
}


#footer{
    margin-top: 20px;
    background-color: #0f172a;
    padding: 20px;
    
}

#footer > p {
    color: whitesmoke;
}

#copyright-text{
    margin-top: 5px;
    display: flex;
    justify-content: flex-end;
    color: gray;
}


.technologies-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.exp-location i {
    font-size: 1.4rem;
}

i {
    font-size: 70px;
}


.technology-container {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    border-radius: 50%;
}


.technology-container i:hover {
    transform: scale(1.3);
    transition: transform 0.2s ease-out;
}

#powerbi-icon:hover {
    transform: scale(1.3);
    transition: transform 0.2s ease-out;
}

.technology-container img:hover {
    transform: scale(1.3);
    transition: transform 0.2s ease-out;
}

#contact-content {
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#copy-button {
    margin-left:10px; 
    padding: 5px 5px; 
    background-color: var(--lightblue); 
    color: white; 
    border: none; 
    border-radius: 10px; 
    cursor: pointer;
}

#github-linkedin {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 10%;
    margin-top: 15px;
    gap: 15px;
}


.devicon-github-original, .devicon-linkedin-plain{
font-size: 25px;
display: flex;
}

#nav-text a {
    text-decoration: none; /* Sin subrayado */
    color: white;
    font-size: 16px;
}

#nav-text a:hover {
    color: var(--green); /* Cambia el color al pasar el ratón */
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}




/* --- NUEVOS ESTILOS PARA EXPERIENCIA --- */

/* Contenedor del item */
.timeline-item {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--green); /* Línea vertical de tiempo */
    margin-bottom: 40px !important; /* Espacio entre trabajos */
    margin-left: 10px;
}

/* El punto verde en la línea de tiempo */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px; /* Ajuste para centrar en la línea */
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--green);
}

/* Cabecera: Título + Fecha */
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.exp-header h3 {
    margin: 0;
    color: var(--green);
    font-size: 1rem; /* Tamaño más grande y legible */
    font-weight: 600;
    line-height: 1.2;
}

.exp-date {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.exp-location {
    color: #a0a0a0;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Lista de tareas (bullets) */
.exp-bullets {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.exp-bullets li {
    margin-bottom: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Badges de tecnologías */
.exp-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-badge {
    font-size: 0.75rem;
    background-color: var(--lightblue);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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




/*cambios en pantallas celulares*/
@media (max-width: 431px) {

    .sector-title > h2 {
        font-size: 20px;
    }

    #profile-picture {
        width: 180px; /* Ajusta el tamaño según lo necesites */
        height: 180px; /* Altura igual al ancho para mantener la forma circular */
    }

    i {
        font-size: 50px;
    }

    .technologies-grid {
        padding: 5px;
    }

    #excel-icon {
        width: 50px;
        height: 50px;
    }

    #powerbi-icon {
        width: 50px;
        height: 50px;
    }

    .timeline-content > h3 {    
        font-size: 18px;
    }

    #name-text {
        font-size: 20px; /* Ajusta aún más el tamaño de la fuente */
        width: 100%; /* Usa el ancho completo en pantallas muy pequeñas */
    }

    #personal-description {
        font-size: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .exp-date {
        margin-top: 5px;
        font-size: 0.8rem;
    }

    /*/*
    #nav-text.active {
        display: flex;
        position: absolute;
        top: 65px; /* Alineado con la altura de #header */
        /*left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro */
        /*padding: 10px 0;
        gap: 15px;
        max-height: 300px;
    } */

    #nav-text.active {
        display: flex; /* Mostrar en modo flex */
        flex-direction: column; /* Asegura que los elementos sean verticales */
        background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro */
        position: absolute; /* Superponer correctamente */
        top: 65px; /* Justo debajo del header */
        left: 0;
        width: 100%;
        padding: 10px 0;
    }

    #nav-bar {
        display: none; /* Habilita flexbox */
        align-items: center; /* Alinea verticalmente los elementos */
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 30px;
        color: white;
        cursor: pointer;
        margin-left: 20px;
    }    

    #header{
        height: 65px;
        align-content: center;
        align-items: center;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        backdrop-filter: blur(10px);
        z-index: 1000;
    }
    
}

@media (max-width: 769px) {
    #nav-text{
        font-size: 18px;
    }

    #nav-text > li {
        margin-right: 30px;
    }

    #name-text {
        font-size: 30px; /* Reduce el tamaño de la fuente en pantallas pequeñas */
        width: 80%; /* Aumenta el ancho del contenedor */
    }
}


@media only screen and (max-width: 600px) {
    #projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}



/*Acomodar el SEE MORE de los proyectos cuando la pantalla es mas angosta, con gap*/	
@media (max-width: 1024px) {
    .project-header {
        gap: 10px;
    }
}
