@import url('https://fonts.googleapis.com/css2?family=Hubballi&family=Josefin+Sans:wght@100&family=PT+Sans:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=DM+Serif+Display&display=swap');

/* Fonts usage: 
font-family: 'Hubballi', sans-serif;
font-family: 'Josefin Sans', sans-serif;
font-family: 'PT Sans', sans-serif;
font-family: Arial,Helvetica,sans-serif;
font-family: 'Abril Fatface', serif;
font-family: 'DM Serif Display', serif;
*/

* {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

:root {
  --black-font-color: #0b090a;
  --azul-escuro: #003366;
  --azul-claro: #01BAEF;
  --background: #F9F9F9;
  --verde: #20BF55;
  --roxo: #10002B;
}

.wave {
  position: absolute;
  top: -40;
  left: 0;
  width: 14%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

header {
  width: 100%;
  height: 10vh;
  display: flex;
  background-color: var(--background);
  z-index: 1;
  flex-direction: row;
  align-items: center;
  padding-left: 15vw;
  padding-right: 5vw;
  justify-content: space-between;
  font-family: 'PT Sans', sans-serif;
}

header .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10%;
  z-index: 5;
}

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2vw;
  font-size: 25px;
  justify-content: center;
}

nav a {
  display: flex;
  font-size: 1.1rem;
  font-family: 'PT Sans', sans-serif;
  text-decoration: none;
  color: var(--azul-escuro);
  font-weight: 500;
}

main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--background);
}

main article {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: 15vw;
  overflow: hidden;
  padding-top: 20vh;
}

main article h1,h2,h3 {
  overflow: hidden;
}

main article h1 {
  font-family: 'DM Serif Display', serif;
  color: var(--azul-escuro);
  font-size: 4rem;
}

main article h2 {
  font-family: 'PT Sans', sans-serif;
  color: var(--azul-claro);
  font-size: 2.3rem;
  font-weight: 200;
}

main article h3 {
  color: var(--azul-escuro);
  font-weight: 400;
}

main article ul {
  width: 50%;
  display: flex;
  flex-direction: row;
  padding-left: 0;
  gap: 1vw;
}

main article ul .logo-curriculo {
  border-radius: 100%;
}

section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

section .sobre-mim {
  display: flex;
  flex-direction: column;
  font-family: 'PT Sans', sans-serif;
  color: var(--azul-escuro);
  align-items: center;
  overflow: hidden;
  
}

section .sobre-mim h3 {
  font-size: 2.3rem;
  height: auto;
  overflow: hidden;
}

section .sobre-mim p {
  width: 50%;
  height: auto;
  font-size: 1.5rem;
  text-align: center;
  font-weight: 300;
  overflow: hidden;
}

section .conhecimentos {
  width: 70vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'PT Sans', sans-serif;
  color: var(--azul-escuro);
  overflow: hidden;
  gap: 20px;
}

section .conhecimentos h3 {
  font-size: 2.3rem;
}

section .container {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

section .container .line {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
}

section .container .line .box {
  width: 15vw;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background-color: #d9d9d9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.projetos-grid{
  width: 80%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 30px;
}

.card-projeto{
  background: var(--background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-projeto:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.15);
}

.img-projeto{
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.conteudo-projeto{
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-projeto h4{
  font-family: 'PT Sans', sans-serif;
  font-size: 1.4rem;
  color: var(--azul-escuro);
}

.card-projeto p{
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--azul-escuro);
}

.techs{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.techs span{
  background: #e6e6e6;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-projeto{
  margin-top: 10px;
  text-decoration: none;
  text-align: center;
  padding: 10px;

  background: var(--azul-escuro);
  color: white;

  border-radius: 6px;
  font-size: 0.9rem;

  transition: background 0.2s ease;
}

.btn-projeto:hover{
  background: var(--azul-claro);
}

@media screen and (max-width: 768px) {
  .card-projeto {
      width: 100%; /* Em telas menores, cartões ocupam 100% da largura */
  }
}

.btn-projeto a { 
  text-decoration: none;
  color: var(--background);
}

footer {
  width: 100%;
  height: 40vh;
  background-color: #10002B;
  box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.5);
}

.skills-grid {
  width: 50vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  overflow-x: hidden;
}

.skill {
  background: #d9d9d9;
  border-radius: 10px;
  padding: 5px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  overflow-x: hidden;
}

.skill img {
  width: 150px;
}

.skill span {
  margin-top: 8px;
  font-family: 'PT Sans', sans-serif;
  color: var(--azul-escuro);
}

.skill:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px){

  .skills-grid{
    grid-template-columns: repeat(2, 150px);
  }

  .skill{
    width:150px;
    height:150px;
  }

}

.experiencia{
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.experiencia h3{
  font-size: 2.3rem;
  font-family: 'PT Sans', sans-serif;
  color: var(--roxo);
}

.timeline{
  position: relative;
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* linha vertical */
.timeline::before{
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--verde);
}

.timeline-item{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}

/* bolinha da timeline */
.timeline-dot{
  width: 16px;
  height: 16px;
  background: var(--azul-escuro);
  border-radius: 50%;
  margin-top: 10px;
  flex-shrink: 0;
}

/* card */
.timeline-card{
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cargo{
  font-weight: bold;
  color: var(--verde);
}

.empresa{
  font-size: 0.9rem;
  color: #555;
}

.periodo{
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 5px;
}

.timeline-card p{
  font-size: 0.9rem;
  line-height: 1.4;
}