/*===== 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: 224;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /*===== 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;
  --body-bg: #f8fbff;
  --section-bg: #ffffff;
  --text-color: #1f2937;
  --card-bg: #ffffff;
  --border-color: rgba(15, 23, 42, 0.08);
  --shadow-color: rgba(14, 36, 49, 0.08);
  --header-bg: #ffffff;
  --link-color: #2563eb;
  --button-bg: var(--first-color);
  --button-text: #ffffff;
  --input-bg: #ffffff;
  --input-border: rgba(15, 23, 42, 0.16);
  --box-bg: #ffffff;
  --body-link: #2563eb;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

:root {
  color-scheme: light;
}

.dark-theme {
  --body-bg: #0f172a;
  --section-bg: #111827;
  --text-color: #e2e8f0;
  --card-bg: #111827;
  --border-color: rgba(148, 163, 184, 0.18);
  --shadow-color: rgba(15, 23, 42, 0.4);
  --header-bg: #0f172a;
  --link-color: #93c5fd;
  --button-bg: #2563eb;
  --button-text: #ffffff;
  --input-bg: #1e293b;
  --input-border: rgba(148, 163, 184, 0.24);
  --box-bg: #111827;
  --body-link: #93c5fd;
  color-scheme: dark;
}

/*BASE */
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background-color: var(--body-bg);
}

h1, h2, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--link-color);
}

a:hover {
  text-decoration: underline;
}

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-top: var(--mb-2);
  margin-bottom: 1.5rem;
  text-align: center;
}
.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  
}

.section {
  padding-top: 2.25rem;
  padding-bottom: 2rem;
  background-color: transparent;
}

/*LAYOU*/
.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: var(--header-bg);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
}

/*NAV*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--header-bg);
    transition: 0.5s;
  }
}
.nav__item {
  margin-bottom: var(--mb-4);
}
.nav__link,
.nav__logo {
  text-decoration: none;
  position: relative;
  color: var(--text-color);
  transition: color 0.3s ease, transform 0.2s ease;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav__logo {
  font-weight: 700;
  letter-spacing: 0.06em;
}
.nav__link:hover,
.nav__logo:hover {
  color: var(--first-color);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav__link::after,
.nav__logo::after {
  display: none;
}
.active-link {
  color: var(--first-color);
  font-weight: 700;
}
.theme-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  cursor: pointer;
  transition: 0.3s ease;
  margin-right: 1rem;
}
.theme-button:hover {
  background-color: rgba(37, 99, 235, 0.08);
}
.nav__toggle {
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/*Active menu*/
.active-link {
  color: var(--first-color);
  font-weight: 700;
}
.nav__link::after,
.nav__logo::after {
  display: none;
}

/*Show menu */
.show {
  right: 0;
}

/* HOME */
.home {
  position: relative;
  row-gap: 3rem;
  padding: 3rem 0 3.5rem;
}
.home__data {
  align-self: center;
}
.home__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}
.home__title-color {
  color: var(--first-color);
}
.home__text {
  max-width: 620px;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  line-height: 1.85;
}
.home__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--text-color);
}
.home__social-icon:hover {
  color: var(--first-color);
}
.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
}
.home__blob {
  fill: var(--first-color);
}
.home__blob-img {
  width: 360px;
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 0.75rem 2rem;
  font-weight: var(--font-semi);
  border-radius: 0.75rem;
  transition: 0.3s;
}
.button:hover {
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.12);
}

/* ABOUT */
.about__container {
  row-gap: 1.75rem;
  text-align: center;
}
.about__subtitle {
  margin-bottom: 0.75rem;
}
.about__img {
  justify-self: center;
}
.about__img img {
  width: 220px;
  border-radius: 1rem;
  box-shadow: 0px 18px 40px rgba(15, 23, 42, 0.08);
}

/*  SKILLS */
.skills__container {
  row-gap: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  text-align: left;
}

.skills__box {
  padding: 1.4rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  box-shadow: 0px 10px 25px rgba(14, 36, 49, 0.08);
}

.skills__subtitle {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--first-color);
}

.skills__list {
  list-style: disc inside;
  line-height: 1.8;
  color: var(--text-color);
}

#interests {
  padding: 1.75rem 0;
}

.interests__container {
  display: grid;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.interests__card,
.interest-card {
  padding: 1.4rem;
  border-radius: 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0px 10px 30px rgba(14, 36, 49, 0.04);
}

.interests__card h3,
.interest-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--first-color);
}

.interests__card p,
.interest-card p {
  margin: 0;
  line-height: 1.8;
  color: var(--text-color);
}

.skills__subtitle {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--first-color);
}

.skills__list {
  list-style: disc inside;
  line-height: 1.75;
  color: var(--text-color);
}

.achievement-list,
.responsibility-list {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-color);
  line-height: 1.8;
}

.achievement-list li,
.responsibility-item {
  margin-bottom: 1.5rem;
}

.responsibility-item {
  padding: 1.4rem;
  border-radius: 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0px 10px 25px rgba(14, 36, 49, 0.04);
}

.responsibility-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--first-color);
}

.responsibility-date {
  margin-bottom: 1rem;
  color: var(--text-color);
  opacity: 0.75;
  font-size: 0.95rem;
}

.responsibility-item ul {
  list-style: disc inside;
  margin: 0;
  padding-left: 1rem;
  color: var(--text-color);
}

.responsibility-item ul li {
  margin-bottom: 0.75rem;
}

.skills__text {
  margin-bottom: var(--mb-4);
}
.skills__data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  padding: 0.5rem 1rem;
  margin-bottom: var(--mb-4);
  border-radius: 0.5rem;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
}
.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: var(--first-color);
}
.skills__names {
  display: flex;
  align-items: center;
}
.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);
}
.skills__html {
  width: 95%;
}
.skills__css {
  width: 85%;
}
.skills__js {
  width: 65%;
}
.skills__ux {
  width: 85%;
}
.skills__img {
  border-radius: 0.5rem;
}

/* 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);
}

.certification__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.certification__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.certification__title {
  margin-bottom: 1rem;
  color: var(--first-color);
}

.coding__summary {
  color: var(--text-color);
  line-height: 1.75;
}

.coding__card {
  padding: 1.25rem;
  border-radius: 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0px 10px 25px rgba(14, 36, 49, 0.04);
}

.coding__card h3 {
  margin-bottom: 0.75rem;
  color: var(--first-color);
}

.coding__card p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-color);
}

.coding__card a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
}

.coding__card a:hover {
  text-decoration: underline;
}

@media screen and (min-width: 768px) {
  .hackathon-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media screen and (min-width: 992px) {
  .certification__container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.certification__item {
  padding: 1.25rem;
  border-radius: 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0px 10px 25px rgba(14, 36, 49, 0.04);
}

.certification__item h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.certification__item p {
  margin: 0 0 0.75rem;
  color: var(--text-color);
}

.certification__item a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
}

.certification__item a:hover {
  text-decoration: underline;
}

/*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: var(--second-color);
  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);
}

/* MEDIA QUERIES*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }
  .home__img {
    width: 200px;
  }
}
@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 0;
    flex-direction: row;
    align-self: flex-start;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
    color: var(--text-color);
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .certification__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }
  .contact__container {
    justify-items: center;
  }
}
@media screen and (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(--text-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
  }
  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 320px;
  }
  .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 screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 0;
  }
}


/*---------------------------Education & Internship---------------------------*/

.education-content .row{
  display: flex;
  border-radius: 5px;

}

.education-content .title{
  color: var(--first-color);
}
.education-content .row .education,
.education-content .row .internship
{
  color: var(--text-color);
  flex:0 0 50%;
  max-width: 40%;
  margin-top: 20px;
  margin-left: auto;

  
} 
.education-content  h3.title{
  font-size:24px;
  margin-bottom: 30px;
  font-weight: 600;
}
.education-content .row.timeline-box{
  flex:0 0 100%;
  max-width: 100%;  
}
.education-content .row .timeline{
  /* background-color:#e5e5e5; */
  padding: 30px 15px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 100%;
  position: relative;
}
.education-content .row .timeline-item{
  position:relative;
  padding-left: 37px;
  padding-bottom: 17px; 
}
.education-content .row  .internship .timeline-item{
  position:relative;
  padding-left: 37px;
  padding-bottom: 0px; 
}
.education-content .row .timeline-item:last-child{
  padding-bottom: 0;
}
.education-content .row .timeline-item::before{
  content: "";
  width: 1px;
  position: absolute;
  height: 100%;
  left: 7px;
  top: 0;
  background-color: var(--first-color);  
}
.education-content .row .circle-dot{
  position: absolute;
  left: 0;
  top: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: var(--first-color);
}
.education-content .row .timeline-title  {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.education-content .row .internship .timeline-title  {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.education-content .row .timeline-text{
  line-height: 25px;
  font-size: 16px;
  text-align: justify;
}
.ee{
  align-items: center;
  justify-content: center;
}



/*---------------------------Projects---------------------------*/
.project-content{
  padding: 90px 0;
  /* color:#fff;  */
}
.project-title{
  margin-bottom: 60px;
  text-align: center;
}
.project-title h4{
  text-transform: uppercase;
  font-size: 40px;
  line-height: 40px;
  color: var(--first-color);
  margin-bottom: 20px;
}
.project-title p{
  color: var(--text-color);
}
.projects{
  display: flex;
  justify-content:space-between;
  flex-wrap: wrap;
}
.project{
    /* padding: 30px 15px; */
    color: var(--text-color);
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    border-radius: 10px;
    width: 100%;
    position: relative;
    padding: 25px;
    text-align: center;
    flex-basis: 32%;
    transition: .3s;
}
.project i{
  background-color: var(--first-color);
  width: 60px;
  height: 60px;
  color: var(--button-text);
  font-size: 26px;
  line-height: 60px;
  border-radius: 50%;
}
.project h4{
  font-size: 26px;
  text-transform: capitalize;
  margin: 20px 0;
}
.project p{
  text-align: justify;
}
.project:hover{
  border-color: var(--first-color);
}




.container{
  width: 1170px;
  margin:auto;
}

@media only screen and (max-width:767px){
  .container{
    width: 350px;
  }

  .education-content .row {
    flex-direction: column;
    height: auto;
    margin-bottom: 50px;
  }

  .education-content .row .education,
  .education-content .row .internship {
    flex-basis: 100%;
    max-width: 100%;
    margin-top: 30px;
  }
  .project{
    flex-basis: 100%;
    margin-bottom: 30px;
  }

}


/* Medium layout */
@media only screen and (min-width:1000px) and (max-width:1200px){
  .container{
    width: 970px;
  }
}
/* tablet layout */
@media only screen and (min-width:768px) and (max-width:999px){
  .container{
    width: 750px;
  } 
}  

.link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  background-color: var(--first-color);
  cursor: pointer;
  color: var(--button-text);
  border-radius: 0.75rem;
  border: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link:hover {
  transform: translateY(-1px);
  box-shadow: 0px 10px 20px rgba(15, 23, 42, 0.12);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
