@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

html {
  scroll-behavior: smooth;
}

body{
    background-color: #222222;
    font-family: Urbanist, serif;
    margin: 50px 100px 100px 100px; 
    color: white;
    overflow-x: hidden;
    font-size: 24px;
    
    position: relative;
   
}


.container{ 
    display: flex;
    margin-top: 200px;

}

.home{
    
    margin-top: 20px;
    width: 100px;
    height: 80px;
    font-weight: 600;
    transform-origin: center;
}

.home path{
    fill: none;
    stroke: white;
    stroke-width: 20;
    stroke-linejoin: round;
}

img{
    border-radius: 10px;
}


.fade-in {
    opacity: 0; /* Inicia invisível */
    transform: translateY(100px); /* Pequeno deslocamento para baixo */
}

.fade-left {
    opacity: 0;
    transform: translateX(-50px); /* Começa deslocado para a esquerda */
}

.fade-right {
    opacity: 0;
    transform: translateX(50px); /* Começa deslocado para a direita */
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #DBD97C; /* Cor da animação */
    z-index: 9999;
    pointer-events: none;
    will-change: height, top;
}




/* --- AJUSTES PARA TABLETS --- */
@media (max-width: 1024px) {
    body {
        margin: 30px 40px; /* Reduz margens laterais */
    }
    
    .portfolio {
        font-size: 150px;
    }
}

/* --- AJUSTES PARA TELEMÓVEIS --- */
@media (max-width: 768px) {
    body {
        margin: 20px 20px; /* Margens mínimas para aproveitar o ecrã */
        font-size: 18px;
    }

    /* Ajuste da Navegação */
    nav {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        margin-right: 0;
        padding: 0;
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    /* Portfolio Hero Section */
    .portfolio {
        font-size: 60px; /* Evita que o texto saia do ecrã */
        line-height: 1;
    }

    .homefolio {
        width: 60px;
        height: 80px;
    }

    .port {
        justify-content: center;
    }

    .folio {
        text-align: center;
    }

    /* Tangram (Importante para não quebrar o layout) */
    .tangram {
        width: 100%;
        height: auto;
        margin-top: 100px;
        padding: 20px;
    }

    /* Desativar ou suavizar as explosões do Tangram no hover de telemóvel */
    .tangram:hover {
        padding: 20px;
    }

    .tangram:hover .tri-azul, 
    .tangram:hover .tri-roxo, 
    .tangram:hover .tri-amarelo, 
    .tangram:hover .tri-laranja, 
    .tangram:hover .tri-verde, 
    .tangram:hover .quadr, 
    .tangram:hover .paral {
        transform: none; /* Em telemóvel as peças ficam juntas para facilitar o clique */
    }

    /* Secção Meet Me */
    .meet {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .quote {
        width: 100%;
        margin-top: 40px;
        text-align: center;
    }

    #text-container {
        margin-bottom: -100px; /* Ajuste do texto curvo */
        width: 100%;
    }

    .foto1, .foto2 {
        width: 140px;
        height: 140px;
        margin: 10px;
    }

    /* Tools Section */
    #tools {
        font-size: 40px;
        text-align: center;
    }

    .tool1, .tool2 {
        width: 140px;
        height: 140px;
    }

    /* Footer e Cérebro */
    .footer-grid {
        flex-direction: column-reverse; /* Cérebro aparece primeiro ou depois */
        gap: 50px;
    }

    .footer-right {
        justify-content: center;
    }

    .brain-container {
        width: 280px;
        height: 330px;
    }

    .words-inside-brain p {
        font-size: 20px !important;
    }
    
    /* Ajuste das posições das palavras no cérebro para mobile */
    #got { top: 20px; left: 60px; }
    #something { top: 70px; left: 80px; }
    #on { top: 120px; left: 70px; }
    #your { top: 160px; left: 140px; }
    #mind { top: 210px; left: 70px; }

    .container-contact {
        margin-top: 50px;
        flex-direction: column;
        gap: 20px;
    }
}


