*{
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: 'Space Grotesk';
}

/* width */
::-webkit-scrollbar {
    height: 10px;
}
  
/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f12a;
}
  
/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}
  
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}



.syncopate-regular {
    font-family: "Syncopate", serif;
    font-weight: 400;
    font-style: normal;
}
  
.syncopate-bold {
    font-family: "Syncopate", serif;
    font-weight: 700;
    font-style: normal;
}
  

/* Aplica a toda la página */
html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    overflow: auto; /* Asegura que el scroll siga funcionando */
    
    scroll-behavior: smooth;
}
  
  html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Edge */
  }


body{
    background-color: #030014;
    overflow-x: hidden;
}

#particles-js{
    position: fixed;
    opacity: 0.5;
    height: 50vw;
    width: 100vw;
    z-index: -2;
}

#bgVideo{
    position: absolute;
    transform: rotate(180deg);
    /* top:-28vw; */
    top:-27vw;
    width: 100%;
    object-fit: cover;
    z-index: -3;
}

header{
    margin-top: 8%;
    width: 100%;
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

}

header hgroup{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10%;
}

header hgroup h1{
    width: 80%;
    text-align: center;
    font-size: 80px;
    margin-bottom: 20px;
}

header hgroup p{
    color: rgba(255, 255, 255, 0.65);
    font-size: 20px;
    width: 45%;
    margin-top: 20px;
    text-align: center;
}


header img{
    width: 80%;
}

#social{
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 85%;
    margin-top: 40px;
}

.resumeBtn{
    width: fit-content;
    background: rgba(149, 0, 255, 10);
    background: linear-gradient(90deg, rgba(149, 0, 255, 0.6) 0%, rgba(191, 0, 255, 0.9) 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 30px;
    font-size: 17px;
    filter: drop-shadow(0px 0px 10px #bf00ffbd);
}

.resumeBtn:hover{
    cursor: pointer;
}

#mouseScroll{
    border: solid 1px white;
    width: 30px;
    height: 50px;
    border-radius: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2vh;
}

#mouseScroll div{
    background-color: white;
    border: solid 1px white;
    width: 5px;
    height: 10px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30%;
    border-radius: 10px;
}

main section{
    display: flex;
    flex-direction: column;
    margin-top: 20vw;
}

.titles{
    font-size: 5vw;
    font-weight: bold;
    color: #ffffff; 
    margin: auto;
}

.scene{                     
  margin: 0;
  display: flex;
  justify-content: center;    /* eje horizontal */
  align-items:    center;     /* eje vertical   */
  margin-top: -70px;
}

.panel .titles{
    margin-top: 0px;
}

.skillsWrapper{
  height: 100vh;
  overflow: hidden;
  margin: 100px 0;
}

.skillsContainer{
    display: flex;
    flex-direction: row;
    width: fit-content;
    margin: 0;
}

.skillsContainer .panel{
    margin: 0;
    height: 100vh;
    width: 100vw;
    display: grid;
    flex-shrink: 0;
    place-items: center;
}

.experienceSection{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}


#traceSection{
    margin-top: 60px;
    display: flex;

    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
}


#traceSection > div{
  flex:0 0 50%;                 /* 0 = no crecer/encoger, 50 % de la fila */
  max-width:50%;                /* evita que se pasen si hay padding */
  box-sizing:border-box;        /* que respeten padding/border internos */
  margin-left: 3%;
}

#traceSection > div > h1{
    font-size:60px;
    width: fit-content;
    margin: 0 0 0 2%;
}



#projects{
    display: grid;
    grid-template-columns: repeat(3, 28%); /* 3 columnas de igual ancho */
    column-gap: 1%;
    row-gap: 3%;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
    padding-bottom: 20px;
}

.projectsFilter{
    margin-left: 2%;
    font-size: 17px;
    user-select: none;

}

.projectsFilter > span{
    margin-right: 2%;
    color: #686868;
}

.projectsFilter > span:hover {
    color: #ffffff;
    transition: all ease-in .2s;
    cursor: pointer;
}

.filterSelected{
    color: #CF40FF !important;
    font-weight: bold;
}


footer section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 350px;
    margin-bottom: 5vw;
    width: 100%;
}

footer section img{
    position: absolute;
    width: 100%;
    z-index: -1;
}

.subtitle{
    font-size: 50px;
    text-align: center;
}

footer section h3{
    font-size: 30px;
    font-weight: 100;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;

}

#contactBtns{
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;

    margin-top: 100px;
}

#otherContacts{
    display: flex;
    flex-direction: column;
    width: 57%;
    align-self: center;
    margin-bottom: 1%;
}

#otherContacts > span{
    font-size: 20px;
    margin-top: 15px;
}

#btnsList{
    display: flex;
    flex-direction: row;
}


.otherContactBtn{
  width: fit-content;
  align-self: flex-end;
  background-color: transparent;
  background-color: rgba(255, 255, 255, 0.077);
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  font-size: 17px;
  
  transition: all 0.3s;
  color: rgb(255, 255, 255);
  margin-top: 20px;
  text-align: center;
  display: flex;

  align-items: center;
  margin-right: 1.5%;
}

.otherContactBtn > svg{
    width: 20%;
    margin-right: 10px;
}

.otherContactBtn:hover{
  background-color: rgba(255, 255, 255, 0.099);
  cursor: pointer;
}

.otherContactBtn:active{
  transform: scale(0.93);
  transition: all 0.1s;
}


@media (max-width: 768px) {
    #particles-js{
        height: 100%;
        width: 100%;
        z-index: -2;
    }

    header {
        flex-direction: column;
        align-items: center;
        margin-top: 50%;
    }
    header hgroup {
        align-items: center;
        margin: 0;
        text-align: center;
    }
    header hgroup h1 {
        font-size: 30px;
        width: 100%;
    }
    header hgroup p {
        font-size: 15px;
        width: 98%;
    }


    main section {
        margin-top: 150px;
        padding: 0 10px;
    }

    .titles{
        font-size: 30px;
        margin: auto;
    }

    .scene{                     
        margin: 0;
        display: flex;
        justify-content: center;    /* eje horizontal */
        align-items:    center;     /* eje vertical   */
        margin-top: -200vw;
    }

    .panel .titles{
        margin-top: 0px;
    }

    .skillsContainer .panel {
        width: 100vw;
        height: 100vh;
        flex-shrink: 0;
    }

    .skillsContainer {
        display: flex;
        flex-direction: row;
        width: 100vw;
        margin-top: 300px;
    }

    
    .experienceSection {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #traceSection {
        margin-top: 60px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        padding: 0 20px;
    }

    #traceSection > div {
        flex: 0 0 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 0 30px 0;
        text-align: center;
    }

    #traceSection > div > h1 {
        font-size: clamp(28px, 6vw, 60px);
        width: fit-content;
        margin: 0 auto;
    }

    #projects{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 50px;
    }
    
    #projects > :first-child{
        margin-left: 0px;
    }
    
    #projects > :last-child{
        margin-right: 0px;
    }

    footer section{
        margin-top: 100px;
    }
        
    .subtitle{
        text-align: center;
        font-size: 25px;
    }
    
    footer section h3{
        font-size: 18px;
        font-weight: 100;
        margin-top: 10px;
        color: rgba(255, 255, 255, 0.65);
    }

    footer section img{
        position: absolute;
        width: 100%;
        z-index: -1;
    }
    
    #contactBtns{
        width: 100%;    
        margin-top: 20px;
    }

    .btnGeneral{
        padding: 5px 15px;
        font-size: 12px;
        margin: 0 25px 0 0;
    
    }

    #otherContacts {
        width: 90%;
        align-self: center;
        margin-bottom: 5%;
    }

    #otherContacts > span {
        font-size: 16px;
        text-align: center;
    }

    #btnsList {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .otherContactBtn {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .otherContactBtn > svg {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }

}


/* todas tus secciones principales */
section, .skillsWrapper{
  min-height: 100svh;   /* alto real con la barra oculta */
}

/* fallback para navegadores sin svh */
@supports not (height: 100svh){
  section, .skillsWrapper{
    min-height: 100vh;
  }
}

