@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=EB+Garamond:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    position: relative;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    min-height: 100vh;
    padding: 40px 20px;
}

.info-home-resumo {
    max-width: 600px;
}

.info-home-resumo h2 {
    font-size: 28px;
    font-family: "EB Garamond", serif;
    font-weight: 500;
    margin-bottom: 15px;
}

.info-home-resumo p {
    font-size: 17px;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #333;
}

.home-imagem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.home-imagem img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.home-texto h1 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
}
.works {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    min-height: 100vh;
    padding: 40px 20px;
}

.works h2{
    font-family: "EB Garamond", serif;
    font-size: 28px;
    font-weight: 500;
}
.work-cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.work-card{
    width: 300px;
    padding: 10px;
    background-color:#FCAE01;
    border-radius: 8px;
    border: solid 1px #000;
    transition: transform 0.4s ease; 
}
.work-card:hover{
    transform: rotate(15deg);
}
.work-card h3 {
    margin-top: 10px;
}
.work-card img{
    display: block;
    width: 100%;
    object-fit: cover;
    padding: 10px;
    border-radius: 8px;
    background-color: white;
    transition: filter 0.3s ease;
}
.img-button:hover img {
  transform: scale(1.05);
}
.img-button {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.img-button img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.5s ease;
}

.btn-visualizar-work {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;

  opacity: 0;
  transform: translateY(40px);

  transition: opacity 0.3s ease, transform 0.3s ease;
}

.img-button:hover .btn-visualizar-work {
  opacity: 1;
  transform: translateY(0);
}

.img-button:hover img {
  filter: brightness(0.6);
}

.btn-visualizar-work button {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 100px;
  background: #cfef00;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.works .work-cards .work-card button {
  position: relative;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
  padding: 5px 10px;
  margin-top: 10px;
  border-radius: 100px;
  background: #FCAE01;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  font-size: 15px;
  bottom: 10px;
}
.btn-visualizar-work{
    display: flex;
    align-items: end;
    justify-content: end;
}

button:hover {
  background: #c4e201;
}

button > svg {
  width: 34px;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out;
}

button:hover svg {
  transform: translateX(5px);
}

button:active {
  transform: scale(0.95);
}

.habilidades {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    min-height: 100vh;
    padding: 40px 20px;
}
.habilidades h2{
    font-family: "EB Garamond", serif;
    font-size: 28px;
    font-weight: 500;
}

.habilidades-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    width: 100%; 
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
}

.habilidade-card {
    width: 120px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #FCAE01;
    border: 1px solid #000000;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.habilidade-card:hover {
    transform: scale(1.2);
}

.habilidade-card i {
    font-size: 60px;   
    color: black;
}

.habilidade-card i:hover {
    transform: scale(1.1);
}
a{
    text-decoration: none;
}

.habilidade-card span {
    color: #000000;
    font-weight: 600;
}

.habilidade-card i {
    font-size: 56px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 10px;
}
.tech-tags .html{background-color: rgb(255, 136, 0);}
.tech-tags .css{background-color: #007BFF;}
.tech-tags .js{background-color: #F7DF1E;}
.tech-tags .boots{background-color: #563D7C;}
.tech-tags .json{background-color: #c07505;}
.tech-tags .php{background-color: #787CB5;}
.tech-tags .mysql{background-color: #00758F;}

.tech-tags li {
  background-color: #FCAE01;
  color: #000;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.work-card.coming-soon {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    border: 2px dashed #888;
    border-radius: 15px;
    background-image: url(../../img-project/img-flutuante.png);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-card.coming-soon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    z-index: 0;
    transition: background-color 0.3s;
}

.work-card.coming-soon h3,
.work-card.coming-soon p,
.work-card.coming-soon .emoji {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
    position: relative;
    z-index: 1;
}

.work-card.coming-soon:hover h3,
.work-card.coming-soon:hover p,
.work-card.coming-soon:hover .emoji {
    opacity: 1;
    transform: translateY(0);
}

.work-card.coming-soon:hover::before {
    background-color: rgba(0, 0, 0, 0.6);
}

.work-card.coming-soon * {
    position: relative;
    z-index: 1; 
}
.work-card.coming-soon p {
    color: rgb(255, 255, 255);
}

.work-card.coming-soon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.work-card.coming-soon h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #faca46;
}
.work-card.coming-soon h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #000000;
}

.work-card.coming-soon p {
    font-size: 1rem;
    line-height: 1.4;
}

.work-card.coming-soon .emoji {
    font-size: 2rem;
    margin-top: 15px;
}

@media (max-width: 1024px) {
  .work-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .work-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
   .habilidades-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
    .home {
        flex-direction: column;
        text-align: center;
        gap: 0px;
        padding-top: 91px;
    }

    .info-home-resumo {
        max-width: 100%;
    }

    .info-home-resumo h2 {
        font-size: 24px;
    }

    .info-home-resumo p {
        font-size: 16px;
    }
    .work-cards{
        flex-direction: column;
        align-items: center;
    }
}
