:root {
    --bg: #0c0c0c; 
    --accent: #38bdf8;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET E BASE */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

@media (pointer: fine) {
    * { cursor: none !important; }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body { 
    background-color: var(--bg); 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- BACKGROUND & PARTICLES --- */
#particles-js {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: all;
}

/* --- CURSOR --- */
#cursor { 
    position: fixed; 
    width: 20px; 
    height: 20px; 
    border: 1.5px solid #fff; 
    border-radius: 50%; 
    pointer-events: none; 
    z-index: 999999; 
    transform: translate3d(-50%, -50%, 0); 
    mix-blend-mode: difference; 
    background-color: #fff; 
    transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s ease;
    will-change: transform;
}

#cursor.active {
    width: 65px;
    height: 65px;
}

/* --- NAVBAR --- */
.navbar { 
    position: fixed; 
    top: 40px; 
    right: 50px; 
    display: flex; 
    gap: 30px; 
    z-index: 1000; 
    user-select: none; /* Impede seleção na navegação */
}

.navbar a { 
    color: var(--accent); 
    text-decoration: none; 
    font-size: 10px; 
    letter-spacing: 2.5px; 
    font-weight: 900; 
    opacity: 0.8; 
    transition: 0.3s ease; 
    text-transform: uppercase;
}

.navbar a:hover { 
    opacity: 1; 
    text-shadow: 0 0 8px var(--accent); 
}

/* --- SEÇÕES --- */
section { 
    padding: 120px 10%; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    position: relative;
    z-index: 5;
}

.section-title { 
    color: var(--accent); 
    font-size: 0.75rem; 
    letter-spacing: 6px; 
    margin-bottom: 60px; 
    font-weight: 900; 
    text-transform: uppercase; 
}

/* --- HERO --- */
.hero { height: 100vh; text-align: center; }
.hero h1 { 
    font-family: 'Archivo Narrow', sans-serif; 
    font-size: 9vw; 
    line-height: 0.85; 
    text-transform: uppercase; 
    letter-spacing: -2px;
    
    /* BLOQUEIO DE SELEÇÃO E MELHORIA DE INTERAÇÃO */
    user-select: none; 
    -webkit-user-select: none; 
    pointer-events: none; 
}

.software-dev {
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 5px;
    font-weight: 900;
    margin-top: 20px;
    text-transform: uppercase;
    user-select: none;
    pointer-events: none;
}

/* --- SOBRE & BOTÃO CV --- */
.sobre-wrapper { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 80px; 
    align-items: center; 
}

.sobre-texto h3 { font-size: 2.8rem; font-weight: 900; margin-bottom: 30px; line-height: 1.1; }
.sobre-texto p { font-size: 1.05rem; opacity: 0.7; margin-bottom: 25px; max-width: 600px; }
.sobre-texto strong { color: var(--accent); }

.btn-contato {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s var(--ease);
    background: transparent;
    margin-top: 20px;
}

.btn-contato:hover {
    background: var(--accent);
    color: #000 !important;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
    transform: translateY(-5px);
}

/* --- FOTO --- */
.sobre-foto { 
    position: relative; 
    width: 100%; 
    max-width: 320px; 
    aspect-ratio: 4/5;
    justify-self: center; 
}

.sobre-foto img { 
    width: 100%; height: 100%; object-fit: cover; border-radius: 4px; 
    position: relative; z-index: 1; filter: grayscale(100%); transition: 0.6s var(--ease); 
}

.foto-moldura { 
    position: absolute; top: 20px; left: 20px; width: 100%; height: 100%; 
    border: 1.5px solid var(--accent); border-radius: 4px; z-index: 0; transition: 0.6s var(--ease); 
}

.sobre-foto:hover img { filter: grayscale(0%); transform: translate(-10px, -10px); }
.sobre-foto:hover .foto-moldura { transform: translate(10px, 10px); }

/* --- SKILLS (TOTALMENTE UNIFORME) --- */
.skills-container { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 25px;
    width: 100%;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px 20px; 
    border-radius: 12px;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: center; /* Centraliza verticalmente */
    text-align: center;
    transition: 0.4s var(--ease);
    backdrop-filter: blur(8px);
    height: 100%; /* Faz todos os cards da linha terem a mesma altura */
    min-height: 180px; /* Altura fixa mínima para evitar cards "encolhidos" */
}

.skill-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.skill-card:hover { 
    background: rgba(56, 189, 248, 0.1); 
    border-color: var(--accent); 
    transform: translateY(-8px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.project-card { 
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px; 
    padding-bottom: 110px; 
    border-radius: 20px;
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    transition: 0.5s var(--ease);
    position: relative; 
    overflow: hidden;
}

.project-card:hover { 
    border-color: var(--accent); 
    background: rgba(255, 255, 255, 0.08); 
    transform: translateY(-12px); 
}

.project-card h3 { 
    font-size: 1.6rem; 
    margin-bottom: 15px; 
    font-weight: 900; 
    color: var(--accent); 
}

.project-tags {
    margin-top: 25px; 
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span { 
    font-size: 9px; 
    padding: 6px 14px; 
    background: rgba(56, 189, 248, 0.1); 
    color: var(--accent); 
    border-radius: 50px; 
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.3); 
    text-transform: uppercase;
}

.github-link-icon { 
    position: absolute; 
    bottom: 30px; 
    right: 30px; 
    font-size: 1.8rem; 
    opacity: 0.5; 
    color: var(--accent);
    transition: 0.4s var(--ease); 
}

.project-card:hover .github-link-icon { 
    opacity: 1; 
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 10px var(--accent));
}

/* --- FOOTER --- */
.site-footer {
    background-color: #f4f4f4; 
    color: #000;
    padding: 80px 0 0 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around; 
    padding-bottom: 60px;
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* --- SOCIAL ICONS --- */
.social-icons { 
    display: flex; 
    gap: 30px; 
}

.social-icons a { 
    color: #000; 
    transition: 0.3s var(--ease); 
    text-decoration: none;
    font-size: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a i {
    font-size: 26px; 
}

.social-icons a:hover { 
    transform: translateY(-5px); 
    color: var(--accent); 
}

.contact-info a {
    display: block;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-info a:hover { color: var(--accent); }

.footer-bottom {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 25px 0;
}

.footer-bottom p {
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.5;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .sobre-wrapper { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .sobre-texto p { margin: 0 auto 25px auto; }
}

@media (max-width: 600px) {
    .navbar { width: 100%; right: 0; justify-content: center; top: 0; background: rgba(12, 12, 12, 0.9); padding: 15px; }
    .hero h1 { font-size: 15vw; }
    .footer-container { flex-direction: column; align-items: center; gap: 50px; }
}
