@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Poppins:wght@500;700&display=swap');

:root {
    /* Cores do Tema Escuro (Padrão) */
    --bg-color: #0f172a;       /* Azul muito escuro (quase preto) */
    --card-bg: #1e293b;        /* Azul escuro para cartões */
    --text-color: #e2e8f0;     /* Branco gelo */
    --text-muted: #94a3b8;     /* Cinza azulado para textos secundários */
    --primary-color: #3b82f6;  /* Azul vibrante (Tech) */
    --accent-color: #8b5cf6;   /* Roxo (para detalhes) */
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --nav-bg: rgba(15, 23, 42, 0.8); /* Cor padrão da navbar (escura) */
    --shadow-color: transparent;     /* Sem sombra no modo escuro */
    
    /* Layout */
    --nav-height: 70px;
    --border-radius: 12px;
}

/* Tema Claro */
body.light-mode {
    --bg-color: #f1f5f9;       /* Um cinza leve, não branco puro, para destacar os cards */
    --card-bg: #ffffff;        /* Cards branco puro */
    --text-color: #1e293b;     /* Texto escuro */
    --text-muted: #475569;     /* Texto secundário cinza */
    --nav-bg: rgba(255, 255, 255, 0.85); /* Navbar branca translúcida */
    --shadow-color: rgba(148, 163, 184, 0.15); /* Cor da sombra */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px); /* Desfoque do fundo */
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Texto degradê */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Estilo dos Botões */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Seções Gerais */
.about-content ul li {
    font-size: 1.05rem;
    color: var(--text-color);
}

.section {
    padding: 5rem 10%;
}

.section h2 {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

/* Pequeno traço abaixo do título */
.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

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

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.skill-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tags span {
    font-size: 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.btn-sm {
    display: inline-block;
    text-align: center;
    padding: 0.6rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-sm:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

/* Responsividade (Mobile) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .navbar {
        justify-content: center;
    }
    
    .section {
        padding: 3rem 5%;
    }
}

/* Animação de Scroll */
.hidden {
    opacity: 0;
    transform: translateY(30px); /* Começa um pouco mais para baixo */
    transition: all 0.6s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0); /* Volta para a posição original */
}

/* Faz os cards aparecerem em cascata */
.skill-card:nth-child(2) { transition-delay: 100ms; }
.skill-card:nth-child(3) { transition-delay: 200ms; }
.skill-card:nth-child(4) { transition-delay: 300ms; }
.skill-card:nth-child(5) { transition-delay: 400ms; }