/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Grechen+Fuemen&family=Montserrat+Alternates:wght@400;500;600&display=swap');
/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /* Color mode HSL(hue, saturation, lightness) */
  /* 
         Orange Hue: hsl(14, 80%, 49%) -- This is for a nice orange hue

         For more colors visit: https://htmlcolorcodes.com/
         -> Choose any color
         -> Copy the color mode (HSL)
  */
  --hue: 14; /* Updated to orange hue */
  --first-color: hsl(var(--hue), 80%, 49%);
  --first-color-alt: hsl(var(--hue), 76%, 45%);
  --white-color: hsl(0, 0%, 98%);
  --black-color: hsl(0, 0%, 1%);
  --text-color: hsl(var(--hue), 2%, 66%);
  --body-color: hsl(var(--hue), 100%, 1%);
  --container-color: hsl(var(--hue), 2%, 10%);
  
  /* Updated conic-gradient with orange theme and slight shift to the right */
  --conic-gradient: conic-gradient(from 180deg at 50% 50%, /* Start at the middle */
                  hsl(var(--hue), 80%, 20%) 0deg,
                  hsl(var(--hue), 80%, 48%) 140deg,
                  hsl(var(--hue), 80%, 20%) 360deg);
}


{
  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat Alternates", sans-serif;
  --second-font: "Grechen Fuemen", cursive;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1168px) {
  :root {
    --biggest-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
textarea,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--white-color);
  font-family: 'Montserrat Alternates', sans-serif; /* Apply default font */
}

/* For specific headings and texts, you can use Grechen Fuemen */
h1, h2, h3, h4 {
  font-family: 'Grechen Fuemen', cursive; /* Apply font to headings */
}

input,
button,
textarea {
  border: none;
  outline: none;
}

h1, h2, h3, h4 {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1168px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 2rem 3rem;
}

.section__title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}

/*=============== NAV ===============*/
.nav {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  background-color: hsla(0, 0%, 98%, 0.1); /* Added missing comma in hsla */
  width: 88%;
  margin-inline: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); /* Corrected typo */
  padding: 1rem 2rem;
  border-radius: 4rem;
  z-index: var(--z-fixed);
}

.nav__list{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: transparent; /* Corrected typo */
  color: var(--white-color); /* Fixed incorrect property casing */
  font-size: 1.5rem; /* Fixed incorrect property casing */
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.6s; /* Added a leading zero for better readability */
}



/* Active link */
.active-link{
  background-color: var(--first-color);
}

/*=============== HOME ===============*/
/*===== PERFIL =====*/
.perfil {
  position: relative;
  background: var(--conic-gradient); /* Ensure --conic-gradient is defined in your CSS */
  height: 500px;
  border-radius: 2rem;
  padding: 1rem;
  display: grid;
  overflow: hidden;
}

.perfil__img {
  width: 280px;
  position: absolute;
  justify-self: center;
  align-self: flex-end;
}
.perfil__data{
  align-self: flex-end;
  backgorund-color: hsla(0, 0%, 1%, .1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem 1rem;
  border-radius: 1.5rem;
  border: 2px solid hsla(0, 0%, 100%, .5);
}

.perfil__name {
  margin-bottom: 1rem;
  font-family: "Grechen Fuemen", cursive;
  font-size: 3rem; /* Increased font size */
  font-weight: 400; /* Optional: Adjust weight for boldness */
}

.perfil__buttons{
  display: grid;
  column-gap: .5rem;
  grid-template-columns: repeat(2, 1fr);
}

.perfil__buttons .button{
  padding: .75rem 0;
}

/*===== INFO =====*/
.info,
.about,
.skills{
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 2rem;
}

.info__circle{
  width: 2rem;
  height: 2rem;
  background-color: var(--first-color);
  border-radius: 50%;
}

.info__name {
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: bold;
}

.info__data{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
}

.info__image{
  background: var(--conic-gradient);
  height: 200px;
  border-radius: 2rem;
  display: grid;
  margin-block: 1.5rem;
  overflow: hidden;
}

.info__img {
  width: 160px;
  justify-self: center;
  align-self: flex-end;
}

.info__description{
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}

.info .button{
  width: 100%;
}


/*===== ABOUT =====*/
.about__name{
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  margin-bottom: 1rem;
}

.about__social{
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-block: 2rem;
}

.about__name {
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: bold;
}

.about__link{
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--white-color);
  color: var(--black-color);
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .4s, color .4s;
}

.about__link:hover{
  background-color: var(--first-color);
  color: var(--white-color);
}

.about__image{
  background: var(--conic-gradient);
  geight: 180px;
  border-radius: 2rem;
  display: grid;
  overflow: hidden;
}

.about__img{
  width: 100%;
  justify-self: center;
}

.about__note{
  font-size: var(--small-font-size);
  margin-block: 1rem 2rem;
}

.about .button{
  width: 100%;

}

/*===== SKILLS =====*/
.skills__title{
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: bold;
}

.skills__item{
  width: 1.5rem;
  transition: transform .4s;
}

.skills__item:hover{
  transform: translateY(-.25rem);
}

.skills__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-block: 0.5rem;
}

.skills__item { /* Assuming this is the class for each individual box */
  flex: 1 1 calc(50% - 1.5rem); /* Makes two items per row and respects the gap */
  max-width: calc(50% - 1.5rem); /* Ensures the size stays within two items per line */
  height: 200px; /* Adjust the height as needed */
  padding: .3rem; /* Increase padding for better content spacing */
  box-sizing: border-box; /* Ensures padding is included in the size */
  background-color: var(--container-color); /* Example for background */
  border-radius: 10px; /* Optional: Add some rounding for better aesthetics */
}

.skills__description{
  font-size: var(--small-font-size);
}

/*=============== BUTTON ===============*/
/* Base Button Style */
.button {
  display: inline-flex;
  justify-content: center;
  background-color: var(--first-color); /* Ensure this variable is properly defined */
  color: var(--white-color); /* Ensure this variable is properly defined */
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 2.5rem;
  border-radius: 4rem;
  transition: background-color 0.4s; /* Ensure ease or other timing function is specified */
}

/* Black Button Variant */
.button__black {
  background-color: var(--black-color); /* Ensure this variable is defined */
}

/* Hover State */
.button:hover {
  background-color: var(--first-color-alt); /* Ensure this variable is defined */
}




/*=============== PROJECTS ===============*/
.section__title{
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: bold;
}

.projects__card{
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 2rem;
}

.projects__image{
  display: block;
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
}

.projects__img{
  transition: transform .4s;
}

.projects__name{
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.projects__description{
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.projects__skill {
  width: 1rem;
  transition: transform 0.4s;
}

.projects__skill:hover {
  transform: translateY(-0.25rem); /* Fixed hover syntax and moved to correct class */
}

.projects__skills {
  width: max-content;
  height: 34px;
  background-color: var(--black-color);
  padding-inline: 0.75rem;
  display: flex;
  align-items: center;
  column-gap: 0.75rem;
  border-radius: 4rem;
  margin-bottom: 1.5rem;
}

.projects__button{
  color: var(--white-color);
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  transition: color .4s;
}

.projects__button i{
  font-size: 1.25rem;
}

.projects__button span{
  font-weight: var(--font-medium);
}

.projects__button:hover{
  color: var(--text-color);
}

.projects__card:hover .projects__img{
  transform: scale(1.2);
}

.projects__button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.projects__toggle-button {
  background-color: var(--container-color);
  color: var(--text-color);
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.projects__toggle-button:hover {
  background-color: var(--text-color);
  color: var(--container-color);
  transform: scale(1.05);
}

.projects__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust columns to fit screen */
  gap: 2rem;
}

.projects__hidden {
  display: none; /* Hidden initially */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Match parent grid layout */
  gap: 2rem; /* Match gap spacing */
}

/* Ensure the hidden projects have the same card styling */
.projects__card {
  background-color: var(--container-color);
  padding: 1.5rem; /* Ensure padding matches */
  border-radius: 2rem; /* Ensure border radius matches */
}



/*=============== SERVICES ===============*/
.services__name {
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: bold;
}

.services__card {
  background-color: var(--container-color);
  padding: 4rem 1.5rem 3.5rem 1.5rem;
  border-radius: 2rem;
}

.services__icon {
  display: inline-block;
  position: relative;
  margin-bottom: 2rem;
}

.services__icon i { /* Corrected class name to 'services__icon' */
  font-size: 2.5rem;
  position: relative;
  z-index: var(--z-tooltip);
}

.services__circle {
  width: 3rem;
  height: 3rem;
  background-color: var(--first-color);
  border-radius: 50%;
  position: absolute;
  top: -1rem;
  right: -1rem;
  transition: transform 0.4s;
}

.services__name{
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.services__description{
  color: var(--text-color);
}

.services__card:hover .services__circle {
  transform: translate(0.5rem, -0.5rem);
}

/*=============== EXPERIENCE ===============*/
.experience__company {
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 500; /* Corrected to Medium weight */
  font-size: var(--h2-font-size); /* Ensure h2 font size is properly defined */
}

.experience__profession {
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: bold;
  font-size: var(--h3-font-size); /* Font size adjusted to the variable */
  margin-bottom: 0.5rem;
}

.experience__container {
  display: grid;
  row-gap: 2rem;
}

.experience__card {
  display: grid;
  row-gap: 1rem;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.5rem;
}

.experience__company, .experience__profession {
  font-family: 'Montserrat Alternates', sans-serif;
}

.experience__data {
  display: block;
  font-size: var(--smaller-font-size); /* Ensure smaller font size is properly defined */
  margin-bottom: 1rem;
}

.experience__description {
  color: var(--text-color); /* Ensure text color variable is properly defined */
}

/*=============== CONTACT ===============*/
.contact-group,
.contact-form {
  gap: 1rem;
}

.contact-form { /* Corrected to match HTML structure */
  position: relative;
}

.contact__input {
  background-color: var(--container-color);
  padding: 1.25rem;
  border-radius: 4rem;
  color: var(--white-color);
}

.contact__input::placeholder {
  color: var(--text-color);
}

.contact__input:autofill {
  transition: background-color 6000s, color 6000s;
}

.contact__area {
  height: 10rem;
  border-radius: 1.5rem;
  resize: none;
}

.contact__button {
  margin-top: 1.5rem;
  cursor: pointer;
}

.contact__message {
  position: absolute;
  left: 0;
  bottom: 4.5rem;
  font-size: var(--smaller-font-size);
  color: var(--text-color); /* Ensure message text is visible */
}


/*=============== FOOTER ===============*/
.footer {
  padding-block: 2rem 8rem;
}

.footer__container {
  row-gap: 2.5rem;
}

.footer__logo {
  color: var(--white-color);
  justify-self: center;
  font-family: "Grechen Fuemen", cursive;
  font-size: 2rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.footer__link {
  color: var(--white-color);
  transition: color 0.4s;
}

.footer__link:hover {
  color: var(--text-color);
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
}

.footer__social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--first-color); /* Fixed typo: background-color */
  color: var(--white-color);
  font-size: 1.5rem; /* Fixed typo: font-size */
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.4s, color 0.4s;
}

.footer__social-link:hiver{
  background-color: var(--white-color);
  color: var(--black-color);
}

.footer__copy{
  display: block;
  margin-top: 4.5rem;
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/*=============== SCROLL BAR ===============*/
/* Styling for the scrollbar itself */
::-webkit-scrollbar {
  width: .6rem;
  background-color: hsl(0, 0%, 20%);
  border-radius: .5rem;
}

/* Styling for the thumb (the draggable part of the scrollbar) */
::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 30%); /* Corrected hsl color */
  border-radius: .5rem;
}

/* Styling for the thumb when hovered */
::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 40%);
}


/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%; /* Corrected to be visible at the bottom */
  background-color: hsla(0, 0%, 98%, 0.1); /* Fixed typo in HSLA */
  display: inline-flex;
  padding: 6px;
  color: var(--white-color);
  font-size: 1.25rem;
  backdrop-filter: blur(16px);
  border-radius: .5rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s ease, transform .4s ease; /* Added ease for smoother transition */
}

/* Hover effect when user interacts */
.scrollup:hover {
  transform: translateY(-0.5rem); /* Slight upward shift on hover */
}


/* Show Scroll Up */
.show-scroll{
  bottom: 8rem;

}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px){
  .container{
    margin-inline: 1rem;
  }

  .nav{
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 540px){
  .nav{
    width: max-content;
  }
  .nav__list{
    column-gap: 1.25rem;
  }

  .home__container,
  .projects__container,
  .services__container,
  .experience__container,
  .contact__container,
  .footer__container{
    grid-template-columns: 400px;
    justify-content: center;
  }
}

@media screen and (min-width: 768px){
  .home__container{
    grid-template-columns: repeat(2, 350px);
    align-items: flex-start;
  }

  .perfil{
    height: 100%;
  }

  .projects__container,
  .services__container{
    grid-template-columns: repeat(2, 350px);
  }

  .experience__container{
    grid-template-columns: initial;
  }
  ,experience__card{
    grid-template-columns: 320px 380px;
    align-items: center;
  }

  .footer__container,
  .footer__content{
    grid-template-columns: repeat(2, max-content);
    align-items: center;
  }

  .footer__container{
    justify-content: space-between;
  }

  .footer__content{
    column-gap: 4.5rem;
  }

  .show-scroll{
    bottom: 3rem;
  }
}

/* For large devices */
@media screen and (min-width: 1200px){
  .container{
    margin-inline: auto;
  }

  .section{
    padding-block: 3rem 4rem;
  }

  .section__title{
    font-size: var(--h1-font-size);
    margin-bottom: 4rem;
  }

  .home__container{
    grid-template-columns: 280px 560px 280px;
    align-items: stretch;
  }

  .perfil{
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    padding: 2.5rem;
  }

  .perfil__img{
    width: 500px;
  }
  ,.perfil__data{
    width: 370px;
    padding: 5rem;
    border-radius: 2rem;
  }

  .perfil__name,
  .perfil__buttons {
    padding-left: 1rem; /* Correct property for left padding */
  }

  .info{
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .info__name{
    font-size: var(--h2-font-size);
  }

  .about{
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    align-content: center;
  }
  .about__image{
    height: 300x;
  }
  .about__img{
    transform: translateY(0rem);
  }

  .skills{
    grid-column: 1 / 2;
    grid-row: 2 / 3;  
  }

.skills__title{
  font-size: var(--h3-font-size);
}

.projects__container{
  grid-template-columns: repeat(3, 368px);
  gap: 2rem;
}

.projects__card{
  padding-bottom: 2rem;
}

.services__container {
  grid-template-columns: repeat(2, 568px); /* Increased size for both boxes */
  gap: 2rem; /* Keeps the gap consistent */
}

.services__card{
  padding-block: 5rem 4rem;
}
.services__icon i{
  font-size: 3.5rem;
}

.servicess__circle{
  width: 4rem;
  height: 4rem;
  right: -1.5rem;
  top:-1.5rem;
}

.experience__card {
  padding: 2rem; /* Increased padding for larger cards */
}

.experience__container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for large screens */
    gap: 2rem;
    padding: 0.1rem; /* Increased padding for larger cards */

}    

.experience__description{
  font-size: 1.1rem;
}
.experience__profession{
  padding-bottom: 0.2rem;
  font-size: 1.5rem;

}

.contact__container{
  grid-template-columns: 620px;
}

.contact__group{
  grid-template-columns: repeat(2, 1fr);
}

.contact__area{
  height: 15rem;
}

.contact__button{
  width: max-content;
  justify-self: center;
}


.footer__links{
  column-gap: 1rem;
}

.footer__copy{
  margin-top: 7rem;
}
.footer__social{
  padding: 0.2rem;
}

.footer__logo{
  padding: 0.2rem; /* Increased padding for larger cards */
  font-size: 3rem;
}
.footer{
  padding-block: 2rem;
}




}

@media screen and (min-width: 1500px){
  .nav{
    width: max-content;
    height: max-content;
    padding: 2rem 1rem;
    left: initial;
    right: 3rem;
    top: 0;
    bottom: 0;
    margin-block: auto;
  }
  .nav__list{
    flex-direction: column;
    row-gap: 1.25rem;
  }

.scrollup{
  right: 4rem;
}

/* For small devices */
@media screen and (max-width: 320px) {
  .projects__hidden {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .projects__container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .projects__card {
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) and (max-width: 768px) {
  .projects__hidden {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .projects__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .projects__card {
    padding: 1.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1200px) {
  .projects__hidden {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .projects__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .projects__card {
    padding: 2rem;
  }
}

}
