/* ---------- БАЗА ---------- */

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

:root {
    --bg-deep: #030316;
    --bg-mid: #060822;
    --accent-1: #7df9ff;
    --accent-2: #ff7bff;
    --accent-3: #8cffc7;
    --text-main: #f7f7ff;
    --text-muted: #b7b9e6;
    --card-bg: rgba(9, 14, 40, 0.9);
    --card-border: rgba(125, 249, 255, 0.45);
    --radius-lg: 26px;
}

body {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1a1040 0, #030316 42%, #02010c 100%);
    color: var(--text-main);
    min-height: 100vh;
    padding: 24px 10px;
    overflow-x: hidden;
}

/* ---------- КОСМИЧЕСКИЙ ФОН ---------- */

.stars-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 20%, rgba(125, 249, 255, 0.25) 0, transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(255, 123, 255, 0.22) 0, transparent 55%),
        radial-gradient(circle at 10% 80%, rgba(140, 255, 199, 0.18) 0, transparent 55%);
    opacity: 0.7;
    z-index: -2;
}

.stars-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ffffff 1px, transparent 0);
    background-size: 3px 3px;
    opacity: 0.23;
    mix-blend-mode: screen;
    animation: twinkle 10s linear infinite alternate;
}

.nebula {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 90%, rgba(125, 249, 255, 0.16) 0, transparent 60%),
        radial-gradient(circle at 90% 30%, rgba(255, 123, 255, 0.14) 0, transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.7;
    z-index: -1;
}

/* ---------- ОБОЛОЧКА CV ---------- */

.cv-shell {
    max-width: 1100px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, #15172b 0, #060815 35%, #050515 100%);
    border-radius: 32px;
    padding: 26px 26px 24px;
    box-shadow:
        0 0 0 1px rgba(125, 249, 255, 0.35),
        0 28px 80px rgba(0, 0, 0, 0.9);
}

/* ---------- HEADER ---------- */

.top-bar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 26px;
}

.identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-orb {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: conic-gradient(
        from 120deg,
        var(--accent-1),
        var(--accent-2),
        var(--accent-3),
        var(--accent-1)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #020214;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow:
        0 0 32px rgba(125, 249, 255, 0.85),
        0 14px 30px rgba(0, 0, 0, 0.9);
}

.identity-text h1 {
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}

.role {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.location {
    font-size: 0.85rem;
    color: var(--accent-3);
    margin-top: 2px;
}

.nav-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.nav-chips a {
    font-size: 0.85rem;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(125, 249, 255, 0.5);
    color: var(--text-main);
    text-decoration: none;
    background: radial-gradient(circle at top, rgba(10, 18, 60, 0.9), rgba(4, 6, 24, 0.95));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.nav-chips a:hover {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #030213;
    box-shadow:
        0 0 18px rgba(125, 249, 255, 0.8),
        0 10px 28px rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

/* ---------- HERO ---------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 22px;
    margin-bottom: 20px;
}

.hero-photo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 12px;
    background: radial-gradient(circle at top, #3b2af0, #090b26 55%, #050515 100%);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(125, 249, 255, 0.5);
}

.photo-glow {
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 10% 20%, rgba(125, 249, 255, 0.2) 0, transparent 55%),
        radial-gradient(circle at 80% 90%, rgba(255, 123, 255, 0.15) 0, transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.7;
    pointer-events: none;
    animation: drift 18s linear infinite alternate;
}

.hero-photo {
    position: relative;
    width: 100%;
    display: block;
    border-radius: 20px;
}

/* ---------- КАРТОЧКИ ---------- */

.glass-card {
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    background: linear-gradient(
        135deg,
        rgba(13, 19, 56, 0.92),
        rgba(6, 10, 34, 0.98)
    );
    border: 1px solid var(--card-border);
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.85),
        0 0 22px rgba(70, 180, 255, 0.35);
    backdrop-filter: blur(16px);
}

.section-title {
    font-size: 0.96rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-1);
    margin-bottom: 10px;
}

.glass-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* ---------- Контакты ---------- */

.contact-card .contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.contact-list a {
    color: var(--accent-1);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* ---------- GRID ОСНОВНОЙ ---------- */

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
}

.left-col,
.right-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---------- ЧИПЫ И СПИСКИ ---------- */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.chip {
    font-size: 0.78rem;
    padding: 4px 11px;
    border-radius: 999px;
    background: radial-gradient(circle at top, rgba(125, 249, 255, 0.26), rgba(5, 10, 34, 0.95));
    border: 1px solid rgba(125, 249, 255, 0.5);
    color: var(--text-main);
}

.bullet-list {
    margin-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
}

/* ---------- ТАЙМЛАЙН ---------- */

.timeline-item {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(135, 165, 255, 0.4);
}

.timeline-item:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 4px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.timeline-header h3 {
    font-size: 0.95rem;
    font-weight: 500;
}

.place {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.date {
    font-size: 0.8rem;
    color: var(--accent-1);
    white-space: nowrap;
}

.timeline-text {
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ---------- ФУТЕР ---------- */

.footer {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(125, 249, 255, 0.35);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.studio-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--accent-1);
    padding: 4px 9px 4px 4px;
    border-radius: 999px;
    background: radial-gradient(circle at top, rgba(125, 249, 255, 0.18), rgba(6, 10, 34, 0.9));
    border: 1px solid rgba(125, 249, 255, 0.5);
    box-shadow: 0 0 18px rgba(125, 249, 255, 0.6);
}

.studio-brand img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
}

/* ---------- ADAPTIVE ---------- */

@media (max-width: 900px) {
    body {
        padding: 18px 8px;
    }

    .cv-shell {
        padding: 20px 16px;
        border-radius: 26px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-chips {
        justify-content: flex-start;
    }

    .hero,
    .main-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- АНИМАЦИИ ---------- */

@keyframes twinkle {
    from {
        opacity: 0.18;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0.4;
        transform: translate3d(-10px, 8px, 0);
    }
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(18px, -10px, 0) scale(1.05);
    }
}
