.homepage,
.homepage * {
  box-sizing: border-box;
}

.homepage {
  background: #f5e7d3;
  padding: 100px 120px 100px 120px;  
  /* arriba, derecha, abajo, izquierda */
  display: flex;
  flex-direction: column;
  gap: 100px;
  /* Espacio vertical entre elementos de la web */
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

h2 {
  font-family: "SpaceMono", monospace; /* or "Space Mono", monospace, etc. */
  font-weight: 800;
  font-size: 28px;
}

.space-mono-regular {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 10px;
  font-size: 22px;
}

.space-mono-regular_subtitle {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  margin-top: -24px;
  margin-bottom: 10px;
  font-size: 16px;
}

/* -------------------------------------------------------- */
/* HEADERS */
.header {
  display: flex;
  flex-direction: row;
  align-items: center; /* <-- changed from flex-start */
  justify-content: space-between;
  align-self: stretch;
  flex-shrink: 0;
  height: auto; /* optional: override vh if set */
  position: relative;
}
.header_left {
  text-align: left;
  position: relative;
  width: 547px;
}
.header_left_title {
  color: #da6916;
  font-family: "Mulish", monospace;
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
}
.header_left_subtitle {
  color: #000000;
  font-family: "Space Mono", monospace;
  font-size: 16px;
  font-weight: 400;
}
.header_right {
    color: #000000;
    text-align: left;
    font-family: "Space Mono", monospace;
    font-size: 20px;
    font-weight: 400;
    position: relative;
    white-space: nowrap;
  }
   
  .header_right_selected {
    color: #da6916;
    text-align: left;
    font-family: "Space Mono", monospace;
    font-size: 24px;
    font-weight: 800;
    position: relative;
  }

  .header-logo-link {
    color: #da6916;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
  }
  
  .header-logo-link:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
  }
  
   /* .header-logo-img {
    height: 60px;
    transition: transform 0.2s ease, filter 0.2s ease;
  }
  
  .header-logo-link:hover .header-logo-img {
    transform: scale(1.05);
    filter: brightness(1.1);
  } */

  .header_right a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .header_right a:hover {
    color: #da6916; /* or any accent color you like */
    font-weight: 700; /* optional: make it bold on hover */
  }
  
  .navigation_menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px; /* Add this to control spacing */
    padding: 0;
    height: auto;
  }
/* FOOTERS */
.footer {
  text-align: center;
  font-family: "Space Mono", monospace;
  padding: 0px 0px 0px 0px;
  font-size: 12px;
  font-weight: 700;
  height: 5vh;
  position: relative;
  align-self: stretch;
}
.footer-span {
  color: #000000;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
}

/* END OF HEADERS AND FOOTERS */
/* -------------------------------------------------------- */


/* -------------------------------------------------------- */
/* INTRODUCTION */
.logo {
    width: 300px;
    position: relative;
    object-fit: cover;
  }
.intro {
  background: #ffffff;
  border-radius: 200px;
  padding: 10px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.frame-25 {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}
.marco_foto {
  background: #da6916;
  border-radius: 200px;
  padding: 10px 10px 10px 10px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  position: relative;
}
.foto {
  border-radius: 200px;
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  position: relative;
  overflow: hidden;
  object-fit: cover;
}
.introtext {
  color: #da6916;
  padding: 0px 0px 0px 0px;
  margin-right: 30px;
  text-align: left;
  font-family: "Space Mono", monospace;
  font-size: 20px;
  font-weight: 400;
  position: relative;
  width: 500px;
}
/* END OF INTRODUCTION */
/* -------------------------------------------------------- */

/* HOMEPAGE */
.buttons {
  flex-shrink: 0;
  width: 600px;
  height: 157px;
  position: relative;
}
.button-illustrations {
  background: #00967d;
  border-radius: 200px;
  width: 157px;
  height: 157px;
  position: absolute;
  left: 0px;
  top: 0px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.illustrations {
  color: #ffffff;
  text-align: center;
  font-family: "Mulish", monospace;
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  position: absolute;
  left: 20px;
  top: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-graphics {
  background: #da6916;
  border-radius: 200px;
  width: 157px;
  height: 157px;
  position: absolute;
  left: 221px;
  top: 0px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.computer-graphics {
  color: #ffffff;
  text-align: center;
  font-family: "Mulish", monospace;
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  position: absolute;
  left: 5px;
  top: 54px;
  width: 146px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.button-programming {
  background: #f5b92b;
  border-radius: 200px;
  width: 157px;
  height: 157px;
  position: absolute;
  left: 443px;
  top: 0px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.programming {
  color: #ffffff;
  text-align: center;
  font-family: "Mulish", monospace;
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  position: absolute;
  left: 10px;
  top: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-illustrations:hover,
.button-graphics:hover,
.button-programming:hover{
  filter: brightness(1.1);
  cursor: pointer;
  transform: scale(1.03);
  transition: all 0.2s ease;
}

.buttons a {
  text-decoration: none;
}

/* ----------------------------------------------------------------------------------------- */
/* PORTFOLIO PAGE */

    .portfolio-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 60px;
      width: 100%;
    }

    .portfolio-section h2 {
      font-family: "Space Mono", monospace;
      font-size: 36px;
      color: #da6916;
      margin-bottom: 40px;
      text-align: left;
    }

    /* ........................................................ */
    /* ILLUSTRATIONS */

    .art-project {
      display: flex;
      flex-direction: column;
      align-items: center;
      max-width: 800px;
      gap: 20px;
      text-align: center;
    }

    .thumbnail-showcase {
      width: 100%;
      max-width: 800px;
      height: auto;
      border-radius: 60px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.1);
      margin-bottom: 0px; /* Space between image and text */
    }

    .project-description {
      font-family: "Space Mono", monospace;
      font-size: 16px;
      color: #333;
      line-height: 1.6;
      margin-bottom: 20px;
      max-width: 800px;
      text-align: center;
    }

    .carousel-wrapper {
      position: relative;
      width: 90%;
      max-width: 600px;
      margin: 0;
      padding: 0 50px; /* give room for buttons */
    }
    
    .carousel-container {
      overflow: hidden;
      border-radius: 60px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .carousel-track {
      display: flex;
      transition: transform 0.8s ease-in-out;
    }
    
    .carousel-track img {
      width: 100%;
      flex-shrink: 0;
      border-radius: 0px;
    }
    
    /* Shared button styling */
    .carousel-button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      padding: 0;
      width: 40px;
      height: 40px;
      cursor: pointer;
      z-index: 2;
    }

    /* Positioning the buttons outside the container */
    .carousel-button.left {
      left: -35px;
    }

    .carousel-button.right {
      right: -35px;
    }

    /* Icon styling */
    .carousel-icon {
      width: 100%;
      height: auto;
      transition: filter 0.2s ease, transform 0.2s ease;
    }

    /* Rotate icons for left and right */
    .left-icon {
      transform: rotate(-90deg);
    }

    .right-icon {
      transform: rotate(90deg);
    }

    /* Optional hover effect */
    .carousel-button:hover .carousel-icon {
      filter: brightness(1.2);
    }
    /* ........................................................ */    
    /* COMPUTER GRAPHICS */
  
    .cg-image {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap; /* Allows wrapping on small screens */
      gap: 20px;
      border-radius: 30px;
      margin: 0 0 40px;
    }
    
    .cg-image img {
      width: 100%;
      max-width: 800px; /* Adjust this for preferred size */
      height: auto;
      border-radius: 30px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .embedded-teapot iframe {
      width: 100%;
      /* max-width: 512px; */
      height: 360px;
      border-radius: 30px;
      margin-top: -16px;
    }
    
    .embedded-earth iframe {
      width: 100%;
      /* max-width: 512px; */
      height: 370px;
      border-radius: 30px;
      margin-top: -16px;
    }

    .cg-buttons {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      margin-top: 10px;
    }
    
    .cg-project-button {
      background-color: #da6916;
      color: white;
      padding: 12px 20px;
      font-family: "SpaceMono", monospace;
      font-weight: bold;
      font-size: 16px;
      border-radius: 25px;
      text-decoration: none;
      transition: background-color 0.3s ease;
    }
    
    .cg-project-button:hover {
      background-color: #a34e11;
    }

    /* ........................................................ */    
    /* PROGRAMMING/OTHER */

    .pr-project-button {
      background-color: #f5b92b;
      color: white;
      padding: 12px 20px;
      font-family: "Space Mono", monospace;
      font-weight: bold;
      font-size: 16px;
      border-radius: 25px;
      text-decoration: none;
      transition: background-color 0.3s ease;
    }
    
    .pr-project-button:hover {
      background-color: #d79c12;
    }

    .dropdown-info {
      width: 100%;
      max-width: 800px;
      margin: 60px auto 0 auto;
      font-family: "Space Mono", monospace;
      border: 2px solid #dca524;
      border-radius: 12px;
      padding: 10px;
      background-color: #fff7ec;
      overflow: hidden;
    }
    
    .dropdown-info summary {
      cursor: pointer;
      font-weight: bold;
      color: #f5b92b;
      font-size: 18px;
      list-style: none;
      position: relative;
      padding-left: 20px;
    }
    
    .dropdown-info summary::before {
      content: "▶";
      position: absolute;
      left: 0;
      transition: transform 0.3s ease;
    }
    
    .dropdown-info[open] summary::before {
      transform: rotate(90deg);
    }
    
    .dropdown-content {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: all 0.6s ease;
      font-size: 14px;
      padding: 10px;
    }
    
    .dropdown-info[open] .dropdown-content {
      max-height: 300px; /* adjust based on expected content height */
      opacity: 1;
      margin-top: 10px;
    }

    .dropdown-info summary {
      list-style: none; /* removes the marker from most browsers */
    }
    
    /* For Safari specifically */
    .dropdown-info summary::-webkit-details-marker {
      display: none;
    }


  
  .video-wrapper,
  .my-video {
    /* max-width: 600px; */
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /* ----------------------------------------------------------------------------------------- */
  /* ABOUT ME PAGE */


  .aboutme-section {
    display: flex;
    flex-direction: row;
    gap: 50px;
    margin-bottom: -30px;
    width: 100%;
    max-width: 1100px;
    justify-content: center;
    align-items: stretch;
  }
  
  .aboutme-block {
    flex: 1;
    max-width: 500px;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: "Space Mono", monospace;
    text-align: center;
    display: flex;              
    flex-direction: column;   
    justify-content: space-between; 
  }
  
  .aboutme-intro {
    background-color: #ffffff;
    color: #000000;
  }
  
  .aboutme-skills {
    background-color: #00967d;
    color: white;
  }
  
  .block-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: inherit;
  }
  
  .block-paragraph {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .skills-subsection {
    font-weight: bold;
    font-size: 26px;
    margin: 25px 0 10px;
    color: #f5b92b;
  }
  
  .pill-container-prog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    justify-items: center;
    padding: 0 30px; 
    gap: 12px;
  }
  
  .pill-container-soft {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    padding: 0 30px; 
    justify-items: center;
    gap: 12px;
  }

  .pill-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
  }
  
  .pill {
    background-color: #f5b92b;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
    color: #000000;
  }

      /* trio boxes */

      .aboutme-trio-boxes {
        display: flex;
        gap: 30px;
        margin-top: -20px;
        width: 100%;
        max-width: 1050px;
        justify-content: center;
      }
      
      .trio-box {
        flex: 1;
        background-color: white;
        padding: 30px 20px;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        font-family: "Space Mono", monospace;
        text-align: center;
      }
      
      /* LANGUAGES BOX */
      .languages-box {
        background-color: #c8661e;
        color: white;
      }
      
      .language-pill {
        background-color: white;
        color: #000000;
        border-radius: 100px;
        padding: 6px 12px;
        margin: 10px auto;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        font-size: 14px;
      }
      .language-pill span {
        background-color: #000000;
        color: white;
        border-radius: 50%;
        padding: 4px 5px;
        font-size: 12px;
      }
      
      /* QUALITIES BOX */
      .qualities-box {
        background-color: #f5b92b;
        color: white;
      }
      
      .pill-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
      }
      
      .pill-orange {
        background-color: #c8661e;
        color: white;

      }
      
      .pill-trio {
        font-size: 16px;
        font-weight: 700;
        padding: 6px 16px;
        border-radius: 100px;
        display: inline-block;
        white-space: nowrap;
      }
      
      /* EDUCATION BOX */
      .education-box {
        background-color: #a67c52;
        color: white;
      }
      
      .education-box .block-paragraph {
        font-size: 14px;
        line-height: 1.6;
        margin-top: 15px;
      }


      .aboutme-bonus-row {
        display: flex;
        gap: 10px;
        width: 100%;
        max-width: 650px;
        justify-content: center;
        align-items: stretch; 
        margin-top: -30px;
      }
      
      .bonus-box {
        flex: 1;
        /* padding: 3px 20px; */
        font-family: "Space Mono", monospace;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }
      
      .piechart-img {
        width: 100%;
        max-width: 300px;
        margin: 0;
      }
      
      .legend-list {
        list-style: none;
        padding-left: 0;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-weight: 700;
        font-size: 14px;
        max-width: 350px;
        margin: 0 auto;
      }
      
      .legend-list li {
        display: flex;
        align-items: center;
        gap: 12px;
      }
      
      .legend-circle {
        display: inline-block;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        font-size: 14px;
        font-weight: 700;
        color: white;
        text-align: center;
        line-height: 22px;
      }
 
/* ------------------------------------------------------------------------------ */
/* PHONE VERSION */
@media (max-width: 900px) {
  .homepage {
    padding: 40px 20px;
    gap: 60px;
  }

  .space-mono-regular {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    margin-top: 2px;
    margin-bottom: 2px;
    font-size: 16px;
  }

  .space-mono-regular_subtitle {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: italic;
    text-align: center;
    margin-top: -5px;
    margin-bottom: 2px;
    font-size: 13px;
  }

  .portfolio-section h2 {
    text-align: center;
  }

  /* HEADERS */
      .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 45px;
        height: auto;
      }

      .header_left_title {
        color: #da6916;
        font-family: "Mulish", monospace;
        font-size: 25px;
        font-weight: 900;
        font-style: italic;
      }
      .header_left_subtitle {
        color: #000000;
        font-family: "Space Mono", monospace;
        font-size: 12px;
        font-weight: 400;
      }
      .header_right {
          color: #000000;
          text-align: left;
          font-family: "Space Mono", monospace;
          font-size: 16px;
          font-weight: 400;
          position: relative;
        }

      .navigation_menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 30px 10px 0px;
        height: auto;
      }

      .header-logo-link {
        color: #da6916;
        text-decoration: none;
        display: inline-block;
        transition: transform 0.2s ease, filter 0.2s ease;
      }
      
      .header-logo-link:hover {
        filter: brightness(1.1);
        transform: scale(1.03);
      }
  
  .logo {
    width: 200px;
  }

  .intro {
    background: #ffffff;
    border-radius: 1000px;
    margin: 60px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
  }

  .frame-25 {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 30px;
  }
  
  .introtext {
    width: 100%;
    font-size: 16px;
    padding: 20px;
    margin-bottom: 40px;
    margin-right: 0px;
    text-align: center;
  }

  .buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    align-items: center;
    gap: 20px;
    position: static;
  }

  .button-illustrations,
  .button-graphics,
  .button-programming {
    position: static;
    width: 140px;
    height: 140px;
  }

  .illustrations,
  .programming  {
    font-size: 16px;
    padding: 60px 10px;
    top: unset;
    left: unset;
    position: relative;
    height: auto;
    width: auto;
  }

  .computer-graphics {
    font-size: 16px;
    padding: 50px 10px;
    top: unset;
    left: unset;
    position: relative;
    height: auto;
    width: auto;
  }

  .art-gallery-grid {
    flex-direction: column;
    align-items: center;
  }

  .art-gallery-grid img {
    width: 90%;
    height: auto;
  }

  .art-project {
    margin: 10px auto;
    padding: 10px 10px;
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
    gap: 10px;
  }

  .thumbnail-showcase {
    max-width: 100%;
    border-radius: 30px;
  }

  .project-description {
    /* padding: 25px ; */
    font-size: 12px;
    text-align: center ; 
    margin-top: 16px;/* Optional: neater on narrow screens */
    max-width: 600px;
    padding: 0 18px;
  }
  

  .art-project img {
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .carousel-wrapper {
    position: relative;
    width: 90%;
    max-width: 400px;
    margin:20px 0 0 0;
    padding: 0 50px; /* give room for buttons */
  }

  .carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
  }
  
  .carousel-track img {
    width: 100%;
    flex-shrink: 0;
    border-radius: 0px;
  }

  /* Shared button styling */
  .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 2;
  }

  /* Positioning the buttons outside the container */
  .carousel-button.left {
    left: -15px;
  }

  .carousel-button.right {
    right: -15px;
  }

  .cg-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    gap: 20px;
    border-radius: 30px;
    margin: 0 0 40px;
  }
  
  .cg-image img {
    width: 80%;
    max-width: 600px; /* Adjust this for preferred size */
    height: auto;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .embedded-teapot iframe {
    height: 362px;
    margin-bottom: -16px;
    margin-top: -6px;
  }

  .embedded-earth iframe {
    height: 370px;
    margin-bottom: -16px;
    margin-top: -6px;
  }

  .dropdown-info summary::before {
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
  }

  .cg-project-button {
    font-size: 14px;
    padding: 10px 16px;
  }


  /* about me */
  .aboutme-section {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .aboutme-block {
    width: 100%;
    max-width: 350px;
    margin-top: 8px;
  }

  .pill-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .aboutme-trio-boxes {
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
  }

  .trio-box {
    width: 100%;
    max-width: 350px;
    margin-bottom: 8px;
  }

  .pill-group {
    justify-content: center;
  }

  .language-pill {
    justify-content: center;
  }

  .aboutme-bonus-row {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }
  
  .bonus-box {
    width: 100%;
    max-width: 350px;
    margin-top: 20px;
    margin-bottom: -20px;
    align-items: center;
  }
  
  .video-wrapper,
  .my-video {
    max-width: 350px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .dropdown-info {
    width: 100%;
    max-width: 350px;
    margin: 30px auto 0 auto;
    font-family: "Space Mono", monospace;
    border: 2px solid #dca524;
    border-radius: 12px;
    padding: 10px;
    background-color: #fff7ec;
    overflow: hidden;
  }
  

  /* footer */
  .footer {
    padding: 60px 0 0 0;
    text-align: center;
  }
  .footer-span {
    color: #000000;
    font-family: "Space Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
  }
}
