:root {
    --accent:
        <?=$color ?>;
    --bg: #0e0a15;
    --text: #eee;
    --muted: #b8aacb
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, system-ui;
    background: var(--bg);
    color: var(--text);
    padding: 24px;
    overflow: hidden;
    position: relative
}

.cv {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
    background: rgba(26, 19, 38, 0.85);
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(0, 0, 0, .4);
    overflow: hidden
}

h1 {
    outline: none;
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    position: relative;
    z-index: 2
}

.subtitle {
    margin-top: 6px;
    color: var(--muted)
}

.section {
    margin-top: 34px
}

.sec-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent)
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px
}

.card {
    background: rgba(36, 24, 50, 0.6);
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
    transition: .3s
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5)
}

.card-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--accent)
}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    margin-top: 6px;
    color: var(--muted)
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1e0f36, #5522A0, #2d1b4b);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    z-index: 1;
    filter: blur(50px)
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.snowflake {
    position: fixed;
    top: -10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: fall linear infinite;
    z-index: 3
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.8
    }
}

.header-snow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.header-snow canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.snow-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 59px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="200" > <path d="M0 60 Q 200 110 400 60 T 800 60 T 1200 60 T 1600 60 T 1920 60 V200 H0 Z" fill="white" /> </svg>') no-repeat center top / cover;
    z-index: 999;
    pointer-events: none;
    transform: rotate(180deg);
}

@keyframes fallHeader {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1
    }

    100% {
        transform: translateY(60px) rotate(360deg);
        opacity: 0
    }
}

.discord-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.discord-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--accent);
}

.discord-username {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}