/* Reset Básico e Variáveis de Cor (Mesma Paleta) */
:root {
    --bg-color: #0a0a14; /* Fundo principal ainda mais escuro */
    --primary-color: #22d3ee; /* Ciano como cor de destaque */
    --card-bg: rgba(34, 211, 238, 0.05); /* Fundo dos cards com leve tone de ciano */
    --text-color: #b0b0b0; /* Texto um pouco mais suave */
    --header-bg: rgba(10, 10, 20, 0.7); /* Fundo do header com mais transparência */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(180deg, #0a0a14 0%, #111827 100%); /* Gradiente mais sutil */
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Cabeçalho */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 10;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background: var(--primary-color);
    color: #0a0a14; /* Texto do botão escuro para contraste */
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn-contact:hover {
    color: #0a0a14;
    background-color: #fff;
    transform: translateY(-2px);
}

/* Seção Hero */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

/* Novo estilo para o container da foto de perfil na seção Hero */
.profile-pic-container {
    margin-bottom: 2rem; /* Espaço entre a foto e o texto */
    position: relative;
}

.profile-pic-hero {
    width: 180px; /* Tamanho da foto */
    height: 180px;
    border-radius: 50%; /* Torna a foto redonda */
    object-fit: cover; /* Garante que a imagem preencha o círculo */
    border: 2px solid var(--primary-color); /* Borda destacada */
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4); /* Sombra sutil para destacar */
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.social-links a:hover {
    border-color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
}

.scroll-indicator a {
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
}

/* Seções de Conteúdo */
.content-section {
    padding: 6rem 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.about-content {
    display: flex;
    /* Alinhar conteúdo à esquerda se não houver imagem */
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

/* Galeria de Projetos */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.project-item img {
    width: 100%;
    display: block;
    filter: grayscale(80%);
    transition: filter 0.4s ease;
}

.project-item:hover img {
    filter: grayscale(0%);
}

.project-info {
    padding: 1.5rem;
}

.project-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Contato */
#contato {
    text-align: center;
}

.email-link {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    position: relative;
}

.email-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.email-link:hover::after {
    transform: scaleX(1);
}

/* Rodapé */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === NOVOS ESTILOS PARA CARDS DE HABILIDADES === */
.skills-list {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 25px; /* Espaço entre os cards */
    margin-top: 20px;
}

/* Estilo base de cada card */
.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px; /* Cantos arredondados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Efeito de hover (quando o mouse passa por cima) */
.skill-card:hover {
    transform: translateY(-8px); /* Move o card 8px para cima */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Aumenta a sombra, dando a impressão de "flutuar" */
    border-color: var(--primary-color);
}

/* Estilo do ícone dentro do card */
.skill-card i {
    font-size: 3.5em; /* Tamanho do ícone */
    margin-bottom: 10px;
}

/* Estilo do texto (nome da linguagem) */
.skill-card span {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-color);
}

/* Cores personalizadas para os ícones */
.skill-card .fa-php { color: #8892BF; }
.skill-card .fa-python { color: #306998; }
.skill-card .fa-html5 { color: #E34F26; }
.skill-card .fa-css3-alt { color: #1572B6; }
.skill-card .fa-js { color: #F7DF1E; }
.skill-card .fa-robot { color: #333; }