/* Estilo Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Inter', sans-serif;
    height: 100%;
    scroll-behavior: smooth;
    background-color: #f5f4f3;
    color: #3a3a3a;
    padding-top: 80px;
}

/* Estrutura das Seções */
.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    background-color: #f5f4f3;
}

/* Cabeçalho */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #e8e6e4;
    padding: 10px;
    border-bottom: 2px solid #d1cfcd;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    margin-right: 20px;
    margin-top: -15px;
    flex: 0 0 auto;
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    margin-left: 480px;
    margin-top: -20px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin: 0 20px -10px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #5a5a5a;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: #2c2c2c;
}

.language-selector {
    position: absolute;
    margin-left: 1200px;
    margin-top: -42px;
    margin-bottom: -34px;
}

.language-selector select {
    background-color: #f5f4f3;
    color: #5a5a5a;
    border: 1px solid #d1cfcd;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

.language-selector select:hover {
    background-color: #e8e6e4;
}

/* Seção Início - Autor */
.author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 63%;
}

.author-photo {
    width: 290px;
    border-radius: 50%;
    margin-left: 200px;
    margin-top: -150px;
    margin-bottom: -10px;
    border: 5px solid #e8e6e4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.author-logo {
    width: 180px;
    border-radius: 100%;
    margin-top: 10px;
}

h2 {
    font-size: 32px;
    color: #3a3a3a;
    margin: 0;
    font-weight: 600;
}

#role {
    font-size: 24px;
    color: #7a7a7a;
    font-weight: 400;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    color: #ffffff;
    background-color: #8a8886;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

.download-btn:hover {
    background-color: #6a6866;
    color: #ffffff;
}

.social-icons {
    margin-top: 20px;
    margin-right: 63%;
    display: flex;
}

.social-icons a {
    color: #7a7a7a;
    margin: 0 15px;
    font-size: 28px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #3a3a3a;
}

/* Animação do Autor */
@keyframes comet-diagonal-animation {
    0% {
        transform: translate(1500px, -1000px);
        opacity: 0;
    }
    70% {
        transform: translate(-50px, 50px);
        opacity: 1;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

.author-photo.animate-comet {
    animation: comet-diagonal-animation 3s ease-out forwards;
}

/* Efeito de revelação ao scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Seção Sobre */
#sobre {
    min-height: 100vh;
    padding: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.sobre-container {
    width: 100%;
    height: auto;
}

#sobre h2 {
    text-align: left;
    margin-left: -75px;
    margin-bottom: 90px;
    position: relative;
    padding-left: 10px;
    font-size: 32px;
    color: #3a3a3a;
}

#sobre h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 1px;
    background-color: #d1cfcd;
}

.content-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.photo-background {
    background-color: #e8e6e4;
    border-radius: 10px;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.about-photo {
    width: 280px;
    height: 390px;
    border-radius: 7px;
    margin: 0;
}

.apresentacao-box {
    background-color: #e8e6e4;
    border: 1px solid #d1cfcd;
    padding: 25px;
    width: 800px;
    color: #5a5a5a;
    font-size: 16px;
    line-height: 1.8;
    border-radius: 10px;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.apresentacao-box h3 {
    display: flex;
    align-items: center;
    margin: 0 0 15px 0;
    color: #3a3a3a;
}

.text-content p {
    color: #5a5a5a;
    font-size: 16px;
    line-height: 1.8;
}

.titulo-detalhe {
    font-family: 'Inter', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    color: #3a3a3a;
    margin-top: 30px;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    font-weight: 600;
}

.titulo-detalhe.mostrar {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para projetos */
.projetos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
  
.projeto-card {
    background: #e8e6e4;
    border: 1px solid #d1cfcd;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
  
.projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
  
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}
  
.tech-tag {
    background: #d1cfcd;
    color: #3a3a3a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}
  
.project-detail {
    max-width: 800px;
    margin: 0 auto;
}
  
.project-gallery {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}
  
.project-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1cfcd;
}
  
.project-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}
  
.button {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    background-color: #8a8886;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
    line-height: 1;
    box-sizing: border-box;
}

.button:hover {
    background-color: #6a6866;
}

.github-button {
    background-color: #8a8886 !important;
    color: #ffffff !important;
}

.github-button:hover {
    background-color: #6a6866 !important;
}

.live-button {
    background-color: #8a8886;
    color: #ffffff;
}

.live-button:hover {
    background-color: #6a6866;
}

/* Seção Projetos */
#projetos {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 150px;
    min-height: 100vh;
    width: 100%;
    margin-bottom: 50px;
    background-color: #f5f4f3;
}
  
#projetos h2 {
    text-align: left;
    margin-left: -75px;
    margin-bottom: 90px;
    position: relative;
    padding-left: 10px;
    font-size: 32px;
    color: #3a3a3a;
}
  
#projetos h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 1px;
    background-color: #d1cfcd;
}
  
.projetos-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
  
.projeto-card {
    background-color: #e8e6e4;
    border: 1px solid #d1cfcd;
    border-radius: 5px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
  
.projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
  
.projeto-card h3 {
    color: #3a3a3a;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}
  
.projeto-card p {
    color: #7a7a7a;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}
  
.projeto-card .link {
    color: #3a3a3a;
    font-size: 14px;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 500;
}
  
.projeto-card .link:hover {
    text-decoration: underline;
}
  
/* Estilos para a página de detalhes do projeto */
.projeto-detalhe-container {
    max-width: 800px;
    margin: 0 auto; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
#projeto-conteudo {
    background-color: #e8e6e4;
    border: 1px solid #d1cfcd;
    border-radius: 5px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
  
#projeto-conteudo h2 {
    color: #3a3a3a;
    margin-top: 0;
    font-weight: 600;
}
  
#projeto-conteudo p {
    color: #5a5a5a;
    line-height: 1.8;
    margin-bottom: 20px;
}
  
#projeto-conteudo .link {
    color: #3a3a3a;
    text-decoration: none;
    font-weight: 500;
}
  
#projeto-conteudo .link:hover {
    text-decoration: underline;
}
  
.projeto-imagens {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}
  
.projeto-img {
    width: 600px;
    height: 600px;
    object-fit: cover;
    border: 1px solid #d1cfcd;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
  
.projeto-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Seção Tecnologias */
#tecnologias {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 100px 150px;
    min-height: auto; 
    width: 100%;
    margin-bottom: 50px;
    background-color: #f5f4f3;
}

#tecnologias h2 {
    text-align: left;
    margin-left: -75px;
    margin-bottom: 50px; 
    position: relative;
    padding-left: 10px;
    font-size: 32px;
    color: #3a3a3a;
}

#tecnologias h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 1px;
    background-color: #d1cfcd;
}

/* Estilo para o grid de tecnologias */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; 
    width: 100%;
}

.tech-item {
    background-color: #e8e6e4;
    border: 1px solid #d1cfcd;
    border-radius: 8px; 
    padding: 15px; 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

.tech-item:hover {
    transform: translateY(-3px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); 
}

.tech-icon {
    width: 40px; 
    height: 40px; 
    margin-bottom: 10px; 
}

.tech-name {
    color: #3a3a3a;
    font-size: 16px; 
    font-weight: 600;
    margin-bottom: 8px; 
}

.tech-desc {
    color: #7a7a7a;
    font-size: 13px; 
    line-height: 1.5; 
}

/* Rodapé */
#rodape {
    padding: 20px;
    text-align: center;
    background-color: #8a8886;
    color: #ffffff;
    font-size: 14px;
    width: 100%;
    border-top: none;
}

footer {
    opacity: 1 !important;
    transform: none !important;
}

.reveal {
    transition: all 0.8s ease;
}

.reveal:not(footer) { 
    opacity: 0;
    transform: translateY(20px);
}

.reveal.active:not(footer) {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================ */
/* MEDIA QUERIES PARA DISPOSITIVOS MÓVEIS */
/* ============================================ */

/* Ícone hamburguer */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    position: fixed; 
    top: 15px;
    right: 15px; 
    z-index: 3000; 
  }
  /* Estilo padrão para desktop */
  .nav-menu {
    display: flex;
    gap: 20px;
  }
  
  /* MOBILE */
  @media (max-width: 768px) {
    .hamburger {
      display: block;
    }
  
    .hamburger {
      display: block;
      position: absolute;
      top: 15px;
      right: 20px;
      z-index: 2000;
    }
  
    .nav-menu {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: #f5f5f5;
        border-radius: 8px;
        padding: 10px;
        z-index: 1000;
        width: 200px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        text-align: right; 
      }
  
    .nav-menu.show {
      display: flex;
    }
  
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-end; 
        gap: 10px;
      }
  
    .nav-menu ul li a {
      font-size: 14px;
      padding: 5px;
      display: block;
      width: 100%;
    }
  
    .language-selector {
      margin-top: 10px;
      width: 100%;
      text-align: center;
    }

    
    /* Home - Autor */
    .author {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .author-info {
        margin-right: 0;
        align-items: center;
    }
    
    .author-photo {
        margin: 30px auto;
        width: 200px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
    }
    
    .social-icons {
        margin-right: 0;
        justify-content: center;
    }
    
    /* Sobre */
    #sobre {
        padding: 80px 20px;
    }
    
    #sobre h2 {
        margin-left: 0;
        text-align: center;
        margin-bottom: 40px;
    }
    
    #sobre h2::after {
        width: 100%;
        left: 0;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .photo-background {
        margin: 0 auto;
    }
    
    .about-photo {
        width: 100%;
        max-width: 280px;
        height: auto;
    }
    
    .apresentacao-box {
        width: 100%;
        margin-top: 30px;
    }
    
    /* Projetos */
    #projetos {
        padding: 80px 20px;
    }
    
    #projetos h2 {
        margin-left: 0;
        text-align: center;
    }
    
    #projetos h2::after {
        width: 100%;
        left: 0;
    }
    
    .projetos-container {
        grid-template-columns: 1fr;
    }
    
    .projeto-card {
        height: auto;
    }
    
    /* Tecnologias */
    #tecnologias {
        padding: 80px 20px;
    }
    
    #tecnologias h2 {
        margin-left: 0;
        text-align: center;
    }
    
    #tecnologias h2::after {
        width: 100%;
        left: 0;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Rodapé */
    #rodape {
        padding: 20px 10px;
    }
    
    /* Ajustes para imagens em detalhes de projeto */
    .projeto-img {
        width: 100%;
        height: auto;
    }
}

/* Ajustes para telas muito pequenas (menos de 400px) */
@media (max-width: 400px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .author-photo {
        width: 150px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    #role {
        font-size: 18px;
    }
    
    .button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .project-actions {
        flex-direction: column;
    }
}