:root {
    --bg-color: #0a120c;
    --card-bg: #0f1a11;
    --text-main: #c8e6d0;
    --text-muted: #85a894;
    --accent: #4caf50;
    --accent-sec: #81c784;
    --border: #243029;
    --accent-hover: #388e3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.lang-switch {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: #fff;
}

.lang-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.header-text {
    flex: 1;
}

.header-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: #333;
    background-image: url('/assets/photo.jpg');
    background-size: cover;
    background-position: center;
    border: 3px solid var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.header-photo:hover {
    transform: scale(1.05) rotate(2deg);
}

h1 { margin: 0 0 10px 0; color: #fff; font-size: 2.5rem; }
h2 { margin: 0 0 15px 0; color: var(--accent); font-weight: 400; }

.language {
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.flag-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
}

.intro { color: var(--text-muted); margin-bottom: 20px; }

.highlight {
    color: var(--accent-sec);
    font-weight: bold;
}

.contacts a {
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 15px;
}

.contact-link {
    color: var(--accent);
    border: 1px solid var(--accent);
}

.contact-link:hover {
    background: var(--accent);
    color: #000;
}

.download-btn {
    background-color: var(--accent);
    color: #000 !important;
    border: 1px solid var(--accent);
}

.download-btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

section { margin-bottom: 50px; }

.section-title {
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #fff;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card h3 { margin-top: 0; color: var(--accent-sec); }

.skill-group { margin-bottom: 15px; }

.skill-label { font-weight: bold; color: #fff; display: block; margin-bottom: 5px; }

.tag {
    display: inline-block;
    background: #17241a;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin: 0 5px 5px 0;
    color: #ddd;
    border: 1px solid transparent;
}

.tag:hover {
    border-color: #2f4a3a;
    background: #1c2d21;
}

.exp-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
}

.exp-item h3 { margin-top: 0; color: #fff; }

.exp-item ul { padding-left: 20px; color: var(--text-muted); }

.exp-item li { margin-bottom: 8px; }

@media (max-width: 768px) {
    header {
        text-align: center;
        justify-content: center;
    }
    .header-photo {
        margin: 0 auto;
    }
    h1 {
        font-size: 2rem;
    }
    .language {
        justify-content: center;
    }
}

.typing-cursor::after {
    content: '▋';
    display: inline-block;
    vertical-align: bottom;
    margin-left: 2px;
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing-done::after {
    display: none;
}