
/*===== 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;
  /*===== 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;
  }
}

/*===== 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(--second-color);
  overflow-x:hidden;
}

h1, h2, p {
  margin: 0;
}

    


ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration:none;
  padding:auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size:2em;
  color:hsl(var(--hue-color), 89%, 60%);
}

.section {
  padding-top: 3rem;
  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: #fff;
  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);
}
@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(--second-color);
    transition: 0.5s;
  }
}
.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(--first-color);
  font-size:1.5rem;
  font-family: "Pacifico", cursive;
  font-weight: 400;
}
.nav__toggle {
  color: var(--second-color);
  font-size: 1.7rem;
  cursor: pointer;
}

/*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;
}

.Them_Container{
  height:40px;
  width:40px;
  border:2px solid var(--first-color);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  cursor:pointer;
  
}

.Them_Container:hover{
  border-color:#000;
}

#Theme_icon{
  font-size:25px;
  color:#000;
}

@media(max-width:400){
  .Them_Container{
    margin-left:80%;
  }
}



/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 5rem;
}
.home__data {
  align-self: center;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
  animation: fadeSlideIn 1s ease-in-out forwards;
   line-height: 1.4;
  transform: translateY(30px);
  animation-delay: 0s;
}


/* Jump / bounce effect */
@keyframes fadeJump {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.home__title-color {
  color: var(--first-color);
   display: inline-block;
  opacity: 0;
  animation: fadeJump 1s ease-in-out forwards;
  animation-delay: 0.5s;
  transform: translateY(20px);
}


  
    .dev-title{
      font-weight: bold;
      border-right: 3px solid var(--first-color); /* cursor */
      white-space: nowrap;
      overflow: hidden;
      display: inline-block;
      width: 0;
      animation: typing 3s linear infinite alternate,
                 blink .7s step-end infinite;
    }

    /* Smooth write/erase */
    @keyframes typing {
      from { width: 0; }
      to { width: 8.6ch; } /* character count of text */
    }

    /* Cursor blinking */
    @keyframes blink {
      50% { border-color: transparent; }
    }



.home__social {
  display: flex;
  flex-direction: column;
  margin-top:-2.5%;
}

 .home__social-icon {
  margin-bottom: var(--mb-2);
  font-size: 1.8rem;
  color: var(--second-color);
}

.home__social-icon:hover {
  color: var(--first-color);
}

@media (max-width:400px)  {
  .home__social-icon{
    margin-top:10px;
  }
}


.home__img {
  position: absolute;
  right: 0;
  bottom:12%;
  width:170px;
  display: inline-block;
  padding:3px; /* creates space for border */
  border:5px solid var(--second-color);
  border-radius: 50%; /* makes it circular */
  animation: borderColorChange 4s linear infinite;
   -webkit-animation: scale-up-center 0.5s linear both;
	 animation: scale-up-center 0.5s linear both;
}

.home_img img{
  display: block;
  width: 150px; /* or your preferred size */
  height: 150px;
  border-radius: 50%; /* match container for full round */
  object-fit: cover;
  -webkit-animation: scale-up-center 0.08s linear both;
	 animation: scale-up-center 0.08s linear both;
}






/*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 {
  row-gap: 2rem;
  text-align: center;
}
.skills__subtitle {
  margin-bottom: var(--mb-2);
}
.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 banner slider */
 .slider {
      position: relative;
      width: 100%;
      max-width: 600px;
      overflow: hidden;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    .slides {
      display: flex;
      /* transition: transform 0.5s ease-in-out; */
      width: 300%;
    }
    .slide {
      width: 100%;
      flex-shrink: 0;
    }
    .slide img {
      width: 100%;
      display: block;
    }
    .dots {
      position: absolute;
      bottom: 15px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
    }
    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #ddd;
      cursor: pointer;
      transition: background 0.3s;
    }

    .dot.active {
      background: #333;
    }




/* ===== WORK =====*/
.experience-section {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
}

.experience-section h2 {
  text-align: center;
  margin-bottom: 20px;
   font-size:2em;
  color:hsl(var(--hue-color), 89%, 60%);
}


.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.experience-item {
  background: white;
  padding: 20px;
  border-left: 4px solid #007BFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

.experience-item h3 {
  margin-bottom: 5px;
  color: #007BFF;
}

.company {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}

.experience-item p {
  margin: 0;
  color: #555;
}

@media (max-width: 600px) {
  .experience-item {
    padding: 15px;
  }
}

/*===== PROJECT SECTION ===== */
.projects-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.projects-section h2 {
  text-align:center;
  margin-bottom:30px;
  font-size:2em;
  color:hsl(var(--hue-color), 89%, 60%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
}

.project-card {
  background-color:#fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:0 7px 14px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.project-card a:hover{
  color:#007BFF;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width:100%;
  height:auto;
  object-fit: cover;
}

  @media (max-width: 600px) {
      .project-card img{
        width: 100%;
        border-radius: 0;
        overflow-y:hidden;
      }
    }

.project-card h3 {
  margin: 15px;
  font-size: 1em;
  font-weight:600;
  color:#000;
}


.project-card p {
  margin: 0 15px 15px;
  color: #666;
  font-size: 0.95em;
}

/* ==== COMPANY PROJECTS ==== */
.project-section {
  max-width: 1000px;
  width:100%;
  margin: 50px auto;
  padding: 20px;
  border:2px solid #000;
}

.project-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color:hsl(var(--hue-color), 89%, 60%);
}

.slider-container {
  position: relative;
  overflow: hidden;
  border:2px solid #000;
  width:100%;
}

.slider {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  border:2px solid #000;
  width:100%;
}

.project-card {
  min-width: calc(33.33% - 13.3px);
  background: white;
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s;
  border: 2px solid #;
}

.project-card img {
  width: 100%;
  height: auto;
}

.project-card a {
  display: block;
  margin-top: 10px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

.slider-btn.left {
  left: 0;
}

.slider-btn.right {
  right: 0;
}

@media (max-width: 768px) {
  .project-card {
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .project-card {
    min-width: 100%;
  }
}




/* ===== 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);
  font-family: "Pacifico", cursive;
  font-weight:300;
}
.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: 400px) {
  .home {
    row-gap: 1rem;
  }
  .home__img {
    width: 230px;
    height:230px;
  }

  .home__social-icon{
    margin-top:20px;
  }
}


@media screen and (min-width: 576px) {
  .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;
    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(--second-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width:600px;
    bottom: 10%;
    justify-content:center;
  }
  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 300px;
  }
  .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: 450px;
  }
}




