:root {
    --primary-color: #00c853;
    --text-color: #333;
    --bg-color: rgba(0, 0, 0, 0.9);
    --card-bg: rgba(255, 255, 255, 0.95);
    --hover-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    transition: var(--hover-transition);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.left-section, .right-section {
    padding: 40px;
}

.left-section {
    flex: 1;
}

.right-section {
    background: var(--primary-color);
    color: white;
    width: 40%;
}

.name {
    font-size: 2.5em;
    margin-bottom: 10px;
    transition: var(--hover-transition);
}

.name:hover {
    transform: scale(1.02);
}

.title {
    color: #666;
    margin-bottom: 20px;
}

.skills {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.code-icon {
    color: var(--primary-color);
    font-weight: bold;
}

.description, .project-info {
    margin-bottom: 20px;
    transition: var(--hover-transition);
}

.description:hover, .project-info:hover {
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    position: relative;
}

.social-links svg {
    fill: currentColor;
}

/* Контейнер для иконки email */
.email-link {
    position: relative;
    display: inline-block; 
}

/* Подсказка (tooltip) по умолчанию скрыта.
   Показ и скрытие управляются через JS (main.js). */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: var(--hover-transition);
    white-space: nowrap;
    margin-bottom: 5px;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.collaboration-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    transition: var(--hover-transition);
}

.collaboration-title:hover {
    transform: scale(1.05);
}

.contact-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    margin: 20px 0;
    transition: var(--hover-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn i {
    font-size: 1.2em;
}

.education {
    margin-top: 40px;
    transition: var(--hover-transition);
}

.education:hover {
    transform: translateY(-5px);
}

.education-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .card {
        flex-direction: column;
    }
    
    .right-section {
        width: 100%;
    }
    
    .left-section, .right-section {
        padding: 30px;
    }
}
