/* EvilOpenAI Website Styles - The Most Evil CSS Ever Written */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #ff4444;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-accent: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    --shadow-primary: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 5px 20px rgba(255, 68, 68, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 68, 68, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.3), transparent);
}

.nav-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu.active {
    display: flex;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    background: rgba(255, 68, 68, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#matrix-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-title {
    margin-bottom: 2rem;
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
}

.title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.evil-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    animation: evilGlow 2s ease-in-out infinite alternate;
}

@keyframes evilGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(45, 45, 45, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-accent);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cta-button.primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-accent);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
}

.cta-button.secondary:hover {
    background: var(--accent-color);
    color: white;
}

.cta-button.tertiary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid #00ff00;
}

.cta-button.tertiary:hover {
    background: #00ff00;
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0); }
    40% { transform: translateX(-50%) rotate(45deg) translateY(-10px); }
    60% { transform: translateX(-50%) rotate(45deg) translateY(-5px); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--secondary-color);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-primary);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 68, 68, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.close {
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 2rem;
}

.violation-result {
    text-align: center;
    margin-bottom: 2rem;
}

.violation-severity {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.violation-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: rgba(255, 68, 68, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.violation-source {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.generate-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Corporate Espionage Section */
.espionage-section {
    background: var(--secondary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.news-card {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.news-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(255, 68, 68, 0.1) 100%);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-category {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-category.breaking {
    background: var(--gradient-accent);
    color: white;
}

.news-category.leaked {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.news-category.exposed {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.news-category.revealed {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.news-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.news-source {
    font-weight: 500;
}

.news-credibility {
    font-family: 'JetBrains Mono', monospace;
}

/* AI Villain Spotlight */
.ai-villain-spotlight {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.ai-villain-spotlight h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.villain-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.villain-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.villain-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.villain-title {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.villain-crime {
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.villain-stats {
    display: flex;
    gap: 1rem;
}

.villain-stats .stat {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Training Data Section */
.training-section {
    background: var(--primary-color);
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.training-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: var(--transition);
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.training-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.checklist {
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.checklist li:hover {
    background: rgba(255, 68, 68, 0.1);
}

.checklist input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.checklist label {
    cursor: pointer;
    color: var(--text-secondary);
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    padding: 1rem;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    color: var(--text-primary);
    font-weight: 500;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 100%;
    overflow: hidden;
}

.bingo-cell {
    padding: 0.75rem 0.5rem;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: var(--transition);
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bingo-cell:hover {
    background: rgba(255, 68, 68, 0.2);
    color: var(--text-primary);
    transform: scale(1.05);
}

.bingo-cell.selected {
    background: var(--gradient-accent);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-accent);
}

/* Algorithm Section */
.algorithm-section {
    background: var(--secondary-color);
}

.algorithm-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.roulette-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.roulette-wheel {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff4444 0deg 60deg,
        #ff6666 60deg 120deg,
        #ff8888 120deg 180deg,
        #ffaaaa 180deg 240deg,
        #ffcccc 240deg 300deg,
        #ffeeee 300deg 360deg
    );
    position: relative;
    transition: transform 3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.roulette-wheel::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
}

.roulette-option {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transform-origin: center;
    text-align: center;
    width: 80px;
    line-height: 1.2;
}

.roulette-option:nth-child(1) { transform: rotate(30deg) translateY(-90px) rotate(-30deg); }
.roulette-option:nth-child(2) { transform: rotate(90deg) translateY(-90px) rotate(-90deg); }
.roulette-option:nth-child(3) { transform: rotate(150deg) translateY(-90px) rotate(-150deg); }
.roulette-option:nth-child(4) { transform: rotate(210deg) translateY(-90px) rotate(-210deg); }
.roulette-option:nth-child(5) { transform: rotate(270deg) translateY(-90px) rotate(-270deg); }
.roulette-option:nth-child(6) { transform: rotate(330deg) translateY(-90px) rotate(-330deg); }

.spin-button {
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spin-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.generator-container {
    text-align: center;
}

.generated-text {
    background: rgba(255, 68, 68, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    color: var(--text-secondary);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-input label {
    font-weight: 600;
    color: var(--text-primary);
}

.calc-input input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 68, 68, 0.2);
    outline: none;
    -webkit-appearance: none;
}

.calc-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
}

.calc-input span {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-color);
    font-weight: 600;
}

.calc-result {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 68, 68, 0.1);
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-color);
}

.calc-result h4 {
    font-size: 1.25rem;
    color: var(--accent-color);
}

#apocalypse-prob {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

/* Singularity Section */
.singularity-section {
    background: var(--primary-color);
}

.singularity-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.horror-stories h3,
.predictions h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.story-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.story-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.story-type.real {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.story-type.fictional {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.story-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.story-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.story-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.story-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.prediction-timeline {
    position: relative;
}

.prediction-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* AI Hall of Shame Section */
.hall-of-shame-section {
    background: var(--primary-color);
}

.shame-timeline {
    position: relative;
    margin-bottom: 4rem;
}

.shame-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.shame-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 4rem;
}

.shame-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    width: 25px;
    height: 25px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px var(--accent-color);
}

.shame-date {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
}

.shame-content {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 68, 68, 0.2);
    position: relative;
    transition: var(--transition);
}

.shame-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.shame-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.shame-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.shame-severity {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shame-severity.critical {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid #ff0000;
}

.shame-severity.severe {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.shame-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Doomsday Clock Section */
.doomsday-section {
    background: var(--secondary-color);
}

.doomsday-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.clock-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.doomsday-clock {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow-accent);
}

.clock-face {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 120px;
    background: var(--gradient-accent);
    transform-origin: bottom center;
    transform: translateX(-50%) translateY(-100%) rotate(0deg);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    animation: doomsdayTick 2s linear infinite;
}

@keyframes doomsdayTick {
    0% { transform: translateX(-50%) translateY(-100%) rotate(0deg); }
    100% { transform: translateX(-50%) translateY(-100%) rotate(360deg); }
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
}

.clock-marks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mark {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.clock-time {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
}

.clock-status {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doomsday-factors h3,
.doomsday-predictions h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.factor-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.factor-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.factor-name {
    min-width: 150px;
    font-weight: 600;
    color: var(--text-primary);
}

.factor-bar {
    flex: 1;
    height: 20px;
    background: rgba(255, 68, 68, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.factor-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.factor-percentage {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
}

.prediction-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prediction-card {
    background: var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: var(--transition);
}

.prediction-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.expert-avatar {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.expert-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.expert-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.prediction-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.prediction-confidence {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* Matrix Section */
.matrix-section {
    background: var(--secondary-color);
}

.matrix-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.resources h3,
.merchandise h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.resource-grid,
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-card,
.merch-item {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: var(--transition);
    text-align: center;
}

.resource-card:hover,
.merch-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.resource-icon,
.merch-image {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
}

.resource-card h4,
.merch-item h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.resource-card p,
.merch-item p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.merch-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
}

.download-button,
.buy-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.download-button:hover,
.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* Footer */
.footer {
    background: var(--primary-color);
    border-top: 1px solid rgba(255, 68, 68, 0.2);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 68, 68, 0.2);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 68, 68, 0.2);
        gap: 1rem;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
    
    .singularity-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .matrix-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .villain-card {
        flex-direction: column;
        text-align: center;
    }
    
    .algorithm-tools {
        grid-template-columns: 1fr;
    }
    
    .training-grid {
        grid-template-columns: 1fr;
    }
    
    .doomsday-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .doomsday-clock {
        width: 250px;
        height: 250px;
    }
    
    .shame-stats {
        grid-template-columns: 1fr;
    }
    
    .factor-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .factor-name {
        min-width: auto;
    }
    
    .factor-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Particle Animations */
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes evilFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
}

/* Evil Mode Styles */
.evil-mode {
    filter: hue-rotate(180deg) saturate(2);
    animation: evilPulse 0.5s ease-in-out infinite alternate;
}

@keyframes evilPulse {
    0% { filter: hue-rotate(180deg) saturate(2) brightness(1); }
    100% { filter: hue-rotate(180deg) saturate(2) brightness(1.1); }
}

/* Typing Effect */
.typing-effect {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
    min-height: 1.5rem;
}

.typing-cursor {
    animation: blink 1s infinite;
    color: var(--accent-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* AI Personality Test Section */
.personality-section {
    background: var(--primary-color);
}

.personality-test {
    max-width: 800px;
    margin: 0 auto;
}

.test-progress {
    margin-bottom: 3rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 68, 68, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 20%;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.test-container {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid rgba(255, 68, 68, 0.2);
    box-shadow: var(--shadow-primary);
}

.question-card {
    text-align: center;
}

.question-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    line-height: 1.4;
}

.question-options {
    display: grid;
    gap: 1rem;
}

.option-btn {
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.option-btn:hover {
    border-color: var(--accent-color);
    background: rgba(255, 68, 68, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.option-btn.selected {
    border-color: var(--accent-color);
    background: var(--gradient-accent);
    color: white;
}

.result-card {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.result-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-stats .stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-label {
    min-width: 200px;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
}

.stat-bar {
    flex: 1;
    height: 20px;
    background: rgba(255, 68, 68, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.stat-value {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
}

.retake-btn {
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.retake-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.4);
}

.fab:active {
    transform: translateY(-1px) scale(1.05);
}

/* Particle System */
#particle-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 15s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    max-width: 400px;
}

.loading-logo {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 68, 68, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    animation: loadingProgress 3s ease-in-out;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: floatIcon 20s linear infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.floating-icon:nth-child(3) {
    top: 30%;
    left: 70%;
    animation-delay: 10s;
    animation-duration: 20s;
}

.floating-icon:nth-child(4) {
    top: 70%;
    left: 20%;
    animation-delay: 15s;
    animation-duration: 35s;
}

.floating-icon:nth-child(5) {
    top: 10%;
    left: 50%;
    animation-delay: 20s;
    animation-duration: 28s;
}

.floating-icon:nth-child(6) {
    top: 80%;
    left: 60%;
    animation-delay: 25s;
    animation-duration: 22s;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.3;
    }
}

/* Glitch Overlay */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, rgba(255, 68, 68, 0.1) 49%, rgba(255, 68, 68, 0.1) 51%, transparent 52%);
    animation: glitchMove 3s linear infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes glitchMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Stat Items */
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.progress-ring-svg {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 2s ease-in-out;
    filter: drop-shadow(0 0 5px rgba(255, 68, 68, 0.5));
}

.stat-item:hover .progress-ring-circle {
    stroke-dashoffset: 0;
}

/* AI Battle Arena */
.battle-section {
    background: var(--secondary-color);
}

.battle-arena {
    max-width: 1000px;
    margin: 0 auto;
}

.battlefield {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 68, 68, 0.3);
    box-shadow: var(--shadow-primary);
}

.ai-fighter {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ai-fighter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.1), transparent);
    transition: left 0.5s ease;
}

.ai-fighter:hover::before {
    left: 100%;
}

.ai-fighter:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-accent);
    border-color: var(--accent-color);
}

.fighter-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fighterPulse 2s ease-in-out infinite;
}

@keyframes fighterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.fighter-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.fighter-hp {
    margin-bottom: 1.5rem;
}

.hp-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 68, 68, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.hp-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.hp-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.fighter-attacks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attack-btn {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.attack-btn:hover {
    border-color: var(--accent-color);
    background: rgba(255, 68, 68, 0.1);
    transform: translateY(-2px);
}

.attack-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vs-indicator {
    text-align: center;
    position: relative;
}

.vs-text {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    animation: vsPulse 1.5s ease-in-out infinite;
}

@keyframes vsPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.battle-effects {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.battle-log {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 68, 68, 0.2);
    max-height: 200px;
    overflow-y: auto;
}

.log-entry {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 68, 68, 0.1);
    animation: logEntry 0.5s ease-out;
}

.log-entry:last-child {
    border-bottom: none;
}

@keyframes logEntry {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.battle-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.battle-btn {
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.battle-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* Battle Effects */
.battle-effect {
    position: absolute;
    font-size: 2rem;
    animation: battleEffect 1s ease-out forwards;
    pointer-events: none;
}

@keyframes battleEffect {
    0% {
        opacity: 1;
        transform: scale(0.5) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) translateY(-20px);
    }
    100% {
        opacity: 0;
        transform: scale(1) translateY(-40px);
    }
}

/* Enhanced Hover Effects */
.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 68, 68, 0.3);
}

.stat-item:hover .stat-number {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 1000;
    border: 1px solid rgba(255, 68, 68, 0.3);
    box-shadow: var(--shadow-primary);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip.show {
    opacity: 1;
}
