/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #222;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.logo span {
    color: #007bff;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007bff;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0056b3;
}

/* Sections */
section {
    padding: 60px 0;
}

h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #222;
}

/* Grid de Projetos */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    padding: 20px;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card h4 {
    margin-bottom: 10px;
    color: #007bff;
}

.card p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.btn-sm {
    text-decoration: none;
    color: #222;
    border: 1px solid #222;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-sm:hover {
    background: #222;
    color: #fff;
}

/* Footer */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 40px 0;
}

/* Container flexível para alinhar os itens */
.social-links {
    margin: 20px 0;
    display: flex;           /* Ativa o Flexbox */
    justify-content: center; /* Centraliza o bloco na tela */
    align-items: center;     /* Alinha verticalmente */
    gap: 15px;               /* Espaço inteligente entre os itens */
}

/* Estilo dos Links individuais */
.link-item {
    display: flex;           /* Flexbox dentro do link também */
    align-items: center;     /* Garante que o Ícone e Texto fiquem na mesma linha */
    gap: 8px;                /* Espaço entre ícone e texto */
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.link-item:hover {
    opacity: 0.8;
    color: #007bff;          /* Mantive seu efeito de hover azul */
}

/* Controle do tamanho das imagens SVG */
.link-item img {
    width: 24px;
    height: 24px;
    display: block;          /* Evita comportamentos estranhos de linha */
}

/* A barra separadora */
.separator {
    color: #555;             /* Cor sutil para a barra */
    font-size: 1.2rem;
    margin-top: -3px;        /* Pequeno ajuste fino vertical se necessário */
}

.copyright {
    font-size: 0.8rem;
    color: #777;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
}

/* --- Adicione isto ao final do seu style.css --- */

/* Ajuste para alinhar os botões na Hero */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espaço entre os botões */
    margin-top: 20px;
    flex-wrap: wrap; /* Garante que não quebre em celulares */
}

/* Estilo do Botão Secundário (Credly) */
.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #222; /* Texto fica escuro ao passar o mouse */
}

/* Ajuste específico para o botão Credly ter a cor laranja da marca (Opcional) */
.btn-secondary i {
    margin-right: 5px;
}

/* --- Estilos da Página de Contato --- */

.contact-page {
    min-height: 80vh; /* Garante que o footer fique lá embaixo */
    background-color: #f4f4f9;
}

.contact-page h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-page p {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

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

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.icon-header {
    font-size: 3rem;
    margin-bottom: 15px;
}

.whatsapp-color { color: #25D366; }
.email-color { color: #007bff; }

/* Estilização dos Inputs */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    resize: vertical; /* Permite redimensionar a altura do textarea */
}

.input-group textarea {
    min-height: 100px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Botões Específicos */
.btn-whatsapp {
    background-color: #25D366;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}

.btn-email {
    background-color: #007bff;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-email:hover {
    background-color: #0056b3;
}

/* --- Estilo Específico do Sobre Mim --- */

/* Centraliza o texto e limita a largura para não cansar a leitura */
.about-content {
    max-width: 800px;      /* Largura máxima ideal para leitura */
    margin: 0 auto;        /* Centraliza o bloco na tela */
    text-align: justify;   /* Deixa o texto "quadradinho" nas laterais */
    background: #fff;      /* Fundo branco para destacar do cinza */
    padding: 40px;         /* Espaço interno */
    border-radius: 10px;   /* Cantos arredondados */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Sombra leve */
}

/* Estilo dos parágrafos */
.about-content p {
    margin-bottom: 20px;   /* Espaço entre os parágrafos */
    font-size: 1.1rem;     /* Tamanho da fonte confortável */
    line-height: 1.8;      /* Altura da linha (respiro) */
    color: #444;           /* Cor cinza escuro (melhor que preto total) */
}

/* Ajuste para celular (tira o justificado em telas pequenas) */
@media (max-width: 768px) {
    .about-content {
        padding: 20px;
        text-align: left; /* No celular fica melhor alinhado à esquerda */
    }
}