/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f1e8;
    color: #4a3f35;
    height: 100%;
    text-align: center;
}

h1 {
    font-family: 'Passions Conflict', cursive;
    font-size: 2rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* Cabeçalho */
header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    width: 100hv;
    height: 90vh;
    padding: 50px;
    overflow: hidden;
    background-image: url(Terra.jpg);
    background-color: rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
}

header h1, header p,
#buttons {
    position: relative;
    z-index: 1;
    margin: 10px 0;
}

  /* Camadas de imagem com fade e troca */
  .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .bg.show {
    opacity: 1;
  }

  @keyframes passarLinha {
    0%, 49% {
      left: -100%;
    }
    50% {
      left: 100%;
    }
    51%, 100% {
      left: -100%;
    }
  }


/* Menu de navegação */
#nav-menu {
    display: flex;
    justify-content: center;
    background-color: #4a3f35;
    flex-wrap: wrap;
}

#nav-menu a {
    color: #f5f1e8;
    padding: 14px 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

#nav-menu a:hover {
    background-color: #6b4f3a;
}

/* Oculta o botão de menu em qualquer situação */
#menu-toggle {
    display: none !important;
}


/* Container principal */
.container {
    width: 90%;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Projetos e artigos */
.project, .article {
    background: #fff;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project img {
    max-width: 100%;
    border-radius: 8px;
}

/* Rodapé */
footer {
    background-color: #4a3f35;
    color: #f5f1e8;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    width: 100%;
    z-index: 1000;
    margin-top: auto;
}

/* Créditos e links de licença */
.ai-credit, .license-link {
    font-size: 12px;
    color: #a89f94;
    text-align: center;
    margin-top: 15px;
}

.license-link {
    font-weight: bold;
    text-decoration: none;
}

.license-link:hover {
    text-decoration: underline;
}

/* Botões sociais */
#buttons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lattes-link, .osm-link, .linkedin-link, .github-link, .freelancer-link, .bluesky-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #8c6b5400;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.lattes-link:hover, .osm-link:hover, .linkedin-link:hover, .github-link:hover, .freelancer-link:hover, .bluesky-link:hover {
    background-color: #7a5a46;
    transform: translateY(-2px);
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.lattes-link img, .osm-link img, .linkedin-link img, .github-link img, .freelancer-link img, .bluesky-link img {
    width: 36px;
    height: 36px;
    filter: brightness(1) invert(0);
    transition: transform 0.3s ease;
}

.lattes-link:hover img, .osm-link:hover img, .linkedin-link:hover img, .github-link:hover img, .freelancer-link:hover img, .bluesky-link:hover img {
    transform: scale(1.1);
}


/* Contêiner do mapa e menu */
.map-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

#map {
    flex: 2;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Menu de edições */
.edits-menu {
    flex: 1;
    background-color: #f5f1e8;
    border: 1px solid #d4c8b8;
    border-radius: 8px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.edits-menu h3 {
    margin-top: 0;
    font-size: 18px;
    color: #4a3f35;
}

#edits-list {
    list-style-type: none;
    padding: 0;
}

#edits-list li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #4a3f35;
}

#edits-list li a {
    color: #6b4f3a;
    text-decoration: none;
}

#edits-list li a:hover {
    text-decoration: underline;
}

/* Painel de contato */
.contact-panel {
    background-color: #fefefe;
    padding: 2rem;
    margin: 30px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #444;
    font-size: 1.05rem;
    text-align: center;
    box-sizing: border-box;
    overflow-x: hidden;
}

.contact-panel p {
    margin: 0;
}

.contact-panel a {
    color: #4A3F35;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-panel a:hover {
    color: #7a5a46;
    text-decoration: underline;
}

.contact-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.contact-form h2 {
    color: #8c6b54;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #8c6b54;
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-acessar,
.submit-btn {
    background-color: #4A3F35;
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 300;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: block;
    width: 90vw;
    max-width: 130px;
    margin: 24px auto;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-acessar:hover,
.submit-btn:hover {
    background-color: #3a2f27;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-acessar:active,
.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}




.em-desenvolvimento {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #a94442;
    background-color: #f9d6d5;
    border: 1px solid #e5b4b4;
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 10px;
}


/* Seção de perfil freelancer */
.profile-section {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.profile-section h2 {
    font-size: 2rem;
    color: #8c6b54;
    margin-bottom: 20px;
}

.profile-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.profile-image img {
    max-width: 150px;
    border-radius: 50%;
    margin-right: 20px;
    margin-bottom: 10px;
    border: 2px solid #8c6b54;
}

.profile-info {
    flex: 1;
    text-align: left;
}

.profile-info p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.btn-profile {
    display: block;
    background-color: #8c6b54;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin: 0 auto;
    text-align: center;
}

.btn-profile:hover {
    background-color: #7a5a46;
}

/* Selo IA Friendly */
#ia-friendly {
    position: fixed;
    top: 20px;
    right: 20px;
    opacity: 0.7;
    z-index: 1000;
    background-color: #6b4f3a;
    color: #f5f1e8;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Habilidades */
.skill {
    margin: 15px 0;
    text-align: left;
}

.skill-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 20px;
    background: #6b4f3a;
    width: 0;
    text-align: right;
    line-height: 20px;
    color: white;
    padding-right: 5px;
}

/* Sobre Mim */
.sobre-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.sobre-container img {
    width: 150px;
    border-radius: 50%;
    border: 2px solid #8c6b54;
}

.sobre-texto {
    flex: 1;
}

/* Imagem de perfil */
.profile-image img {
    max-width: 150px;
    border-radius: 50%;
    margin-right: 20px;
    margin-bottom: 10px;
    border: 2px solid #8c6b54;
}

/* Carrossel */
.carousel-section {
    margin-top: 10px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
    border: 2px solid #8c6b54;
    border-radius: 16px;
}

.carousel {
    position: relative;
    max-width: 1176px;
    margin: auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 auto;
    width: 250px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #8c6b54;
}

.carousel-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.carousel-item p {
    padding: 10px;
    font-weight: 500;
}

.carousel-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-item:hover a {
    color: #0077cc;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Responsividade */
@media (max-width: 768px) {
    header {
        background-attachment: scroll;
        background-position: top center;
    }

    header h1 {
        font-size: 3rem;
    }

    header p {
        font-size: 1rem;
    }

    #buttons {
        gap: 15px;
    }

    #buttons img {
        width: 35px;
        height: 35px;
    }

    .sobre-container {
        flex-direction: column;
        text-align: center;
    }

    .sobre-container img {
        width: 120px;
        margin-bottom: 15px;
    }

    .carousel-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .carousel-item {
        scroll-snap-align: start;
    }

    .carousel-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    #buttons {
        gap: 10px;
    }

    #buttons img {
        width: 30px;
        height: 30px;
    }
}

/* Estilos para o BLOG */

.blog-section {
    padding: 40px 20px;
}

.section-title {
    font-size: 2rem;
    color: #8c6b54;
    margin-bottom: 30px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 2px solid #e0d7cd;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.blog-content {
    padding: 15px 20px;
    text-align: left;
}

.blog-content h3 {
    font-size: 1.2rem;
    color: #4a3f35;
    margin-bottom: 10px;
}

.blog-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

