*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    background-color: #D9D9D9;
    margin: 0;
    padding: 0;
    padding-top: 100px;
    padding-left: 1rem;  /* padding-left fixo independente do tamanho da tela */
    margin-right: 1rem;
}

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: #D9D9D9;
    box-shadow: 0 4px 4px rgba(0,0,0,0.25);
    z-index: 9999;
    overflow: hidden;  /* evita problemas de layout */
}

.header .container {
    max-width: 1204px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem, 4vw, 2.5rem);  /* padding responsivo */
}

.logo {
    font-family: "Julius Sans One", sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.6rem);  /* logo responsivo */
    font-weight: 400;
    background: linear-gradient(90deg, #752B71 19.71%, #8D468A 46.37%, #C98CC6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.textosHead {
  display: flex;
  gap: clamp(1rem, 4vw, 2.5rem);  /* gap responsivo */
}

.textosHead a {
  color: #A2591F;
  font-family: "Instrument Sans", sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);  /* fonte responsiva */
  font-weight: 400;
  text-transform: lowercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;  /* evita quebra de linha */
}

.textosHead a:hover {
  color: #8D468A; /* opcional: muda a cor ao passar o mouse */
}

/* Melhoria na acessibilidade - remove animações se preferido pelo usuário */
@media (prefers-reduced-motion: reduce) {
  .textosHead {
    transition: none;
  }
}

/* Ajuste para evitar scroll horizontal quando menu está aberto */
/* Seção Home */
.inicio_container {
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: 75.25rem;
    margin: 0 auto;
    gap: 2.625rem;
    padding: 0px 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;               /* Espaço entre títulos e conteúdo */
}

.intro-titles {
  display: flex;
  flex-direction: column;
  gap: .3125rem;
}

.nome{
    margin: 0 0 0;                  
    font-family: "Instrument Sans", sans-serif;
    font-size: clamp(5rem, 12vw, 12rem);  /* aumentado: min 5rem, ideal 12vw, max 12rem */
    font-weight: 700;
    color: #752B71;
    text-shadow: 0 .25rem .25rem rgba(0,0,0,0.25);
    line-height: 1;
    margin-bottom: 0.0625rem;
}

.cargo{
    margin: 0;
    flex-shrink: 0;
    color: #886887;
    font-family: "Instrument Sans";
    font-size: clamp(2rem, 5vw, 4rem);  /* aumentado: min 2rem, ideal 5vw, max 4rem */
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 2rem;
}

.intro-content {
  display: flex;           
  flex-direction: row;     
  align-items: flex-start; 
  gap: clamp(2rem, 8vw, 12.5rem);  /* gap responsivo */
}

.paragrafos {
  flex: 1;                 
  max-width: 43.75rem;     
  min-width: 0;            /* permite que o texto encolha se necessário */
}

.paragrafos p {
  margin: 0 0 1rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.25rem);  /* texto responsivo */
  font-weight: 500;
  line-height: 1.8;        
  color: #472D46;
  letter-spacing: 0.03rem; 
}

.foto-wrapper {
  position: relative;
  width: clamp(18rem, 30vw, 26rem);   /* aumentado: largura responsiva */
  height: clamp(18rem, 30vw, 26rem);  /* aumentado: altura responsiva */
  flex-shrink: 0;
  min-width: 18rem;  /* tamanho mínimo aumentado */

}
/* o quadrado atrás da foto */
.foto-bg {
  position: absolute;
  top: clamp(-6.5rem, -9vw, -6.5rem);      /* ajustado para o novo tamanho */
  left: 2rem;        /* alinha à esquerda */
  width: clamp(15rem, 25vw, 22rem);   /* aumentado: largura responsiva */
  height: clamp(15rem, 25vw, 22rem);  /* aumentado: altura responsiva */
  background: #B37D52; /* cor do retângulo do Figma */
  z-index: 0;
}

/* a foto fica acima do quadrado e “sobe” 40px */
.fotoPerfil {
  position: relative;
  top: clamp(-4.5rem, -6vw, -5rem);    /* posição responsiva */
  left: clamp(0, -4vw, -2.5rem);   /* posição responsiva */
  width: clamp(15rem, 25vw, 22rem);   /* largura responsiva */
  height: clamp(15rem, 25vw, 22rem);  /* altura responsiva */
  object-fit: cover;
  z-index: 1;
}

.sobreMim {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    /*height: 53.125rem; */
    margin: 0 -50vw 0;   /* puxa pra cobrir as laterais */
    padding: 5rem 0 ;      /* 10rem em cima, igual era */
    background: linear-gradient(
        180deg,
        rgba(222,222,222,0.40) 0%,
        rgba(197,185,197,0.40) 16.62%,
        rgba(172,148,171,0.40) 25.56%,
        rgba(154,126,153,0.40) 38.17%,
        rgba(136,104,135,0.40) 50.19%,
        rgba(156,86,152,0.40) 77.75%,
        rgba(222,222,222,0.40) 100%
    );
    z-index: -10;
    /* margin-bottom: 3rem; */
    margin-bottom: 0;
}

.sobre-header {
    display: flex;
    align-items: flex-start; /* alinha o topo dos elementos */
    gap: 2.75rem;
    max-width: 75.25rem;
    margin: 0 auto;
    padding: 0 1rem;   /* preserva a margem interna */
    padding-top: 2rem; /* espaçamento superior */
}

.sobre-body {
  max-width: 75.25rem;
  margin: 0 auto;
  padding: 0 1rem;   /* alinhado com sobre-header */
}

.falandoSobreMim {
  margin: 0;
  width: 25rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #A2591F;
  text-shadow: 0 .25rem .25rem rgba(0,0,0,0.25);
  line-height: normal;
  flex-shrink: 0;
}
.texto1 {
  margin: 0;  /* remove margin para alinhar perfeitamente */
  padding-right: 1.5rem;
  width: 47.125rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.8;
  color: #472D46;
  letter-spacing: 0.03rem; /* 0.3px */
}

.texto2{
    padding-left: 0;  /* remove padding para alinhar com sobre-body */
    padding-right: 1.5rem;
    font-family: "Instrument Sans", sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.8;
    color: #472D46;
    letter-spacing: 0.03rem;
    margin-top: 2rem;
}

.texto3{
    padding-top: .5rem;
    padding-left: 0;  /* remove padding para alinhar com sobre-body */
    padding-right: 1.5rem;
    margin: 0;
    font-family: "Instrument Sans", sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.8;
    color: #472D46;
    letter-spacing: 0.03rem;
}

.entreContato{
    padding-top: 2rem;
    color: #472D46;
    text-align: center;
    font-family: "Instrument Sans";
    font-size: 1.875rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/* Redes sociais dentro da seção sobre mim */
.sobreRedes .redesSociais {
    display: flex;
    justify-content: center;
    gap: 2.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.sobreRedes .redesSociais a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
    background: transparent;
}

.sobreRedes .redesSociais a:hover {
    transform: scale(1.1);
}

/* Cores específicas de hover por rede social */
.sobreRedes .whatsapp:hover   { background: rgba(37,211,102,0.1); }
.sobreRedes .linkedin:hover   { background: rgba(0,119,181,0.1); }
.sobreRedes .instagram:hover  { background: rgba(228, 64, 209, 0.1); }
.sobreRedes .github:hover     { background: rgba(51,51,51,0.1); }

.sobreRedes .redesSociais img {
    width: 3rem;
    height: 3rem;
    pointer-events: none;
}

.projetos h2 {
    position: relative;
    display: block;
    font-family: "Instrument Sans";
    font-size: 2.5rem;             
    font-weight: 700;          
    color: #752B71;
    text-shadow: 0px .25rem .25rem rgba(0, 0, 0, 0.25);
    margin-top: 1.5rem;      
    padding-bottom: 1rem;
    margin-bottom: 3rem;  /* aumenta o espaçamento entre o título e os projetos */
    text-align: center;
}

.projetos h2::after {
    content: "";
    position: absolute;
    bottom: 0;                   /* alinhado à base do h1 */
    left: 50%;
    transform: translateX(-50%);
    width: 10rem; /* largura do sublinhado */
    height: 0.25rem;
    background: #DB8A49;
}

.projetos{
    position: relative;
    margin-top: 8rem;
}
.projeto{ 
    position: relative;
    display: flex;
    gap: 2rem;
    justify-content: space-between; 
    padding-left: 5rem; 
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.projeto::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75rem;
    border-bottom: 0.032rem solid #8B8A89;
}

.conteudo{
    position: relative;
    gap: 2rem;
}

.projetos .conteudo{
    flex: 1;     /* ocupa o espaço disponível */
    padding-left: 0;  /* remove padding-left para alinhar à esquerda */
    padding-right: 2rem;  /* espaçamento entre texto e imagem */
}

.conteudo .titulo{
    position: relative;
    display: inline-block;
    align-items: center;
    margin: 1rem 0 0.25rem;
    color: #5D5A5A;
    font-family: "Open Sans Condensed";
    font-size: 1.5rem;
    transform: scaleY(1.2); 
    line-height: 1.2;
    font-style: normal;
    font-weight: 700;
    padding-top: 1rem;
}

.conteudo .descricao{
    position: relative;
    margin-bottom: 2rem;
    width: 44rem;
    display: block;
    margin-top: -.6rem;
    color: #000;
    font-family: "Open Sans Condensed";
    font-size: 1.3rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin-top: 1.5rem;
}
.projeto .imagem {
    padding-top: 1rem;
    width: 35rem;              /* largura fixa para todas as imagens */
    height: 22rem;             /* altura fixa para todas as imagens */
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    padding-right: 5rem;       /* espaçamento à direita */
    padding-bottom: 2rem;
    flex-shrink: 0;            /* impede que a imagem encolha */
}

.projeto .imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* mantém proporção e preenche o container */
  display: block;
  border-radius: 12px;         /* bordas arredondadas para todas */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4); /* sombra consistente */
}

.imagem-com-sombra {
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.imagem-com-sombra:hover {
  transform: scale(1.02);      /* efeito sutil ao passar o mouse */
}

.contato{
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin: 0 -50vw 0;
    background: linear-gradient(
        180deg,
        /* mantém o cinza sólido até 10% */
        rgba(217,217,217, 0.4)   0%,
        #DEDEDE  10%,

        /* aqui começa a transição suave para o rosado */
        #EDE0E8  25%,   /* cor intermediária bem clara */
        #DCD6DB  50%,   /* rosado mais suave */

        /* opcional: um tom ainda mais escuro lá embaixo */
        rgba(156,86,152,0.40) 100%
    );
    background-repeat: no-repeat;
    background-size: cover;
}

.contato h2{
    color: #472D46;
    text-align: center;
    font-family: "Instrument Sans";
    font-size: clamp(1.5rem, 4vw, 2rem);  /* título responsivo */
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-top: clamp(3rem, 8vw, 6rem);  /* padding responsivo */
    letter-spacing: 0.03rem;
    margin: 0 1rem;                        /* margem lateral */
}

.contato p{
    color: #886887;
    max-width: 800px;         /* mudança de width fixo para max-width */
    width: 90%;               /* largura responsiva */
    text-align: center;
    font-family: "Instrument Sans";
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);  /* fonte responsiva */
    font-style: normal;
    font-weight: 300;
    line-height: 2.5rem;
    align-items: center;
    margin: 0 auto;
    padding-top: 1rem;
    padding-left: 1rem;       /* padding lateral para mobile */
    padding-right: 1rem;
}

.contato p:nth-child(3) {
    margin-top: 4rem;  /* aplica margin-top ao parágrafo que contém os links */
}

.contato a{
    color: #472D46;
    text-align: center;
    font-family: "Instrument Sans";
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);  /* links responsivos */
    font-style: normal;
    font-weight: 600;
    line-height: 2.3rem;
    word-break: break-all;                     /* quebra em telas pequenas */
}

.contato .fim {
    color: #000;
    text-align: center;
    font-family: "Instrument Sans";
    font-size: clamp(1rem, 2vw, 1.2rem);      /* texto final responsivo */
    font-style: normal;
    font-weight: 400;
    line-height: 2.8rem;
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 2rem;                      /* padding inferior */
    padding-left: 1rem;                       /* padding lateral */
    padding-right: 1rem;
}

/* ============ MEDIA QUERIES PARA RESPONSIVIDADE ============ */

/* Telas médias */
@media (max-width: 1024px) {
    .header .container {
        padding: 0 2rem;
    }
    
    .textosHead {
        gap: 2rem;
    }
    
    .textosHead a {
        font-size: 18px;
    }

    .projeto .imagem {
        width: 32rem;
        height: 20rem;
        padding-right: 3rem;
    }
    
    .conteudo .descricao {
        width: 38rem;
    }
    
    /* Ajustes da seção contato para telas médias */
    .contato p {
        max-width: 600px;
        font-size: 1.3rem;
    }
    
    .contato h2 {
        font-size: 1.8rem;
        padding-top: 4rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Header mais compacto para tablets */
    .header .container {
        padding: 0 1rem;
    }

    .intro-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
        margin-top: 5rem;
    }
    
    .paragrafos {
        max-width: 100%;
        order: 2;  /* coloca o texto após a imagem */
    }
    
    .foto-wrapper {
        order: 1;  /* coloca a imagem primeiro */
        width: clamp(15rem, 45vw, 22rem);
        height: clamp(15rem, 45vw, 22rem);
        min-width: 15rem;
    }
    
    /* Ajustes da seção sobre mim para tablets */
    .sobre-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .falandoSobreMim {
        font-size: 2rem;
        width: 100%;
    }
    
    .texto1 {
        width: 100%;
        padding-right: 0;
        font-size: 1.2rem;
    }
    
    .texto2, .texto3 {
        padding-left: 0;
        padding-right: 0;
        font-size: 1.2rem;
        text-align: center;
    }
    
    /* Redes sociais ajustadas para tablets */
    .sobreRedes .redesSociais {
        gap: 2rem;
    }
    
    .sobreRedes .redesSociais a {
        width: 4rem;
        height: 4rem;
    }

    .sobreRedes .redesSociais img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    /* Projetos responsivos para tablets */
    .projeto {
        flex-direction: column;
        padding-left: 2rem;
        padding-right: 2rem;
        margin-top: 14rem;
    }
    
    .projeto .imagem {
        order: 1;  /* imagem primeiro */
        width: 100%;
        height: 10rem;
        padding-right: 0;
        padding-top: 0;
    }
    
    .projetos .conteudo {
        order: 2;  /* texto depois */
        padding-right: 0;
        padding-top: 6rem;
    }
    
    .conteudo .descricao {
        width: 100%;
        font-size: 1.2rem;
    }
    
    .conteudo .titulo {
        font-size: 1.4rem;
    }
    
    /* Ajustes da seção contato para tablets */
    .contato h2 {
        font-size: 1.6rem;
        padding-top: 3rem;
        margin: 0 1.5rem;
    }
    
    .contato p {
        max-width: 500px;
        font-size: 1.2rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .contato a {
        font-size: 1.2rem;
        line-height: 2rem;
    }
    
    .contato .fim {
        font-size: 1rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body {
        margin-right: 0.5rem;
        padding-top: 80px;
        /* padding-left: 1rem; mantém o valor do body principal */
    }
    
    .header {
        height: 70px;
    }
    
    .header .container {
        padding: 0 15px;
        justify-content: space-between;  /* logo à esquerda, hambúrguer à direita */
    }
    
    .logo {
        font-size: 18px;
    }
    
    .menu-toggle {
        display: flex;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .hamburger-line {
        width: 1.5rem;
        height: 0.2rem;
    }
    
    .textosHead {
        display: flex !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #D9D9D9 !important;
        flex-direction: column !important;
        padding: 1rem 15px !important;
        box-shadow: 0 4px 4px rgba(0,0,0,0.25) !important;
        z-index: 10001 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .header .textosHead.active {
        max-height: 350px !important;
        opacity: 1 !important;
    }
    
    .textosHead a {
        font-size: 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(162, 89, 31, 0.2);
        text-align: center;
    }
    
    .textosHead a:last-child {
        border-bottom: none;
    }
    
    /* Seção Home - foto abaixo do cargo */
    .intro-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
        margin-top: 5rem;
    }
    
    .paragrafos {
        order: 2;  /* texto por último */
        max-width: 100%;
    }
    
    .foto-wrapper {
        order: 1;  /* foto logo após o cargo */
        width: clamp(12rem, 55vw, 18rem);
        height: clamp(12rem, 55vw, 18rem);
        min-width: 12rem;
    }
    
    .paragrafos p {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
    
    .inicio_container {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        gap: 1.5rem;
    }
    
    /* Seção Sobre Mim - layout vertical */
    .sobre-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .falandoSobreMim {
        font-size: 1.8rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .texto1 {
        width: 100%;
        padding-right: 0;
        font-size: 1.1rem;
    }
    
    .texto2, .texto3 {
        padding-left: 0;
        padding-right: 0;
        font-size: 1.1rem;
        margin-top: 1rem;
        text-align: center;
    }
    
    /* Redes Sociais - ícones menores e lado a lado */
    .sobreRedes .redesSociais {
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .sobreRedes .redesSociais a {
        width: 3rem;
        height: 3rem;
    }

    .sobreRedes .redesSociais img {
        width: 2rem;
        height: 2rem;
    }
    
    .entreContato {
        font-size: 1.4rem;
        padding-top: 1.5rem;
    }
    
    /* Ajustes das imagens dos projetos para mobile */
    .projeto {
        flex-direction: column;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 1rem;
        margin-top: 5.5rem;
    }
    
    .projeto .imagem {
        width: 100%;
        height: 15rem;
        padding-right: 0;
        padding-top: 0;
        order: 1;  /* imagem primeiro */
    }
    
    .projetos .conteudo {
        order: 2;  /* texto depois */
        padding-right: 0;
        padding-top: 1rem;
    }
    
    .conteudo .descricao {
        width: 100%;
        font-size: 1.1rem;
    }
    
    .conteudo .titulo {
        font-size: 1.3rem;
    }
    
    /* Ajustes da seção contato para mobile */
    .contato h2 {
        font-size: 1.4rem;
        padding-top: 2rem;
        margin: 0 1rem;
    }
    
    .contato p {
        max-width: 100%;
        font-size: 1.1rem;
        line-height: 1.8;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .contato p:nth-child(3) {
        margin-top: 2rem;  /* reduz margin-top no mobile */
    }
    
    .contato a {
        font-size: 1.1rem;
        line-height: 1.6;
        word-break: break-word;  /* quebra palavras longas */
        display: block;          /* cada link em uma linha */
        margin: 0.5rem 0;       /* espaçamento entre links */
    }
    
    .contato .fim {
        font-size: 0.9rem;
        line-height: 1.5;
        padding-top: 2rem;
        padding-bottom: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
