/* RESET, FONTES E VARIÁVEIS */
:root {
    --bg-color: #0a0a0b;
    --bg-darker: #050505;
    --card-bg: #121214;
    --border: #27272a;
    --primary: #e11d48; 
    --primary-dark: #be123c;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* CONTAINER GERAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
}

a { 
    text-decoration: none; 
    transition: all 0.3s ease; 
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

ul { list-style: none; }

/* HEADER & NAV */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 15px 0;
    transition: 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.8rem; font-weight: 800; }
.dot { color: var(--primary); }

.nav-links { display: flex; gap: 35px; }
.nav-links a { color: var(--text-primary); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

/* HERO SECTION */
#inicio {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 80% 20%, rgba(225, 29, 72, 0.08), transparent 40%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap-reverse;
}

.text-area { flex: 1.2; }
.image-area { flex: 1; display: flex; justify-content: center; }

.image-wrapper {
    position: relative;
    padding: 10px;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, var(--primary) 360deg);
    opacity: 0.3;
    animation: spin 10s linear infinite;
    z-index: -1;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.image-area img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.badge {
    background-color: rgba(225, 29, 72, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: 1px solid rgba(225, 29, 72, 0.2);
}

h1 { font-size: 4rem; margin: 20px 0; line-height: 1.1; font-weight: 800; }
.highlight { color: var(--primary); }
.tagline { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 90%; }

/* BOTÕES */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { 
    background-color: var(--primary-dark); 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.2);
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    margin-left: 15px;
}
.btn-outline:hover { 
    border-color: var(--primary);
    background-color: rgba(225, 29, 72, 0.05);
}

/* SEÇÕES GERAIS */
section { padding: 100px 0; }
.bg-darker { background-color: var(--bg-darker); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title { font-size: 2.5rem; margin-bottom: 3rem; text-align: center;}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* INTRODUÇÃO SOBRE MIM */
.about-intro {
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* CARDS SOBRE */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.icon-card { font-size: 2.2rem; color: var(--primary); margin-bottom: 25px; }
.card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }
.card small { color: var(--primary); font-weight: 500; display: block; margin-bottom: 10px; }

/* HABILIDADES */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.skill-box h4 { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.skill-box p { color: var(--text-secondary); font-size: 0.95rem; }

/* PROJETOS (SEM FOTOS, FOCO EM ÍCONES E TECNOLOGIA) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 2px var(--primary); /* Efeito de borda neon suave no hover */
    border-color: transparent;
}

/* Novo estilo para o ícone no topo do card */
.project-icon {
    width: 65px;
    height: 65px;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.8rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.project-card h3 {
    font-size: 1.4rem;
    margin: 0 0 1.2rem;
    color: var(--text-primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    background: rgba(225, 29, 72, 0.12);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(225, 29, 72, 0.3);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-card p {
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    flex: 1; /* Garante que os botões fiquem alinhados no fundo */
}

.card-actions {
    margin-top: auto;
}

.card-actions .btn-link {
    color: var(--text-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.card-actions .btn-link i { 
    transition: transform 0.3s ease; 
    color: var(--primary); 
}

.card-actions .btn-link:hover i { 
    transform: translateX(5px) translateY(-5px); /* Setinha subindo na diagonal, estilo moderno */
}

.card-actions .btn-link:hover { 
    color: var(--primary); 
}

/* CURRÍCULO */
.cv-wrapper {
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cv-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.cv-wrapper p { color: var(--text-secondary); margin-bottom: 30px; font-size: 1.05rem; }
.cv-wrapper .btn { margin: 5px; }

/* FOOTER */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background-color: var(--bg-darker);
    color: var(--text-secondary);
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-footer a { color: var(--text-secondary); font-size: 1.5rem; transition: 0.3s; }
.social-footer a:hover { color: var(--primary); transform: translateY(-3px); }

/* ANIMAÇÕES DE SCROLL */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVO */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 11, 0.98);
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    
    .hero-content { flex-direction: column; text-align: center; padding-top: 40px;}
    .text-area { display: flex; flex-direction: column; align-items: center; }
    .tagline { text-align: center; }
    h1 { font-size: 2.8rem; }
    .btn-outline { margin: 15px 0 0 0; }
    .social-btns { display: flex; flex-direction: column; width: 100%; max-width: 300px; }
    .social-btns .btn { justify-content: center; }
}