:root {
    --primary-color: #6a0dad;
    /* Roxo vibrante */
    --secondary-color: #00bcd4;
    /* Ciano/Azul turquesa */
    --accent-color: #00f0b5;
    /* Verde neon */
    --dark-bg: #1a1a2e;
    /* Fundo escuro */
    --light-bg: #2e2e4a;
    /* Fundo mais claro */
    --text-color: #e0e0e0;
    /* Texto claro */
    --heading-color: #ffffff;
    /* Títulos brancos */
    --border-color: #4a4a6a;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    /* Evita rolagem horizontal indesejada */
    position: relative;
    /* Adicionado para que o conteúdo do body se sobreponha ao vídeo */
    z-index: 0;
    /* Garante que o body esteja acima do vídeo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    margin-bottom: 15px;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--heading-color);
}

.primary-btn:hover {
    background-color: #8a2be2;
    /* Um pouco mais claro */
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.secondary-btn:hover {
    background-color: #00e5ff;
    /* Um pouco mais claro */
    transform: translateY(-2px);
}

.tertiary-btn {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.tertiary-btn:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Header */
.main-header {
    background-color: rgba(26, 26, 46, 0.9);
    /* Fundo escuro semi-transparente */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.logo a {
    display: flex;
    /* Garante que a imagem e o texto fiquem lado a lado */
    align-items: center;
    /* Alinha verticalmente a imagem e o texto */
    font-size: 1.8em;
    font-weight: bold;
    color: var(--heading-color);
}

.logo img {
    height: 40px;
    /* Tamanho fixo para o logo */
    width: 40px;
    /* Garante que a imagem seja quadrada */
    margin-right: 10px;
    /* Espaço entre o logo e o texto */
    border-radius: 50%;
    /* Para um logo circular, se desejar */
    object-fit: cover;
    /* Garante que a imagem preencha o espaço sem distorcer */
}

.logo span {
    margin-left: 5px;
    /* Pequeno espaço entre a imagem e o texto "Edilson Moraes" */
    white-space: nowrap;
    /* Evita que o nome quebre em duas linhas */
}


.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1em;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
    background: var(--accent-color);
}

.nav-links .btn-contact {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.nav-links .btn-contact:hover {
    background-color: #00c79c;
    color: var(--dark-bg);
}

/* Burger Menu (para mobile) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section (apenas para a página inicial) */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--heading-color);
    z-index: 1;
    /* O z-index aqui não é mais necessário pois o body tem um */
    background-color: rgba(26, 26, 46, 0.7);
    padding-top: 80px;
    /* Garante que o fundo da hero section seja transparente para o vídeo aparecer */
}

/* Estilos para o Vídeo de Fundo Global */
.global-video-background {
    position: fixed;
    /* Fixa o vídeo na tela */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    /* Garante que fique atrás de todo o conteúdo */
}

#global-bg-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Garante que o vídeo cubra toda a área */
}

.global-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Máscara escura (ajuste a opacidade 0.6) */
    z-index: -1;
    /* Fica entre o vídeo e o conteúdo */
}

.hero-content {
    position: relative;
    z-index: 1;
    /* Garante que o conteúdo da hero section fique acima da overlay */
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px var(--shadow-color);
}

.hero-content h2 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px var(--shadow-color);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn {
    margin: 0 15px;
    font-size: 1.1em;
}

/* Seções de Conteúdo */
section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    /* Adicionado para que o conteúdo da section se sobreponha ao vídeo */
    z-index: 1;
    /* Garante que a section esteja acima do vídeo */
    background-color: rgba(0, 0, 0, 0.7);
    /* Adicionado para garantir que as seções tenham um fundo sólido */
}

section:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.8.7);
}

section h3 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

section h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 2px;
}

/* About Short */
.about-short p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
}

/* Services Preview */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.service-cards .card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.service-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.service-cards .card h4 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.service-cards .card p {
    font-size: 1em;
    color: var(--text-color);
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-color);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
    /* Adicionado para que o footer se sobreponha ao vídeo */
    z-index: 1;
    /* Garante que o footer esteja acima do vídeo */
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-footer p {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.social-links a {
    color: var(--text-color);
    margin: 0 15px;
    font-size: 1.1em;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--heading-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: transform 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-toggle img {
    width: 35px;
    height: 35px;
    filter: invert(1);
    /* Para ícones brancos */
}

.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1002;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

.chatbot-widget.active {
    transform: scale(1);
}

.chatbot-header {
    background-color: var(--primary-color);
    color: var(--heading-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
}

.chatbot-header button {
    background: none;
    border: none;
    color: var(--heading-color);
    font-size: 1.2em;
    cursor: pointer;
}

.chatbot-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background-color: var(--light-bg);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.chatbot-footer {
    display: flex;
    padding: 10px 15px;
    background-color: var(--light-bg);
}

.chatbot-footer input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--dark-bg);
    color: var(--text-color);
    margin-right: 10px;
}

.chatbot-footer input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.chatbot-footer button {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chatbot-footer button:hover {
    background-color: #00c79c;
}


/* Responsividade */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 60%;
        background-color: var(--light-bg);
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
        padding-top: 80px;
        /* Espaço para o header */
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }

    .nav-links li a {
        font-size: 1.5em;
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content h2 {
        font-size: 1.4em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        margin: 10px 0;
        width: 80%;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .chatbot-widget {
        width: 90%;
        right: 5%;
        bottom: 90px;
        height: 70vh;
    }

    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }
}

/* Animação do Burger */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* Estilos para as páginas de conteúdo (Serviços, Portfólio, Sobre) */
/* Removido o background-color: var(--light-bg) do .page-hero para que o vídeo de fundo seja visível */
.page-hero {
    padding: 120px 0 80px 0;
    /* Ajuste para o header fixo */
    text-align: center;
    color: var(--heading-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    background-color: rgba(26, 26, 46, 0.7);
    /* Adicionado um background semi-transparente para a máscara */
}

.page-hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.services-detail,
.portfolio-grid,
.about-me-detail {
    padding: 80px 0;
    background-color: rgba(26, 26, 46, 0.7);
    /* Fundo semi-transparente para as seções de conteúdo */
    position: relative;
    z-index: 1;
}

/* Ajuste para seções alternadas */
.services-detail section:nth-of-type(even),
.portfolio-grid section:nth-of-type(even),
.about-me-detail section:nth-of-type(even) {
    background-color: rgba(46, 46, 74, 0.85);
    /* Fundo mais claro semi-transparente */
}


.service-item {
    background-color: var(--light-bg);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
    text-align: left;
    border-left: 8px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.service-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-align: center;
}

.service-item h3 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.service-item p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-item ul {
    list-style: none;
    margin-bottom: 30px;
    padding-left: 0;
}

.service-item ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1em;
}

.service-item ul li::before {
    content: '✅';
    /* Ícone de check */
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2em;
}

.service-item .btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
    font-size: 1.1em;
}

.call-to-action {
    background-color: var(--primary-color);
    padding: 60px 0;
    text-align: center;
    color: var(--heading-color);
    position: relative;
    /* Adicionado para que o call-to-action se sobreponha ao vídeo */
    z-index: 1;
    /* Garante que o call-to-action esteja acima do vídeo */
}

.call-to-action h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.call-to-action p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* Responsividade para a página de Serviços */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5em;
    }

    .page-hero p {
        font-size: 1em;
    }

    .service-item {
        padding: 30px;
    }

    .service-item h3 {
        font-size: 1.6em;
    }

    .service-item p {
        font-size: 0.95em;
    }

    .service-item ul li {
        font-size: 0.9em;
    }

    .call-to-action h2 {
        font-size: 2em;
    }

    .call-to-action p {
        font-size: 1em;
    }
}

/* Estilos para a página de Portfólio */
.portfolio-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--secondary-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.project-card img {
    width: 100%;
    height: 220px;
    /* Altura fixa para as imagens do projeto */
    object-fit: cover;
    /* Garante que a imagem cubra a área sem distorcer */
    display: block;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.8em;
    color: var(--heading-color);
    margin-bottom: 15px;
    text-align: left;
}

.project-info p {
    font-size: 1em;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: left;
}

.project-tags {
    margin-bottom: 20px;
    text-align: left;
}

.project-tags span {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--heading-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    margin-right: 8px;
    margin-bottom: 8px;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.project-links .btn {
    flex: 1;
    /* Faz com que os botões ocupem o espaço disponível */
    font-size: 0.95em;
    padding: 10px 15px;
}

/* Responsividade para a página de Portfólio */
@media (max-width: 768px) {
    .portfolio-grid .container {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 180px;
    }

    .project-info h3 {
        font-size: 1.5em;
    }

    .project-info p {
        font-size: 0.9em;
    }

    .project-links {
        flex-direction: column;
    }
}

/* Estilos para a página Sobre */
.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    /* Alinha o conteúdo ao topo */
    margin-bottom: 60px;
}

.about-text {
    flex: 2;
    /* Ocupa mais espaço */
    text-align: left;
}

.about-text h2 {
    font-size: 2.5em;
    color: var(--heading-color);
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text .btn {
    margin-top: 20px;
}

.skills-section {
    text-align: center;
    margin-top: 60px;
}

.skills-section h3 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.skills-section h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-item {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: left;
    border-bottom: 5px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.skill-item h4 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.skill-item ul {
    list-style: none;
    padding-left: 0;
}

.skill-item ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 1em;
}

.skill-item ul li::before {
    content: '⭐';
    /* Ícone de estrela */
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.1em;
}

/* Responsividade para a página Sobre */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        flex: auto;
        text-align: center;
    }

    .about-text h2 {
        font-size: 2em;
    }

    /* Removido .about-image pois agora é um container de botão */
    /* .about-image {
        flex: auto;
        width: 80%;
    } */

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-item {
        text-align: center;
    }

    .skill-item ul li {
        text-align: left;
        /* Mantém a lista alinhada à esquerda */
        margin-left: auto;
        margin-right: auto;
        max-width: 250px;
        /* Limita a largura da lista */
    }
}

/* Estilos para a página Sobre (continuação) */

.about-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.about-image-container #open-photo-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    color: var(--heading-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    /* Para garantir que não tenha sublinhado */
}

.about-image-container #open-photo-modal:hover {
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.profile-thumb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Estilos do Modal */
.modal {
    display: none;
    /* Escondido por padrão */
    position: fixed;
    /* Fica por cima de tudo */
    z-index: 1003;
    /* Acima do chatbot */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Habilita scroll se necessário */
    background-color: rgba(0, 0, 0, 0.8);
    /* Fundo escuro semi-transparente */
    /* display: flex; REMOVIDO PARA SER CONTROLADO PELO JS */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--light-bg);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-button {
    color: var(--text-color);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-caption h3 {
    color: var(--heading-color);
    font-size: 2em;
    margin-bottom: 10px;
}

.modal-caption p {
    color: var(--text-color);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.modal-brand-logo {
    max-width: 150px;
    /* Ajuste o tamanho da sua marca */
    height: auto;
    margin-top: 10px;
}

/* Responsividade para o Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
    }

    .close-button {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }

    .modal-caption h3 {
        font-size: 1.5em;
    }

    .modal-caption p {
        font-size: 0.9em;
    }
}


/* Estilos para a página de Contato */
.contact-section {
    padding: 80px 0;
    background-color: rgba(26, 26, 46, 0.85);
    /* Fundo semi-transparente */
    position: relative;
    z-index: 1;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    /* Permite que os itens quebrem para a próxima linha em telas menores */
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.contact-info,
.contact-form {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
    flex: 1;
    /* Permite que os blocos cresçam e encolham */
    min-width: 300px;
    /* Largura mínima para evitar que fiquem muito pequenos */
    text-align: left;
}

.contact-info h2,
.contact-form h2 {
    color: var(--heading-color);
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.7;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-color);
}

.info-item i {
    font-size: 1.5em;
    color: var(--accent-color);
    margin-right: 15px;
    width: 30px;
    /* Garante alinhamento dos ícones */
    text-align: center;
}

.info-item a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 240, 181, 0.3);
}

.form-group textarea {
    resize: vertical;
    /* Permite redimensionar verticalmente */
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
}

/* Responsividade para a página de Contato */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-info,
    .contact-form {
        width: 100%;
        max-width: 500px;
        /* Limita a largura em telas menores */
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.8em;
    }

    .contact-info p {
        font-size: 1em;
    }

    .info-item {
        font-size: 1em;
    }
}