/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 240;
  --first-color: rgb(38, 177, 26);
  --second-color: rgb(255, 255, 255);
  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}


/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

header {
  background: transparent;

}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  background: rgba(0, 0, 0, 0.749);
  /* Adjust opacity (0.6 = darker, 0.3 = lighter) */
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
  /* Start hidden */
  animation: fadeIn 2s ease-in-out forwards;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
  /* background-image: url('../img/unti'); */
  background-size: cover;
  /* Cover the entire viewport */
  background-color: black;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* Keeps it fixed while scrolling */
}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-4);
  text-align: center;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: rgb(0, 0, 0);
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);

}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color: #fff;
}

.nav__link:hover {
  position: relative;
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

.nav__logo {
  color: var(--second-color);
}

.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 20px;
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 5rem;
}

/* .home__data {
  align-self: center;
} */
.home__title {
  font-size: calc(var(--big-font-size) - 0.9rem);
  /* Reduce by 0.5rem */
  color: white;
}

.home__title-color {
  color: var(--first-color);
  font-size: 20px;
}

/* color: rgb(19, 222, 0); */
.home__social {
  display: flex;
  flex-direction: column;
}

.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--second-color);
}

.home__social-icon:hover {
  color: var(--first-color);
}

.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
  overflow: visible;
  /* Ensure nothing gets cropped */
}

.home__blob {
  fill: var(--first-color);
  width: 600px;
  height: 600px;
  overflow: visible;
  /* Ensure nothing gets cropped */

}

.home__blob-img {
  width: 500px;
  height: 500px;
}


@keyframes blobMorph {
  0% {
    d: path("M9.19024 145.964C34.0253 76.5814 114.865 54.7299 184.111 29.4823C245.804 6.98884 311.86 -14.9503 370.735 14.143C431.207 44.026 467.948 107.508 477.191 174.311C485.897 237.229 454.931 294.377 416.506 344.954C373.74 401.245 326.068 462.801 255.442 466.189C179.416 469.835 111.552 422.137 65.1576 361.805C17.4835 299.81 -17.1617 219.583 9.19024 145.964Z");
  }

  50% {
    d: path("M30 130C50 60 130 40 190 20C250 -10 320 -30 380 10C440 50 480 110 490 180C500 250 460 310 420 360C380 420 330 470 260 480C190 490 120 450 70 390C20 320 -20 250 30 130Z");
  }

  100% {
    d: path("M9.19024 145.964C34.0253 76.5814 114.865 54.7299 184.111 29.4823C245.804 6.98884 311.86 -14.9503 370.735 14.143C431.207 44.026 467.948 107.508 477.191 174.311C485.897 237.229 454.931 294.377 416.506 344.954C373.74 401.245 326.068 462.801 255.442 466.189C179.416 469.835 111.552 422.137 65.1576 361.805C17.4835 299.81 -17.1617 219.583 9.19024 145.964Z");
  }
}

.home__blob path {
  animation: blobMorph 6s ease-in-out infinite alternate;
  fill: white;

}

.resumebutton {
  color: white;
  background-color: transparent;
  border-color: var(--first-color);
  padding: 13px;
  border-radius: 10px;
  border-width: 3px;
  transition: 0.3s;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  margin-top: 0px;

}

.resumebutton:hover {
  color: black;
  background-color: var(--first-color);
  border-color: white;
  padding: 13px;
  border-radius: 10px;
  border-width: 3px;
  font-size: 15px;
  font-weight: bold;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  margin-top: 0px;

}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
}

.button:hover {
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
}

/* ===== ABOUT =====*/
.about__container {
  row-gap: 2rem;
  text-align: center;
}

.about__subtitle {
  margin-bottom: var(--mb-2);
}

.about__img {
  justify-self: center;
}

.about__img img {
  width: 400px;
  border-radius: 0.5rem;
}

/* ===== SKILLS =====*/
.skills__container {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.skills_tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

.skills__text {
  margin-bottom: var(--mb-4);
  margin-left: 5px;
}

.skill__item {
  display: flex;
  flex-direction: row;
  margin-right: 20px;
  margin-left: 20px;
}

.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: var(--first-color);
  margin-bottom: var(--mb-2);

}

.skills__names {
  display: flex;
  align-items: center;
  margin-bottom: 20px;

}

.skill__name--border {
  border-bottom: 2px solid green;
  /* Green border below the name */
  padding-bottom: 0.5rem;
  /* Space between text and border */
  margin-bottom: 0.5rem;
  /* Space between border and the bar */
}

.skills__name {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-color: var(--first-color);

}

.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
  height: 0.25rem;
  border-radius: 0.5rem;
  z-index: var(--z-back);
  margin-top: 0.5rem;
  /* Space between name and bar */

}


.skills__html {
  width: 95%;
}

.skills__css {
  width: 85%;
}

.skills__js {
  width: 65%;
}

.skills__ux {
  width: 85%;
}

.skills__img {
  max-width: 400px;
  height: 150px;
}

.skills-image {
  flex: 1;
  /* Takes 4/12 (or 33.33%) */
  text-align: center;
}

/* ===== WORK =====*/
.work__container {
  row-gap: 2rem;
}

.work__img {
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
}

.work__img img {
  transition: 1s;
}

.work__img img:hover {
  transform: scale(1.1);
}

/* ===== CONTACT =====*/
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  outline: none;
  margin-bottom: var(--mb-4);
}

.contact__button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

/* ===== FOOTER =====*/
.footer {
  background-color: rgba(5, 85, 5, 0.562);
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}

.footer__title {
  font-size: 2rem;
  margin-bottom: var(--mb-4);
}

.footer__social {
  margin-bottom: var(--mb-4);
}

.footer__icon {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-2);
}

.footer__copy {
  font-size: var(--smaller-font-size);
}

.home_role {
  font-size: 20px;
  font-family: Monospace;
}

.experience_tab {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 1080%;
}

.experience_tab1 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 1080%;
}

.expss-text {
  width: 100%;
}

.experience_imgtab {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: start;
}

.nav__list {
  display: flex;
  list-style: none;
}

.nav__list li {
  margin: 0 15px;
}

.nav__list a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s, text-decoration 0.3s, background-color 0.3s;
  padding: 5px 10px;
}

.nav__list a:hover,
.nav__list a.active {
  color: #e0e0e0;
  /* Lighter color for active/hover */
  background-color: #1c7430;
  /* Darker green background on hover */
  border-radius: 4px;
  /* Optional: rounded corners */
}

/* Menu toggle button for mobile view */

.nav__toggle .bar {
  background-color: #fff;
  height: 3px;
  width: 25px;
  margin: 5px;
}

/* ===== MEDIA QUERIES=====*/
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

@media (max-width: 767px) {
  .nav__list {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #28a745;
  }

  .nav__list.active {
    display: flex;
  }

  .nav__list li {
    margin: 10px 0;
    text-align: center;
  }

  .nav__toggle {
    display: flex;
  }

  .expss_tab {
    width: 100%;
    margin-left: 15px;
    font-size: 13px;
  }

  .nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: var(--font-semi);
    width: 100%;
    background-color: rgb(0, 0, 0);
  }

  .l-header {
    width: 95%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    /* background-color: rgb(0, 0, 0); */
    box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .exp__img {
    max-width: 90px;
    height: 75px;
    margin-left: 20px;
  }

  .exprs-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
  }

  .experience_tab {
    width: 95%;
    align-items: center;
    margin-bottom: 20px;
  }

  .experience_tab1 {
    width: 95%;
    align-items: center;
    margin-bottom: 5px;
  }

  .expss-text {
    width: 70%;
  }

  .home {
    position: relative;
    row-gap: 5rem;
    padding: 4rem 0 5rem;
  }

  .experience_subtitle {
    margin-left: 5%;
    margin-bottom: 0px;
    color:#00af3d;
  }

  .exp_dates {
    font-size: 15px;
    font-weight: 100;
    display: block;
  }

  .skills_tab {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 10px;

  }

  .skills-text {
    width: 60%;
  }

  .skills-image {
    position: relative;
    top: -20px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .skills__img {
    width: 150px;
    height: auto;
    x: -20px;
  }

  .about__text {
    text-align: start;
    position: relative;
  }

  .about__subtitle {
    text-align: start;

  }

  .home_role {
    font-size: 15px;
    font-family: Monospace;
  }

  #bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
    /* Start hidden */
    animation: fadeIn 2s ease-in-out forwards;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background: transparent;
    transition: 0.5s;
  }

  .skills__data {
    display: flex;
    flex-direction: row;
    justify-content: start;
    font-weight: var(--font-semi);
    margin-bottom: 0px;
    border-radius: 0.5rem;
    box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
    flex-wrap: wrap;
    /* Allows items to move to the next row */
    gap: 10px;
    /* Adds spacing between items */

  }

  .skill__item {
    flex: 0 1 calc(45% -5px);
    /* Each item takes 50% width minus spacing */
    display: flex;
    justify-content: start;
    align-items: center;
  }

  .skills__subtitle {
    margin-top: 0px;
    margin-bottom: 20px;
    width: 100%;
  }

  .resumebutton {
    color: white;
    background-color: transparent;
    border-color: var(--first-color);
    padding: 13px;
    border-radius: 10px;
    border-width: 3px;
    transition: 0.3s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 10px;
    margin-top: 0px;

  }

  .home__img {
    right: 0;
    bottom: 0;
    width: 260px;
    padding-top: 20px;
  }

  .home__blob {
    fill: var(--first-color);
    width: 400px;
    height: 400px;
    overflow: visible;

  }

  .home__blob-img {
    width: 500px;
    height: 500px;
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
    /* Prevents interaction outside the masked area */

  }

  .mask2 {
    pointer-events: auto;
    /* Allows hover only within the mask */
  }


}

@media (max-width: 320px) {
  .expss_tab {
    width: 100%;
    margin-left: 15px;
    font-size: 12px;
  }

  .exp__img {
    max-width: 90px;
    height: 75px;
    margin-left: 20px;
  }

  .exprs-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
  }

  .experience_tab {
    width: 95%;
    align-items: center;
    margin-bottom: 20px;
  }

  .experience_tab1 {
    width: 95%;
    align-items: center;
    margin-bottom: 5px;
  }

  .expss-text {
    width: 70%;
  }

  .home {
    position: relative;
    row-gap: 5rem;
    padding: 4rem 0 5rem;
  }

  .experience_subtitle {
    margin-left: 5%;
    margin-bottom: 0px;
    color:#00af3d;

  }

  .exp_dates {
    font-size: 15px;
    font-weight: 100;
    display: block;
  }

  .home {
    row-gap: 2rem;
  }

  .home_role {
    font-size: 20px;
    font-family: Monospace;
  }

  .home__img {
    width: 200px;
  }

  .skill__item {
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 576px) {
  .work_section {
    padding: 20px;
  }

  .experience_tab {
    display: flex;
    flex-direction: row;
    width: 90%;
    padding-left: 10%;
    justify-content: center;
    margin-bottom: 20px;
  }

  .expss-texttab {
    width: 100%;
    margin-left: 0px;
    align-content: center;
  }

  .expss_tab {
    width: 100%;
    margin-left: 0px;
    font-size: 17px;
  }

  .exp__img {
    max-width: 170px;
    height: auto;
  }

  .experience_subtitle {
    margin-left: 17%;
    color:#00af3d;

  }

  .exp_dates {
    font-size: 15px;
    margin-left: 20px;
    font-weight: 100;
  }


  .skills__subtitle {
    text-align: left;
    /* Aligns text to the left */
    width: 100%;
    /* Ensures it spans full width */
  }

  .skills_tab {
    display: flex;
    flex-direction: row;
    margin-top: 0px;
    justify-content: space-between;
    margin-bottom: 10px;

  }

  .skills-text {
    width: 70%;
  }

  .home_role {
    font-size: 25px;
    font-family: Monospace;
  }

  .home__title-color {
    font-size: 40px;
  }

  .skills__data {
    display: flex;
    flex-direction: row;
    justify-content: start;
    font-weight: var(--font-semi);
    margin-bottom: 0px;
    border-radius: 0.5rem;
    box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  }

  .skills__subtitle {
    margin-top: 0px;
    margin-bottom: 20px;
  }

  .home {
    padding: 4rem 0 2rem;
  }

  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }

  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }

  .home__img {
    width: 300px;
    bottom: 25%;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }

  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
  }

  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }

  .contact__container {
    justify-items: center;
  }

  .skill__item {
    display: flex;
    flex-direction: column;
    column-gap: 0px;
  }
}

@media (min-width: 768px) {

  body {
    margin: 0;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .section-title {
    margin-bottom: var(--mb-6);
  }

  .section-title::after {
    width: 80px;
    top: 3rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__list {
    display: flex;
    padding-top: 0;
  }

  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }

  .nav__toggle {
    display: none;
  }

  .nav__link {
    color: var(--second-color);
  }

  .home {
    padding: 8rem 0 2rem;
  }

  .home__img {
    width: 400px;
    bottom: 10%;
  }

  .about__container {
    padding-top: 2rem;
  }

  .about__img img {
    width: 400px;
  }

  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }

  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }

}

@media (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .home {
    padding: 10rem 0 2rem;
  }

  .home__img {
    width: 450px;
  }
}