/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for theming */
:root {
    --primary-color: #9b59b6;
    --primary-dark: #7d3c98;
    --primary-light: #bb8fce;
    --secondary-color: #1a0a2e;
    --accent-color: #a569bd;
    --text-primary: #e0d4f0;
    --text-secondary: #b39ddb;
    --text-light: #9575cd;
    --bg-primary: #1e1033;
    --bg-secondary: #150a25;
    --bg-highlight: #2a1545;
    --border-color: #3d2060;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0;
}

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

.nav-links li {
    margin: 0;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero .title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero .author {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.hero .date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.hero-survey {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.survey-description {
    max-width: 800px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Sections */
.section {
    background-color: var(--bg-primary);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.section.highlight {
    background-color: var(--bg-highlight);
    border-left: 4px solid var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-large, .btn-survey {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn-large:hover, .btn-survey:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-survey {
    background-color: var(--accent-color);
}

.btn-survey:hover {
    background-color: #7d3c98;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Key Finding */
.key-finding {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    text-align: center;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.key-finding h3 {
    color: white;
    margin-bottom: 1rem;
}

.large-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

/* Lists */
.finding-list {
    list-style: none;
    padding-left: 0;
}

.finding-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.finding-list li:last-child {
    border-bottom: none;
}

.finding-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Theme Boxes */
.theme-box {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.theme-box h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

/* Career Categories */
.career-category {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.career-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.career-category ul {
    margin-left: 1.5rem;
}

.career-category li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* Collaboration Points */
.collaboration-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.collab-point {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collab-point:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.collab-point h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Recommendation Section */
.recommendation-section {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.recommendation-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recommendation-section ul {
    list-style: none;
    padding-left: 0;
}

.recommendation-section li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

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

.recommendation-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Key Conclusions */
.key-conclusions {
    background-color: var(--bg-highlight);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.key-conclusions h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.key-conclusions ol {
    margin-left: 1.5rem;
}

.key-conclusions li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.final-statement {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 1.5rem;
    background-color: var(--bg-highlight);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
}

/* References */
.references {
    background-color: var(--bg-secondary);
}

.reference-list p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.reference-list p:last-child {
    border-bottom: none;
}

/* Survey Specific Styles */
.survey-intro {
    text-align: center;
}

.survey-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.survey-detail-item {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.survey-detail-item h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.question-preview {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.question-preview h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.question-preview ol {
    margin-left: 1.5rem;
}

.question-preview li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Survey Embed */
.iframe-container {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.iframe-container iframe {
    border-radius: 8px;
}

.survey-alt-link {
    text-align: center;
    margin-top: 1rem;
}

/* Survey Context */
.context-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.context-stat {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}

.context-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.context-stat p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Survey Callout */
.survey-callout {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.survey-callout h3 {
    color: white;
    margin-bottom: 1rem;
}

.survey-callout p, .survey-callout ol, .survey-callout li {
    color: rgba(255, 255, 255, 0.95);
}

.survey-callout ol {
    margin-left: 1.5rem;
}

.survey-callout li {
    margin-bottom: 0.75rem;
}

.survey-callout .btn-primary {
    margin-top: 1rem;
    background-color: white;
    color: var(--primary-color);
}

.survey-callout .btn-primary:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-dark);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: var(--shadow-xl);
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn-large {
    background-color: white;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.cta-section .btn-large:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        justify-content: center;
    }

    .hero .title {
        font-size: 1.75rem;
    }

    .hero .subtitle {
        font-size: 1.25rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .section {
        padding: 1.5rem;
    }

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

    .collaboration-points {
        grid-template-columns: 1fr;
    }

    .survey-details {
        grid-template-columns: 1fr;
    }

    .context-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero .title {
        font-size: 1.5rem;
    }

    .hero .subtitle {
        font-size: 1.125rem;
    }

    .section {
        padding: 1rem;
    }
}

/* Survey Form Styles */
.survey-form {
    max-width: 800px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.required {
    color: #dc2626;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.rating-description {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.rating-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.rating-option input[type="radio"]:checked + .rating-label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.rating-option:hover .rating-label {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-highlight);
}

.radio-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked {
    background-color: var(--primary-color);
}

.radio-option span {
    color: var(--text-secondary);
    font-weight: 500;
}

.radio-option input[type="radio"]:checked ~ span {
    color: var(--secondary-color);
    font-weight: 600;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.form-actions button {
    min-width: 200px;
}

.survey-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    display: none;
}

.survey-message.success {
    display: block;
    background-color: rgba(165, 105, 189, 0.2);
    color: #d2b4de;
    border: 2px solid #a569bd;
}

.survey-message.error {
    display: block;
    background-color: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 2px solid #dc2626;
}

/* Results Dashboard Styles */
.chart-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
}

.chart-horizontal {
    height: 500px;
}

.recent-activity {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.activity-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.activity-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.activity-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.table-controls {
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-end;
}

.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-primary);
}

.data-table thead {
    background-color: #2a1545;
    color: #e0d4f0;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tbody tr:hover {
    background-color: var(--bg-highlight);
}

.rating-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

.dependency-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

.dependency-ai-skills {
    background-color: rgba(155, 89, 182, 0.2);
    color: #bb8fce;
    border: 1px solid #9b59b6;
}

.dependency-human-skills {
    background-color: rgba(165, 105, 189, 0.2);
    color: #d2b4de;
    border: 1px solid #a569bd;
}

.dependency-uncertain {
    background-color: rgba(125, 60, 152, 0.2);
    color: #bb8fce;
    border: 1px solid #7d3c98;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Print Styles */
@media print {
    .navbar,
    .cta-section,
    footer,
    .btn-primary,
    .btn-large,
    .btn-survey {
        display: none;
    }

    body {
        background-color: #1a0a2e;
    }

    .section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}