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

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: #ff6347 !important;
  margin-top: var(--mb-2);
  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: #ff6347;
}

.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: #ffe5d6;
    transition: 0.5s;
  }
}
.nav__item {
  margin-bottom: var(--mb-4);
}
.nav__link {
  position: relative;
  color: black;
}
.nav__link:hover {
  position: relative;
}
.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: #ff6347;
}
.nav__logo {
  color: var(--second-color);
}
.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: #ff6347;
}

/*=== 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: var(--big-font-size);
  margin-bottom: var(--mb-5);
}
.home__title-color {
  color: #ff6347;
}
.home__social {
  display: flex;
  flex-direction: column;
}
.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 2.5rem;
  color: var(--second-color);
}
.home__social-icon:hover {
  color: #ff6347;
}
.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
}
.home__blob {
  fill: #dd8066;
}
.home__blob-img {
  width: 360px;
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: #ff6347;
  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: 200px;
  border-radius: 0.5rem;
}
.about__text {
  text-align: justify;
  /* margin-bottom: 1em; Adjust as needed */
}

/* ===== EDUCATION =====*/
.education__item {
  display: flex; /* Use flexbox for horizontal alignment */
  align-items: center; /* Center items vertically */
  background-color: #ffffff;
  border: 1px solid #ffffff80;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 20px 0; /* Vertical margin for spacing */
  padding: 20px;
  width: 100%; /* Full width */
  max-width: 600px; /* Adjust max-width to allow side-by-side display */
  transition: transform 0.3s, box-shadow 0.3s;
}

.education__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.education__item img {
  max-width: 100px; /* Adjust based on logo size */
  margin-right: 20px; /* Space between image and text */
}

.education__details {
  flex-grow: 1; /* Allow details to take the remaining space */
  text-align: left; /* Align text to the left */

}

.education__degree {
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px 0;
  color: black; /* Adjust color as needed */
}

.education__institution {
  font-size: 1em;
  margin: 5px 0;
  color: #555;
}

.education__duration,
.education__gpa {
  font-size: 0.9em;
  color: #777;
}

.education__status {
  font-size: 0.9em;
  color: #555; /* Adjust color as needed */
  margin: 5px 0; /* Margin for spacing */
}

/* Media Queries for Responsiveness */

/* For small screens: stack content vertically */
@media screen and (max-width: 768px) {
  .education__item {
    flex-direction: column; /* Stack content vertically */
    text-align: center; /* Center content for better presentation */
  }

  .education__item img {
    margin-right: 0; /* Remove horizontal space */
    margin-bottom: 15px; /* Add spacing below the image */
    max-width: 80px; /* Resize the image for smaller screens */
  }

  .education__degree {
    font-size: 1.1em; /* Slightly smaller text size */
  }

  .education__institution, 
  .education__duration, 
  .education__gpa, 
  .education__status {
    font-size: 0.9em; /* Reduce font size for better readability */
  }
}

/* For extra-small screens: adjust padding and spacing */
@media screen and (max-width: 480px) {
  .education__item {
    padding: 15px; /* Reduce padding */
  }

  .education__degree {
    font-size: 1em; /* Adjust font size for smaller screens */
  }

  .education__institution, 
  .education__duration, 
  .education__gpa, 
  .education__status {
    font-size: 0.85em; /* Further reduce font size */
  }

  .education__item img {
    max-width: 60px; /* Make the image smaller for extra-small screens */
  }
}

/* For large screens: no changes, retain full layout */
@media screen and (min-width: 992px) {
  .education__item {
    max-width: 1200px; /* Restrict the max width for large screens */
  }
}

/* ===== SKILLS =====*/
/* General Styles
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
} */

/* Skills Section */
.skills {
  padding: 4rem 0;
}

.skills__container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping to create two columns */
  justify-content: space-between; /* Space between columns */
  row-gap: 2rem; /* Space between rows */
}

.skills__subtitle {
  font-size: 20px;
  margin: 0; /* Remove default margin */
  text-align: left; /* Left-align for better readability */
  padding: 10px 15px; /* Add some padding for spacing */
  /* Optional: you can set a specific color */
}

.skills__column {
  flex: 1; /* Allow each column to take equal space */
  margin: 15px; /* Margin for spacing between columns */
}

.skills__text {
  width: 100%; /* Full width */
  margin: 0; /* Remove default margin */
  padding: 0 1rem; /* Add some horizontal padding for aesthetics */
  box-sizing: border-box; /* Ensure padding is included in width */
}

/* Skills Data */
.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 rgb(205, 215, 226);
}

.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
}

.skills__names {
  display: flex;
  align-items: center;
}

.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: #ff6347; /* Base color for progress bars */
  height: 0.25rem;
  border-radius: 0.5rem;
  z-index: var(--z-back);
}

/* Language Skills */
.skills__html {
  width: 95%;
  background-color: #c447b3;
}

.skills__css {
  width: 85%;
  background-color: #68a063;
}

.skills__php {
  margin-top: 40px;
  width: 80%;
  background-color: #e6cc0d;
}

.skills__c {
  width: 70%;
  background-color: #081d61cd;
}

.skills__cpp {
  width: 70%;
  background-color: #616fd9ce;
}

.skills__python {
  width: 75%;
  background-color: #6387a0;
}

/* .skills__react {
  width: 75%;
  background-color: #1f93ffcd;
} */

.skills__kotlin {
  width: 75%;
  background-color: #721473;
}

.skills__java {
  width: 80%;
  background-color: #f89820;
}

/* .skills__db {
  width: 85%;
  background-color: #4caf50;
} */

.skills__js {
  width: 70%;
  background-color: #f7df1e;
}

.skills__sql {
  width: 85%;
  background-color: #ff4081;
}

.skills__names img {
  width: 2rem; /* Set width to match icon size */
  height: 2rem; /* Set height to match icon size */
  margin-right: var(--mb-2); /* Space between the image and text */
}

/* Technical Skills */
/* Bar styles for skill proficiency levels */
.skills__problem-solving,
.skills__team-collaboration,
.skills__time-management,
.skills__adaptability,
.skills__critical-thinking,
.skills__emotional-intelligence,
.skills__communication {
  height: 8px;
  border-radius: 4px;
  margin-top: 15px;
}


.skills-header {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #333;
  text-align: center; /* Center the header for better visual balance */
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns for larger screens */
  gap: 20px;
  padding: 0 20px; /* Add padding for better spacing on small screens */
}

/* Responsive for skill card layout */
@media screen and (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr; /* Switch to single column layout on smaller screens */
  }

  .skill-card {
    padding: 20px; /* Reduce padding for smaller screens */
  }

  .skill-title {
    font-size: 1.5rem; /* Slightly reduce font size */
  }

  .skill-icon {
    font-size: 40px; /* Reduce icon size */
  }
}

@media screen and (max-width: 480px) {
  .skills-header {
    font-size: 2rem; /* Further reduce the header font size */
  }

  .skill-card {
    padding: 15px; /* Further reduce padding */
  }

  .skill-title {
    font-size: 1.4rem; /* Reduce the title font size for smaller screens */
  }

  .skill-icon {
    font-size: 35px; /* Adjust icon size */
  }
}

.skill-card {
  background: white;
  border: 1px solid #ffffff57;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.skill-card img {
  width: 50px;
}

.skill-icon {
  font-size: 50px;
  color: #007bff; /* Change to your preferred color */
  margin-bottom: 15px;
}

.skill-title {
  font-size: 1.8rem;
  margin: 15px 0;
  color: #444;
}

.skill-description {
  color: #555;
  line-height: 1.6;
}

/* General media queries for text scaling on extra-small screens */
@media screen and (max-width: 320px) {
  .skills-header {
    font-size: 1.8rem;
  }

  .skill-title {
    font-size: 1.3rem;
  }

  .skill-description {
    font-size: 0.85rem;
  }

  .skill-icon {
    font-size: 30px;
  }
}

/* Soft Skills Section */
.soft-skills {
  padding: 4rem 0;
}

.soft-skills__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px; /* Space between the skill cards */
  padding: 0 1.5rem; /* Optional padding for container */
}

.soft-skill__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border: 1px solid #ffffff77;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.soft-skill__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.soft-skill__icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #007bff; /* Customize icon color */
}

.soft-skill__name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #444;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .soft-skills__container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }
}

@media (max-width: 576px) {
  .soft-skills__container {
    grid-template-columns: 1fr; /* Stack in one column on small screens */
  }
}


/* ===== Projects =====*/
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9; /* Light background for contrast */
}

.section {
  padding: 2rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333; /* Dark color for the title */
}

.work__container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 2rem; /* Add some padding for alignment */
}

.work__item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background-color: #fff; /* White background for items */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Light shadow */
}

.work__item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.work__img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.work__item:hover img {
  transform: scale(1.1);
}

.work__details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.work__item:hover .work__details {
  transform: translateY(0);
}

.work__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.work__item:hover .work__title {
  color: #ff6347; /* Accent color on hover */
}

.work__description {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.work__tech {
  font-size: 0.8rem;
  color: #ff6347; /* Accent color */
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding-top: 0.5rem;
  display: inline-block;
}

/* ===== CONTACT ===== */
.section-title {
  font-size: 2.25rem; /* Responsive font size */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: #333;
}

.contact__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}


.contact__info {
  display: flex;
  flex-direction: row; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  justify-content: center; /* Center items vertically */
  gap: 40px; /* Add space between contact boxes */
  text-align: center; /* Center text inside each contact box */
  width: 100%; 
}


/* Individual contact boxes */
.contact__box {
  max-width: 400px; /* Limit the width for uniformity */
  width: 100%; /* Take full available width */
  padding: 20px;
  height: 200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.contact__box:hover {
  transform: translateY(-10px); /* Slight lift effect on hover */
}


.contact__icon {
  font-size: 2.5rem;
  color: #ff6347;
  margin-bottom: 15px;
}

.contact__title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.contact__text {
  font-size: 1rem;
  color: #777;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .contact__info {
      grid-template-columns: 1fr; /* Stack into a single column on smaller screens */
      flex-direction: column;
      gap: 20px;
  }

  .contact__box {
      margin-bottom: 20px; /* Space between boxes */
  }

  .contact__icon {
      font-size: 1.75rem;
  }

  .contact__title {
      font-size: 1.125rem;
  }

  .contact__text {
      font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .section-title {
      font-size: 1.75rem; /* Smaller title for mobile screens */
  }

  .contact__icon {
      font-size: 1.5rem; /* Smaller icon size */
  }

  .contact__title {
      font-size: 1.25rem; /* Smaller title size */
  }

  .contact__text {
      font-size: 0.9rem; /* Smaller text size */
  }
}



/* .contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__input, .contact__button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 16px;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.contact__button {
  background-color: #ff6347;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact__button:hover {
  background-color: #ff4500;
} */

/* ===== FOOTER =====*/
.footer {
  background-color: #ffe5d6  ; /* Light background */
  color: #ff6347; /* Accent text color */
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}


.footer__title {
  font-size: 2rem;
  margin-bottom: var(--mb-4);
}

.footer__social {
  margin-bottom: var(--mb-4);
}

.footer__icon {
  font-size: 2.5rem;
  color: #ff4500; /* Keep icon color white */
  margin: 0 var(--mb-2);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer__icon:hover {
  color: black; /* Darker shade on hover */
  transform: scale(1.1); /* Slightly enlarge on hover */
}

.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: 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: 400px;
    bottom: 10%;
  }
  .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;
  }
}