/* ==================================================
   VARIABLES
   ================================================== */

:root {
    --color-text: #111;
    --color-pink: #F661BF;
    --color-green: #70F661;
    --color-light-gray: #E2E2E2;
    --color-gray: #D9D9D9;
}


/* ==================================================
   RESET
   ================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
}


/* ==================================================
   FONTS
   ================================================== */

@font-face {
    font-family: "Neue Montreal";
    src: url("../fonts/NeueMontreal-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Neue Montreal";
    src: url("../fonts/NeueMontreal-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Neue Montreal";
    src: url("../fonts/NeueMontreal-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Neue Montreal";
    src: url("../fonts/NeueMontreal-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}


/* ==================================================
   BASE
   ================================================== */

body {
    font-family: "Neue Montreal", sans-serif;
    color: var(--color-text);
}

a {
    text-decoration: none;
}

p {
    font-size: 1rem;
    margin: 0 0 20px;
}


/* ==================================================
   TYPOGRAPHY
   ================================================== */

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    margin: 0;
    padding: 20px 0;
}

h6 {
    margin: 0;
    padding: 20px 0;
    font-size: 5rem;
}


/* ==================================================
   COMPONENTS
   ================================================== */

/* ---------- BUTTON ---------- */

.btn {
    display: inline-block;
    padding: 0.5rem 2rem;
    background-color: var(--color-pink);
    color: white;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: var(--color-green);
    transform: translateY(-3px);
}


/* ==================================================
   NAVIGATION
   ================================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 150px; /*pendiente revisar*/
}


/* ---------- LOGO ---------- */

.nav-logo img {
    width: 100px;
}


/* ---------- LINKS ---------- */

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-pink);
}


/* ==================================================
   HOME / HERO
   ================================================== */

.hero {
    display: grid;
    justify-items: center;
    align-items: center;
}


/* ---------- GREETING ---------- */

.greeting {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    justify-items: center;
}


/* ---------- HERO ROLES ---------- */

.uxui,
.frontend {
    margin: 10px;
    text-align: center;
    display: block;
    max-width: 65ch;
    font-size: 6rem;
}

.uxui {
    background: var(--color-pink);
}

.frontend {
    background: var(--color-green);
}


/* ---------- FLOATING IMAGES ---------- */

.floating {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    animation: float 3s ease-in-out infinite;
}


/* ==================================================
   DESCRIPTION
   ================================================== */

.description {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    justify-items: center;
    margin-top: 30px;
}

#typing {
    font-size: 1.3rem;
    text-align: center;
    display: block;
    border-right: none;
    max-width: 65ch;
}


/* ==================================================
   PROJECTS
   ================================================== */

#projects {
    margin-top: 50px;
    counter-reset: project-counter;
}


/* ---------- PROJECT COLUMN ONE ---------- */

.column-one {
    background-color: #fafafa;
    padding: 2rem ;
    height: 80%;
    box-sizing: border-box;
}


/* ---------- PROJECT TYPE ---------- */

.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;
}


/* ---------- PROJECT TYPE TEXT ---------- */

.work-type-toggle > span:first-child {
    margin: 10px;
    font-size: 1rem;
}


/* ---------- ICON ---------- */

.work-type-toggle .icon {
    transition: transform 0.3s ease;
}

.work-type.active .work-type-toggle .icon {
    transform: rotate(180deg);
}


/* ---------- COLLAPSIBLE CONTENT ---------- */

.work-type-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.work-type.active .work-type-content {
    max-height: 100px;
}


/* ---------- PROJECT COLUMN TWO ---------- */

.column-two {
    position: relative;
    align-self: stretch;
    overflow: hidden;
}

.column-two img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    display: block;
}


/* ---------- PROJECT CARD ---------- */

.card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 1100px;
    align-items: stretch; 
    margin: 0 auto;
    margin-top: 100px;
    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 ---------- */

.card-number {
    position: absolute;
    top: -36px;
    right: 0;
    background: var(--color-pink);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 16px;
    z-index: 3;
}

.card:nth-of-type(2) .card-number {
    right: 70px;
}


/* ==================================================
   ABOUT
   ================================================== */

#about {
    background-color: var(--color-light-gray);
    padding: 15px 10rem 10rem;
}


/* ---------- ABOUT PARAGRAPH ---------- */

.left-paragraph {
    width: 60%;
    text-align: left;
    margin: 100px 0 0;
}


/* ---------- STAR CONTAINER ---------- */

.star {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ---------- STAR IMAGES ---------- */

.star img {
    width: 280px;
    height: 280px;
    margin-left: -140px;
    position: relative;
}

.star img:first-child {
    margin-left: 0;
}


/* ---------- STAR POSITION ---------- */

.star img:nth-child(1) {
    z-index: 1;
    transform: rotate(-5deg);
}

.star img:nth-child(2) {
    z-index: 2;
    transform: rotate(15deg);
}

.star img:nth-child(3) {
    z-index: 4;
    transform: rotate(0deg);
}

.star img:nth-child(4) {
    z-index: 2;
    transform: rotate(20deg);
}

.star img:nth-child(5) {
    z-index: 1;
    transform: rotate(15deg);
}


/* ---------- STAR HOVER ---------- */

.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
   ================================================== */

.experience {
    display: grid;
    grid-template-rows: 1fr 2fr;
}

.block-exp {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.block-year{
    margin-top: 20px;
}

/* ---------- DIVIDER ---------- */

.divider {
    width: 100%;
    height: 0.5px;
    background-color: black;
    margin: 10px 0;
}

/* ==================================================
   SKILLS
   ================================================== */

.skill-category {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.skill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
}


/* ---------- SKILL LIST ---------- */

.skill-list li {
    list-style: none;
}

.skill-list li::before {
    content: "★ ";
}

/* ==================================================
 SOFT SKILLS CARDS
   ================================================== */
.scd-01,
.scd-01 *,
.scd-01 *::before,
.scd-01 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.scd-01 {
  --accent: oklch(0% 0 0);
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: auto;
  padding: 0 20px;
}

.scd-01::-webkit-scrollbar {
    display: none; 
}

.scd-01__scene {
  width: min(700px,100%);
  margin: 0 auto;
  padding: 14vh 0 40vh;
}

.scd-01__card {
  position: sticky;
  top: calc(90px + var(--i) * 16px);
  height: 260px;
  margin-bottom: 60px;
  padding: 34px;
  color: #fff;
  box-shadow: 0 30px 60px -34px rgba(20,24,50,.7);
  animation: scd-01-shrink linear both;
  animation-timeline: view();
  animation-range: exit;
}

/* CARD 1 */
.scd-01__card:nth-child(1) {
    background: oklch(0% 0 0);
}

/* CARD 2 */
.scd-01__card:nth-child(2) {
    background: oklch(71.05% 0.2069 344.84);
}

/* CARD 3 */
.scd-01__card:nth-child(3) {
  background: oklch(86.73% 0.2233 141.68);
  color: #000;
}

/* CARD 4 */
.scd-01__card:nth-child(4) {
      background: oklch(0% 0 0);
}

/* CARD 5 */
.scd-01__card:nth-child(5) {
    background: oklch(71.05% 0.2069 344.84);
}

.scd-01__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  opacity: .7;
}

.subtitle h2{
    margin-top: 50px;
    text-align: center;
    font-size: 4rem;
}

.scd-01__card h5 {
  font-size: 30px;
  font-weight: 800;
  margin: 14px 0 20px;
  letter-spacing: -.02em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.scd-01__card p {
  font-size: 16px;
  line-height: 1.55;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.scd-01__end {
  text-align: center;
  font-size: 14px;
  color: #a0a6b4;
  padding-top: 12vh;
}

@keyframes scd-01-shrink {
  to {
    transform: scale(.9);
    filter: brightness(.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scd-01 {
    width: 100%;
    min-height: 100vh;
    scroll-behavior: auto;
  }

  .scd-01__card {
    animation: none;
  }
}


/* ==================================================
   FOOTER
   ================================================== */
.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
}

.ministar {
    height: 15px;
}

#contact {
    background-color: black;
    color: white;
    text-align: center;
    font-size: 6rem;
    min-height: 60vh;
}

.still-here {
    padding: 25px;
    text-align: center;
}

.link {
    text-align: center;
    font-size: 1rem;
    margin: 40px 0;
}

.link-two {
    font-size: 1rem;
    text-align: left;
    align-self: stretch;
    padding-left: 40px;
}

.btn-footer {
    text-decoration: none;
    color: white;
}

.btn-footer:hover {
    background-color: var(--color-green);
}

/* ==================================================
   BUTTON BACK TO TOP
   ================================================== */

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    background-color: var(--color-pink);
    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: var(--color-green);
}


/* ==================================================
   SUBTITLES
   ================================================== */

.subtitle {
    text-align: center;
    padding-top: 60px;
    font-size: 5rem;
    margin: 0;
}


/* ==================================================
   SOLUTION
   ================================================== */

.solution {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 70px;
}

.solution img {
    width: 25%;
    height: auto;
}


/* ==================================================
   ANIMATIONS
   ================================================== */

/* ---------- FLOAT ---------- */

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}


/* ---------- STAR BOUNCE ---------- */

@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);
    }
}


/* ---------- MARKER ---------- */

@keyframes draw-marker {
    to {
        background-size: 100% 55%;
    }
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 600px) {

    /* ---------- BASE ---------- */
    html {
    overflow-x: hidden;
}

    body {
        overflow-x: hidden;
    }

    p {
        font-size: 0.95rem;
    }

    /* ==================================================
       NAVIGATION
       ================================================== */

    .navbar {
        flex-direction: row;
        padding: 1rem;
    }

    .nav-logo img {
        width: 80px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }


    /* ==================================================
       HERO
       ================================================== */

    .greeting {
        grid-template-columns: 1fr;
        width: 100%;
        text-align: center;
        gap: 1rem;
    }

    .greeting .floating {
        display: none;
    }

    .greeting h1 {
        font-size: 1.3rem;
        margin: 0;
    }

    .uxui,
    .frontend {
        margin: 10px 20px;
        max-width: 100%;
        font-size: 3.2rem;
        line-height: 0.95;
    }


    /* ==================================================
       DESCRIPTION
       ================================================== */

    .description {
        grid-template-columns: 1fr;
        margin: 30px 20px 0;
        gap: 1rem;
    }

    .description .floating {
        display: none;
    }

    #typing {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 100%;
    }


    /* ==================================================
       PROJECTS
       ================================================== */

    #projects {
        margin-top: 70px;
    }

    .card {
        grid-template-columns: 1fr;
        width: calc(100% - 30px);
        min-height: auto;
        position: relative;
        top: auto;
        margin-bottom: 40px;
    }

    .card:nth-of-type(2),
    .card:nth-of-type(3) {
        top: auto;
    }

    .column-one {
        padding: 1.5rem;
    }

    .column-two {
        min-height: 250px;
    }

    .column-two img {
        min-height: 250px;
        object-fit: cover;
    }


    /* ---------- CARD NUMBER ---------- */

    .card-number {
        top: -35px;
        right: 0;
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .card:nth-of-type(2) .card-number {
        right: 0;
    }


    /* ---------- PROJECT TYPE ---------- */

    .work-type-group {
        padding-bottom: 15px;
    }

    .work-type-toggle {
        font-size: 0.9rem;
    }

    .work-type-toggle > span:first-child {
        margin: 5px;
        font-size: 0.9rem;
    }

    .work-type-content {
        font-size: 0.9rem;
    }


    /* ==================================================
       ABOUT
       ================================================== */

    #about {
        padding: 3rem 4rem 3rem 2rem;
        width: 460px;
    }

    .left-paragraph {
        width: 100%;
        margin: 30px 0 0;
    }


    /* ---------- STARS ---------- */

    .star {
        width: 100%;
        margin-top: 40px;
    }

    .star img {
        width: 100px;
        height: 100px;
        margin-left: -45px;
    }

    .star img:first-child {
        margin-left: 0;
    }


    /* ==================================================
       EXPERIENCE
       ================================================== */

    .experience {
        display: block;
    }

    .block-exp {
        grid-template-columns: 1fr;
    }

    .divider {
        margin: 15px 0;
    }

    .block-year {
        margin-top: 0;
    }


    /* ==================================================
       SKILLS
       ================================================== */

    .skill-category {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        justify-items: start;
    }

    .skill-list {
        padding-left: 0;
    }

    /* ==================================================
       CONTACT
       ================================================== */

    #contact {
        min-height: 50vh;
        padding: 4rem 1.5rem;
        font-size: 3rem;
    }

    .still-here {
        padding: 10px;
    }


    .still-here p{
        font-size: 1.5rem;
    }

    .link {
        font-size: 0.9rem;
        margin: 30px 0;
    }

    .link-two {
        font-size: 0.9rem;
        padding-left: 0;
        text-align: center;
    }

    .btn-footer {
        display: inline-block;
    }


    /* ==================================================
       FOOTER
       ================================================== */

    footer {
        height: auto;
        min-height: 50px;
    }

    footer p {
        font-size: 0.75rem;
        padding: 1rem;
    }

    .copyright {
        font-size: 0.75rem;
    }

    footer h6 {
    margin: 0;
    padding: 20px 0;
    font-size: 3rem;
}



    /* ==================================================
       BACK TO TOP
       ================================================== */

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 15px;
         right: 50px;
         left: auto;
    }


    /* ==================================================
       SUBTITLES
       ================================================== */

    .subtitle {
        padding-top: 40px;
        font-size: 2.8rem;
        line-height: 1;
    }


    /* ==================================================
       SOLUTION
       ================================================== */

    .solution {
        flex-direction: column;
        gap: 30px;
        padding: 0 1.5rem;
    }

    .solution img {
        width: 80%;
    }
}









