@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New&display=swap');
:root{
    --fonte_principal: "Playfair Display", serif;
    --fonte_secundaria: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    --cor_primaria: #1a2a3a;
    --cor_destaque:#d4af37;
    --cor_destaque2: #ffb703;
    --cor_secundaria: #faffbc;
    --cor_terciaria: #e0deee;
    --cor_quarta: #0f1c27;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body{
    height: 100%;
}
body{
    min-height: 100vh;
    display: flex;
    flex-direction:column ;
}
main{
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
/* estilizando o header */
header{
    display: flex;
    flex-direction: column ;
    flex-wrap: wrap;
    align-items: center;
    padding: 5%;
    /* background-color: var(--cor_primaria); */
    background:
        url("https://www.transparenttextures.com/patterns/black-linen.png"),
        var(--cor_primaria);
}
header h1{
    font-family: var(--fonte_principal);
    color: var(--cor_destaque);
    font-size: 35px;
}
header nav{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: center ;
    gap: 20px;
}
header nav a{
    font-family:var(--fonte_secundaria);
    color: var(--cor_secundaria);
    margin-top:10px;
    text-decoration: none;
    position: relative;
    font-weight: bold;
}
header nav a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--cor_terciaria);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
header nav a:hover::after{
    transform: scaleX(1);
    transform-origin: left ;
}
header nav span{
    color: var(--cor_secundaria);
}
/* vamos estilizar agora a primeira seção */
#inicio{
    display: flex;
    flex-direction: row;
    align-items:center;
    justify-content: space-around;
    gap: 40px;
    padding: 20px;
    /* background-color: var(--cor_primaria); */
    background:
        url("https://www.transparenttextures.com/patterns/black-linen.png"),
        var(--cor_primaria);
}
#inicio img{
    max-width: 400px;
    max-height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: solid 4px var(--cor_terciaria);
}
#inicio div:nth-child(2){
    max-width: 600px;
}
#inicio h1{
    margin-bottom:15px;
    font-family:var(--fonte_principal);
    color:var(--cor_secundaria);
    font-size: 25px;
    text-align: center;
}
#inicio p{
    line-height: 1.6;
    text-align: justify;
    font-size: 18px;
    font-family: var(--fonte_secundaria);
    color: var(--cor_terciaria);
}
/* vamos para o segundo sectionnmmnnnnnnnnnnnnn */
#about{
    background-color: var(--cor_secundaria);
    padding: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#about h2{
    font-family: var(--fonte_secundaria);
    color: var(--cor_primaria);
    font-size: 25px;
}
#about p{
    font-family: var(--fonte_secundaria);
    color: var(--cor_primaria);
    font-size: 18px;
    font-weight: 500;
    text-align: justify;
    margin-top: 10px;
}
#about h3{
    font-family: var(--fonte_principal);
    color:var(--cor_primaria);
    font-size: 25px;
    margin-top: 10px;
    margin-bottom: 10px;
}
#about ul li a{
    font-family: var(--fonte_secundaria);
    font-size: 19px;
}
#about #lyup{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}
#about #lyup img{
    max-width: 200px;
    max-height: 200px;
    border-radius: 20%;
    object-fit: cover;
    margin-left: 20px;
}
#about #lyup div:nth-child(1){
    text-align: justify;
}
/* agora vamos criar um carrossel horizontal */

#projetos {
    width: 100%;
    min-height: 400px;
    /* background-color: var(--cor_primaria); */
    background:
        url("https://www.transparenttextures.com/patterns/blizzard.png"),
        var(--cor_quarta);
    
    flex: 1 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 0;
    gap: 20px;
    overflow: hidden;
    position: relative; 
}
.projetos-flex {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 32px;
    padding: 0 5vw; 
}
.titulo-projetos {
    width: 100%;
    text-align: center;
    align-self: center;
    font-family: var(--fonte_principal);
    color: var(--cor_terciaria);
    font-size: 3rem;
    margin-bottom: 32px;
    letter-spacing: 2px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    margin-bottom: 20px;
    font-size: 2.5re;
}
.titulo-projetos::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 30%; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.9) 60%, transparent);
    opacity: 0.9;
    animation: shine 1.5s infinite
}
@keyframes shine {
    100% { left: 100%; }
}

.cards-container {
    width: 100%;
    position: relative;
    min-height: 340px;
}

/* Cards */
#projetos .card {
    width: 220px;
    height: 320px;
    padding: 12px;
    border-radius: 18px;
    background: var(--cor_terciaria);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.6s cubic-bezier(.4,2,.6,1),
                opacity 0.4s 0.1s cubic-bezier(.4,2,.6,1),
                box-shadow 0.5s;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    justify-content: flex-start;
    overflow: hidden;
    text-align: center;
}
#projetos .card h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    text-overflow: ellipsis;
    white-space: wrap;
}
#projetos .card p {
    font-size: 0.9rem;
    line-height: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6; /* limita número de linhas */
    -webkit-box-orient: vertical;
}

#projetos .card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* Efeitos de perspectiva */
#projetos .central {
    transform: translate(-50%, -50%) scale(1.1) perspective(600px) rotateY(0deg);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

#projetos .left {
    transform: translate(-120%, -50%) scale(0.9) perspective(600px) rotateY(25deg);
    opacity: 0.5;
    z-index: 2;
    pointer-events: auto;
}

#projetos .right {
    transform: translate(20%, -50%) scale(0.9) perspective(600px) rotateY(-25deg);
    opacity: 0.5;
    z-index: 2;
    pointer-events: auto;
}

#projetos .hidden {
    transform: translate(-50%, -50%) scale(0.7) perspective(600px) rotateY(0deg);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}
/* vamos estilizar a section trabalho */
#trabalho{
    background:
        url("https://www.transparenttextures.com/patterns/blizzard.png"),
        var(--cor_quarta);
    display: flex;
    flex-direction: column;
    flex-direction: wrap;
    justify-content: center;
    align-items: center;
    padding: 5%;
}
#trabalho h2{
    font-family: var(--fonte_principal);
    color: var(--cor_terciaria);
    font-size: 35px;
    margin-bottom: 10px;
}
#trabalho p{
    font-family: var(--fonte_secundaria);
    color: var(--cor_secundaria);
    font-size: 18px;
    text-align: justify;
    margin-bottom: 10px;
}
#trabalho a {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--cor_destaque), var(--cor_destaque2));
  color: var(--cor_quarta);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#trabalho a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
/* agora vamos estilizar a section das minhas skills */
#skills{
    text-align: center;
    padding: 40px 20px;
    background:
        url("https://www.transparenttextures.com/patterns/black-linen.png"),
        var(--cor_secundaria);
}
#skills h2{
    font-family: var(--fonte_principal);
    color: var(--cor_primaria);
    font-size: 2.5rem;
    margin-bottom: 30px;

}
#skills #container{
    display: flex;
    justify-content: space-around;
    gap: 50px;
    flex-wrap: wrap;
}
#soft-skills ul{
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
#soft-skills li{
    margin-bottom:15px;
    font-size: 1.3rem;
    font-family: var(--fonte_secundaria);
    color: var(--cor_primaria);
}
#hard-skills{
    display: inline-block;
    gap: 20px;
    justify-items: center;
    align-items: center;
}
#hard-skills i{
    font-size: 80px;
    color: var(--cor_quarta);
}
/* bora estilizar a última section */
#contato{
        background:
        url("https://www.transparenttextures.com/patterns/black-linen.png"),
        var(--cor_secundaria);
        display: flex;
        flex-direction: column;
        align-items: center;
}
#contato h2{
    font-family: var(--fonte_principal);
    color: var(--cor_primaria);
    font-size: 2.5rem;
    margin-bottom: 20px;
}
#container-contacts{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}
#container-contacts img{
    width: 60px;
    height: 60px;
    margin: 0 15px;
    transition: transform 0.3s ease;
}
/*======================== ESTILIZANDO O SOLUMCHAT SECTION ===================== */
#solumchat-destaque {
    background: linear-gradient(135deg, #1a2a3a, #d4af37);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#solumchat-destaque::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
    top: -50%;
    left: -50%;
}

#solumchat-destaque .container-chat {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#solumchat-destaque h1 {
    font-family: var(--fonte_principal);
    font-size: 3rem;
    margin-bottom: 20px;
}

#solumchat-destaque p {
    font-family: var(--fonte_secundaria);
    font-size: 1.4rem;
    margin-bottom: 30px;
}

#solumchat-destaque .botao-acessar {
    display: inline-block;
    padding: 16px 32px;
    background: #ffb703;
    color: #0f1c27;
    font-weight: bold;
    font-family: var(--fonte_secundaria);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#solumchat-destaque .botao-acessar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
/* ================= RESPONSIVIDADE ================= */

/* Tablets e telas médias */
@media (max-width: 1024px) {
    #inicio {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    #inicio img {
        max-width: 300px;
        max-height: 300px;
    }

    #inicio div:nth-child(2) {
        max-width: 90%;
    }

    #solumchat-destaque {
        padding: 60px 15px;
    }

    #solumchat-destaque h1 {
        font-size: 2.5rem;
    }

    #solumchat-destaque p {
        font-size: 1.2rem;
    }

    #solumchat-destaque .botao-acessar {
        padding: 14px 28px;
        font-size: 1rem;
    }

    #skills #container {
        flex-direction: column;
        gap: 30px;
    }

    #about #lyup {
        flex-direction: column;
        gap: 20px;
    }

    #about #lyup img {
        margin-left: 0;
        max-width: 150px;
        max-height: 150px;
    }
    .projetos-flex {
        flex-direction: column;
        gap: 10px;
        padding: 0 2vw;
    }
    .titulo-projetos{
        margin-bottom: 2px;
    }
    #projetos{
        flex-direction: column;
        margin-top: 0;
        gap: 0;
        padding: 20px 0 10px 0;
    }
    .cards-container {
        min-height: 180px;
    }
    #projetos .card {
        width: 180px;
        height: 260px;
    }
    #projetos .card img {
        height: 120px;
    }

    #projetos .central {
        scale: 1.05;
    }
    #projetos .left, #projetos .right {
        scale: 0.85;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    header h1 {
        font-size: 28px;
    }

    header nav {
        flex-direction: column;
        gap: 10px;
    }

    #inicio h1 {
        font-size: 22px;
    }

    #inicio p {
        font-size: 16px;
    }

    #trabalho h2, #skills h2, #contato h2 {
        font-size: 2rem;
    }
    .projetos-flex{
        flex-direction: column;
        gap: 6px;
        padding: 0 1vw;
    }
    .titulo-projetos{
        margin-bottom: 0;
    }
    #projetos{
        flex-direction: column;
        margin-top: 0;
        gap: 0;
        padding: 12px 0 6px 0;
    }
    .cards-container {
        min-height: 120px;
    }
    #projetos .card {
        width: 150px;
        height: 220px;
    }
    #projetos .card img {
        height: 100px;
    }

    #projetos .central {
        scale: 1.0;
    }
    #projetos .left, #projetos .right {
        scale: 0.8;
    }

    #solumchat-destaque h1 {
        font-size: 2rem;
    }

    #solumchat-destaque p {
        font-size: 1rem;
    }

    #solumchat-destaque .botao-acessar {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    #contato #container-contacts {
        flex-direction: column;
        gap: 15px;
    }

    #about h2, #about h3, #about p {
        font-size: 16px;
    }

    #about #lyup div:nth-child(1) {
        text-align: center;
    }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
    #inicio img {
        max-width: 200px;
        max-height: 200px;
    }
    .projetos-flex{
        flex-direction: column;
        gap: 4px;
        padding: 0 1vw;
    }
    .titulo-projetos{
        margin-bottom: 0;
    }
    #projetos{
        flex-direction: column;
        margin-top: 0;
        gap: 0;
        padding: 8px 0 4px 0;
    }
    .cards-container {
        min-height: 80px;
    }
    #projetos .card {
        width: 130px;
        height: 190px;
    }
    #projetos .card img {
        height: 90px;
    }

    #projetos .central {
        scale: 1.0;
    }
    #projetos .left, #projetos .right {
        scale: 0.75;
    }

    #solumchat-destaque {
        padding: 40px 10px;
    }

    #solumchat-destaque h1 {
        font-size: 1.8rem;
    }

    #solumchat-destaque p {
        font-size: 0.9rem;
    }

    #solumchat-destaque .botao-acessar {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    #skills #container {
        gap: 10px;
    }

    #about #lyup img {
        max-width: 120px;
        max-height: 120px;
    }
}
