:root {
    --primary-color: #39ff14; /* Neon Green */
    --background-color: #1a1a1a;
    --text-color: #f0f0f0;
    --card-bg-color: #2a2a2a;
    --timeline-color: #444;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 20px;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Language Switcher --- */
.lang-switcher {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 100;
}
.lang-switcher button {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    background: var(--card-bg-color);
    color: var(--text-color);
    border: 2px solid var(--timeline-color);
    padding: 8px 12px;
    cursor: pointer;
    margin-left: 5px;
    transition: all 0.2s ease;
}
.lang-switcher button:hover, .lang-switcher button.active {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

/* --- Header --- */
.profile {
    text-align: center;
    margin-bottom: 20px;
}
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    object-fit: cover;
    background-color: var(--card-bg-color);
}
.profile h1 {
    font-family: 'Press Start 2P', cursive;
    color: var(--primary-color);
    font-size: 2rem;
    margin: 20px 0 10px;
    text-shadow: 3px 3px 0px #000;
}
.profile .subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
}

/* --- Стили для "Монитора" и IFRAME --- */
.monitor {
    background: #2d2d2d;
    border: 15px solid #222;
    border-bottom-width: 30px;
    border-radius: 25px;
    padding: 15px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.4);
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
}
.monitor::before {
    content: ''; position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); width: 30%; height: 20px; background: #1e1e1e; border-radius: 0 0 10px 10px;
}
.monitor::after {
     content: ''; position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); width: 10%; height: 20px; background: linear-gradient(to top, #1a1a1a, #282828);
}
.game-iframe {
    width: 100%;
    height: 600px; /* Вы можете изменить высоту под вашу игру */
    display: block;
    border-radius: 5px;
    border: none;
    background: #000; /* Черный фон на время загрузки игры */
}
.fullscreen-button {
    position: absolute;
    bottom: -26px; /* Располагаем на нижней рамке монитора */
    right: 20px;
    
    font-family: 'VT323', monospace;
    font-size: 18px;
    text-decoration: none;
    color: var(--text-color);
    background: #3a3a3a;
    padding: 2px 12px;
    border-radius: 5px;
    border: 1px solid #555;
    transition: all 0.2s ease;
}
.fullscreen-button:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}


/* --- Timeline --- */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; background-color: var(--timeline-color); transform: translateX(-50%);
}
.timeline-item {
    position: relative; width: 50%; padding: 20px 40px; box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
    left: 0; padding-right: 60px; text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%; padding-left: 60px; text-align: left;
}
.timeline-item::after {
    content: ''; position: absolute; top: 40px; width: 20px; height: 20px; background-color: var(--background-color); border: 4px solid var(--primary-color); border-radius: 50%; z-index: 1; transition: all 0.3s ease;
}
.timeline-item:nth-child(odd)::after { right: -12px; }
.timeline-item:nth-child(even)::after { left: -12px; }
.timeline-item:hover::after {
    transform: scale(1.5); box-shadow: 0 0 15px var(--primary-color);
}
.timeline-content {
    background-color: var(--card-bg-color); padding: 20px; border-radius: 8px; border: 2px solid var(--timeline-color); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover .timeline-content {
    transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.timeline-year {
    color: var(--primary-color); font-family: 'Press Start 2P', cursive; font-size: 1.5rem; margin: 0 0 10px;
}
.timeline-content h3 {
    margin: 0 0 10px; font-size: 1.4rem;
}
.timeline-content p {
    margin: 0; line-height: 1.6;
}
.trailer-link {
    display: inline-block; margin-top: 15px; padding: 8px 15px; background-color: var(--primary-color); color: var(--background-color); text-decoration: none; font-weight: bold; border-radius: 5px; transition: all 0.2s ease-in-out;
}
.trailer-link:hover {
    transform: scale(1.05);
}

/* --- Hobby Section --- */
.hobby-section {
    background-color: var(--card-bg-color); border: 2px solid var(--timeline-color); border-radius: 8px; text-align: center; padding: 30px; margin-top: 40px;
}
.hobby-section h2 {
    font-family: 'Press Start 2P', cursive; color: var(--primary-color); margin: 0 0 15px;
}
.hobby-section p {
    margin: 0; line-height: 1.7; max-width: 60ch; margin-left: auto; margin-right: auto;
}

/* --- Footer --- */
.contact {
    text-align: center; margin-top: 60px; padding: 40px; background-color: var(--card-bg-color); border-radius: 8px;
}
.contact h2 {
    font-family: 'Press Start 2P', cursive; color: var(--primary-color);
}
.contact-links a {
    display: inline-block; color: var(--background-color); background-color: var(--primary-color); padding: 10px 20px; text-decoration: none; margin: 10px; border-radius: 5px; font-family: 'Press Start 2P', cursive; font-size: 14px; transition: all 0.2s ease-in-out;
}
.contact-links a:hover {
    transform: scale(1.1) rotate(-3deg); box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 20px; text-align: left; }
    .timeline-item:nth-child(odd) { left: 0; text-align: left; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 9px; }
    .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after { left: 8px; }
    .monitor { padding: 10px; border-width: 10px; border-bottom-width: 20px; }
    .game-iframe { height: 600px; }
}