:root {
    --bg: #ffffff;
    --glass: rgba(255, 255, 255, 0.4); /* Полупрозрачный белый для эффекта стекла */
    --border: rgba(0, 0, 0, 0.08);
    --accent-1: #6366f1;
    --accent-2: #ec4899;
    --text: #111111;
    --text-dim: #555555; /* Сделали более читаемым на белом фоне */
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin-left: 20px;
    margin-right: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-blur { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.blob { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(130px); opacity: 0.08; } /* Уменьшили opacity для нежности */
.blob-1 { background: var(--accent-1); top: -15%; left: -10%; animation: float 18s infinite alternate; }
.blob-2 { background: var(--accent-2); bottom: -15%; right: -10%; animation: float 18s infinite alternate-reverse; animation-delay: -3s; }

@keyframes float { from { transform: translate(0,0) scale(1); } to { transform: translate(100px, 50px) scale(1.1); } }

.container { max-width: 1400px; margin: 0 auto; padding: 0 50px; }

/* --- ОБНОВЛЕННАЯ НАВИГАЦИЯ (СВЕТЛАЯ) --- */
.glass-nav {
    position: sticky;
    top: 15px;
    z-index: 1000;
    margin: 15px auto 0;
    width: calc(100% - 30px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.6); /* Белая подложка с прозрачностью */
    backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    gap: 15px;
}

.nav-logo {
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    color: var(--text);
}

.nav-menu-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--text); } /* В светлой теме ховер идет в черный */

.lang-picker {
    background: rgba(0, 0, 0, 0.05); /* Темный полупрозрачный фон */
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 50px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    outline: none;
}

/* --- АДАПТИВ ПОД МОБИЛКУ --- */
@media (max-width: 768px) {
    .glass-nav {
        top: 10px;
        width: calc(100% - 20px);
        border-radius: 20px;
    }

    .nav-content {
        padding: 12px 15px;
        flex-wrap: nowrap;
    }

    .nav-logo {
        font-size: 0.75rem;
    }

    .nav-menu-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-menu-wrapper::-webkit-scrollbar {
        display: none;
    }

    .nav-links {
        gap: 15px;
        padding: 0 10px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}

.main-layout { display: flex; gap: 50px; margin-top: 50px; align-items: flex-start; }

.glass-card { 
    background: var(--glass); backdrop-filter: blur(30px); 
    border: 1px solid var(--border); border-radius: 35px; 
    transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative; overflow: hidden;
}
.glass-card:hover { border-color: rgba(0,0,0,0.15); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.sidebar { width: 380px; position: sticky; top: 110px; padding: 50px 40px; text-align: center; }
.avatar-wrap { width: 160px; height: 160px; margin: 0 auto 35px; border-radius: 45px; overflow: hidden; border: 2px solid var(--border); }
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 8px; color: var(--text); }
.tag { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin-bottom: 25px; }
.desc { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; margin-bottom: 40px; padding: 0 10px; }

.socials { margin-bottom: 30px; display: flex; justify-content: center; gap: 10px; }
.social-btn { display: inline-block; padding: 12px 24px; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.9rem; transition: 0.3s; background: rgba(0,0,0,0.02); }
.social-btn:hover { background: var(--text); color: var(--bg); transform: scale(1.05); }

.availability { font-size: 0.8rem; color: var(--text-dim); display: flex; align-items: center; justify-content: center; gap: 9px; }
.pulse { width: 9px; height: 9px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 12px #22c55e; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.content { flex: 1; }
.section { padding: 50px; margin-bottom: 50px; }
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 40px; letter-spacing: -0.5px; color: var(--text); }

.skills-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-tag { 
    padding: 14px 28px; background: rgba(0,0,0,0.02); 
    border: 1px solid var(--border); border-radius: 100px; 
    font-weight: 600; font-size: 0.9rem; position: relative; transition: 0.3s; color: var(--text-dim);
}
.skill-tag:hover { color: var(--text); background: rgba(0,0,0,0.05); border-color: var(--accent-1); }

/* TIMELINE STYLES */
.timeline-container { position: relative; padding-left: 30px; border-left: 1px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 40px; }
.time-marker { position: absolute; left: -36px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-1); box-shadow: 0 0 10px var(--accent-1); }
.time-content h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--text); }
.time-desc { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }

.project-item { display: block; text-decoration: none; color: inherit; margin-bottom: 50px; overflow: hidden; }
.project-img-wrap { width: 100%; height: 380px; overflow: hidden; border-bottom: 1px solid var(--border); }
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.project-item:hover img { transform: scale(1.06); }
.project-body { padding: 35px; }

/* ФОРМА (СВЕТЛАЯ) */
.glass-form { display: flex; flex-direction: column; gap: 20px; }
.input-row { display: flex; gap: 20px; }
.glass-form input, .glass-form textarea { width: 100%; background: rgba(0,0,0,0.02); border: 1px solid var(--border); padding: 18px 25px; border-radius: 18px; color: var(--text); outline: none; font-family: inherit; }
.glass-form input::placeholder, .glass-form textarea::placeholder { color: #999; }
.glass-form input:focus, .glass-form textarea:focus { border-color: var(--accent-1); background: rgba(0,0,0,0.04); }

button[type="submit"] { background: var(--text); color: var(--bg); border: none; padding: 20px; border-radius: 18px; font-weight: 800; cursor: pointer; transition: 0.3s; }
button[type="submit"]:hover { background: var(--accent-1); color: white; transform: translateY(-3px); }

.reveal { opacity: 0; transform: translateY(40px); transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
    .container { padding: 0 25px; }
    .main-layout { flex-direction: column; gap: 30px; }
    .sidebar { width: 100%; position: relative; top: 0; padding: 40px 20px; }
    .input-row { flex-direction: column; }
}

/* Улучшение дат в таймлайне */
.time-date {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--accent-2);
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

/* Пульсирующий эффект маркера */
.time-marker {
    box-shadow: 0 0 0 rgba(99, 102, 241, 0.4);
    animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.gallereja {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.gallereja img {
    width: 90%;
}