/* UNIVERSAL */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/*COMPONENTS*/
/*NAV BAR*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo img{
    width: 100px;
}

.nav-links{
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    font-family: 'IMB+Plex Mono', monospace;
}

.nav-links a:hover {
    color: #F661BF;
}

*/*RESPONSIVE NAV BAR*/
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
}

/*FOOTER*/
footer{
    height: 50px;
    background-color:#D9D9D9;
    font-family: 'IMB+Plex Mono', monospace;
}

footer p{
    align-items:center;
    text-align:center;
    padding: 1rem 1rem;
    margin:0; 
}

/*PAGES*/

/*HOME*/
/*--------------HERO SECTION------------------*/
.hero {
    display:grid;
    justify-items:center;
    align-items:center;
}

.greeting {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items:center;
    justify-items:center;
}

/*--------------TITLE HERO SECTION------------------*/

h1 {
    font-family: 'IMB+Plex Mono', monospace;
    font-size: 1.5rem;
}

h2 {
    font-family: 'IMB+Plex Mono', monospace;
    margin:20px; 
    font-size: 4rem;
}

/*--------------IMAG HERO SECTION------------------*/

.uxui{
    background: #F661BF; 
}

.frontend {
    background: #70F661; 
}

 .floating {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            position: relative;
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-20px);
            }

            100% {
                transform: translateY(0);
            }
        }


.description {
    display:grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items:center;
    justify-items:center;
}

/*--------------DESCRIPTION ------------------*/

span {
    font-family: 'Iosevka+Charon+Mono', monospace;
    margin: 40px;
    text-align: center;

    display:block;
    border-right: none;
    max-width: 65ch;
    }

    @keyframes typing {
        from {width: 0}

    }

    @keyframes blink{
        50% {border-color: transparent}
    }

/*--------------PORTAFOLIO SECTION------------------*/
.portfolio {
    padding: 10rem 20rem;
}

.project-info{
    display:grid;
    grid-template-columns: 1fr 2fr;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 100px;
    }

    /*--------------CARDS SECTION------------------*/
#projects{
    margin-top:50px;
    counter-reset: project-counter;
}

.colum-one{
    background-color: #fafafa;
    padding: 2rem;
}


.work-type-group{
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 20px;
}

.work-type-toggle{
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 8px; 
    width: auto; 
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    padding: 0.25rem 0; 
}

span {
    margin: 10px; 
}

.work-type-toggle .icon{
    transition: transform 0.3s ease;
}

.work-type.active .work-type-toggle .icon{
    transform: rotate(180deg);
}

.work-type-content{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.work-type.active .work-type-content{
    max-height: 100px; /* suficiente para tus 3 p */
}


/*--------------colum-two------------------*/
.colum-two img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*--------------number card top------------------*/
.colum-two{
    position: relative;
    align-self: stretch;
    overflow: hidden;
}

.card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 800px;
    align-items: center;
    margin: 0 auto;
    counter-increment: project-counter;
    position: sticky;
    top: 5px;
    background: #fff;
    min-height: 500px;
    z-index: 1;
}

.card:nth-of-type(2) {
    top: 140px;
    z-index: 2;
}

.card:nth-of-type(3) {
    top: 200px;
    z-index: 3;
}

.card-number{
    position: absolute;
    top: -45px;
    background: #F661BF;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 16px;
    z-index: 3;
}

/* Card 1: número pegado al borde derecho */
.card:nth-of-type(1) .card-number{
    right: 0;
}

/* Card 2: recorrido hacia la izquierda para no tapar al 01 */
.card:nth-of-type(2) .card-number{
    right: 70px;
}

/* Card 3 (cuando la agregues): aún más a la izquierda */
.card:nth-of-type(3) .card-number{
    right: 140px;
}
/*--------------Typography------------------*/
h3 {
    font-family: 'IMB+Plex Mono', monospace;
    font-size: 1.5rem;
}

p {
    font-family: 'Iosevka+Charon+Mono', monospace;
    font-size: 1rem;
    margin: 0 0 20px 0;
}

h4 {
    font-family: 'IMB+Plex Mono', monospace;
}

/*--------------ABOUT ME SECTION------------------*/
#about{
    background-color: #E2E2E2;
    padding: 10rem 10rem;
    padding-top: 15px;
}


/*--------------ABOUT paragraph------------------*/
.left-paragraph {
    width: 60%;
    text-align: left;
    margin: 50px 0px 0px 0px;
}

/*--------------PHOTOS STAR------------------*/
.star {
    display: flex;
    align-items: center;
    justify-content: center;
}

.star img {
    width: 280px;
    height: 280px;
    margin-left: -140px;
    position: relative;
}

/* Capas */
.star img:nth-child(1) {
    z-index: 1;
    transform: rotate(-5deg);
}

.star img:nth-child(2) {
    z-index: 2; /* Rosa: adelante */
    transform: rotate(15deg);
}

.star img:nth-child(3) {
    z-index: 4; /* Negra central */
    transform: rotate(0deg);
}

.star img:nth-child(4) {
    z-index: 2; /* Verde: detrás */
    transform: rotate(20deg);
}

.star img:nth-child(5) {
    z-index: 1; /* Negra derecha: atrás */
    transform: rotate(15deg);
}

.star img:first-child {
    margin-left: 0;
}

@keyframes bounce1 {
    0%, 100% {
        transform: translateY(0) rotate(-8deg);
    }

    50% {
        transform: translateY(-30px) rotate(-8deg);
    }
}

@keyframes bounce2 {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-30px) rotate(-3deg);
    }
}

@keyframes bounce3 {
    0%, 100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-30px) rotate(2deg);
    }
}

@keyframes bounce4 {
    0%, 100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes bounce5 {
    0%, 100% {
        transform: translateY(0) rotate(8deg);
    }

    50% {
        transform: translateY(-30px) rotate(8deg);
    }
}

.star img:nth-child(1):hover {
    animation: bounce1 0.4s ease;
}

.star img:nth-child(2):hover {
    animation: bounce2 0.4s ease;
}

.star img:nth-child(3):hover {
    animation: bounce3 0.4s ease;
}

.star img:nth-child(4):hover {
    animation: bounce4 0.4s ease;
}

.star img:nth-child(5):hover {
    animation: bounce5 0.4s ease;
}

/*--------------EXPERIENCE SECTION------------------*/
.experience {
    display:grid;
    grid-template-rows: 1fr 2fr;
}

.block-exp{
    display:grid;
    grid-template-columns: 1fr 1fr;
}

/*--------------DIVIDER LINE------------------*/
.divider {
  width: 100%;
  height: 0.5px;
  background-color: black;
  margin: 10px 0;
}

/*--------------SKILLS SECTION------------------*/
.skill-category {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.skill-grid {
    display:grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center; /* opcional: centra horizontalmente el contenido */
}


/*--------------STAR ON LIST------------------*/
.skill-list li{
    list-style:none;
    font-family: 'Iosevka+Charon+Mono', monospace;
}

.skill-list li::before {
  content: "★ ";
}

/*--------------button------------------*/
.btn {
    display: inline-block;
    padding: 0.5rem 2rem;
    background-color: #F661BF;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    font-family: 'IMB+Plex Mono', monospace;
}

.btn:hover {
    background-color: #70F661;
    transform: translateY(-3px);
}

/*--------------PROYECT------------------*/
.project img {
width: 100%;
border-radius: 10px;
}

.block-year {
    margin: 20px 0 20px 0;
}

/*-----------------SOFT SKILLS------------------*/
.underline {
    display: inline;
    background-image: linear-gradient(120deg, #70F661, #70F661);
    background-repeat: no-repeat;
    background-position: 0 88%;
    background-size: 0% 55%;
    padding: 0 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    animation: draw-marker 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-play-state: paused;
}

@keyframes draw-marker {
    to {
        background-size: 100% 55%; /* ← ancho Y alto juntos, ya no salta */
    }
}

.underline.in-view {
    animation-play-state: running;
}


/*---SCROLL TRIGGER---*/
#horizontal .content {
    height: 100vh;
    width: 100%;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    font-size: 32px;
    color: black;
}

#horizontal {
    display: flex;
    overflow-x: hidden;
}

#horizontal .content:nth-child(1){
}

#horizontal .content:nth-child(2){
}

#horizontal .content:nth-child(3){
}

#horizontal .content:nth-child(4){
}

#horizontal .content:nth-child(5){
}

.content p{
    width: 100vh;
}

/*--------------FOOTER------------------*/
#contact{
    background-color: black;
    color:white;
    text-align:center;
    font-size:6rem;
    height: 70vh;
}

.still-here{
    padding: 25px;
    text-align: center;
}

h5{
    margin: 0;
    padding:20px 0;
}

.link{
    text-align: center;
    font-size:1rem;
}

.link-two{
    font-size: 1rem;
    text-align: left;
    align-self: stretch;
    padding-left: 40px;
}

.copyright{
    text-align: center;
    margin-top: 20px;
}

.btn-footer{
    text-decoration: none;
    color: white;

}

.btn-footer:hover {
    background-color: #70F661;
}

.ministar{
    height: 15px;
}

/*--------------button back to top------------------*/
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  background-color: #F661BF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #70F661;
}

/*--------------Subtitles------------------*/
.subtitle{
    text-align: center;
    padding-top: 60px;
    font-size: 5rem;
    margin: 0;
}



.solution {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 70px;
}

.solution img {
    width: 25%;
    height: auto;
}











