:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* User Profile Header */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
}

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    padding-top: 80px;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Buttons */
.btn,
.btn-primary,
.btn-outline {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn {
    background-color: white;
    color: var(--bg-dark);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-outline:hover {
    background: var(--glass);
    border-color: white;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
footer {
    padding: 6rem 0;
    background: #0b1221;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

footer .logo {
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.candidato-card {
    animation: fadeIn 0.8s ease-out forwards;
}


/* Default hide mobile icon on desktop */
.mobile-menu-icon {
    display: none;
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .mobile-menu-icon {
        display: block !important;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--text-light);
        z-index: 1100;
        position: relative;
        padding: 5px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 1rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
}




/* Seção de Candidatos */
.candidatos {
    padding: 8rem 0;
    background: #0f172a;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
}

.candidatos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Força um ao lado do outro no desktop */
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.candidato-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.candidato-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.2);
}

.candidato-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.candidato-card:hover .candidato-img {
    transform: scale(1.05);
}

.candidato-info {
    padding: 2.5rem;
    text-align: center;
}

.candidato-info .name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.candidato-info .name span {
    color: var(--primary);
}

.candidato-info .cargo {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1.5rem;
}

.candidato-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 900px) {
    .candidatos-grid {
        grid-template-columns: 1fr;
        /* Empilha no mobile/tablet pequeno */
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    z-index: 1001;
    overflow: hidden;
    padding: 0.5rem 0;
}

/* Removido o gap e adicionado uma margem de segurança maior */
.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}


.dropdown-content a {
    color: var(--text-light);
    padding: 12px 20px !important;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    border: none !important;
}

.dropdown-content a:hover {
    background: var(--glass);
    color: var(--primary) !important;
}

.dropdown-content i {
    width: 20px;
    text-align: center;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #f59e0b;
    color: #000;
}

.status-approved {
    background: #10b981;
    color: #fff;
}

.status-rejected {
    background: #ef4444;
    color: #fff;
}

.status-finished {
    background: #6b7280;
    color: #fff;
}