:root {
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --primary: #7c4dff;
    --primary-glow: rgba(124, 77, 255, 0.4);
    --accent: #00e5ff;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo { font-size: 1.5rem; font-weight: 700; }
.logo span { color: var(--primary); }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); transition: color 0.3s; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-main); }

.btn-contact {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    transition: background 0.3s;
}
.btn-contact:hover { background: #6030cc; }

.menu-toggle { display: none; cursor: pointer; font-size: 1.5rem; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 10% 20%, #1a103c 0%, var(--bg-color) 40%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.hero-text { flex: 1; max-width: 600px; }
.hero-image-wrapper { flex: 1; display: flex; justify-content: center; position: relative; max-width: 400px; }

/* Foto de Perfil */
.profile-pic {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px var(--primary-glow);
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}
.profile-pic:hover { transform: scale(1.02); box-shadow: 0 0 50px var(--primary-glow); }

/* Blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(50px); z-index: 1; opacity: 0.6; }
.blob-1 { background: var(--primary); width: 200px; height: 200px; top: 0; right: 0; }
.blob-2 { background: var(--accent); width: 150px; height: 150px; bottom: 0; left: 0; }

/* Tipografia Hero */
.badge {
    background: rgba(124, 77, 255, 0.1); color: var(--primary); padding: 0.4rem 1rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; display: inline-block;
    border: 1px solid rgba(124, 77, 255, 0.2);
}

.hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 1.5rem; font-weight: 800; }

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
   background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 90%; }

.hero-buttons { display: flex; gap: 1rem; }

.btn {
    text-decoration: none; padding: 0.8rem 2rem; border-radius: 8px; font-weight: 600; transition: transform 0.2s;
}
.btn.primary { background: var(--text-main); color: var(--bg-color); }
.btn.secondary {
    border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-main); display: flex; align-items: center; gap: 0.5rem;
}
.btn:hover { transform: translateY(-3px); }

/* Sections */
.section { padding: 6rem 0; }
.section-title { font-size: 2rem; margin-bottom: 3rem; }

/* Grids */
.skills-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}

.skill-card {
    background: var(--card-bg); padding: 2rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s;
}
.skill-card:hover { border-color: var(--primary); }
.skill-card i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }

.projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem;
}

.project-card {
    background: var(--card-bg); border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--primary); }

/* --- CSS ATUALIZADO PARA IMAGENS --- */
.project-image {
    height: 220px; /* Aumentei um pouco */
    width: 100%;
    overflow: hidden; /* Garante que a imagem não saia no zoom */
    background: #000;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem cobrir o espaço sem distorcer */
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05); /* Zoom suave na imagem ao passar o mouse */
}
/* ----------------------------------- */

.project-info { padding: 1.5rem; }

.tags { margin: 1rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tags span {
    font-size: 0.75rem; background: rgba(255, 255, 255, 0.05); padding: 0.3rem 0.8rem; border-radius: 4px; color: var(--text-muted);
}

.link-arrow {
    text-decoration: none; color: var(--accent); font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.3s;
}
.link-arrow:hover { gap: 0.5rem; }

/* Footer da Seção de Projetos */
.projects-footer {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* Footer Geral */
footer {
    padding: 4rem 0; background: #050505; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.email-link {
    font-size: 1.5rem; color: var(--text-main); text-decoration: none; font-weight: 700; display: block; margin: 1rem 0;
}
.socials { margin: 2rem 0; display: flex; justify-content: center; gap: 1.5rem; }
.socials a { color: var(--text-muted); font-size: 1.5rem; }
.socials a:hover { color: var(--text-main); }

/* Mobile */
@media (max-width: 900px) {
    .hero-container { flex-direction: column-reverse; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .profile-pic { width: 250px; height: 250px; margin-bottom: 1rem; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}