/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1;
}

/* Glitch header */
.glitch-header {
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 20px;
    animation: glitch 3s infinite;
}

.main-title::before,
.main-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-title::before {
    animation: glitch-1 2s infinite;
    color: #00ff41;
    z-index: -1;
}

.main-title::after {
    animation: glitch-2 2.5s infinite;
    color: #ff0040;
    z-index: -2;
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    letter-spacing: 0.1em;
    animation: flicker 4s infinite;
}

/* Terminal section */
.terminal-section {
    padding: 60px 20px;
    z-index: 2;
    position: relative;
}

.terminal-window {
    max-width: 800px;
    margin: 0 auto;
    background: #0a0a0a;
    border: 1px solid #00ff41;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red { background: #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #27ca3f; }

.terminal-content {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
}

.command-line {
    margin-bottom: 15px;
    animation: typewriter 3s steps(40) infinite;
}

.prompt {
    color: #00ff41;
    margin-right: 10px;
}

.command {
    color: #fff;
}

/* Poison effects section */
.poison-effects {
    padding: 80px 20px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.effect-item {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 30px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.effect-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.effect-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.effect-item:hover::before {
    left: 100%;
}

.verb {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff41;
    margin-bottom: 10px;
    text-transform: uppercase;
}

    .action {
        display: block;
        font-size: 1rem;
        color: #888;
        font-family: 'Courier New', monospace;
    }

    /* Infection Map section */
    .infection-map-section {
        padding: 80px 20px;
        z-index: 2;
        position: relative;
        text-align: center;
    }

    .infection-map-title {
        text-align: center;
        margin: 0 auto 60px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .virus-icon {
        width: 5rem;
        height: 5rem;
        object-fit: contain;
        filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
        animation: virus-float 3s ease-in-out infinite;
        vertical-align: middle;
    }

    .infection-map-title::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #00ff41, transparent);
        animation: pulse-glow 2s infinite;
    }

    .map-container {
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .world-map {
        position: relative;
        width: 100%;
        height: 600px;
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
        border: 2px solid rgba(0, 255, 65, 0.3);
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 40px;
        box-shadow: 0 0 40px rgba(0, 255, 65, 0.2);
    }

    .infection-map-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
        animation: map-glow 4s ease-in-out infinite alternate;
        filter: brightness(0.8) contrast(1.2) saturate(1.5);
    }

    .infection-map-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, 
            rgba(0, 255, 65, 0.1) 0%, 
            rgba(255, 0, 64, 0.1) 25%, 
            rgba(255, 255, 0, 0.1) 50%, 
            rgba(0, 255, 65, 0.1) 75%, 
            rgba(255, 0, 64, 0.1) 100%);
        animation: infection-sweep 8s linear infinite;
        z-index: 2;
    }

    .region {
        position: absolute;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border: 2px solid transparent;
        overflow: hidden;
        z-index: 5;
        filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.2));
    }

    .region::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: currentColor;
        opacity: 0.3;
        transition: opacity 0.3s ease;
    }

    .region:hover::before {
        opacity: 0.6;
    }

    .region:hover {
        transform: scale(1.08) rotate(2deg);
        border-color: #00ff41;
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
        z-index: 10;
        animation: region-pulse 1s ease-in-out infinite alternate;
        filter: drop-shadow(0 0 15px rgba(0, 255, 65, 0.4));
    }

    /* Region positions and sizes */
    .north-america {
        top: 18%;
        left: 18%;
        width: 18%;
        height: 15%;
        color: #00ff41;
        border-radius: 50% 30% 40% 60%;
        transform: rotate(-15deg);
    }

    .south-america {
        top: 38%;
        left: 22%;
        width: 15%;
        height: 20%;
        color: #00ff41;
        border-radius: 40% 60% 30% 70%;
        transform: rotate(10deg);
    }

    .europe {
        top: 22%;
        left: 47%;
        width: 12%;
        height: 10%;
        color: #ff0040;
        border-radius: 60% 40% 50% 30%;
        transform: rotate(5deg);
    }

    .africa {
        top: 38%;
        left: 47%;
        width: 15%;
        height: 20%;
        color: #ffff00;
        border-radius: 30% 70% 60% 40%;
        transform: rotate(-8deg);
    }

    .asia {
        top: 28%;
        left: 68%;
        width: 18%;
        height: 15%;
        color: #ff0040;
        border-radius: 50% 30% 60% 40%;
        transform: rotate(12deg);
    }

    .australia {
        top: 62%;
        left: 78%;
        width: 10%;
        height: 8%;
        color: #00ff41;
        border-radius: 70% 30% 40% 60%;
        transform: rotate(-20deg);
    }

    .antarctica {
        top: 78%;
        left: 42%;
        width: 15%;
        height: 10%;
        color: #ffff00;
        border-radius: 40% 60% 50% 30%;
        transform: rotate(15deg);
    }

    /* Region data tooltip */
    .region-data {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.95);
        border: 1px solid #00ff41;
        border-radius: 8px;
        padding: 15px;
        min-width: 180px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 20;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
    }

    .region:hover .region-data {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1.05);
    }

    .region-data h3 {
        color: #00ff41;
        font-size: 1.1rem;
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .region-data p {
        color: #fff;
        margin: 6px 0;
        font-size: 0.85rem;
        font-family: 'JetBrains Mono', monospace;
    }

    .region-data strong {
        color: #00ff41;
    }

    /* Map legend */
    .map-legend {
        display: flex;
        justify-content: center;
        gap: 40px;
        flex-wrap: wrap;
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #888;
        font-size: 0.9rem;
    }

    .legend-color {
        width: 20px;
        height: 20px;
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .legend-color.high {
        background: #ff0040;
    }

    .legend-color.medium {
        background: #ffff00;
    }

    .legend-color.low {
        background: #00ff41;
    }

/* Timeline section */
.timeline-section {
    padding: 80px 20px;
    z-index: 2;
    position: relative;
    text-align: center;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    display: block;
    text-align: center;
    margin-bottom: 120px;
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.timeline-item:last-child {
    margin-bottom: 80px;
}

.timeline-content {
    text-align: center;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00ff41;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.timeline-content p {
    color: #888;
    font-size: 0.9rem;
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* CTA section */
.cta-section {
    padding: 20px 20px;
    text-align: center;
    z-index: 2;
    position: relative;
}

/* Убираем дублирующийся стиль cta-container */

.cta-button {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 20px 60px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.cta-button:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover .button-glow {
    left: 100%;
}

/* Loading link */
.loading-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.loading-button {
    display: inline-block;
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
}

.loading-button:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

.loading-button .button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.3), transparent);
    transition: left 0.5s ease;
}

.loading-button:hover .button-glow {
    left: 100%;
}

/* Footer */
.footer {
    padding: 20px 20px 20px;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
    z-index: 2;
    position: relative;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #00ff41;
    transform: translateY(-2px);
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.footer-links {
    text-align: center;
}

.footer-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00ff41;
}

/* Animations */
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 0.9; }
}

@keyframes typewriter {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}



@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    }
}

@keyframes map-glow {
    0% { 
        filter: brightness(0.8) contrast(1.2) saturate(1.5) drop-shadow(0 0 20px rgba(0, 255, 65, 0.3));
    }
    100% { 
        filter: brightness(1.0) contrast(1.4) saturate(1.8) drop-shadow(0 0 40px rgba(0, 255, 65, 0.6));
    }
}

@keyframes infection-sweep {
    0% { 
        transform: translateX(-100%) translateY(-100%);
        opacity: 0;
    }
    25% { 
        opacity: 0.3;
    }
    50% { 
        transform: translateX(0%) translateY(0%);
        opacity: 0.6;
    }
    75% { 
        opacity: 0.3;
    }
    100% { 
        transform: translateX(100%) translateY(100%);
        opacity: 0;
    }
}

@keyframes region-pulse {
    0% { 
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
        border-width: 2px;
        filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.2));
    }
    100% { 
        box-shadow: 0 0 35px rgba(0, 255, 65, 0.7);
        border-width: 3px;
        filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
    }
}

@keyframes virus-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
    }
    25% { 
        transform: translateY(-3px) rotate(2deg);
        filter: drop-shadow(0 0 15px rgba(0, 255, 65, 0.7));
    }
    50% { 
        transform: translateY(-5px) rotate(0deg);
        filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.8));
    }
    75% { 
        transform: translateY(-3px) rotate(-2deg);
        filter: drop-shadow(0 0 15px rgba(0, 255, 65, 0.7));
    }
}

@keyframes infection-spread {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
        border-width: 2px;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
        border-width: 1px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .virus-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .effects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Убираем ссылку на несуществующий элемент */
    
    .timeline-item {
        text-align: center;
    }
    
    .timeline-content {
        /* Убираем ненужный padding */
    }
    
    .cta-button {
        padding: 15px 40px;
        font-size: 1rem;
    }
    
    .world-map {
        height: 400px;
    }
    
    .region-data {
        min-width: 150px;
        padding: 15px;
    }
    
    .map-legend {
        gap: 20px;
    }
    
    .loading-link {
        top: 10px;
        right: 10px;
    }
    
    .loading-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

