@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');

body{
  background: linear-gradient(
      135deg, 
      #0c1235,   
      #152044,   
      #1d2855,   
      #113074,   
      #152044,   /*(efeito de brilho retornando)*/
      #0c1235    
    );
  font-family: 'Montserrat', sans-serif;
}

.icon {
  width: 1.75rem;
  height: 1.75rem;
}

hr{
  margin: 0;
  height: 1px;
  color: black;
}

/* ===== PRESENTATION ===== */
.profile-section {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0 1rem;
}

.profile-pic {
  width: 12rem;
  height: 12rem;
  object-fit: cover;
  border-radius: 50%;
}

.profile-section p {
  display: flex;
  flex-direction: column; 
  margin: 0;
  padding: 0;
}

.profile-section a{
  text-decoration: none;
  color: inherit; 
}

.name{
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(to right, #4789e3, #6cbfd1); 
  -webkit-background-clip: text; /* aplica o gradiente ao texto */
  -webkit-text-fill-color: transparent;
}

.role {
  display: inline-block;
  margin-top: 0.75rem;
  margin-left: 20%;
  font-size: 1.5rem;
  color: white;
}

.role::after {
  content: '|';
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.download-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 2.5rem;
  background: linear-gradient(to right, #4789e3, #6cbfd1); 
  border: none; 
  border-radius: 1rem; 
  cursor: pointer; 
  font-size: 1rem; 
  margin-top: 0.5rem;
}

.download-span{
  font-weight: bold;
  text-decoration: none;
  color: rgb(255, 255, 255);
}

.links-section {
  display: flex;
  position: static; 
  margin: 1rem 0 0 0; 
  gap: 3rem;
}

.link-button {
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: rgb(255, 255, 255);
}

  /* ===== PERSONAL DESCRIPTION ===== */
  .about-section{
    display: grid;
    padding: 0 1rem;
    grid-template-columns: 1fr;
    margin-top: 5rem;
    margin-bottom: 5rem;
  }
  
  .description-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    line-height: 2rem;
    color: #f8f8f8;
  }
  
  .description-section h2{
    margin-top: auto;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f8f8f8;
  }

  .description-section p {
    margin: 0;
    font-size: 1.5rem;
  }
  
  /* ===== PROJECTS ===== */
  .projects-section {
    padding: 0 1rem;
  }
  
  .projects-section h2 {
    text-align: center;
    font-size: 1.5rem;
    color: white;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  
  .project-card {
    display: flex;
    flex-direction: column;
    margin: 1rem auto;
    border-radius: 0.5rem;
  }

  .cover {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
  }

  .cover img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(50%);
    transition: filter 0.3s ease;
  }

  .cover:hover img {
    filter: brightness(80%);
  }

  .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
  }

  .overlay h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
    padding: 0.5rem;
  }

  .description {
    background-color: #333;
    color: #eee;
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    max-height: 0; 
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease-in-out, opacity 0.7s ease;
  }

  .description button{
    background-color: #245cd4;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
  }

  .redirect-buttons{
    display: flex;
    justify-content: center;
    gap: 3rem;
  }

  .technologies{
    display: flex;
    flex-direction: row;
    margin-top: 1.5rem;
    gap: 1rem;
    transform: translateX(0.5rem);
  }

  .advice{
    display: flex;
    font-weight: bold;
    font-size: 1rem;
  }

  .advice img {
    margin-right: 0.5rem;
    transform: translateY(-0.4rem);
  }

  /* ===== CONTACTS ===== */
  .contacts {
    display: flex;
    flex-direction: column;
    color: rgb(255, 255, 255);
    margin-bottom: 2rem;
    margin-left: 0.9rem;
  }

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

  .contact-info a{
    display: flex;
    text-decoration: none;
    color: white;
  }

  .contact-info p{
    margin-left: 0.5rem;
  }

  .email{
    display: flex;
    flex-direction: row;
    font-size: 0.9rem;
    line-height: 0;
    font-weight: bold;
    text-decoration: none;
  }
  
  .phone{
    display: flex;
    flex-direction: row;
    font-size: 0.9rem;
    line-height: 0;
    font-weight: bold;
  }

  /* ===== RESPONSIVIDADE DESKTOP ===== */
  @media (min-width: 768px) {
    .icon {
      width: 2rem;
      height: 2rem;
    }
    
    .profile-section {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      margin: 0;
      padding: 0;
      gap: 0;
    }
  
    .links-section, .profile-section p{
      grid-column: 2/2;
    }
    
    .profile-section p {
      flex-direction: column;
      margin-top: 0;
      margin-left: 8rem;
    }

    .role{
      margin: 2rem 0 0 4rem;
    }

    .links-section {
      flex-direction: row;
      gap: 3rem;
      margin: 0 0 0 9.5rem;
      padding-bottom: 0;
      transform: translateY(-11rem);
    }

    .curriculum{
      display: flex;
      grid-column: 2/2;
    }

    .download-btn{
      display: flex;
      width: 10rem;
      height: 3rem;
      background: linear-gradient(to right, #4789e3, #6cbfd1); 
      color: rgb(255, 255, 255); 
      border: none; 
      border-radius: 1rem; 
      cursor: pointer; 
      font-size: 1.2rem;
      margin-left: 13rem;
      margin-top: 3rem;
    }
    
    .profile-pic{
      grid-column: 1/2;
      width: 23rem;
      height: 23rem;
      border: 1px solid rgb(0, 0, 0); 
    }

    .profile-pic-container {
      display: flex;
      justify-content: right;
      margin: 6rem 12rem 0 3;
      transform: translateY(6rem);
    }

    /* ===== PERSONAL DESCRIPTION ===== */
    .description-section {
      max-width: 800px; 
      margin: 2rem auto; 
      padding: 0 2rem;
      text-align: center;
    }

    .description-section h2 {
      text-align: center;
    }

    .description-section p {
      text-align: justify;
    }

    /* ===== PROJECTS ===== */
    .projects-grid {
      display: grid;
      margin: 0 auto;
      width: 40rem;
      gap: 3rem; 
      padding: 2rem;
    }

    .project-image{
      max-height: 550px;
    }

    .overlay h3 {
      font-size: 1.5rem;
    }
    
    .description {
      font-size: 1rem;
      padding: 1.25rem;
    }

    .redirect-buttons{
      display: flex;
      justify-content: center;
      gap: 21rem;
    }

    .technologies{
      transform: translateX(-0.1rem);
    }

    /* ===== CONTACTS ===== */
    .contacts {
      display: flex;
      flex-direction: column; 
      color: rgb(255, 255, 255);
      padding: 0 4rem; 
      margin-bottom: 1.5rem; 
      margin-left: 0; 
    }
  
    .contact-info {
      display: flex;
      flex-direction: column; 
      gap: 2rem; 
      margin-left: 0; 
    }

    .contacts h3 {
      font-size: 1.5rem;
    }

    .contact-info p {
      font-size: 1rem;
    }
  }

  