:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary: #ff00ff; /* Magenta Codinome */
    --primary-hover: #d100d1;
    --border: #333;
    --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.main-header {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-logo { height: 40px; width: auto; }

.nav-list { display: flex; gap: 30px; align-items: center; }

.nav-list a:hover, .nav-list a.active { color: var(--primary); }

.btn-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}
.btn-cta:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* MAIN CONTENT SPACING */
main { padding-top: 80px; min-height: 80vh; }

/* HERO SECTION */
.hero {
    padding: 120px 0;
    text-align: center;
    background: radial-gradient(circle at center, #220022 0%, var(--bg-dark) 70%);
}

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; letter-spacing: -1px; }
.hero span { color: var(--primary); }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

/* CARDS / GRID */
.grid-section { padding: 80px 0; }
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--primary); }
.card h3 { margin-bottom: 15px; }

/* SECTION PROJETOS (EMPILHADOS) */
.projects-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    border-top: 1px solid var(--border);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #fff;
}

.project-stack {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Imagem maior que texto */
    gap: 40px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.project-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.1);
}

.project-img-wrapper {
    width: 100%;
    height: 350px;
    background-color: #222;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-item:hover .project-img {
    transform: scale(1.05);
}

.project-content {
    padding: 40px;
}

.project-tag {
    background-color: rgba(255, 0, 255, 0.15);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.project-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}


/* FOOTER */
.main-footer {
    background: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { height: 60px; margin-bottom: 20px; }
.footer-col h3 { color: white; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-list { display: none; } /* Adicionar lógica de menu mobile JS */
    .hero h1 { font-size: 2.5rem; }
    .project-item { grid-template-columns: 1fr; }
    .project-img-wrapper { height: 250px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { margin: 0 auto 20px; }
}