/* =========================================
   1. RESET E VARIÁVEIS GERAIS
   ========================================= */
:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
    --primary: #FF8C00;        /* ATENÇÃO: Mudei para LARANJA para combinar com o raio do logo */
    --primary-dark: #e07b00;    
    --transition: all 0.3s ease;
    
    /* Cores das Tecnologias */
    --html-color: #e34f26;
    --css-color: #1572b6;
    --js-color: #f7df1e;
}

/* Modo Escuro */
body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --primary: #ff9f33; /* Laranja mais claro no dark mode */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

html { scroll-behavior: smooth; }

body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    transition: background-color 0.3s ease, color 0.3s ease; 
    line-height: 1.6; 
    overflow-x: hidden;
}

/* =========================================
   2. SCROLL REVEAL (Animações)
   ========================================= */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(5px);
    transition: all 1s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.card:nth-child(2), .skill-card:nth-child(2) { transition-delay: 200ms; }
.card:nth-child(3), .skill-card:nth-child(3) { transition-delay: 400ms; }

/* =========================================
   3. CABEÇALHO E NAVEGAÇÃO
   ========================================= */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 5%; background-color: var(--card-bg);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000;
}

/* CONFIGURAÇÃO DO NOVO LOGO (IMAGEM) */
.logo-container {
    display: flex; align-items: center; text-decoration: none;
}

.logo-img {
    height: 120px; /* Tamanho ideal para o menu */
    width: auto;
    transition: var(--transition);
}

.logo-container:hover .logo-img {
    transform: scale(1.05); /* Leve zoom ao passar o mouse */
}

.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

#theme-toggle { cursor: pointer; font-size: 1.2rem; transition: var(--transition); color: var(--text-color); }
#theme-toggle:hover { transform: rotate(15deg); color: var(--primary); }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    text-align: center;
    padding: 180px 20px;
    /* Imagem de fundo tecnológica */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
                url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    border-bottom: 4px solid var(--primary);
}

.hero h1 {
    font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; font-weight: 800;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.3rem; margin-bottom: 45px; color: #e0e0e0; max-width: 700px;
    margin-left: auto; margin-right: auto; text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--primary);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* =========================================
   5. SEÇÃO DE SERVIÇOS/SKILLS
   ========================================= */
#skills { padding: 80px 5%; background-color: rgba(0,0,0,0.02); }

.section-title { 
    text-align: center; margin-bottom: 60px; font-size: 2.2rem; color: var(--text-color); 
}
.section-title::after { 
    content: ''; display: block; width: 60px; height: 4px; 
    background: var(--primary); margin: 15px auto 0; 
}

.skills-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }

.skill-card {
    background: var(--card-bg); padding: 40px 30px; border-radius: 15px;
    text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: var(--transition);
    flex: 1 1 300px; max-width: 350px; border-bottom: 4px solid transparent;
}

.skill-card i { font-size: 4.5rem; margin-bottom: 25px; display: inline-block; }
.skill-card.html i { color: var(--html-color); }
.skill-card.css i { color: var(--css-color); }
.skill-card.js i { color: var(--js-color); background: black; padding: 0 5px; }

.skill-card:hover { transform: translateY(-10px); }
.skill-card.html:hover { border-bottom-color: var(--html-color); }
.skill-card.css:hover { border-bottom-color: var(--css-color); }
.skill-card.js:hover { border-bottom-color: var(--js-color); }

.skill-card h3 { margin-bottom: 10px; color: var(--text-color); }
.skill-card p { color: var(--text-color); opacity: 0.8; }

/* =========================================
   6. SEÇÃO DE PROJETOS
   ========================================= */
#projetos { padding: 80px 5%; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.card { 
    background: var(--card-bg); 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

.card-image { 
    height: 150px; 
    width: 100%; 
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-image img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    transition: transform 0.5s ease;
}

.card:hover .card-image img { transform: scale(1.1); }

.card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column;}
.card-content h3 { margin-bottom: 10px; font-size: 1.4rem; color: var(--text-color); }
.card-content p { color: var(--text-color); opacity: 0.8; margin-bottom: 15px; flex-grow: 1;}

.tags span { 
    font-size: 0.75rem; padding: 5px 12px; background-color: rgba(0,0,0,0.05); 
    color: var(--text-color); border-radius: 20px; font-weight: 600; 
    margin-right: 5px; display: inline-block;
}
body.dark-mode .tags span { background-color: rgba(255,255,255,0.1); }

.card-link { 
    text-decoration: none; color: var(--primary); font-weight: 700; 
    margin-top: 15px; display: inline-block; 
}

/* =========================================
   7. RODAPÉ (Footer)
   ========================================= */
footer {
    background-color: #111; color: #fff; padding-top: 80px; text-align: center; margin-top: 80px;
}
.footer-content h2 { font-size: 2.5rem; margin-bottom: 15px; }
.footer-content p { color: #aaa; margin-bottom: 40px; }

.email-btn {
    display: inline-flex; align-items: center; gap: 10px; background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2); color: #fff; padding: 15px 40px;
    border-radius: 50px; text-decoration: none; font-weight: 600; transition: var(--transition);
}
.email-btn:hover { background-color: var(--primary); border-color: var(--primary); transform: translateY(-5px); }

.footer-socials { margin-top: 50px; display: flex; justify-content: center; gap: 25px; }
.footer-socials a {
    color: #fff; font-size: 1.5rem; background-color: rgba(255,255,255,0.1); width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; transition: var(--transition);
}
.footer-socials a:hover { background-color: #fff; color: #111; transform: scale(1.1); }

.footer-bottom { margin-top: 60px; padding: 25px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #666; }
.footer-bottom i { color: var(--primary); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .logo-img { height: 50px; } /* Logo um pouco menor no celular */
}