/*=============== 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)*/
  /* 
         Change favorite color:

         Default (Red): hsl(358, 80%, 49%)
         Purple: hsl(265, 80%, 49%) - Blue: hsl(220, 80%, 49%)
         Pink: hsl(330, 80%, 49%) - Green: hsl(162, 70%, 40%)
         Orange: hsl(14, 80%, 49%)

         For more colors visit: https://htmlcolorcodes.com/
         -> Choose any color 
         -> Copy the color mode (HSL)
  */
  --hue: 9;
  --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: hsla(var(--hue), 100%, 1%, 0.85); /* Slightly transparent for frosty effect */
  --frost-bg: url('../img/bg.jpg'); /* Subtle frosty pattern */
  --container-color: hsl(var(--hue), 2%, 10%);
  --conic-gradient: conic-gradient(from 150deg at 50% 45%,
                  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);
  line-height: 1.2; /* Increased line height */
}

body {
  color: var(--white-color);
  background-color: var(--body-color);
}

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;
}

/* Particles.js container */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
  background-color: var(--body-color);
}

/*=============== NAV ===============*/
.nav{
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  background-color: hsla(0, 0%, 98%, .1);
  width: 88%;
  margin-inline: auto;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  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;
  color: var(--white-color);
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .6s;
}

/* Active link */

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


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

@media screen and (max-width: 768px) {
  .perfil {
    height: 380px;
  }
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #ff512f, #dd2476, #1fa2ff);
  z-index: 9999;
  transition: width 0.2s;
}

.perfil__img{
  width: 280px;
  position: absolute;
  justify-self: center;
  align-self: flex-end;
}

@media screen and (max-width: 768px) {
  .perfil__img {
    width: 220px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.perfil__data{
align-self: flex-end;
background-color: hsla(0, 0%, 1%, .1);
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
padding: 1.5rem 1rem;
border-radius: 1.5rem;
border: 2px solid hsla(0, 0%, 100%, .5);
}

.perfil__name{
  font-size: var(--font-regular) var(--biggest-font-size) var(--second-font);
  margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
  .perfil__data {
    width: 100%;
    text-align: center;
    padding: 1.25rem 1rem;
    background-color: hsla(0, 0%, 1%, .25);
  }
  
  .perfil__name {
    font-size: var(--h1-font-size);
    line-height: 1.4;
  }
}

.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: var(--font-regular) var(--h1-font-size) var(--second-font);
}

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

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

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

@media screen and (max-width: 768px) {
  .info__image {
    height: 160px;
    margin-block: 1rem;
  }
  
  .info__img {
    width: 160px;
  }
}

.info__description{
  text-align: 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;
  column-gap: 1.5rem;
  justify-content: center;
  margin-block: 2rem;
}

.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{
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
}

.about__img{
  background: var(--container-color);
  width: 250px;
  justify-self: start;
  transform: translateY(-2.5rem);
}

.about__quote {
  display: none;
}

.about__stats {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 1rem;
}

.about__stat {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  padding: 1.5rem 2rem;
  background-color: hsla(0, 0%, 0%, 0.3);
  border-radius: 0.7rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  gap: 0.7rem;
  /* Gradient border effect */
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.about__stat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0.7rem;
  padding: 0.8px; /* Border thickness */
  background: linear-gradient(145deg, #7c2312, #80093e, #ff512f 90%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.about__stat-number {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0;
  text-align: left;
  min-width: 2.5rem;
}

.about__stat-text {
  font-size: 0.9rem;
  color: var(--white-color);
  text-align: left;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .about__image {
    height: auto;
    background: var(--container-color);
    padding-top: 0rem;
    padding-bottom: 0.5rem;
    margin-block: 1.5rem;
    display: block;
  }
  
  .about__img {
    display: none;
  }

  .about__quote {
    display: block;
    text-align: center;
    font-style: italic;
    color: var(--text-color);
    font-size: var(--normal-font-size);
    line-height: 1.6;
    margin: 0;
    margin-bottom: 1.5rem;
  }

  .about__stat::before {
    background: none;
  }

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

  .about__stat {
    padding: 1rem 0.5rem;
    background-color: var(--black-color);
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
    word-break: break-word;
    box-sizing: border-box;
  }
}

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

.about .button{
  width: 100%;
}


/*===== SKILLS =====*/
.skills__title{
  font-size: var(--h2-font-size);
}

.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: 1.5rem;
}

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

/*=============== BUTTON ===============*/

.button{
  display: inline-flex;
  justify-content: center;
  background-color: var(--first-color);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 2.5rem;
  border-radius: 4rem;
  transition: background-color .4s;
}

.button__black{
  background-color: var(--black-color);
}

.button:hover{
  background-color: var(--first-color-alt);
}


/*=============== PROJECTS ===============*/

.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-size: var(--h3-font-size);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.projects__description{
  color: var(--text-color);
  margin-bottom: 1.2rem;
  line-height: 1.6; /* Increased line height for project descriptions and list items */
}

.white__normal{
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.38; /* Increased line height for project descriptions and list items */
}

.white__more{
  color: white;
  line-height: 1.65 /* Increased line height for project descriptions and list items */
}

.projects__skill {
  display: inline-block; /* Ensure each skill item is inline-block */
  margin-right: 0rem; /* Adjust margin as needed */
  width: 1rem;
  transition: transform .4s;
}

/*=============== SHOWCASE PAGE ===============*/

.showcase-hero {
  position: relative;
  padding-block: 7rem 4rem;
  background: linear-gradient(135deg, hsla(var(--hue), 80%, 20%, 0.85), hsla(var(--hue), 80%, 10%, 0.85));
  overflow: hidden;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.06);
}

.showcase-hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% 10% -30%;
  background: radial-gradient(circle at 20% 20%, hsla(var(--hue), 80%, 50%, 0.45), transparent 55%),
              radial-gradient(circle at 80% 0%, hsla(var(--hue), 80%, 60%, 0.25), transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.showcase-hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .showcase-hero__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.showcase-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: hsla(0, 0%, 100%, 0.08);
  border-radius: 2rem;
  font-size: var(--small-font-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid hsla(0, 0%, 100%, 0.12);
}

.showcase-hero__title {
  font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.showcase-hero__description {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

.showcase-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.showcase-scroll-hint {
  display: none;
  margin-top: 1.75rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-color);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
  text-decoration: none;
  animation: showcase-scroll-hint-bounce 1.9s ease-in-out infinite;
  border: 1.5px solid hsla(0, 0%, 100%, 0.25);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: hsla(0, 0%, 0%, 0.25);
}

.showcase-scroll-hint:hover {
  opacity: 1;
}

.showcase-scroll-hint i {
  font-size: 1.25rem;
}

@keyframes showcase-scroll-hint-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

.showcase-hero__media {
  justify-self: center;
}

.showcase-hero__img {
  width: min(420px, 100%);
  border-radius: 2rem;
  box-shadow: 0 25px 60px hsla(0, 0%, 0%, 0.35);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .showcase-hero {
    padding-block: 6rem 3rem;
  }

  .showcase-hero__container {
    text-align: center;
  }

  .showcase-hero__description {
    max-width: none;
    margin-inline: auto;
  }

  .showcase-hero__cta {
    justify-content: center;
  }

  .showcase-scroll-hint {
    display: inline-flex;
    justify-content: center;
  }
}

.button__outline {
  background-color: transparent;
  border: 2px solid hsla(0, 0%, 100%, 0.65);
  color: var(--white-color);
}

.button__outline:hover {
  background-color: var(--white-color);
  color: var(--black-color);
}

.showcase-section {
  position: relative;
}

.showcase-section__title {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  margin-bottom: 1.5rem;
}

.showcase-section__lead {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.showcase-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.showcase-split--reverse {
  direction: rtl;
}

.showcase-split--reverse > * {
  direction: ltr;
}

.showcase-split--center {
  justify-items: center;
  text-align: center;
}

@media screen and (min-width: 968px) {
  .showcase-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-split--center {
    grid-template-columns: 1fr;
  }
}

.showcase-split__content p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.showcase-split__media {
  justify-self: center;
}

.showcase-split__img {
  width: min(420px, 100%);
  border-radius: 1.75rem;
  box-shadow: 0 20px 45px hsla(0, 0%, 0%, 0.35);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  object-fit: cover;
}

.showcase-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--white-color);
  line-height: 1.6;
}

.showcase-list i {
  color: var(--first-color);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.showcase-callout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: hsla(0, 0%, 100%, 0.06);
  border-radius: 1.5rem;
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  font-weight: var(--font-medium);
}

.showcase-gallery {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media screen and (min-width: 768px) {
  .showcase-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.showcase-gallery--single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.showcase-gallery--single .showcase-gallery__img {
  max-width: 720px;
}

.showcase-gallery__img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 1.75rem;
  object-fit: cover;
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  box-shadow: 0 20px 45px hsla(0, 0%, 0%, 0.35);
}

.showcase-cards {
  display: grid;
  gap: 1.5rem;
  margin-block: 2rem;
}

@media screen and (min-width: 768px) {
  .showcase-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.showcase-card {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 1.75rem;
  border: 1px solid hsla(0, 0%, 100%, 0.06);
  box-shadow: 0 15px 35px hsla(0, 0%, 0%, 0.25);
}

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

.showcase-card p {
  color: var(--text-color);
  line-height: 1.7;
}

.showcase-quote {
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  color: var(--white-color);
}

.showcase-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: hsla(0, 0%, 100%, 0.05);
  border-radius: 1.5rem;
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  font-weight: var(--font-medium);
  margin-top: 1.5rem;
}

.showcase-contact {
  text-align: center;
}

.showcase-contact__list {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0;
  justify-items: center;
}

.showcase-contact__list a {
  color: var(--white-color);
  transition: color .3s;
}

.showcase-contact__list a:hover {
  color: var(--first-color);
}

.showcase-contact__list i {
  color: var(--first-color);
  margin-right: 0.5rem;
}

.showcase-contact__note {
  color: var(--text-color);
  line-height: 1.7;
  max-width: 40rem;
  margin: 0 auto;
}

@media screen and (max-width: 600px) {
  .showcase-callout,
  .showcase-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-split__img {
    width: 100%;
  }
}

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

.projects__skills {
  display: inline-flex;
  flex-wrap: wrap; /* Allow wrapping */
  align-items: center;
  gap: 0.4rem; /* Adjust gap as needed */
  margin-bottom: 1.5rem;
  background-color: var(--black-color); /* Black background */
  padding: 0.5rem 0.65rem; /* Padding for spacing */
  border-radius: 1rem; /* Rounded corners */
}

.projects__button{
  color: var(--white-color);
  display: flex;
  justify-content: left;
  margin-top: 0;
  align-items: center;
  column-gap: .5rem;
  transition: color .4s;
}

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

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

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

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


/*=============== SERVICES ===============*/

.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{
  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 .4s;  
}

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

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

.services__card:hover .services__circle{
  transform: scale(.25rem, -.25rem);
}


/*=============== EXPERIENCE ===============*/

.experience__container{
  row-gap: 2rem;
}

.experience__card{
  display: grid;
  row-gap: 1rem;
}

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

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

.experience__profession{
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.experience__date{
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: 1rem;
}

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

/* Experience Section Styling */
#experience-container {
    max-height: 580px; /* Adjust to show 2 cards and partially the 3rd */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
}

#experience-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 0 8rem 8rem;
    right: 0;
    height: 50px; /* Adjust gradient height */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #2c2c2c);
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

#experience-container.expanded {
    max-height: none; /* Automatically adjusts based on content */
}

#experience-container.expanded::after {
    opacity: 0;
    
}

.experience__button{
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

/*=============== CONTACT ===============*/

.contact__group,
.contact__form{
  gap: 1rem;
}

.contact__form{
  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(--small-font-size);
}


/*=============== FOOTER ===============*/

.footer{
  padding-block: 2rem 8rem;
}

.footer__container{
  row-gap: 2.5rem;
}

.footer__logo{
  color: var(--white-color);
  font: var(--font-regular) var(--biggest-font-size) var(--second-font);
  justify-self: center;
}

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

.footer__link{
  color: var(--white-color);
  transition: color .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);
  color: var(--white-color);
  font-size: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .4s, color .4s;
}

.footer__social-link:hover{
  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 ===============*/
::-webkit-scrollbar{
  width: .6rem;
  background-color: var(--first-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb{
  background-color: var(--black-color); 
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover{
  background-color: hsl(0, 0%, 40%);
}

/*=============== SCROLL UP ===============*/


.scrollup{
  position: fixed;
  bottom: -50%;
  right: 1rem;
  background-color: hsla(0, 0%, 98%, .1);
  padding: 6px;
  color: var(--white-color);
  font-size: 1.25rem;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: .5rem;
  z-index: var(--z-tooltip);
  display: inline-flex;
  transition: bottom .4s, transform .4s;
} 

.scrollup:hover{
  transform: translateY(-.5rem);
  background-color: hsla(0, 0%, 98%, .2);
}

/* Show Scroll Up */

.show-scroll{
  bottom: 8rem;
}

/*=============== TOP BAR ===============*/

.top-bar {
    background-color: var(--container-color);
    color: var(--white-color);
    padding: 1rem 0;
}

.top-bar__container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-inline: 1rem;
}

.top-bar__link {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 250;
}

.top-bar__link:hover {
    color: var(--first-color);
}

.top-bar__link--gew {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, hsl(var(--hue), 80%, 55%), hsl(var(--hue), 80%, 45%));
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px hsla(var(--hue), 80%, 40%, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    border: 1px solid hsla(0, 0%, 100%, 0.2);
}

.top-bar__link--gew span {
  display: inline-flex;
  align-items: center;
}

.top-bar__link--gew i {
    font-size: 1.1rem;
}

.top-bar__link--gew:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px hsla(var(--hue), 80%, 45%, 0.4);
    filter: brightness(1.05);
}

@media screen and (max-width: 768px) {
  .top-bar__container {
    gap: 1rem 1.25rem;
  }

  .top-bar__link--gew {
    width: auto;
    min-width: 200px;
    justify-content: center;
    order: 3;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid hsla(var(--hue), 80%, 65%, 0.5);
    color: var(--white-color);
    box-shadow: 0 6px 18px hsla(var(--hue), 80%, 40%, 0.25);
    font-size: 0.95rem;
  }

  .top-bar__link--gew span {
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .top-bar__link--gew i {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .top-bar__link--gew {
    min-width: 100%;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1.75px solid hsla(var(--hue), 80%, 70%, 0.45);
  }

  .top-bar__link--gew span {
    justify-content: center;
  }
}

/*=============== HERO ===============*/
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 4rem;
  background: linear-gradient(145deg, #E13719, #1A1919);
  border-radius: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.hero__data {
  text-align: left;
}

.hero__title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.hero__description {
  font-size: var(--normal-font-size);
  margin-bottom: 2rem;
  color: var(--text-color);
}

.hero__img img {
  width: 75%;
  border-radius: 2rem;
}

@media screen and (max-width: 768px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__data {
    text-align: center;
  }

  .hero__img img {
    width: 100%;
  }
}

/*=============== HERO FLIGHT COMPUTER ===============*/
.hero-flight-computer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 3rem;
  background: linear-gradient(135deg, #1A1919, #3A3A3A, #5A5A5A);
  border-radius: 2rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.hero-flight-computer__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.hero-flight-computer__data {
  text-align: left;
}

.hero-flight-computer__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white-color);
}

.hero-flight-computer__description {
  font-size: var(--normal-font-size);
  margin-bottom: 2rem;
  color: var(--text-color);
}

.hero-flight-computer__img img {
  width: 80%;
  border-radius: 1.5rem;
}

@media screen and (max-width: 768px) {
  .top-bar__container {
    gap: 1.4rem;
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .hero-flight-computer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-flight-computer__data {
    text-align: center;
  }

  .hero-flight-computer__img img {
    width: 100%;
  }
}

body,
input,
textarea,
button {
  line-height: 1.25; /* Increased line height */
}

/*=============== ICONS ===============*/
.icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-right: 0.5rem;
}

.icon-container {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.projects__name .icon {
  font-size: 1.25rem;
  color: var(--first-color);
  margin-right: 0.5rem;
  padding: 0.8rem 0.2rem;
}

.projects__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/*=============== 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: 380px;
    justify-content: center;
  }
}

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

  .perfil{
    height: 94%;
  }

  .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;
  }

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

  .perfil__img{
    width: 450px;
  }

  .perfil__data{
    width: 370px;
    padding: 1.5rem;
    border-radius: 2rem;
  }

  .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: 210px;
  }

  .about__img{
    transform: translateY(-1rem);
  }

  .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(3, 368px);
    gap: 2rem;
  }
  
  .services__card {
    padding-block: 6rem 5rem;
  }
  
  .services__icon i {
    font-size: 3.5rem;
  }
  
  .services__circle {
    width: 4rem;
    height: 4rem;
    right: -1.5rem;
    top: -1rem;
  }
  
  .experience__container {
    row-gap: 4rem;
  }
  
  .experience__card {
    grid-template-columns: 350px 510px;
    column-gap: 8rem;
  }
  
  .experience__company {
    font-size: var(--h1-font-size);
  }
  
  .experience__data {
    padding: 2rem;
    border-radius: 2rem;
  }
  
  .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{
    padding-top: 3rem;
  }

  .footer__links{
    column-gap: 3rem;
  }

  .footer__copy{
    margin-top: 7rem;
  }

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

@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;
  }

  .footer{
    padding-block: 3rem;
  }

  .scrollup{
    right: 4rem;
  }
}

/*=============== EXPERIENCE TIMELINE ===============*/
.experience__timeline-container {
  padding: 2rem 0 3rem 0;
}
.experience__timeline {
  position: relative;
  margin: 0 auto;
  padding-left: 2.5rem;
  border-left: 3px solid var(--first-color);
  max-width: 700px;
}
.experience__timeline-items {
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  max-height: 900px;
  padding-bottom: 0.5rem;
}
.experience__timeline-items.collapsed {
  max-height: 900px;
}
.experience__timeline-items.expanded {
  max-height: 2000px;
  padding-bottom: 1.5rem;
}
.experience__timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 1;
  transition: opacity 0.5s;
}
.experience__timeline-item--hidden {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.4s, max-height 0.4s, margin-bottom 0.4s, transform 0.4s;
  display: block;
}
.experience__timeline-items.expanded .experience__timeline-item--hidden {
  opacity: 1;
  max-height: 500px;
  margin-bottom: 3rem;
  pointer-events: auto;
  transform: translateY(0);
}
.experience__icon {
  position: absolute;
  left: -2.2rem;
  top: 0.2rem;
  background: var(--first-color);
  color: var(--white-color);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 0 4px var(--container-color);
  z-index: 2;
}
.experience__content {
  background: var(--container-color);
  border-radius: 1.2rem;
  padding: 1.2rem 1.5rem 1.2rem 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
  margin-left: 0.5rem;
}
.experience__company {
  font-size: var(--h2-font-size);
  margin-bottom: 0.2rem;
}
.highlight {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}
.experience__role {
  font-size: var(--h3-font-size);
  color: var(--white-color);
  font-weight: var(--font-medium);
  margin-right: 1rem;
}
.experience__date {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-bottom: 0.7rem;
  display: inline-block;
}
.experience__description {
  color: var(--text-color);
  margin-top: 0.5rem;
}
.experience__description .fun {
  color: var(--first-color);
  font-style: italic;
}
.experience__show-more {
  display: block;
  margin: 1.5rem auto 0 auto;
  padding: 0.7rem 2.2rem;
  background: var(--first-color);
  color: var(--white-color);
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: background 0.3s;
}
.experience__show-more:hover {
  background: var(--first-color-alt);
}
@media screen and (max-width: 768px) {
  .experience__timeline {
    padding-left: 1.2rem;
  }
  .experience__icon {
    left: -1.2rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1rem;
  }
  .experience__content {
    padding: 1rem 1rem 1rem 1rem;
  }
}

/*=============== LOADING SCREEN ===============*/
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--body-color);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.loading-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white-color);
}

.loading-logo {
  font-family: var(--second-font);
  font-size: 3rem;
  background: var(--conic-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  animation: logoGlow 2s ease-in-out infinite alternate;
}

.loading-text {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--first-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loading-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.loading-dot {
  width: 8px;
  height: 8px;
  background: var(--first-color);
  border-radius: 50%;
  animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 2rem auto 0;
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
  border-radius: 2px;
  animation: loadingProgress 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0% { filter: drop-shadow(0 0 5px var(--first-color)); }
  100% { filter: drop-shadow(0 0 20px var(--first-color)); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loadingDots {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes loadingProgress {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* Loading screen responsive */
@media screen and (max-width: 768px) {
  .loading-logo {
    font-size: 2.5rem;
  }
  
  .loading-text {
    font-size: 1rem;
  }
  
  .loading-spinner {
    width: 50px;
    height: 50px;
  }
}
