/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Urbanist', sans-serif;
    background-color: #101010; /* ajusta pra sua cor */
    color: #111;
}

/* ==================== HEADER ==================== */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.container-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    position: relative;
}

.menu-center {
    display: flex;
    gap: 25px;
    padding: 12px 25px;  /* AQUI !!! aumenta o primeiro valor */
    background: rgba(0, 0, 0, 0.152);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.menu-center a {
    color: #fff;
    padding: 8px 14px;
    border-radius: 30px;
    transition: 0.2s ease-in-out;
}

.menu-center a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-right {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 25px;
}

nav ul.menu li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul {
    list-style: none;
}

/* ==================== SEÇÕES FULL SCREEN ==================== */
.full-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
}

/* ==================== HOME / CAPA ==================== */
.home-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.home-content {
    flex: 1;
    text-align: left;
    z-index: 10;
    padding-top: 40px;
    gap: 20px; /* controla o espaçamento entre h1, p e o botão */
}

.home-content h1 {
    font-size: 4.4rem;
    font-family: 'Sunroll', sans-serif;
    font-weight: 200;
    white-space: nowrap;
    color: #fff;
}

.home-content p {
    font-size: 2.2rem;
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    margin: 0 0 25px 0;
    font-weight: 200; /* esse sim deixa mais grossinho */
}

/* ----- BOTÃO HOME (transparente) ----- */
.home-content .btn {
    display: inline-block;
    padding: 12px 25px;
    background: #73737342;
    backdrop-filter: blur(10px);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    color: #fff;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* HOVER DO HOME */
.home-content .btn:hover {
    background-color: #7245a2;
    transform: scale(1.07);
}

/* ==================== SPLINE 3D ==================== */
.home-spline {
    position: absolute; /* sai do fluxo do flex */
    right: 0;           /* fixa no canto direito */
    top: 50%;           /* centraliza verticalmente */
    transform: translateY(-50%); /* centraliza perfeitamente */
    width: 800px;
    height: 420px;
    overflow: hidden;
    z-index: 0; /* Spline atrás do texto se quiser */
}

.home-content {
    flex: 1;
    z-index: 10; /* garante que o texto fique acima do Spline */
}

.home-spline .spline {
    position: relative;  
    left: 226px;       /* move o Spline 100px para a direita */
    width: 100%;
    height: 100%;
}
/* ==================== RESPONSIVO HOME ==================== */
@media (max-width: 900px) {
    .home-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px; /* reduz o espaçamento entre conteúdo e Spline */
        padding: 20px;
    }

    .home-content {
        margin-bottom: 20px;
        transform: scale(1); /* remove qualquer scale exagerado */
        text-align: center;
    }

    .home-spline {
        width: 100%;
        height: 250px; /* altura menor, mas ainda visível */
    }

    .home-content h1 {
        font-size: 2.2rem; /* ajuste mais natural */
        white-space: normal; /* permite quebrar linha */
    }

    .home-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 500px) {
    .home-wrapper {
        gap: 15px;
        padding: 15px;
    }

    .home-content h1 {
        font-size: 1.8rem;
    }

.full-screen {
    min-height: 100vh;       /* ocupa a tela inteira */
    display: flex;
    flex-direction: column;
    justify-content: center; /* centraliza na vertical */
    align-items: center;     /* centraliza na horizontal */
    text-align: center;      /* opcional se quiser texto centralizado */
}

    .home-content p {
        font-size: 0.95rem;
    }

    .menu {
        border-radius: 0 !important;
    }
}

section + section {
  margin-top: 30rem;
}

/* ==================== MENU TOGGLE (MOBILE) ==================== */
@media (max-width: 768px) {
    /* Menu central mobile */
    nav ul.menu-center {
        position: fixed;
        top: 0;
        left: -100%; /* escondido fora da tela */
        height: 100vh;
        width: 70%; /* largura do menu mobile */
        background-color: rgba(0,0,0,0.9); /* fundo escuro */
        flex-direction: column;
        display: flex;
        align-items: flex-start;
        padding-top: 80px; /* espaço para o header */
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 1500;
    }

    #projetos.full-screen,
    #sobre.full-screen,
    #curriculo.full-screen {
        height: auto !important;   /* deixa crescer conforme o conteúdo */
        min-height: auto !important;
        padding-top: 100px; /* evita que fique atrás do header */
        padding-bottom: 60px;
    }

    nav ul.menu-center.active {
        left: 0; /* menu visível */
    }

    nav ul.menu-center li a {
        color: #fff;
        font-size: 1.2rem;
        padding-left: 20px;
    }

    .home-spline {
        display: none;
    }

    /* Esconde o menu direito no mobile */
    .menu-right {
        display: none;
    }

    /* Menu toggle já estava certo */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        position: absolute;
        left: 20px;
        top: 15px;
        z-index: 2000;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: #fff;
        border-radius: 3px;
    }

    .sobre-container {
    flex-direction: column;  /* empilha os blocos verticalmente */
    gap: 20px;
    text-align: left;  /* centraliza texto no mobile */
  }

      .sobre-container h2 {
    flex-direction: column;  /* empilha os blocos verticalmente */
    gap: 20px;
    text-align: center;  /* centraliza texto no mobile */
  }

  .sobre-descricoes {
    max-width: 300px;
    width: 100%;
    text-align: left;  /* centraliza texto no mobile */
    font-size: 0.95rem;
  }

    #curriculo.full-screen {
    padding: 40px 20px; /* espaço interno para não ficar grudado nas bordas */
  }

  .curriculo-container {
    max-width: 100%;
    padding: 0 10px;
  }

  .curriculo-container p {
    font-size: 1rem;
  }

  .botoes-curriculo {
    flex-direction: column; /* empilha os botões verticalmente */
    gap: 15px;
    margin-top: 15px;
  }

  .botoes-curriculo a {
    width: 100%;          /* botões ocupam toda a largura disponível */
    padding: 12px 0;
    font-size: 1.1rem;
  }
    /* força centralização REAL no mobile */
    .projetos-container {
        display: flex !important;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
    }

    .card-projeto {
        width: 100%;
        max-width: 420px;
        margin: 0 auto !important; /* centraliza sem chance de erro */
    }

    /* alinhamento à esquerda do conteúdo interno */
    .projeto-info,
    .projeto-info h3,
    .projeto-desc,
    .projeto-detalhes p {
        text-align: left !important;
        width: 100%;
    }
}

/* ==================== CORES DAS SEÇÕES ==================== */
#home { background-color: #101010; }
#projetos { background-color: #101010; color: #111; }
#sobre { background-color: #101010; color: #111; }
#curriculo { background-color: #101010; color: #111; }

/* ===== SEÇÃO PROJETOS ===== */

#projetos {
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projetos h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.projetos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

.card-projeto {
    background: rgba(115, 115, 115, 0.137);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card-link {
    text-decoration: none;
    color: inherit; /* mantém a cor original dos textos */
    display: block; /* faz o link ocupar o espaço do card */
}

.card-projeto:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.projeto-capa img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.projeto-info {
    padding: 20px;
}

.projeto-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.projeto-desc {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.projeto-detalhes {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.projeto-detalhes p {
    margin: 0;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #eee;
}

.projeto-detalhes strong {
    display: none; /* remove os labels */
}

/* ===== SESSÃO SOBRE ===== */
#sobre.full-screen {
    width: 100%;               /* ocupa a tela toda */
    min-height: 100vh;         /* ocupa a altura toda */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

#sobre.full-screen h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.sobre-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.sobre-texto {
    flex: 1;
    color: #fff;
}

.sobre-texto h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #fff;
}

.sobre-texto p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #ddd;
}

.sobre-descricoes {
  width: 100%;
  max-width: 380px;
  color: #ddd;
  font-size: 1rem;
  text-align: right;  /* texto alinhado à direita */
}

.sobre-descricoes p {
  margin: 4px 0;
}

/* ===== SESSÃO CURRÍCULO ===== */
#curriculo.full-screen {
    width: 100%;               /* ocupa a tela toda */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#curriculo.full-screen h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.curriculo-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.curriculo-container h2 {
    font-size: 2.4rem;
    margin-bottom: 25px;
    color: #fff;
}

.curriculo-container p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #ffffff;
}

.botoes-curriculo {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.botoes-curriculo a {
    display: inline-block;
    padding: 12px 25px;
    background: #73737342;
    backdrop-filter: blur(10px);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    color: #fff;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.botoes-curriculo a:hover {
    background-color: #7245a2;
    transform: scale(1.07);
}

#curriculo.full-screen {
    height: 100vh !important;          /* ocupa a tela inteira */
    min-height: 100vh !important;
    padding-top: 120px !important;     /* empurra pra baixo do header */
    padding-bottom: 80px;
    display: flex !important;          /* garante centralização */
    justify-content: center;
    align-items: center;
}

/* RODAPÉ */
.footer-portfolio {
  background: transparent !important;
  color: #fff;
  text-align: center;
  padding: 25px 20px;
  backdrop-filter: none !important;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.footer-text{
  font-size: 1rem;
}

.footer-links a {
  color: #fff;
  font-size: 1rem;
  transition: transform 0.3s, color 0.3s;
}

.footer-links i {
    font-size: 18px; /* diminui o tamanho dos ícones */
}

.footer-links a:hover {
  transform: scale(1.2);
}
