:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --dark-text: #1f2937;
    --light-text: #6b7280;
    --background: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Área cores */
    --dev-color: #3b82f6;
    --ai-color: #8b5cf6;
    --security-color: #ef4444;
    --data-color: #10b981;
    --networks-color: #f59e0b;
    --engineering-color: #6366f1;
    --datascience-color: #ec4899;
    --ux-color: #14b8a6;
    --devops-color: #f97316;
    --cloud-color: #0ea5e9;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--background);
}

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

.hidden {
    display: none !important;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 40px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='none'/%3E%3Cpath d='M20,15 L15,20 L20,25 L25,20 L20,15' stroke='white' stroke-width='1' fill='none' /%3E%3Cpath d='M20,55 L15,60 L20,65 L25,60 L20,55' stroke='white' stroke-width='1' fill='none' /%3E%3Cpath d='M60,15 L55,20 L60,25 L65,20 L60,15' stroke='white' stroke-width='1' fill='none' /%3E%3Cpath d='M60,55 L55,60 L60,65 L65,60 L60,55' stroke='white' stroke-width='1' fill='none' /%3E%3Ccircle cx='40' cy='40' r='3' stroke='white' stroke-width='1' fill='none' /%3E%3Ccircle cx='80' cy='80' r='3' stroke='white' stroke-width='1' fill='none' /%3E%3Ccircle cx='80' cy='40' r='2' stroke='white' stroke-width='1' fill='none' /%3E%3Ccircle cx='40' cy='80' r='2' stroke='white' stroke-width='1' fill='none' /%3E%3Ccircle cx='10' cy='10' r='1' fill='white' /%3E%3Ccircle cx='10' cy='90' r='1' fill='white' /%3E%3Ccircle cx='90' cy='10' r='1' fill='white' /%3E%3Ccircle cx='90' cy='90' r='1' fill='white' /%3E%3Ccircle cx='50' cy='50' r='1' fill='white' /%3E%3Ccircle cx='30' cy='70' r='1' fill='white' /%3E%3Ccircle cx='70' cy='30' r='1' fill='white' /%3E%3Cline x1='10' y1='50' x2='20' y2='50' stroke='white' stroke-width='1' /%3E%3Cline x1='80' y1='50' x2='90' y2='50' stroke='white' stroke-width='1' /%3E%3Cline x1='50' y1='10' x2='50' y2='20' stroke='white' stroke-width='1' /%3E%3Cline x1='50' y1='80' x2='50' y2='90' stroke='white' stroke-width='1' /%3E%3C/svg%3E");
    background-size: 100px;
    opacity: 0.1;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

header .tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
}

/* Seções */
.section {
    padding: 60px 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.section-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--light-text);
    max-width: 800px;
}

/* Introdução */
.intro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-image svg {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Botões */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn i {
    margin-right: 8px;
}

.btn i:last-child {
    margin-right: 0;
    margin-left: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: #f9fafb;
    color: var(--primary-dark);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Áreas da Computação */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.area-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    cursor: pointer;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.area-card[data-area="dev"] {
    border-color: var(--dev-color);
}

.area-card[data-area="ai"] {
    border-color: var(--ai-color);
}

.area-card[data-area="security"] {
    border-color: var(--security-color);
}

.area-card[data-area="data"] {
    border-color: var(--data-color);
}

.area-card[data-area="networks"] {
    border-color: var(--networks-color);
}

.area-card[data-area="engineering"] {
    border-color: var(--engineering-color);
}

.area-card[data-area="datascience"] {
    border-color: var(--datascience-color);
}

.area-card[data-area="ux"] {
    border-color: var(--ux-color);
}

.area-card[data-area="devops"] {
    border-color: var(--devops-color);
}

.area-card[data-area="cloud"] {
    border-color: var(--cloud-color);
}

.area-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.area-card[data-area="dev"] .area-icon {
    color: var(--dev-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.area-card[data-area="ai"] .area-icon {
    color: var(--ai-color);
    background-color: rgba(139, 92, 246, 0.1);
}

.area-card[data-area="security"] .area-icon {
    color: var(--security-color);
    background-color: rgba(239, 68, 68, 0.1);
}

.area-card[data-area="data"] .area-icon {
    color: var(--data-color);
    background-color: rgba(16, 185, 129, 0.1);
}

.area-card[data-area="networks"] .area-icon {
    color: var(--networks-color);
    background-color: rgba(245, 158, 11, 0.1);
}

.area-card[data-area="engineering"] .area-icon {
    color: var(--engineering-color);
    background-color: rgba(99, 102, 241, 0.1);
}

.area-card[data-area="datascience"] .area-icon {
    color: var(--datascience-color);
    background-color: rgba(236, 72, 153, 0.1);
}

.area-card[data-area="ux"] .area-icon {
    color: var(--ux-color);
    background-color: rgba(20, 184, 166, 0.1);
}

.area-card[data-area="devops"] .area-icon {
    color: var(--devops-color);
    background-color: rgba(249, 115, 22, 0.1);
}

.area-card[data-area="cloud"] .area-icon {
    color: var(--cloud-color);
    background-color: rgba(14, 165, 233, 0.1);
}

.area-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.area-card p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Teste/Questões */
.progress-bar-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

#progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

#question-counter {
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: right;
}

#question-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.question-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.option-card {
    background-color: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.option-card:hover {
    border-color: var(--primary-light);
    background-color: rgba(96, 165, 250, 0.05);
}

.option-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(96, 165, 250, 0.1);
}

.option-card.selected:before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='24px' height='24px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.test-controls {
    display: flex;
    justify-content: space-between;
}

/* Resultados */
.results-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.chart-container {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.top-matches {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.top-matches h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.match-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: var(--background);
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.match-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.match-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    color: white;
}

.match-details {
    flex: 1;
}

.match-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.match-description {
    font-size: 0.85rem;
    color: var(--light-text);
}

.match-percentage {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Área de Detalhe */
.area-detail-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.area-detail-header {
    display: flex;
    flex-wrap: wrap;
    padding: 25px;
    background-color: rgba(37, 99, 235, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.compatibility {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 25px;
    margin-right: 25px;
    border-right: 1px solid var(--border-color);
    min-width: 120px;
}

#compatibility-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.compatibility .label {
    font-size: 0.9rem;
    color: var(--light-text);
}

.area-overview {
    flex: 1;
    min-width: 250px;
}

.detail-section {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.detail-section h3 i {
    color: var(--primary-color);
}

.detail-content {
    line-height: 1.7;
    margin-bottom: 20px;
}

.tech-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.tech-card {
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 15px;
    width: calc(33.333% - 10px);
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tech-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.tech-card h4 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.tech-card p {
    font-size: 0.9rem;
    color: var(--light-text);
}

.tech-card .tech-popularity {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.8rem;
}

.tech-popularity-fill {
    height: 5px;
    background-color: var(--primary-light);
    border-radius: 3px;
}

.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 15px;
    width: calc(50% - 8px);
    min-width: 250px;
    text-decoration: none;
    color: var(--dark-text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.resource-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.resource-link i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.resource-link-content {
    flex: 1;
}

.resource-link-content h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.resource-link-content p {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* Footer */
footer {
    background-color: var(--dark-text);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-image {
        order: -1;
    }
    
    .areas-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .tech-card, .resource-link {
        width: 100%;
    }
    
    .compatibility {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 15px;
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}