/* --- RESET E VARIÁVEIS --- */
:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(30, 30, 30, 0.6);
    --primary-color: #bb86fc; /* Roxo Neon */
    --secondary-color: #03dac6; /* Turquesa */
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- FUNDO ANIMADO (CANVAS) --- */
#constellation-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- LAYOUT PRINCIPAL --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

section {
    margin-bottom: 80px;
    animation: fadeIn 1s ease-in-out;
}

h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- HERO & PERFIL --- */
.hero {
    text-align: center;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.profile-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(187, 134, 252, 0.4);
    transition: transform 0.3s;
}

.profile-img:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- SKILLS (TAGS) --- */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-tag {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    backdrop-filter: blur(4px);
    cursor: default;
}

.skill-tag:hover {
    background-color: var(--secondary-color);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(3, 218, 198, 0.3);
}

/* --- CARDS DE EXPERIÊNCIA --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-server-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    background-color: #222;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #fff;
}

.card-role {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.click-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 2000;
    backdrop-filter: blur(8px);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1a1a1a;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    border: 1px solid var(--primary-color);
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.close-btn:hover {
    color: #fff;
}

#modal-server-name { color: #fff; font-size: 1.8rem; margin-bottom: 5px; }
#modal-role-name { color: var(--secondary-color); font-weight: bold; font-size: 1.1rem; display: block; margin-bottom: 20px; text-transform: uppercase;}
#modal-desc-text { color: #ddd; line-height: 1.7; font-size: 1rem; }

/* Animação de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}