/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --light-bg: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #cbd5e1;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-button i {
    margin-left: 0.5rem;
    animation: bounce 2s infinite;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

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

.section {
    padding: 6rem 0;
}

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

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

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-light);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.dark-section .section-badge {
    background: var(--secondary-color);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.dark-section .section-description {
    color: var(--text-light);
}

/* ===================================
   Profile Cards
   =================================== */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.profile-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.profile-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.profile-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.stat {
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat i {
    margin-right: 0.5rem;
}

/* ===================================
   Insights Section
   =================================== */
.insights-container {
    display: grid;
    gap: 2rem;
}

.insight-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--secondary-color);
}

.insight-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.insight-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.insight-text {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.insight-list {
    list-style: none;
    margin: 1.5rem 0;
}

.insight-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
}

.insight-list li i {
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--secondary-color);
}

.insight-highlight {
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 3px solid var(--secondary-color);
    font-weight: 600;
}

/* ===================================
   Game Section
   =================================== */
.game-container {
    max-width: 900px;
    margin: 0 auto;
}

.score-display {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.score-card {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.score-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.score-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

.game-level {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.level-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.level-badge {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
}

.question-grid {
    display: grid;
    gap: 2rem;
}

.question-card {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.question-card.answered {
    opacity: 0.7;
}

.question-card.correct {
    border-color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.1);
}

.question-card.incorrect {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.question-text {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.answer-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.answer-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.answer-btn:disabled {
    cursor: not-allowed;
}

.answer-btn.correct {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.answer-btn.incorrect {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* ===================================
   Game Results
   =================================== */
.game-results {
    background: var(--gradient-success);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.5s ease-out;
}

.game-results h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.result-score {
    margin: 2rem 0;
}

.final-score {
    font-size: 5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.final-total {
    font-size: 1.5rem;
    opacity: 0.9;
}

.result-category {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: inline-block;
}

.result-description {
    font-size: 1.25rem;
    margin: 2rem 0;
    line-height: 1.8;
}

.reset-btn {
    padding: 1rem 3rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.reset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Predictions Section
   =================================== */
.prediction-container {
    max-width: 900px;
    margin: 0 auto;
}

.prediction-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 2px solid var(--secondary-color);
}

.prediction-card.featured {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 3px solid var(--secondary-color);
}

.prediction-card h3 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.prediction-options {
    display: grid;
    gap: 1.5rem;
}

.prediction-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.prediction-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.prediction-option i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.prediction-option p {
    font-size: 1.125rem;
    line-height: 1.6;
}

.prediction-reasoning {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 2.5rem;
}

.prediction-reasoning h4 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.prediction-reasoning p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.prediction-reasoning ul {
    list-style: none;
    margin: 1.5rem 0;
}

.prediction-reasoning li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
}

.prediction-reasoning li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.prediction-conclusion {
    background: rgba(245, 158, 11, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
    font-size: 1.125rem;
}

/* ===================================
   Connection Section
   =================================== */
.connection-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.connection-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.connection-card h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.connection-subtitle {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.connection-list {
    list-style: none;
}

.connection-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-left: 3px solid var(--primary-light);
    margin-bottom: 0.5rem;
}

.connection-bridge {
    text-align: center;
    padding: 2rem;
}

.connection-bridge i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.connection-bridge p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 300px;
}

.collaboration-idea {
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.collaboration-idea h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.collaboration-idea p {
    font-size: 1.25rem;
    line-height: 1.8;
}

.collab-description {
    margin-top: 1rem;
    opacity: 0.95;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

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

.footer-tagline {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .connection-container {
        grid-template-columns: 1fr;
    }

    .connection-bridge {
        order: -1;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
    }

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

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .section {
        padding: 3rem 0;
    }

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

    .level-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}