:root {
    --color-background: #111827;
    --color-surface: #1f2937;
    --color-text-light: #f9fafb;
    --color-text-muted: #9ca3af;
    --color-accent: #6366f1;
    --color-accent-soft: #818cf8;
    --color-link-hover: #4f46e5;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-gradient-end: #ff86c7;
    --color-highlight: #facc15;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-background);
    color: var(--color-text-light);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 80px 20px;
    position: relative;
    z-index: 10; 
}

.hero-section {
    text-align: center;
    padding: 60px 20px 80px 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.perfil {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-accent); 
    box-shadow: 0 0 0 8px var(--color-surface); 
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.perfil:hover {
    transform: scale(1.08) rotate(-2deg); 
}

.nome {
    font-size: 3.5em; 
    font-weight: 900; 
    margin-top: 25px;
    background: linear-gradient(45deg, var(--color-accent-soft) 0%, var(--color-gradient-end) 50%, var(--color-text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: gradient-shift 10s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.descricao {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 10px auto 25px auto;
    max-width: 700px;
}

.tech-stack {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--color-accent-soft); 
}

.links a {
    color: var(--color-accent-soft); 
    text-decoration: none;
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.2s;
}

.links a:hover {
    color: var(--color-text-light);
}

.titulo {
    font-size: 2em;
    font-weight: 800; 
    margin-bottom: 30px;
    color: var(--color-text-light);
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: 16px; 
    overflow: hidden;
    text-decoration: none; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); 
    transition: all 0.3s ease-out;
    border: 2px solid transparent;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.badge-star {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: #111827;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thumb {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}

.card-info {
    padding: 25px;
    flex-grow: 1;
}

.card-title {
    color: var(--color-accent-soft);
    font-weight: 800;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1em;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin-bottom: 0; 
}

.card-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px; 
    margin-bottom: 15px; 
}

.tech-pill {
    font-size: 0.8em;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: var(--color-background); 
    color: var(--color-accent-soft); 
    border: 1px solid rgba(129, 140, 248, 0.3); 
}

.btn {
    display: inline-block;
    background-color: var(--color-accent); 
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: background-color 0.2s;
    margin-top: 15px; 
}

.btn:hover {
    background-color: var(--color-link-hover);
}

.bg-soft {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    pointer-events: none;
    opacity: 0.7; 
}

.soft-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(180px);
    animation: pulse 18s infinite alternate ease-in-out; 
}

.c1 {
    width: 600px;
    height: 600px;
    background-color: var(--color-gradient-end);
    top: -300px;
    left: -300px;
}

.c2 {
    width: 700px;
    height: 700px;
    background-color: var(--color-accent-soft);
    bottom: -400px;
    right: -400px;
    animation-delay: 6s;
}

.c3 {
    width: 500px;
    height: 500px;
    background-color: #38bdf8;
    top: 10%;
    right: -100px;
    animation-delay: 12s;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(50px, -50px); }
}

@media (max-width: 768px) {
    .container { padding: 10px 10px 50px 10px; }
    .hero-section { padding: 40px 15px 50px 15px; }
    .nome { font-size: 2.5em; }
    .perfil { width: 120px; height: 120px; }
    .cards { grid-template-columns: 1fr; }
}