:root {
    --bg: #0e0a0a;
    --bg-deep: #0a0606;
    --blood-oxidized: #2a0000;
    --blood-deep: #6e0000;
    --blood-fresh: #b00000;
    --blood-vibrant: #d40000;
    --blood-bright: #ff1a1a;
    --gold: #a08848;
    --gold-light: #d4b060;
    --text-primary: #f0e8dc;
    --text-secondary: #b0a494;
    --text-muted: #6a6058;
    --border: rgba(160, 136, 72, 0.22);
    --border-blood: rgba(212, 0, 0, 0.25);
    --card-bg: rgba(16, 8, 8, 0.97);
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

::selection {
    background: var(--blood-deep);
    color: var(--text-primary);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    background-image: radial-gradient(ellipse 120% 80% at 20% 30%, rgba(100, 0, 0, 0.04) 0%, transparent 50%), radial-gradient(ellipse 80% 60% at 80% 70%, rgba(80, 0, 0, 0.03) 0%, transparent 50%);
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#bloodCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    filter: url(#viscous-goo) drop-shadow(0 0 8px rgba(0, 0, 0, 0.9));
    will-change: transform;
}

.atmosphere {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(80, 0, 0, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

.texture-overlay {
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px);
    z-index: 3;
    pointer-events: none;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    background: rgba(12, 7, 7, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(30px);
}

.site-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blood-vibrant), transparent);
    opacity: 0.4;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-size: 0.52rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding: 20px 32px;
    position: relative;
    transition: color 0.4s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--blood-vibrant);
    transition: width 0.4s var(--ease);
    box-shadow: 0 0 8px var(--blood-vibrant);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::before,
.nav-link:hover::before {
    width: 100%;
}

main {
    position: relative;
    z-index: 100;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 60px 80px;
    position: relative;
}

.section::before {
    content: attr(data-roman);
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-family: 'Cinzel', serif;
    font-size: 0.45rem;
    letter-spacing: 6px;
    color: var(--text-muted);
    opacity: 0.3;
    pointer-events: none;
}

.section-hero {
    perspective: 2000px;
}

.section-content {
    width: 100%;
    max-width: 920px;
    position: relative;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 60px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    padding: 52px 44px;
    position: relative;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 1.4s var(--ease), border-color 0.6s ease, box-shadow 0.6s ease;
    box-shadow:
        0 0 0 1px rgba(139, 112, 64, 0.05),
        0 40px 120px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(139, 112, 64, 0.08);
}

.card::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(139, 112, 64, 0.07);
    pointer-events: none;
    z-index: 0;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.card:hover {
    transform: translateY(-6px) rotateX(2deg) rotateY(1deg);
    border-color: rgba(139, 112, 64, 0.3);
    box-shadow:
        0 0 0 1px rgba(139, 112, 64, 0.1),
        0 60px 160px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(192, 0, 0, 0.06),
        inset 0 1px 0 rgba(139, 112, 64, 0.12);
}

.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(139, 112, 64, 0.25);
    border-style: solid;
}

.card-corner.tl {
    top: 6px;
    left: 6px;
    border-width: 1px 0 0 1px;
}

.card-corner.tr {
    top: 6px;
    right: 6px;
    border-width: 1px 1px 0 0;
}

.card-corner.bl {
    bottom: 6px;
    left: 6px;
    border-width: 0 0 1px 1px;
}

.card-corner.br {
    bottom: 6px;
    right: 6px;
    border-width: 0 1px 1px 0;
}

.red-john-logo {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 200px;
    opacity: 0.18;
    pointer-events: none;
    mix-blend-mode: hard-light;
    filter: grayscale(0.1) contrast(1.3);
    transform: rotate(-12deg);
    animation: rj-pulse 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes rj-pulse {

    0%,
    100% {
        opacity: 0.18;
        transform: rotate(-12deg) scale(1);
    }

    50% {
        opacity: 0.26;
        transform: rotate(-11.5deg) scale(1.02);
    }
}

.card:hover .red-john-logo {
    opacity: 0.35;
}

.nickname {
    font-family: 'Cinzel', serif;
    font-size: 1.85rem;
    letter-spacing: 6px;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.nickname-spiral {
    font-family: 'Segoe UI Symbol', 'Noto Sans', 'Apple Symbols', sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    color: var(--blood-vibrant);
    text-shadow: 0 0 12px rgba(212, 0, 0, 0.6);
}

.nickname:hover {
    animation: glitch 0.3s steps(1) infinite;
}

@keyframes glitch {
    0% {
        text-shadow: -2px 0 var(--blood-vibrant), 2px 0 rgba(0, 255, 255, 0.5);
    }

    25% {
        text-shadow: 2px 0 var(--blood-vibrant), -2px 0 rgba(0, 255, 255, 0.5);
    }

    50% {
        text-shadow: -2px 2px var(--blood-vibrant), 2px -2px rgba(0, 255, 255, 0.5);
    }

    75% {
        text-shadow: 2px -2px var(--blood-vibrant), -2px 2px rgba(0, 255, 255, 0.5);
    }

    100% {
        text-shadow: none;
    }
}

.real-name {
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    letter-spacing: 7px;
    color: var(--blood-vibrant);
    margin-bottom: 18px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.quote {
    font-family: 'EB Garamond', serif;
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 32px;
    letter-spacing: 0.5px;
    line-height: 1.7;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.quote-line {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    max-width: 100%;
    margin: 0 auto;
    animation: typing var(--duration, 1.5s) steps(var(--chars, 40)) var(--delay, 1s) 1 normal both;
}

.quote-line:last-child {
    border-right: 1px solid var(--blood-vibrant);
    animation:
        typing var(--duration, 1.5s) steps(var(--chars, 40)) var(--delay, 1s) 1 normal both,
        blink 0.8s step-end var(--blink-delay, 2s) infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.photo-box {
    width: 170px;
    height: 170px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.photo-box::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid var(--border);
}

.photo-box::after {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(139, 112, 64, 0.06);
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.5) brightness(0.55) sepia(0.15);
    transition: 1.2s var(--ease);
    display: block;
}

.photo-box:hover img {
    filter: grayscale(0.4) contrast(1.2) brightness(0.85);
    transform: scale(1.04);
}

.psych-stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.stat-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.52rem;
    letter-spacing: 2px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: rgba(8, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.stat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 112, 64, 0.06), transparent);
    transition: left 0.6s ease;
}

.stat-badge:hover::before {
    left: 100%;
}

.stat-badge b {
    color: var(--gold-light);
    margin-left: 4px;
}

.meta-data {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: 'Cinzel', serif;
    font-size: 0.52rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 36px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.flag-ru {
    width: 18px;
    height: 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flag-ru .s {
    height: 33.3%;
    width: 100%;
}

.white {
    background: #fff;
}

.blue {
    background: #0039a6;
}

.red {
    background: #d52b1e;
}

.music-player {
    background: rgba(8, 0, 0, 0.4);
    border: 1px solid var(--border-blood);
    border-top: 1px solid rgba(192, 0, 0, 0.12);
    padding: 10px 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.music-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blood-vibrant), transparent);
    opacity: 0.3;
}

.track-info {
    font-family: 'Cinzel', serif;
    font-size: 0.48rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    flex: 1;
}

.track-name {
    color: var(--blood-vibrant);
    font-weight: 700;
}

.waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 18px;
}

.wave-bar {
    width: 2px;
    background: linear-gradient(to top, var(--blood-deep), var(--blood-vibrant));
    border-radius: 1px;
    animation: wave-pulse 1.4s ease-in-out infinite;
    animation-play-state: paused;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.4s;
}

.wave-bar:nth-child(6) {
    animation-delay: 0.3s;
}

.wave-bar:nth-child(7) {
    animation-delay: 0.2s;
}

.wave-bar:nth-child(8) {
    animation-delay: 0.1s;
}

@keyframes wave-pulse {

    0%,
    100% {
        height: 3px;
        opacity: 0.25;
    }

    50% {
        height: 16px;
        opacity: 1;
    }
}

.play-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(192, 0, 0, 0.5);
    background: rgba(80, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.play-btn:hover {
    background: rgba(80, 0, 0, 0.5);
    border-color: var(--blood-vibrant);
    box-shadow: 0 0 12px rgba(192, 0, 0, 0.3);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 7px;
    border-color: transparent transparent transparent var(--blood-vibrant);
    margin-left: 1px;
}

.play-btn.playing::after {
    border: none;
    width: 6px;
    height: 8px;
    background: linear-gradient(to right,
        var(--blood-vibrant) 0%,
        var(--blood-vibrant) 33%,
        transparent 33%,
        transparent 67%,
        var(--blood-vibrant) 67%);
    margin-left: 0;
}

.socials-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    position: relative;
    z-index: 1;
}

.social-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.48rem;
    letter-spacing: 2px;
    padding: 14px 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(15, 0, 0, 0.2);
    transition: all 0.5s var(--ease);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--blood-oxidized);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
    z-index: 0;
}

.social-btn span {
    position: relative;
    z-index: 1;
}

.social-btn:hover {
    color: var(--text-primary);
    border-color: rgba(192, 0, 0, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(192, 0, 0, 0.15);
}

.social-btn:hover::before {
    transform: translateY(0);
}

.hidden-assets {
    position: absolute;
    width: 0;
    height: 0;
    visibility: hidden;
    overflow: hidden;
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 60px 0;
    position: relative;
}

.divider::before {
    content: '✦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.5rem;
    color: var(--gold);
    background: var(--bg);
    padding: 0 12px;
    opacity: 0.4;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-bottom: 60px;
    background: var(--border);
    border: 1px solid var(--border);
}

.about-block {
    padding: 28px 30px;
    background: rgba(8, 3, 3, 0.95);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.about-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--blood-vibrant);
    transition: height 0.4s ease;
}

.about-block:hover {
    background: rgba(14, 4, 4, 0.98);
}

.about-block:hover::before {
    height: 100%;
}

.about-label {
    font-family: 'Cinzel', serif;
    font-size: 0.48rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    opacity: 0.7;
    font-weight: 400;
}

.about-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.mindset-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 50px;
    background: var(--border);
    border: 1px solid var(--border);
}

.mindset-item {
    display: flex;
    gap: 22px;
    padding: 22px 30px;
    background: rgba(8, 3, 3, 0.95);
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mindset-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, var(--border-blood), transparent);
}

.mindset-item:hover {
    background: rgba(14, 4, 4, 0.98);
}

.mindset-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.85;
}

.mindset-item b {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.52rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 400;
}

.mindset-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.interests-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 50px;
}

.interest-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.48rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 9px 16px;
    background: rgba(12, 4, 4, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.interest-badge:hover {
    color: var(--text-secondary);
    border-color: var(--border);
    background: rgba(20, 6, 6, 0.8);
}

.plans-list {
    padding: 32px;
    border: 1px solid var(--border);
    background: rgba(8, 3, 3, 0.8);
    position: relative;
}

.plans-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.2;
}

.plan-item {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    line-height: 1.5;
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.plan-item:last-child {
    border-bottom: none;
}

.plan-item:hover {
    color: var(--text-secondary);
    padding-left: 8px;
}

.stack-group {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(139, 112, 64, 0.07);
}

.stack-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stack-label {
    font-family: 'Cinzel', serif;
    font-size: 0.48rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    opacity: 0.65;
    font-weight: 400;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-row img {
    height: 26px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: grayscale(0.3) sepia(0.1);
}

.badge-row img:hover {
    opacity: 1;
    filter: none;
    transform: translateY(-2px);
}

.category-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    margin-bottom: 40px;
    background: var(--border);
    border: 1px solid var(--border);
}

.tab-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.44rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(8, 3, 3, 0.95);
    padding: 13px 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--blood-vibrant);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-secondary);
    background: rgba(14, 4, 4, 0.98);
}

.tab-btn.active {
    color: var(--text-primary);
    background: rgba(20, 5, 5, 0.98);
}

.tab-btn.active::before {
    transform: scaleX(1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1px;
    background: var(--border);
}

.project-card {
    padding: 28px 26px 24px;
    background: rgba(8, 3, 3, 0.97);
    cursor: pointer;
    transition: background 0.3s ease;
    animation: fadeUp 0.35s ease both;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(192, 0, 0, 0.04);
    transition: width 0.4s var(--ease);
}

.project-card:hover {
    background: rgba(14, 4, 4, 0.99);
}

.project-card:hover::before {
    width: 100%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.project-emoji {
    font-size: 1.3rem;
}

.project-cat-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blood-vibrant);
    opacity: 0.4;
    margin-top: 6px;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-cat-dot {
    opacity: 1;
    box-shadow: 0 0 6px var(--blood-vibrant);
}

.project-name {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.project-card:hover .project-name {
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-arrow {
    font-size: 0.7rem;
    color: var(--blood-vibrant);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
}

.modal.open {
    display: flex;
}

.modal-inner {
    background: rgba(8, 3, 3, 0.99);
    border: 1px solid var(--border);
    max-width: 480px;
    width: 90%;
    padding: 52px 44px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(139, 112, 64, 0.05),
        0 60px 140px rgba(0, 0, 0, 0.95);
}

.modal-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.2;
}

.modal-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blood-vibrant), transparent);
    opacity: 0.15;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--blood-vibrant);
}

.modal-emoji {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.modal-name {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 400;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.modal-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 22px;
    transition: all 0.35s var(--ease);
    display: block;
    position: relative;
    overflow: hidden;
}

.modal-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--blood-oxidized);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease);
}

.modal-link:hover {
    color: var(--text-primary);
    border-color: var(--border-blood);
}

.modal-link:hover::before {
    transform: translateX(0);
}

.modal-link span {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 48px;
    background: var(--border);
    border: 1px solid var(--border);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 16px;
    text-decoration: none;
    background: rgba(8, 3, 3, 0.97);
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--blood-vibrant);
    transition: width 0.4s var(--ease);
}

.contact-card:hover {
    background: rgba(14, 4, 4, 0.99);
}

.contact-card:hover::before {
    width: 60%;
}

.contact-icon {
    font-size: 1.3rem;
}

.contact-icon-svg {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: grayscale(0.3) brightness(0.8);
    transition: filter 0.3s ease;
    flex-shrink: 0;
}

.contact-card:hover .contact-icon-svg {
    filter: grayscale(0) brightness(1.1);
}

.contact-icon-svg[src$='.png'] {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    filter: brightness(0.75) saturate(0.8);
}

.contact-card:hover .contact-icon-svg[src$='.png'] {
    filter: brightness(1) saturate(1);
}

.fluent {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

.fluent-sm {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
}

.emoji-glyph {
    width: 1em;
    height: 1em;
    object-fit: contain;
    vertical-align: -0.15em;
    display: inline-block;
}

.emoji-glyph+.emoji-glyph {
    margin-left: 3px;
}

.contact-label {
    font-family: 'Cinzel', serif;
    font-size: 0.44rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.6;
}

.contact-value {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-align: center;
}

.contact-card:hover .contact-value {
    color: var(--text-secondary);
}

.license-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.7;
    padding: 24px;
    border: 1px solid rgba(139, 112, 64, 0.07);
}

.license-note a {
    color: var(--blood-fresh);
    text-decoration: none;
    transition: color 0.3s ease;
}

.license-note a:hover {
    color: var(--blood-bright);
}

@media (max-width: 1280px) {
    .section {
        padding: 100px 40px 80px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-tabs {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .section {
        padding: 90px 32px 70px;
    }

    .nav-link {
        padding: 18px 22px;
        font-size: 0.48rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .section::before {
        display: none;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .site-nav {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .nav-link {
        padding: 16px 16px;
        white-space: nowrap;
    }

    .section {
        padding: 88px 20px 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 40px 26px;
        max-width: 100%;
    }

    .modal-inner {
        padding: 36px 24px;
    }

    .category-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .tab-btn {
        padding: 11px 6px;
        font-size: 0.4rem;
    }

    .socials-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nickname {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 0.48rem;
        letter-spacing: 6px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}