@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/montserrat-v10-latin-regular.woff2) format('woff2');
}

:root {
    --bg: #0a0e16;
    --surface: rgba(255, 255, 255, 0.035);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8ecf3;
    --muted: #8b95a7;
    --accent: #00adef;
    --warm: #8b5cf6;
    --ok: #3ddc97;
}

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

html {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 48px 16px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before, body::after {
    content: '';
    position: fixed;
    z-index: -1;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.16;
    pointer-events: none;
}

body::before {
    top: -25vmax;
    left: -20vmax;
    background: var(--accent);
    animation: drift 24s ease-in-out infinite alternate;
}

body::after {
    bottom: -30vmax;
    right: -20vmax;
    background: var(--warm);
    opacity: 0.1;
    animation: drift 30s ease-in-out infinite alternate-reverse;
}

a {
    color: inherit;
}

.card {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.card > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.card > :nth-child(1) { animation-delay: 0.05s; }
.card > :nth-child(2) { animation-delay: 0.15s; }
.card > :nth-child(3) { animation-delay: 0.25s; }
.card > :nth-child(4) { animation-delay: 0.35s; }
.card > :nth-child(5) { animation-delay: 0.45s; }
.card > :nth-child(6) { animation-delay: 0.55s; }
.card > :nth-child(7) { animation-delay: 0.65s; }
.card > :nth-child(8) { animation-delay: 0.75s; }

.photo {
    position: relative;
    width: 148px;
    height: 148px;
    margin-bottom: 28px;
    border-radius: 50%;
    padding: 4px;
    isolation: isolate;
}

.photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), transparent 35%, var(--warm) 60%, transparent 85%, var(--accent));
    animation: spin 8s linear infinite;
}

.photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--bg);
    object-fit: cover;
}

.name {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.role {
    margin-top: 10px;
    color: var(--muted);
    font-size: 1.02rem;
}

.role span {
    white-space: nowrap;
}

.role a {
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
    transition: background-size 0.3s ease;
}

.role a:hover, .role a:focus-visible {
    background-size: 100% 1px;
}

.accent {
    color: var(--accent);
    padding: 0 4px;
}

.summary {
    max-width: 44ch;
    margin-top: 24px;
    color: #c3cad6;
    font-size: 0.95rem;
}

.award {
    max-width: 44ch;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.82rem;
}

.award a {
    color: #c3cad6;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.award a:hover, .award a:focus-visible {
    color: var(--text);
    text-decoration-color: var(--accent);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    list-style: none;
}

.skills li {
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.skills li:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.85rem;
}

.dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
}

.dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--ok);
    animation: pulse 2s ease-out infinite;
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.link svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
}

.link:hover, .link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(0, 173, 239, 0.5);
    background: rgba(0, 173, 239, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0, 173, 239, 0.5);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.code {
    font-size: 4rem;
    line-height: 1;
    background: linear-gradient(120deg, var(--accent), var(--warm));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes drift {
    to { transform: translate(8vmax, 6vmax) scale(1.1); }
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.7; }
    to { transform: scale(3); opacity: 0; }
}

@media (max-width: 480px) {
    .card {
        padding: 36px 20px;
        border-radius: 20px;
    }

    .photo {
        width: 120px;
        height: 120px;
    }

}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
