/* Adicione esta regra para a rolagem suave! */
html {
    scroll-behavior: smooth;
}

/* Definição de Cores */
:root {
    --color-black: #121212; /* Preto escuro para fundo */
    --color-blue: #007bff; /* Azul vibrante para destaque */
    --color-white: #f0f0f0; /* Branco suave para texto */
}

/* Base e Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--color-white);
    /* Fundo Animado (Simulação de Animação em Preto/Azul) */
    background: linear-gradient(-45deg, var(--color-black), #1a1a1a, #0d375a, var(--color-black));
    background-size: 400% 400%;
    animation: backgroundAnimation 15s ease infinite;
    min-height: 100vh;
}

@keyframes backgroundAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.blue-text {
    color: var(--color-blue);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-blue);
    margin-bottom: 3rem;
}

/* 1. CABEÇALHO (HEADER) - Base para Telas Grandes */
.header {
    background-color: rgba(18, 18, 18, 0.95);
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-white);
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    margin-left: 20px;
    padding: 0.5rem 1rem;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-blue);
    border-bottom: 2px solid var(--color-blue);
}

/* Estilo para os ícones sociais no header */
.social-link {
    font-size: 1.3rem;
    margin-left: 10px;
    border-bottom: none !important; 
    padding: 0.5rem;
}
.social-link i {
    color: var(--color-white);
}
.social-link:hover i {
    color: var(--color-blue);
}


/* 2. SEÇÃO HERO - Base para Telas Grandes */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--color-white);
}

.cta-button {
    display: inline-block;
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    border: 2px solid var(--color-blue);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--color-blue);
    transform: scale(1.05);
}

/* SEÇÕES GERAIS */
section {
    padding: 6rem 5%;
}

/* 3. SEÇÃO SOBRE MIM */
.about {
    background-color: rgba(0, 0, 0, 0.5);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--color-blue);
}

/* 4. SEÇÃO HABILIDADES (ICONES) */
.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.1rem;
    color: var(--color-white);
    transition: transform 0.3s;
}

.skill-item i {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    transition: color 0.3s, text-shadow 0.3s;
}

.skill-item:hover {
    transform: translateY(-10px);
}

/* EFEITO AZUL DE DESTAQUE NO HOVER */
.skill-item:hover i {
    color: var(--color-blue);
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.7), 
                 0 0 25px rgba(0, 123, 255, 0.5);
}

/* 5. SEÇÃO PROJETOS */
.projects {
    background-color: var(--color-black);
}

.projects-grid {
    /* Ajuste para telas grandes/médias */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* EFEITO GLOW E ANIMAÇÃO DE HOVER */
.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.6), 
                0 10px 20px rgba(0, 0, 0, 0.8);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: var(--color-blue);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.card-content p {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

/* ESTILO DOS BOTÕES DE LINKS */
.project-links {
    display: flex;
    justify-content: flex-start; 
}

.link-button {
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* Faz o botão ocupar 100% da largura */
.full-width {
    width: 100%;
    text-align: center;
}

/* Botão de Preenchimento Azul */
.blue-fill {
    background-color: var(--color-blue);
    color: var(--color-white);
    border: 2px solid var(--color-blue);
}

.blue-fill:hover {
    background-color: #0056b3;
}

.blue-fill i {
    margin-left: 5px;
}

/* ======================================= */
/* MEDIA QUERIES (RESPONSIVIDADE)*/
/* ======================================= */


/* 💻 Notebooks e Telas Médias (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .skill-item i {
        font-size: 4rem; /* Reduz o tamanho dos ícones */
    }
}

/* 📱 Tablets (max-width: 768px) */
@media (max-width: 768px) {
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Reduz o padding das seções */
    section {
        padding: 4rem 5%; 
    }

    /* Header: Links em linha, mas com menos margem */
    .nav-links a {
        margin-left: 15px;
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* Habilidades */
    .skills-grid {
        gap: 2rem;
    }
    .skill-item i {
        font-size: 3.5rem;
    }
    
    /* Projetos: Permite cards um pouco menores */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


/* 📱 Celulares e Telas Pequenas (max-width: 576px) */
@media (max-width: 576px) {
    
    /* Header: Flex-wrap para quebra de linha em duas linhas */
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 5%;
        position: relative; /* Opcional: remover fixed para telas pequenas */
    }

    .nav-links {
        margin-top: 0.5rem;
        display: flex;
        flex-wrap: wrap; /* Permite que os links quebrem se necessário */
    }

    .nav-links a {
        margin-left: 5px; /* Menor margem entre os links */
        padding: 0.5rem 0.3rem;
    }
    
    /* Hero */
    .hero {
        height: auto; /* Não precisa ser 100vh em celular */
        padding-top: 10rem;
        padding-bottom: 5rem;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content h2 {
        font-size: 1.1rem;
    }
    
    /* Habilidades */
    .skill-item {
        width: 45%; /* Força 2 ícones por linha */
        margin-bottom: 1rem;
    }
    .skill-item i {
        font-size: 3rem;
    }
    
    /* Projetos */
    .projects-grid {
        grid-template-columns: 1fr; /* Força 1 card por linha */
        gap: 2rem;
    }
}

.project-links {
    display: flex;
    gap: 10px; /* Espaço entre os botões */
    justify-content: space-between;
}

.link-button {
    flex: 1; /* Faz os dois botões terem o mesmo tamanho */
    text-align: center;
    text-decoration: none;
    padding: 0.7rem 0.5rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.blue-border {
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
    background-color: transparent;
}

.blue-border:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.blue-fill {
    background-color: var(--color-blue);
    color: var(--color-white);
    border: 2px solid var(--color-blue);
}