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

:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #3399ff;
    --secondary-color: #00bcd4;
    --accent-color: #ff6b35;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-light: #f5f9fc;
    --bg-white: #ffffff;
    --bg-dark: #1a2332;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0066cc 0%, #00bcd4 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    padding-top: 70px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Linhas digitais horizontais */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 51px
        ),
        /* Linhas digitais verticais */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 51px
        ),
        /* Padrão de circuitos */
        radial-gradient(
            circle at 20% 30%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 80%,
            rgba(255, 255, 255, 0.04) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 70% 20%,
            rgba(255, 255, 255, 0.04) 0%,
            transparent 40%
        );
    pointer-events: none;
    z-index: 999;
    opacity: 0.6;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Linhas de conexão diagonais */
        linear-gradient(
            45deg,
            transparent 48%,
            rgba(255, 255, 255, 0.02) 48%,
            rgba(255, 255, 255, 0.02) 52%,
            transparent 52%
        ),
        linear-gradient(
            -45deg,
            transparent 48%,
            rgba(255, 255, 255, 0.02) 48%,
            rgba(255, 255, 255, 0.02) 52%,
            transparent 52%
        );
    background-size: 100px 100px, 100px 100px;
    pointer-events: none;
    z-index: 999;
    opacity: 0.3;
    animation: moveBackground 60s linear infinite;
}

@keyframes moveBackground {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 100px 100px, -100px 100px;
    }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 998;
}

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 998;
    border-bottom: 3px solid var(--primary-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Header */
.header {
    background: #000000;
    background-color: #000000;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid rgba(0, 102, 204, 0.3);
    position: relative;
    z-index: 998;
}

.main-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.author {
    font-size: 1rem;
    color: #cbd5e1;
    margin-top: 10px;
}

.author strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.language-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 188, 212, 0.3);
}

.lang-btn.active {
    background: linear-gradient(135deg, #0066cc 0%, #00bcd4 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.5);
}

/* Section Styles */
.section {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 30px;
    position: relative;
    z-index: 998;
}

/* Welcome Section */
.welcome-content {
    text-align: center;
}

.welcome-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.welcome-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.categories-preview {
    margin: 40px 0;
}

.categories-preview h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15) 0%, rgba(0, 188, 212, 0.15) 100%);
}

.category-icon {
    font-size: 2rem;
}

.category-card span:last-child {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #00bcd4 100%);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

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

/* Quiz Section */
.quiz-section {
    min-height: 500px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066cc 0%, #00bcd4 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.quiz-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.category-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    padding: 15px 30px;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
}

.category-badge .category-icon {
    font-size: 1.8rem;
}

.category-badge span:last-child {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.question-card {
    width: 100%;
    max-width: 700px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    z-index: 998;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.6;
}

.answer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-answer {
    flex: 1;
    min-width: 180px;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-yes {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-yes:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-no {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-no:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.answer-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Results Section */
.results-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.score-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.total-score {
    text-align: center;
}

.score-number {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0066cc 0%, #00bcd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.score-label {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 10px;
}

.maturity-level {
    text-align: center;
}

.level-badge {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.chart-container {
    max-width: 700px;
    height: 550px;
    margin: 40px auto;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Answers Detail Section */
.answers-detail {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    border: 2px solid var(--border-color);
}

.answers-detail h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.answer-category {
    margin-bottom: 30px;
}

.answer-category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-category-title .category-icon {
    font-size: 1.5rem;
}

.answer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.answer-item:hover {
    background: rgba(0, 102, 204, 0.05);
    border-left-color: var(--primary-color);
}

.answer-question {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 500;
}

.answer-response {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    font-size: 1.1rem;
    font-weight: 700;
}

.answer-response.yes {
    color: var(--success-color);
}

.answer-response.no {
    color: var(--danger-color);
}

.answer-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.answer-icon {
    font-size: 1.8rem;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
}

.answer-icon.yes {
    color: var(--success-color);
}

.answer-icon.no {
    color: var(--danger-color);
}

.feedback-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 188, 212, 0.05) 100%);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    border: 2px solid var(--border-color);
}

.feedback-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.feedback-section h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feedback-section p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.feedback-section p strong {
    font-weight: 700;
    color: var(--primary-color);
}

.feedback-gaps,
.feedback-solution {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.category-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-score-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.category-score-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.category-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.category-score-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066cc 0%, #00bcd4 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.category-score-text {
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.score-value {
    font-size: 1.8rem;
}

.score-total {
    color: var(--text-light);
}

/* CTA Section */
/* WhatsApp CTA Section */
.whatsapp-cta-section {
    margin: 50px 0;
    padding: 50px 40px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3);
    position: relative;
    z-index: 998;
    overflow: hidden;
}

.whatsapp-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.whatsapp-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.whatsapp-cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.whatsapp-cta-section h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.whatsapp-cta-section p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-whatsapp {
    display: inline-block;
    background: white;
    color: #25D366;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: #f0f0f0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.cta-section {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    border-radius: 20px;
    border: 2px solid var(--primary-color);
}

.cta-section h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    margin-top: 60px;
    padding: 0;
    position: relative;
    z-index: 998;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: start;
}

.footer-company {
    font-size: 1rem;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-icon {
    width: 20px;
    height: 20px;
    fill: #25D366;
    flex-shrink: 0;
}

.footer-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-tagline {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.footer-bottom {
    background: #000000;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .container {
        padding: 10px;
    }

    .nav-container {
        padding: 10px 15px;
        flex-direction: column;
        gap: 15px;
    }

    .logo-img {
        height: 40px;
    }

    .header {
        padding: 25px 20px;
    }

    .main-logo {
        max-width: 300px;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 30px 20px 20px;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section p {
        justify-content: center;
    }

    .section {
        padding: 25px;
    }

    .welcome-content h2 {
        font-size: 1.8rem;
    }

    .welcome-content p {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .answer-buttons {
        flex-direction: column;
    }

    .btn-answer {
        width: 100%;
    }

    .score-number {
        font-size: 3.5rem;
    }

    .chart-container {
        height: 300px;
    }

    .category-scores-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-section h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .welcome-content h2 {
        font-size: 1.5rem;
    }

    .question-card {
        padding: 25px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .feedback-card {
        padding: 25px;
    }
}
