/* Importando uma fonte para um visual mais moderno (opcional) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Variáveis CSS para facilitar a manutenção das cores */
:root {
    --primary-dark: #2c3e50; /* Azul escuro do header */
    --secondary-blue: #3498db; /* Azul claro para links e detalhes */
    --accent-orange: #7ae622; /* Laranja vibrante para destaque */
    --text-light: #ecf0f1; /* Texto claro */
    --text-dark: #34495e; /* Texto escuro */
    --background-light: #ffffff; /* Fundo branco */
    --background-grey: #f4f4f4; /* Fundo cinza claro */
}

/* Reset básico e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Adiciona rolagem suave ao clicar nos links do menu */
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light); /* Corpo do site com fundo branco */
    line-height: 1.6;
}

/* Estilos do Header (continua o mesmo) */
.header {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
}

.logo {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-list li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary-blue);
    transition: width 0.3s ease;
}

.nav-list li a:hover {
    color: var(--secondary-blue);
}

.nav-list li a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* Estilos da Seção HOME (Hero Section) */
.hero-section {
    background-color: var(--background-light);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-dark);
}

.hero-content h1 span {
    color: var(--accent-orange);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-orange);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #d35400;
    transform: translateY(-3px);
}


/* ----- NOVOS ESTILOS: Seção SOBRE MIM ----- */
.about-section {
    padding: 6rem 2rem; /* Espaçamento interno generoso */
    background-color: var(--background-grey); /* Fundo cinza claro para diferenciar da seção home */
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center; /* Alinha verticalmente a foto e o texto */
    gap: 4rem; /* Espaço entre a foto e o texto */
}

.about-image {
    flex: 1; /* Ocupa uma parte do espaço */
    max-width: 400px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Bordas arredondadas para a foto */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1.5; /* Ocupa uma parte e meia, dando mais espaço para o texto */
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Linha decorativa abaixo do título "Sobre Mim" */
.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background-color: var(--accent-orange);
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}


/* ----- RESPONSIVIDADE ----- */
@media (max-width: 768px) {
    /* Estilos do menu mobile (já existentes) */
    .hamburger-menu {
        display: block;
    }
    .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-list {
        position: absolute;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 60%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: right 0.4s ease-in-out;
        gap: 0;
    }
    .nav-list.active { right: 0; }
    .nav-list li {
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--text-dark);
        width: 100%;
    }

    /* Responsividade da Home (já existente) */
    .hero-section {
        height: auto;
        min-height: calc(100vh - 70px);
        padding: 100px 1rem 50px;
    }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .btn-primary { padding: 0.8rem 2rem; font-size: 1rem; }
    

    /* Responsividade da Seção SOBRE MIM */
    .about-section {
        padding: 4rem 1rem;
    }

    .about-container {
        flex-direction: column; /* Coloca a imagem em cima do texto */
        text-align: center;
        gap: 2rem;
    }

    .about-text h2::after {
        left: 50%; /* Centraliza a linha decorativa */
        transform: translateX(-50%);
    }
}

/* ----- NOVOS ESTILOS: Seção NOSSOS SERVIÇOS ----- */
.services-section {
    padding: 6rem 2rem;
    background-color: var(--background-light); /* Fundo branco, alternando com a seção Sobre */
}

/* Título da Seção (Reutilizável) */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background-color: var(--accent-orange);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: stretch; /* Garante que os cards tenham a mesma altura */
    gap: 2rem;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    flex: 1; /* Faz com que ambos os cards ocupem o espaço igualmente */
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-card ul li {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.service-card ul li i {
    color: var(--secondary-blue);
    margin-right: 0.8rem;
    font-size: 1.2rem;
}


/* ----- RESPONSIVIDADE ----- */
@media (max-width: 992px) { /* Ponto de quebra para tablets */
    .services-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* ... (CSS responsivo anterior) ... */

    /* Responsividade da Seção SOBRE MIM */
    .about-section {
        padding: 4rem 1rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Responsividade da Seção SERVIÇOS */
    .services-section {
        padding: 4rem 1rem;
    }
}

/* ----- NOVOS ESTILOS: Seção TECNOLOGIAS ----- */
.tech-section {
    padding: 6rem 0; /* Padding vertical, sem padding horizontal */
    background-color: var(--background-grey);
}

.scroller {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    /* Efeito de fade nas bordas para uma entrada/saída suave */
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller__inner {
    display: flex;
    flex-wrap: nowrap;
    width: max-content; /* Impede a quebra de linha */
    gap: 2rem;
    /* A animação será adicionada via JS, mas podemos definir a base */
    animation: scroll 40s linear infinite;
}

.tag-list li {
    display: flex;
    flex-direction: column; /* Ícone em cima, texto em baixo */
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    width: 150px; /* Largura fixa para cada item */
    height: 120px; /* Altura fixa para cada item */
}

.tag-list i {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.tag-list span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Pausa a animação ao passar o mouse por cima */
.scroller:hover .scroller__inner {
    animation-play-state: paused;
}

/* Definição da Animação */
@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1rem)); /* Move a lista para a esquerda */
    }
}

/* ----- RESPONSIVIDADE ----- */
@media (max-width: 992px) {
    /* ... (CSS responsivo anterior) ... */
}

@media (max-width: 768px) {
    /* ... (CSS responsivo anterior) ... */

    /* Responsividade da Seção TECNOLOGIAS */
    .tech-section {
        padding: 4rem 0;
    }
}

/* ----- NOVOS ESTILOS: Seção CONTATO ----- */
.contact-section {
    padding: 6rem 2rem;
    background-color: var(--background-light);
}

.social-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Permite que os ícones quebrem a linha em telas pequenas */
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link i {
    font-size: 2.5rem;
    color: var(--primary-dark);
    background-color: #f0f0f0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-link span {
    font-weight: 600;
    font-size: 0.9rem;
}

.social-link:hover {
    transform: translateY(-5px);
    color: var(--accent-orange);
}

.social-link:hover i {
    background-color: var(--accent-orange);
    color: #ffffff;
}

/* Estilos do Formulário */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--secondary-blue);
}

.contact-form h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-dark);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #1e2b38; /* Azul escuro um pouco mais claro */
}


/* ----- RESPONSIVIDADE ----- */
@media (max-width: 768px) {
    /* ... (CSS responsivo anterior) ... */

    /* Responsividade da Seção CONTATO */
    .contact-section {
        padding: 4rem 1rem;
    }
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* ----- NOVOS ESTILOS: Rodapé (Footer) ----- */
.footer {
    background-color: var(--primary-dark); /* Mesma cor azul escura do header */
    color: var(--text-light); /* Mesma cor de texto claro do header */
    padding: 2rem 1rem; /* Espaçamento interno */
    text-align: center;
}

.footer p {
    margin: 0; /* Remove a margem padrão do parágrafo */
    font-size: 0.9rem; /* Tamanho da fonte um pouco menor */
    opacity: 0.8; /* Deixa o texto um pouco mais sutil */
}

/* ----- NOVOS ESTILOS: Alerta Personalizado (Modal) ----- */
.alert-overlay {
    position: fixed; /* Fica por cima de todo o conteúdo */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fundo escuro semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Garante que fique acima do header */
    
    /* Inicialmente escondido */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.alert-overlay.active {
    /* Torna visível e clicável quando a classe 'active' é adicionada */
    opacity: 1;
    pointer-events: all;
}

.alert-box {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;

    /* Animação de entrada */
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.alert-overlay.active .alert-box {
    transform: scale(1);
}

.alert-icon {
    font-size: 4.5rem;
    color: #27ae60; /* Verde para sucesso */
    margin-bottom: 1.5rem;
}

.alert-box h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.alert-box p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.close-alert-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-alert-btn:hover {
    color: #333;
}