/* style.css - îíêìøè õÿîïþáêåììøè òþèê ÿ îåïåéê÷âþðåêåë ðåë */
:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #ff8c00;
    --card-bg: rgba(20,20,20,0.7);
    --navbar-bg: rgba(10,10,10,0.9);
    --border-color: rgba(255,140,0,0.2);
    --secondary-text: #aaa;
    --footer-bg: rgba(0,0,0,0.9);
    --header-color: #ff8c00;
    --shadow-color: rgba(255,140,0,0.3);
    --hover-bg: rgba(255,140,0,0.1);
}

[data-theme="light"] {
    --bg-color: #f5f5f5;
    --text-color: #222222;
    --accent-color: #ff6b00;
    --card-bg: rgba(255,255,255,0.9);
    --navbar-bg: rgba(255,255,255,0.95);
    --border-color: rgba(255,107,0,0.3);
    --secondary-text: #555555;
    --footer-bg: rgba(240,240,240,0.95);
    --header-color: #ff6b00;
    --shadow-color: rgba(255,107,0,0.3);
    --hover-bg: rgba(255,107,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-size: 0.9rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Ïðèæàòèå ôóòåðà: äåëàåì body flex-êîíòåéíåðîì */
    display: flex;
    flex-direction: column;
}

/* ===== äõìþëõâåÿõèé òíì ===== */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,140,0,0.05) 0%, transparent 30%),
                radial-gradient(circle at 70% 60%, rgba(255,140,0,0.05) 0%, transparent 30%),
                repeating-linear-gradient(45deg, rgba(255,140,0,0.02) 0px, rgba(255,140,0,0.02) 2px, transparent 2px, transparent 10px);
    animation: slowDrift 60s linear infinite;
    z-index: -2;
    opacity: 0.5;
}

[data-theme="light"] body::before {
    background: radial-gradient(circle at 30% 40%, rgba(255,107,0,0.03) 0%, transparent 30%),
                radial-gradient(circle at 70% 60%, rgba(255,107,0,0.03) 0%, transparent 30%),
                repeating-linear-gradient(45deg, rgba(255,107,0,0.01) 0px, rgba(255,107,0,0.01) 2px, transparent 2px, transparent 10px);
}

.parallax-icon {
    position: fixed;
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    animation: float 6s infinite;
    transform: none !important;
}

.parallax-icon:nth-child(2) { animation-delay: 0.5s; }
.parallax-icon:nth-child(3) { animation-delay: 1s; }
.parallax-icon:nth-child(4) { animation-delay: 1.5s; }
.parallax-icon:nth-child(5) { animation-delay: 2s; }

@keyframes slowDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(10%, 10%) rotate(5deg); }
}

/* ===== íÿìíáìøå þìõëþæõõ ===== */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    3% { opacity: 0.8; }
    6% { opacity: 1; }
    9% { opacity: 0.9; }
    12% { opacity: 1; }
    19% { opacity: 0.7; }
    21% { opacity: 1; }
    40% { opacity: 0.9; }
    42% { opacity: 1; }
}

@keyframes brokenNeon {
    0%, 100% { text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color); opacity: 1; }
    5% { text-shadow: 0 0 2px var(--accent-color), 0 0 5px var(--accent-color); opacity: 0.9; }
    7% { text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color); opacity: 1; }
    9% { text-shadow: none; opacity: 0.5; }
    11% { text-shadow: 0 0 15px var(--accent-color), 0 0 30px var(--accent-color); opacity: 1; }
    15% { text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color); opacity: 1; }
    20% { text-shadow: 0 0 2px var(--accent-color); opacity: 0.8; }
    22% { text-shadow: 0 0 15px var(--accent-color); opacity: 1; }
    25% { text-shadow: 0 0 5px var(--accent-color); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float3d {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(15px) rotate(-5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px var(--shadow-color); }
    50% { box-shadow: 0 0 25px var(--shadow-color); }
    100% { box-shadow: 0 0 10px var(--shadow-color); }
}

@keyframes borderPulse {
    0% { border-color: var(--border-color); }
    50% { border-color: var(--accent-color); }
    100% { border-color: var(--border-color); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpGlow {
    0% { opacity: 0; transform: translateY(50px); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes matrixRain {
    0% { background-position: 0 0; }
    100% { background-position: 0 30px; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes spin3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

@keyframes rgbShift {
    0% { color: var(--accent-color); text-shadow: 0 0 10px var(--accent-color); }
    33% { color: #ff44aa; text-shadow: 0 0 10px #ff44aa; }
    66% { color: #44aaff; text-shadow: 0 0 10px #44aaff; }
    100% { color: var(--accent-color); text-shadow: 0 0 10px var(--accent-color); }
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.3; }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes glow {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
    100% { filter: brightness(1); }
}

@keyframes borderGlow {
    0% { border-color: var(--border-color); box-shadow: 0 0 10px var(--shadow-color); }
    50% { border-color: var(--accent-color); box-shadow: 0 0 30px var(--shadow-color); }
    100% { border-color: var(--border-color); box-shadow: 0 0 10px var(--shadow-color); }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); color: gold; }
}

@keyframes cardPulse {
    0% { box-shadow: 0 0 0 0 var(--accent-color); }
    70% { box-shadow: 0 0 0 15px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes smoothScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes buttonPulse {
    0% { transform: scale(1); box-shadow: 0 10px 20px var(--shadow-color); }
    50% { transform: scale(1.05); box-shadow: 0 15px 30px var(--shadow-color); }
    100% { transform: scale(1); box-shadow: 0 10px 20px var(--shadow-color); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 30px var(--accent-color); }
    50% { box-shadow: 0 0 60px var(--accent-color), 0 0 90px var(--accent-color); }
    100% { box-shadow: 0 0 30px var(--accent-color); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-color); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes soft-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px var(--shadow-color); }
    100% { transform: scale(1); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes progressPulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

@keyframes megaPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-color); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px transparent; }
    100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== ùòòåéð "ÿêíëþììíè áøáåÿéõ" ===== */
.broken-sign {
    animation: brokenNeon 8s infinite;
    position: relative;
    display: inline-block;
    white-space: nowrap;
    color: var(--header-color);
}

@media (max-width: 600px) {
    .broken-sign {
        white-space: normal;
        font-size: 1.2rem;
    }
}

.broken-sign::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -2px 0 red;
    top: 0;
    color: var(--header-color);
    background: transparent;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim 3s infinite linear alternate;
}

.broken-sign::after {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    text-shadow: -2px 0 blue;
    top: 0;
    color: var(--header-color);
    background: transparent;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim-2 2s infinite linear alternate;
}

@keyframes noise-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(54px, 9999px, 84px, 0); }
    90% { clip: rect(45px, 9999px, 47px, 0); }
    95% { clip: rect(37px, 9999px, 20px, 0); }
    100% { clip: rect(4px, 9999px, 91px, 0); }
}

@keyframes noise-anim-2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    5% { clip: rect(90px, 9999px, 93px, 0); }
    10% { clip: rect(72px, 9999px, 77px, 0); }
    15% { clip: rect(32px, 9999px, 58px, 0); }
    20% { clip: rect(48px, 9999px, 92px, 0); }
    25% { clip: rect(43px, 9999px, 122px, 0); }
    30% { clip: rect(49px, 9999px, 67px, 0); }
    35% { clip: rect(24px, 9999px, 51px, 0); }
    40% { clip: rect(41px, 9999px, 34px, 0); }
    45% { clip: rect(73px, 9999px, 78px, 0); }
    50% { clip: rect(8px, 9999px, 117px, 0); }
    55% { clip: rect(21px, 9999px, 128px, 0); }
    60% { clip: rect(83px, 9999px, 100px, 0); }
    65% { clip: rect(41px, 9999px, 60px, 0); }
    70% { clip: rect(47px, 9999px, 137px, 0); }
    75% { clip: rect(16px, 9999px, 23px, 0); }
    80% { clip: rect(96px, 9999px, 41px, 0); }
    85% { clip: rect(57px, 9999px, 109px, 0); }
    90% { clip: rect(97px, 9999px, 81px, 0); }
    95% { clip: rect(60px, 9999px, 72px, 0); }
    100% { clip: rect(31px, 9999px, 96px, 0); }
}

/* ===== îïåêíñäåï ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-text {
    font-size: 3rem;
    color: #ff8c00;
    text-shadow: 0 0 20px #ff8c00;
    animation: pulse 1.5s infinite, rgbShift 6s infinite;
}

.preloader-sub {
    font-size: 0.8rem;
    color: #ff8c00;
    margin-top: 1rem;
    opacity: 0.8;
    animation: blink 2s infinite;
}

/* ===== íàûõå ùêåëåìðø ===== */
.site-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 1;
    transform: scale(1);
    width: 100%;
    /* Ïðèæàòèå ôóòåðà: ðàñòÿãèâàåìñÿ íà âñþ äîñòóïíóþ âûñîòó */
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    animation: rgbShift 6s infinite, slideUpGlow 1s ease;
    white-space: nowrap;
    color: var(--header-color);
}

@media (max-width: 600px) {
    .page-title {
        font-size: 1.2rem;
        white-space: normal;
    }
}

/* ===== ìíáíå éïþÿõáíå ëåì÷ ===== */
.navbar {
    position: sticky;
    top: 20px;
    z-index: 1000;
    max-width: 1300px;
    margin: 0 auto 30px;
    background: var(--navbar-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: glowPulse 4s infinite;
    transition: all 0.3s ease;
    flex-wrap: wrap;
}
/* Ëîãîòèï ñëåâà */
.nav-logo {
    flex-shrink: 0;
    margin-right: auto; /* Îòòàëêèâàåò âñ¸ îñòàëüíîå âïðàâî */
}

.nav-logo a {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-decoration: none;
    text-shadow: 0 0 15px var(--accent-color);
    letter-spacing: 1px;
    position: relative;
    padding: 0.4rem 0.8rem;
    background: var(--hover-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: float 5s infinite;
    white-space: nowrap;
    display: inline-block;
    pointer-events: auto;
    z-index: 1001;
}

.navbar:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.nav-logo a:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 5rem;  /* ÄÎÁÀÂÜÒÅ ÝÒÓ ÑÒÐÎÊÓ */
}

/* Íàâèãàöèîííûå ññûëêè */
.nav-links {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.65rem;
    padding: 0.4rem 0.6rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    white-space: nowrap;
    display: inline-block;
    pointer-events: auto;
    z-index: 1001;
}

[data-theme="light"] .nav-links a {
    background: rgba(0,0,0,0.03);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--hover-bg);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.nav-links a:hover {
    border-color: var(--accent-color);
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 150px;
    height: 150px;
}

.nav-links a.active {
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 20px var(--accent-color);
}

.nav-social {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.nav-social a {
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    pointer-events: auto;
    z-index: 1001;
}

[data-theme="light"] .nav-social a {
    background: rgba(0,0,0,0.03);
}

.nav-social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px) rotate(360deg);
    background: var(--hover-bg);
    border-color: var(--accent-color);
}

/* ëÍÀÕÊÝÌÍÅ ËÅÌ× */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    pointer-events: auto;
}

.mobile-menu-toggle span {
    width: 25px;  /* Óìåíüøåíî ñ 30px äî 25px */
    height: 2px;  /* Óìåíüøåíî ñ 3px äî 2px */
    background: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 1100px) {
    .navbar {
        padding: 0.5rem 0.8rem;
    }
    
    .nav-links a {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }
    
    .nav-logo a {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.7rem;
        padding: 0.5rem;
    }
}

/* ===== îåïåéê÷âþðåêý ðåëø ===== */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-left: 10px;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #2a2a2a;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px var(--shadow-color);
}

.slider:before {
    background-color: var(--accent-color);
    bottom: 4px;
    content: "";
    height: 22px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 22px;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

input:checked + .slider {
    background-color: #f0f0f0;
    border-color: #ff6b00;
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #ff6b00;
    box-shadow: 0 0 10px #ff6b00;
}

.slider .fa-sun {
    position: absolute;
    left: 8px;
    top: 8px;
    color: #ffaa00;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 0 5px #ffaa00;
    z-index: 1;
}

.slider .fa-moon {
    position: absolute;
    right: 8px;
    top: 8px;
    color: #aaddff;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s;
    text-shadow: 0 0 5px #aaddff;
    z-index: 1;
}

input:checked + .slider .fa-sun {
    opacity: 1;
}

input:checked + .slider .fa-moon {
    opacity: 0;
}

@media (max-width: 900px) {
    .theme-switch-wrapper {
        margin: 10px 0;
        justify-content: center;
        width: 100%;
    }
}

/* ===== öêþáìþú ÿðïþìõæþ ===== */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: slideUpGlow 1s ease;
}

.hero-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--hover-bg) 0%, transparent 70%);
    animation: rotateSlow 30s linear infinite;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-color), #ff5500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 50px var(--accent-color);
    animation: float3d 5s infinite;
}

.hero-avatar i {
    font-size: 3rem;
    color: #000;
}

.hero-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--accent-color);
    animation: flicker 5s infinite, slideIn 1s ease;
}

.hero-tagline {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--accent-color);
    display: inline-block;
    animation: slideIn 1.2s ease;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    animation: slideIn 1.4s ease;
}

.stat-item {
    text-align: center;
    padding: 0.8rem;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .stat-item {
    background: rgba(0,0,0,0.05);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: var(--hover-bg);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.stat-number {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
}

.stat-label {
    font-size: 0.55rem;
    color: var(--secondary-text);
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    animation: slideIn 1.6s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    animation: slideIn 1.8s ease;
    position: relative;
    z-index: 10;
}

.hero-button {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.hero-button.primary {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 10px 20px var(--shadow-color);
}

.hero-button.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.hero-button.secondary {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.hero-button.secondary:hover {
    background: var(--hover-bg);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px var(--shadow-color);
}

.hero-image {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideIn 1s ease;
    pointer-events: auto;
}

.latest-video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px var(--shadow-color);
    transition: all 0.3s ease;
}

.latest-video:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px var(--shadow-color);
}

.latest-video iframe {
    width: 100%;
    height: 100%;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    pointer-events: auto;
    z-index: 10;
}

[data-theme="light"] .quick-link {
    background: rgba(0,0,0,0.05);
}

.quick-link:hover {
    border-color: var(--accent-color);
    background: var(--hover-bg);
    transform: translateX(5px);
}

.quick-link i {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.quick-link:hover i {
    transform: rotate(360deg);
}

.quick-link span {
    font-size: 0.7rem;
    color: var(--secondary-text);
}

/* ÿÅÉÆÕÚ ÎÍßÊÅÄÌÕÓ ÁÕÄÅÍ */
.section-title {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 3rem 0 2rem;
    text-align: center;
    position: relative;
    animation: brokenNeon 10s infinite;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .section-title {
        font-size: 1.2rem;
        white-space: normal;
    }
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.section-title::before { left: 0; }
.section-title::after { right: 0; }

.latest-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.video-preview-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: float 6s infinite;
    position: relative;
}

.video-preview-card:nth-child(2) { animation-delay: 0.2s; }
.video-preview-card:nth-child(3) { animation-delay: 0.4s; }

.video-preview-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.video-preview-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #333;
    position: relative;
    overflow: hidden;
}

.video-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-preview-card:hover .video-preview-thumb img {
    transform: scale(1.1);
}

.video-preview-thumb::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-preview-card:hover .video-preview-thumb::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-preview-info {
    padding: 1rem;
}

.video-preview-title {
    color: var(--accent-color);
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}

.video-preview-meta {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-text);
    font-size: 0.55rem;
}

/* ÿÅÉÆÕÚ ÎÍÎÑÊÚÏÌØÓ ÎÏÍÅÉÐÍÁ */
.popular-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.project-mini-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-color);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.project-mini-card:hover {
    transform: translateX(10px) scale(1.02);
    border-color: var(--accent-color);
    background: var(--hover-bg);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.project-mini-icon {
    width: 50px;
    height: 50px;
    background: var(--hover-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all 0.4s ease;
}

.project-mini-card:hover .project-mini-icon {
    transform: rotate(360deg) scale(1.1);
    background: var(--accent-color);
    color: #000;
}

.project-mini-content h3 {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.project-mini-content p {
    color: var(--secondary-text);
    font-size: 0.6rem;
}

/* ===== ÿðïþìõöþ ëíõ õöïø ===== */
.dev-page {
    background: var(--bg-color);
    position: relative;
}

.dev-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,255,0,0.02) 0px, rgba(0,255,0,0.02) 2px, transparent 2px, transparent 8px);
    animation: matrixRain 20s linear infinite;
    pointer-events: none;
}

.dev-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid #0f0;
    box-shadow: 0 0 50px rgba(0,255,0,0.2);
    animation: glowPulse 4s infinite;
}

.dev-intro h1 {
    font-size: 2rem;
    color: #0f0;
    text-shadow: 0 0 20px #0f0, 0 0 40px #0f0;
    margin-bottom: 1rem;
    animation: flicker 4s infinite;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .dev-intro h1 {
        font-size: 1.2rem;
        white-space: normal;
    }
}

.dev-intro p {
    color: var(--text-color);
    font-size: 0.8rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.dev-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.dev-game-card {
    position: relative;
    height: 350px;
    perspective: 1500px;
    cursor: pointer;
    animation: float 6s infinite;
    overflow: visible;
}

.dev-game-card:nth-child(even) { animation-delay: 0.3s; }
.dev-game-card.center { grid-column: span 2; height: 400px; }

.dev-game-card:hover {
    animation: pulse 0.5s;
}

.dev-game-front,
.dev-game-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid;
    box-shadow: 0 20px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    z-index: 5;
}

.dev-game-front {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    transform: rotateY(0deg);
    z-index: 10;
}

.dev-game-back {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    transform: rotateY(180deg);
    text-align: center;
    z-index: 5;
}

.dev-game-card:hover .dev-game-front {
    transform: rotateY(180deg);
    z-index: 5;
}

.dev-game-card:hover .dev-game-back {
    transform: rotateY(360deg);
    z-index: 10;
}

.dev-game-front i {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s infinite;
    position: relative;
    z-index: 20;
}

.dev-game-front h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.dev-game-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    opacity: 0.5;
    color: inherit;
}

.dev-game-back p {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-color);
}

.dev-game-back .dev-game-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #0f0;
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #0f0;
    font-size: 0.7rem;
    animation: glow 2s infinite;
}

.dev-game-back .dev-game-link:hover {
    background: transparent;
    color: #0f0;
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 0 30px #0f0;
    animation: pulse 0.5s;
}

/* õÌÄÕÁÕÄÑÞÊÝÌØÅ ÆÁÅÐÞ ß ÄÍÎÍÊÌÕÐÅÊÝÌØËÕ ÞÌÕËÞÆÕÚËÕ */
.game-1 .dev-game-front,
.game-1 .dev-game-back { border-color: #0066ff; animation: borderGlow 3s infinite; }
.game-1 .dev-game-front i { color: #0066ff; animation: wave 3s infinite; }
.game-1 .dev-game-front h3 { color: #0066ff; }

.game-2 .dev-game-front,
.game-2 .dev-game-back { border-color: #ff4444; animation: borderGlow 3s infinite 0.2s; }
.game-2 .dev-game-front i { color: #ff4444; animation: wave 3s infinite 0.2s; }
.game-2 .dev-game-front h3 { color: #ff4444; }

.game-3 .dev-game-front,
.game-3 .dev-game-back { border-color: #ffaa00; animation: borderGlow 3s infinite 0.4s; }
.game-3 .dev-game-front i { color: #ffaa00; animation: wave 3s infinite 0.4s; }
.game-3 .dev-game-front h3 { color: #ffaa00; }

.game-4 .dev-game-front,
.game-4 .dev-game-back { border-color: #ffffff; animation: borderGlow 3s infinite 0.6s; }
.game-4 .dev-game-front i { color: #ffffff; animation: wave 3s infinite 0.6s; }
.game-4 .dev-game-front h3 { color: #ffffff; }

.game-5 .dev-game-front,
.game-5 .dev-game-back { border-color: gold; animation: borderGlow 2s infinite; }
.game-5 .dev-game-front i { color: gold; animation: wave 2s infinite, rotateSlow 10s linear infinite; }
.game-5 .dev-game-front h3 { color: gold; }
.game-5 .dev-game-number { color: gold; opacity: 0.8; }

/* äÊÚ ÀÅÊÍÈ ÉÞÏÐÍÂÉÕ, ÂÐÍÀØ ÐÅÉßÐ ÀØÊ ÁÕÄÅÌ */
.game-4 .dev-game-front h3,
.game-4 .dev-game-front i,
.game-4 .dev-game-back p,
.game-4 .dev-game-back .dev-game-link {
    color: #000;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.game-4 .dev-game-back {
    background: rgba(240,240,240,0.98);
    color: #000;
}

.game-4 .dev-game-back .dev-game-link {
    background: #000;
    color: #fff;
    border-color: #000;
}

.game-4 .dev-game-back .dev-game-link:hover {
    background: transparent;
    color: #000;
}

/* ===== ÿðïþìõöþ ê÷àõëøå õöïø ===== */
.games-page {
    background: var(--bg-color);
    position: relative;
}

.games-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255,0,255,0.05) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.games-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 50px var(--shadow-color);
    animation: glowPulse 4s infinite;
}

.games-header h1 {
    font-size: 2rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-color);
    margin-bottom: 1rem;
    animation: brokenNeon 10s infinite;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .games-header h1 {
        font-size: 1.2rem;
        white-space: normal;
    }
}

.games-header p {
    color: var(--secondary-text);
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-showcase-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 450px;
    animation: float 6s infinite;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-decoration: none;
    color: inherit;
    display: block;
    transform-origin: center;
}

.game-showcase-card:nth-child(2) { animation-delay: 0.2s; }
.game-showcase-card:nth-child(3) { animation-delay: 0.4s; }
.game-showcase-card:nth-child(4) { animation-delay: 0.6s; }
.game-showcase-card:nth-child(5) { animation-delay: 0.8s; }
.game-showcase-card:nth-child(6) { animation-delay: 1s; }

.game-showcase-card:hover {
    transform: translateY(-20px) scale(1.05) rotate(1deg);
    box-shadow: 0 30px 50px rgba(0,0,0,0.7), 0 0 40px currentColor;
    animation: cardPulse 1.5s infinite, float 3s infinite;
}

.game-showcase-card:hover .game-showcase-image i {
    transform: scale(1.3) rotate(360deg);
    filter: drop-shadow(0 0 40px currentColor);
    animation: bounce 0.8s ease infinite;
}

.game-showcase-card:hover .game-showcase-content h3 {
    transform: scale(1.1);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.game-showcase-card:hover .game-showcase-description {
    color: var(--text-color);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.game-showcase-card:hover .game-showcase-hours {
    background: currentColor;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 20px currentColor;
}

.game-showcase-card:hover .game-showcase-rating i {
    animation: starTwinkle 1s infinite;
}

.game-showcase-rating i:nth-child(1) { animation-delay: 0s; }
.game-showcase-rating i:nth-child(2) { animation-delay: 0.2s; }
.game-showcase-rating i:nth-child(3) { animation-delay: 0.4s; }
.game-showcase-rating i:nth-child(4) { animation-delay: 0.6s; }
.game-showcase-rating i:nth-child(5) { animation-delay: 0.8s; }

.game-showcase-card.cs2 { border-color: #ff8c00; color: #ff8c00; }
.game-showcase-card.beatsaber { border-color: #ff44aa; color: #ff44aa; }
.game-showcase-card.witcher { border-color: #aa44ff; color: #aa44ff; }
.game-showcase-card.hollow { border-color: #cccccc; color: #cccccc; }
.game-showcase-card.ghost { border-color: #ff3333; color: #ff3333; }
.game-showcase-card.hades { border-color: #ffaa00; color: #ffaa00; }

/* õßÎÏÞÁÊÅÌÕÅ ÄÊÚ CS2 - ÐÍÊÝÉÍ ÍÄÌÞ ÎÍÊÌÞÚ ÃÁÅÃÄÞ */
.game-showcase-card.cs2 .game-showcase-rating i:nth-child(1) { color: currentColor; }
.game-showcase-card.cs2 .game-showcase-rating i:nth-child(2) { color: currentColor; }
.game-showcase-card.cs2 .game-showcase-rating i:nth-child(3) { color: currentColor; }
.game-showcase-card.cs2 .game-showcase-rating i:nth-child(4) { color: currentColor; }
.game-showcase-card.cs2 .game-showcase-rating i:nth-child(5) { 
    color: rgba(255,140,0,0.3); 
    opacity: 0.5;
}

.game-showcase-overlay {
    display: none !important;
}

.cs2:hover .game-showcase-image {
    background: linear-gradient(135deg, #ff8c00, #ff5500);
}

.beatsaber:hover .game-showcase-image {
    background: linear-gradient(135deg, #ff44aa, #ff0088);
}

.witcher:hover .game-showcase-image {
    background: linear-gradient(135deg, #aa44ff, #7700ff);
}

.hollow:hover .game-showcase-image {
    background: linear-gradient(135deg, #cccccc, #999999);
}

.ghost:hover .game-showcase-image {
    background: linear-gradient(135deg, #ff3333, #cc0000);
}

.hades:hover .game-showcase-image {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
}

.game-showcase-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.game-showcase-image i {
    font-size: 5rem;
    transition: all 0.5s ease;
    animation: rotateSlow 20s linear infinite;
    filter: drop-shadow(0 0 20px currentColor);
    z-index: 2;
}

.game-showcase-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.game-showcase-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: currentColor;
    transition: all 0.3s ease;
}

.game-showcase-meta {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-text);
    font-size: 0.65rem;
    margin-bottom: 1rem;
}

.game-showcase-meta span {
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.game-showcase-description {
    color: var(--secondary-text);
    font-size: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.game-showcase-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.game-showcase-hours {
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid currentColor;
    font-size: 0.65rem;
    transition: all 0.3s ease;
}

.game-showcase-rating {
    color: currentColor;
}

.game-showcase-rating i {
    margin: 0 2px;
    animation: blink 3s infinite;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.game-showcase-card {
    height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.game-showcase-image {
    height: 180px;
    flex-shrink: 0;
}

.game-showcase-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.game-showcase-content h3 {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-showcase-meta {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.game-showcase-description {
    font-size: 0.7rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.game-showcase-stats {
    margin-top: auto;
    padding-top: 0.3rem;
    flex-shrink: 0;
}

.game-showcase-hours {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
}

/* ===== ÿðïþìõöþ îïíåéðø ===== */
.projects-page {
    background: var(--bg-color);
    position: relative;
}

.projects-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, rgba(139,69,19,0.1) 0px, rgba(139,69,19,0.1) 2px, transparent 2px, transparent 10px);
    pointer-events: none;
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 3px solid #8b5a2b;
    box-shadow: 0 0 50px rgba(139,90,43,0.3);
    animation: glowPulse 4s infinite;
}

.projects-header h1 {
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 2px 2px 0 #8b5a2b, 4px 4px 0 #5a3e1b;
    margin-bottom: 1rem;
    animation: flicker 6s infinite;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .projects-header h1 {
        font-size: 1.2rem;
        white-space: normal;
    }
}

.projects-header p {
    color: #ffdead;
    font-size: 0.9rem;
}

.projects-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.masonry-item {
    background: var(--card-bg);
    border: 4px solid #5a3e1b;
    border-radius: 30px 10px 30px 10px;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: float 8s infinite;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    text-decoration: none;
    color: inherit;
    display: block;
    z-index: 1;
}

.masonry-item:nth-child(even) {
    transform: rotate(0.5deg);
    animation: float 7s infinite reverse;
}

.masonry-item:nth-child(3n) {
    transform: rotate(-0.3deg);
    animation: float 9s infinite;
}

.masonry-item:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 3px #ffd700;
    border-color: #ffd700;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotateSlow 20s linear infinite;
    pointer-events: none;
}

.masonry-item:hover::before {
    opacity: 1;
}

.masonry-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,215,0,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.masonry-item:hover::after {
    transform: translateX(100%);
}

.masonry-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 0 #5a3e1b;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: wave 3s infinite;
    position: relative;
    z-index: 5;
    display: inline-block;
}

.masonry-item:hover .masonry-icon {
    transform: scale(1.2) rotate(10deg) translateY(-5px);
    filter: drop-shadow(0 0 20px #ffd700);
    animation: none;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-item:hover h3 {
    transform: scale(1.05);
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.masonry-item:hover p {
    color: var(--text-color);
    transform: translateX(5px);
    transition: all 0.4s ease;
}

.masonry-item:hover .masonry-tag {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.masonry-item:hover .masonry-link {
    transform: translateX(10px);
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.masonry-link {
    position: relative;
    display: inline-block;
    overflow: visible;
    z-index: 10;
}

.masonry-link i {
    position: relative;
    z-index: 11;
    transition: transform 0.3s ease;
}

.masonry-link:hover i {
    transform: translateX(5px) rotate(360deg);
}

.masonry-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffd700;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 9;
}

.masonry-link:hover::before {
    transform: scaleX(1);
}

.masonry-item.wide {
    grid-column: span 2;
    animation: float 6s infinite;
}

.masonry-item.tall {
    grid-row: span 2;
    animation: float 7s infinite reverse;
}

.projects-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-wood-card {
    background: var(--card-bg);
    border: 3px solid #5a3e1b;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: inset 0 -5px 0 #3a2a0a, 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    animation: float 5s infinite;
}

.stat-wood-card:nth-child(2) { animation-delay: 0.2s; }
.stat-wood-card:nth-child(3) { animation-delay: 0.4s; }
.stat-wood-card:nth-child(4) { animation-delay: 0.6s; }

.stat-wood-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: inset 0 -5px 0 #3a2a0a, 0 15px 25px rgba(0,0,0,0.4), 0 0 20px #ffd700;
    border-color: #ffd700;
}

.stat-wood-card i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.8rem;
    transition: all 0.3s;
}

.stat-wood-card:hover i {
    transform: rotate(360deg) scale(1.2);
}

.stat-wood-number {
    font-size: 1.8rem;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 2px 2px 0 #5a3e1b;
}

.stat-wood-label {
    color: #ffdead;
    font-size: 0.65rem;
    margin-top: 0.5rem;
}

/* ===== ÿðïþìõöþ íàí ëìå ===== */
.about-page {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    animation: glowPulse 4s infinite;
    pointer-events: auto;
}

.about-page h1 {
    font-size: 2rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
    animation: brokenNeon 10s infinite;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .about-page h1 {
        font-size: 1.2rem;
        white-space: normal;
    }
}

.about-page p {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--secondary-text);
}

.game-mini-card {
    background: var(--hover-bg);
    padding: 1.2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--accent-color);
    transition: all 0.3s;
    animation: float 5s infinite;
}

.game-mini-card:nth-child(2) { animation-delay: 0.2s; }
.game-mini-card:nth-child(3) { animation-delay: 0.4s; }

.game-mini-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 30px var(--shadow-color);
    border-color: var(--accent-color);
    background: var(--hover-bg);
}

.game-mini-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    transition: all 0.3s;
}

.game-mini-card:hover i {
    transform: rotate(360deg) scale(1.2);
}

.game-mini-card h3 {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.game-mini-card p {
    color: var(--secondary-text);
    font-size: 0.6rem;
}

.about-page .hero-button {
    margin: 0.5rem 0;
    display: inline-block;
    pointer-events: auto;
    z-index: 20;
}

.about-page .hero-button:hover {
    transform: translateY(-3px) scale(1.05);
}

.about-page a {
    transition: all 0.3s ease;
    pointer-events: auto;
}

.about-page a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    transform: translateX(5px);
}

.about-page .hero-button.primary {
    position: relative;
    overflow: hidden;
}

.about-page .hero-button.primary:hover {
    background: var(--accent-color);
    color: #000;
}

.about-page .hero-button.primary i,
.about-page .hero-button.primary span {
    position: relative;
    z-index: 2;
}

/* ===== ÿðïþìõöþ áõäåí ===== */
.videos-page {
    background: var(--bg-color);
}

.vk-video-container {
    margin-bottom: 2rem;
    animation: glowPulse 4s infinite;
}

.vk-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vk-video-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 6s infinite;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
}

.vk-video-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px currentColor;
    border-color: currentColor;
}

.video-thumb-container {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.vk-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, #333, #444);
    border-bottom: 2px solid currentColor;
}

.vk-video-item:hover .vk-video-thumb {
    transform: scale(1.1);
}

.vk-video-info {
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vk-video-title {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    color: var(--text-color) !important;
}

.vk-video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-text) !important;
    font-size: 0.55rem;
    margin-bottom: 0.8rem;
}

.vk-play-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #000 !important;
    color: #fff !important;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.65rem;
    transition: all 0.3s ease;
    border: 2px solid currentColor !important;
    width: 100%;
    text-align: center;
    margin-top: auto;
    position: relative;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.vk-play-button:hover {
    background: transparent !important;
    color: currentColor !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px currentColor;
}

/* ===== ìíáþú ÿðïþìõöþ òíðíöïþòõè ===== */
.photos-page {
    background: var(--bg-color);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.photo-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 6s infinite;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.photo-item:nth-child(2) { animation-delay: 0.2s; }
.photo-item:nth-child(3) { animation-delay: 0.4s; }
.photo-item:nth-child(4) { animation-delay: 0.6s; }
.photo-item:nth-child(5) { animation-delay: 0.8s; }
.photo-item:nth-child(6) { animation-delay: 1s; }
.photo-item:nth-child(7) { animation-delay: 1.2s; }
.photo-item:nth-child(8) { animation-delay: 1.4s; }

.photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--shadow-color);
}

.photo-item:hover .photo-image img {
    transform: scale(1.1);
}

.photo-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--accent-color);
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, #333, #444);
}

.photo-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.6rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

.photo-info {
    padding: 1rem;
    text-align: center;
}

.photo-date {
    color: var(--secondary-text);
    font-size: 0.6rem;
    margin-bottom: 0.5rem;
}

.photo-title {
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: bold;
}

/* ëÍÄÞÊÝÌÍÅ ÍÉÌÍ ÄÊÚ ÒÍÐÍ */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.photo-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    box-shadow: 0 0 50px var(--shadow-color);
}

.modal-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    margin: 0 auto;
    width: fit-content;
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    z-index: 10001;
}

.modal-footer .modal-category,
.modal-footer .modal-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer i {
    color: var(--accent-color);
    font-size: 1rem;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--accent-color);
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    z-index: 10002;
}

.modal-close:hover {
    transform: scale(1.2) rotate(90deg);
    background: var(--accent-color);
    color: #000;
}

.modal-category {
    position: absolute;
    bottom: -30px;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.7);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
}

.modal-date {
    position: absolute;
    bottom: -30px;
    right: 0;
    color: var(--secondary-text);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.7);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* ===== ìíáþú ÿðïþìõöþ ìíáíÿðåè ===== */
.news-page {
    background: var(--bg-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.news-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 6s infinite;
    padding: 1.5rem;
    position: relative;
    cursor: pointer;
}

.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.4s; }
.news-card:nth-child(4) { animation-delay: 0.6s; }
.news-card:nth-child(5) { animation-delay: 0.8s; }
.news-card:nth-child(6) { animation-delay: 1s; }

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--shadow-color);
}

.news-card:hover .news-title {
    color: var(--accent-color);
    transform: translateX(5px);
}

.news-category {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.6rem;
    font-weight: bold;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.news-topic {
    color: var(--secondary-text);
    font-size: 0.65rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--secondary-text);
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-date {
    color: var(--accent-color);
    font-size: 0.6rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i {
    font-size: 0.5rem;
}

/* ===== îíäáþê ===== */
footer {
    background: var(--footer-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-top: 2px solid var(--accent-color);
    margin-top: 4rem;
    position: relative;
    animation: glowPulse 4s infinite;
    flex-shrink: 0; /* íå äà¸ì ôóòåðó ñæèìàòüñÿ */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
}

.footer-social {
    display: flex;
    gap: 0rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--hover-bg);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 0 30px var(--accent-color);
}

.footer-theme {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.footer-theme .theme-switch-wrapper {
    margin: 0;
}


.footer-copyright {
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.65rem;
}

.footer-1up {
    font-size: 1.2rem;
    color: var(--accent-color);
    opacity: 0.5;
    animation: blink 2s infinite, spin3d 10s infinite;
}

.easter-egg {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.5rem;
    color: #333;
    cursor: pointer;
    z-index: 9999;
    pointer-events: auto;
}

.easter-egg:hover {
    color: var(--accent-color);
}

.easter-egg:hover .konami {
    display: block;
}

.konami {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #000;
    padding: 5px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.7rem;
    white-space: nowrap;
}

.mario-hidden {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 0.5rem;
    color: #333;
    cursor: pointer;
    z-index: 9999;
    pointer-events: auto;
}

.mario-hidden:hover {
    color: var(--accent-color);
    transform: rotate(360deg);
    transition: transform 0.5s;
}

.fade-up .hero-button.primary[style*="animation: heartbeat"] {
    animation: buttonPulse 2s infinite !important;
    transition: all 0.3s ease;
}

.fade-up .hero-button.primary[style*="animation: heartbeat"]:hover {
    animation: none !important;
    transform: scale(1.1);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.hero-button {
    transition: all 0.3s ease;
    will-change: transform;
}

.hero-button:hover {
    transition: all 0.3s ease;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-effect {
    background: var(--navbar-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
}

.pulse-animation {
    animation: pulse-glow 2s infinite;
}

.typing-animation {
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

.hover-grow {
    transition: all 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.1) translateY(-5px);
    background: var(--hover-bg);
}

.fade-in-text {
    animation: fadeIn 2s ease-in;
}

.pulse-button {
    animation: soft-pulse 2s infinite;
}

.glow-button {
    position: relative;
    overflow: hidden;
}

.glow-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--hover-bg) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    animation: rotate 10s linear infinite;
}

.glow-button:hover::after {
    opacity: 1;
}

.video-hover-effect {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-hover-effect:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 0 50px var(--shadow-color);
}

.slide-in {
    animation: slideInRight 0.5s ease forwards;
    opacity: 0;
}

.hover-3d {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hover-3d:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg);
    box-shadow: 0 30px 40px rgba(0,0,0,0.5), 0 0 30px var(--shadow-color);
}

.video-progress {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #ff5500);
    border-radius: 3px;
    animation: progressPulse 2s infinite;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: var(--accent-color);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    border: 1px solid var(--accent-color);
    z-index: 10;
}

.neon-border {
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.neon-border:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--shadow-color), inset 0 0 20px var(--hover-bg);
}

.rotating-icon {
    transition: all 0.4s ease;
}

.project-mini-card:hover .rotating-icon {
    transform: rotate(360deg) scale(1.2);
}

.project-badge {
    display: inline-block;
    background: var(--hover-bg);
    color: var(--accent-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.5rem;
    margin-top: 5px;
    border: 1px solid var(--accent-color);
}

.subscribe-section {
    margin: 4rem 0;
}

.subscribe-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(40,20,0,0.9));
    border-radius: 40px;
    padding: 3rem;
    text-align: center;
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.subscribe-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--hover-bg) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.subscribe-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.subscribe-content h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.subscribe-content p {
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

.subscribe-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-bubble {
    background: var(--hover-bg);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    color: var(--accent-color);
    animation: float 3s infinite;
}

.stat-bubble:nth-child(2) { animation-delay: 0.2s; }
.stat-bubble:nth-child(3) { animation-delay: 0.4s; }

.mega-pulse {
    animation: megaPulse 2s infinite;
}

.glass-footer {
    background: var(--footer-bg);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--border-color);
}

.social-icon-hover {
    transition: all 0.3s ease;
}

.social-icon-hover:hover {
    transform: translateY(-5px) scale(1.2);
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px var(--accent-color));
}

img {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    position: relative;
}

/* ===== þäþîðþæõú ===== */
@media (max-width: 1100px) {
    .games-grid,
    .vk-video-grid,
    .latest-videos-grid,
    .photos-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-section,
    .popular-projects,
    .dev-games-grid,
    .games-grid,
    .projects-masonry,
    .projects-stats,
    .vk-video-grid,
    .latest-videos-grid,
    .photos-grid,
    .news-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .dev-game-card.center {
        grid-column: auto;
    }
    
    .masonry-item.wide,
    .masonry-item.tall {
        grid-column: auto;
        grid-row: auto;
    }
    
    .hero-content,
    .hero-image {
        padding: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .dev-intro h1,
    .games-header h1,
    .projects-header h1,
    .about-page h1 {
        font-size: 1.2rem;
    }
    
    .dev-game-card {
        height: 300px;
    }
    
    .dev-game-card.center {
        height: 350px;
    }
    
    .game-showcase-card {
        height: 400px;
    }
    
    .subscribe-stats {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .nav-logo a {
        font-size: 1rem;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .game-mini-card {
        padding: 1rem;
    }
    
    .game-mini-card i {
        font-size: 2rem;
    }
    
    .game-mini-card h3 {
        font-size: 0.8rem;
    }
    
    .subscribe-card {
        padding: 1.5rem;
    }
    
    .subscribe-content h3 {
        font-size: 1rem;
    }
}

/* ===== éñïÿíï-ÿáåðíáíè ëåâ ===== */
body {
    cursor: none !important;
}

a, button, .clickable, .hero-button, .vk-play-button, 
.video-preview-card, .game-showcase-card, .masonry-item,
.project-mini-card, .quick-link, .photo-item, .news-card,
input, textarea, select, [contenteditable="true"] {  /* äîáàâëåíû ïîëÿ ââîäà */
    cursor: none !important;
}

.cursor-saber {
    position: fixed;
    width: 15px;
    height: 70px;
    background: linear-gradient(180deg, #ffffff, #4affff, #0066ff, #003366);
    border-radius: 8px 8px 2px 2px;
    filter: blur(0.8px);
    box-shadow: 0 0 15px #00aaff, 0 0 30px #0066ff, 0 0 45px #0033aa;
    pointer-events: none;
    z-index: 99999;
    transform-origin: top center;
    transform: translate(0%, 0%) rotate(-5deg);
    transition: height 0.05s ease-out, width 0.05s ease-out, filter 0.05s ease-out;
    animation: lightsaber-hum 0.15s infinite alternate;
}

[data-theme="light"] .cursor-saber {
    box-shadow: 0 0 15px #0088ff, 0 0 30px #0044cc, 0 0 45px #002288;
    background: linear-gradient(180deg, #ffffff, #0088ff, #0044cc, #002288);
}

.cursor-saber::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 20px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(3px);
}

.cursor-saber::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 26px;
    background: linear-gradient(135deg, #aaa, #555, #222);
    border-radius: 3px 3px 8px 8px;
    border: 2px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

@keyframes lightsaber-hum {
    0% {
        filter: blur(1px);
        box-shadow: 0 0 20px #00aaff, 0 0 40px #0066ff;
        height: 100px;
    }
    100% {
        filter: blur(2px);
        box-shadow: 0 0 25px #00aaff, 0 0 50px #0066ff, 0 0 70px #0033aa;
        height: 102px;
    }
}

.cursor-saber.click-effect {
    animation: saber-slash 0.2s ease-out;
}

@keyframes saber-slash {
    0% {
        transform: translate(-25%, -25%) rotate(-10deg) scale(1);
        filter: brightness(2);
    }
    50% {
        transform: translate(-25%, -25%) rotate(0deg) scale(1.2);
        filter: brightness(3);
        opacity: 0.9;
    }
    100% {
        transform: translate(-25%, -25%) rotate(-10deg) scale(1);
        filter: brightness(1);
    }
}

a:hover ~ .cursor-saber,
button:hover ~ .cursor-saber {
    width: 30px;
    height: 120px;
    filter: brightness(1.3);
}

.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: rgba(100, 200, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    filter: blur(2px);
    animation: trail-fade 0.4s forwards;
}

@keyframes trail-fade {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

@media (max-width: 768px) {
    .modal-footer {
        flex-direction: column;
        gap: 10px;
        bottom: 20px;
        padding: 12px 20px;
        font-size: 0.8rem;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }
}

a, button, .clickable, .hero-button, .vk-play-button, 
.video-preview-card, .game-showcase-card, .masonry-item,
.project-mini-card, .quick-link, .photo-item, .news-card,
input, textarea, select, [contenteditable="true"] {
    cursor: none !important;
}

/* ===== îïíòõêý ===== */
.profile-page {
    background: var(--bg-color);
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #3498db; /* ÖÍÊÑÀÍÈ */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 30px var(--shadow-color);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar:hover::after {
    content: '\f030'; /* èêîíêà êàìåðû (Font Awesome) */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    pointer-events: none; /* ÷òîáû êëèê ïðîõîäèë ñêâîçü overlay íà ñàìó àâàòàðêó */
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.profile-points {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.profile-points span {
    color: gold;
    font-weight: bold;
}

.profile-edit-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.profile-edit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-color);
}

/* äÍßÐÕÔÅÌÕÚ */
.achievements-section {
    margin-top: 2rem;
}

.achievements-section h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.achievement-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.achievement-card.achieved {
    border-color: gold;
    background: rgba(255,215,0,0.1);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
}

.achievement-info {
    flex: 1;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* òÍÏËÞ ÁÓÍÄÞ */
.login-page {
    background: var(--bg-color);
}

.login-container {
    max-width: 400px;
    margin: 2rem auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.login-container h1 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
}

.login-form input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
}

.login-form button {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.login-form button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--accent-color);
}

.login-switch {
    text-align: center;
    margin-top: 1rem;
    color: var(--secondary-text);
}

.login-switch a {
    color: var(--accent-color);
    cursor: pointer;
}

.error-message {
    color: #ff4444;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* ===== ñêñâüåììíå ëåì÷ ===== */
.navbar {
    padding: 0.5rem 1rem;
}

.nav-links {
    gap: 0.3rem;
}

.nav-links a {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}

/* éÌÍÎÉÞ "åÙT" */
.more-dropdown {
    position: relative;
    display: inline-block;
}

.more-dropdown > a {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    min-width: 150px;
    z-index: 1002;
    padding: 0.5rem 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.dropdown-content a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.7rem;
    transition: background 0.2s;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: var(--hover-bg);
    color: var(--accent-color);
}

.more-dropdown:hover .dropdown-content {
    display: block;
}

/* þÁÞÐÞÏÉÞ Á ËÅÌ× */
.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    margin-left: 60px;
    cursor: pointer;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-avatar i {
    font-size: 1rem;
    color: white;
}

/* þÄÞÎÐÞÆÕÚ ÄÊÚ ËÍÀÕÊÝÌØÓ */
@media (max-width: 900px) {
    .navbar {
        padding: 0.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .more-dropdown {
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .more-dropdown.active .dropdown-content {
        display: block;
    }
    
    .nav-avatar {
        margin: 10px 0 0 0;
    }
}

/* ===== ÄÎÏÎËÍÈÒÅËÜÍÎÅ ÑÊÐÛÒÈÅ ÊÓÐÑÎÐÀ ===== */
/* Ïåðåêëþ÷àòåëü òåìû è âñå åãî ÷àñòè */
.theme-switch-wrapper,
.theme-switch,
.theme-switch *,
.slider,
.slider *,
#theme-toggle,
.theme-switch label,
.theme-switch input {
    cursor: none !important;
}

/* Êíîïêà âõîäà/àâàòàðêà â ìåíþ */
.nav-avatar,
.nav-avatar *,
.nav-avatar i,
.nav-avatar img,
.nav-avatar span,
.nav-avatar div {
    cursor: none !important;
}

/* Âñå ññûëêè â ìåíþ, âêëþ÷àÿ "Åù¸" è âûïàäàþùåå ìåíþ */
.nav-links a,
.more-dropdown > a,
.dropdown-content a,
.nav-links * {
    cursor: none !important;
}

/* Âñå êíîïêè è êëèêàáåëüíûå ýëåìåíòû */
button,
a,
[onclick],
[role="button"],
input[type="checkbox"],
input[type="radio"],
label,
select,
option {
    cursor: none !important;
}

/* Äîïîëíèòåëüíàÿ çàùèòà äëÿ âñåõ ýëåìåíòîâ, êîòîðûå ìîãóò ïåðåîïðåäåëèòü êóðñîð */
* {
    cursor: none !important;
}

/* Åäèíñòâåííîå èñêëþ÷åíèå - åñëè ãäå-òî íóæåí òåêñòîâûé êóðñîð, íî ìû åãî òîæå ñêðûâàåì */
input, textarea, [contenteditable="true"] {
    cursor: none !important;
}

/* Óáèðàåì ñòàíäàðòíûé êóðñîð äëÿ âñåãî äîêóìåíòà */
html, body {
    cursor: none !important;
}

/* ===== ÑÊÐÛÒÈÅ ÊÓÐÑÎÐÀ ÍÀ ÂÈÄÅÎ ÏËÅÅÐÅ È ÊÀÐÒÎ×ÊÀÕ ===== */
/* VK âèäåî ïëååð è âñ¸ âíóòðè íåãî */
.vk-video-container iframe,
.vk-video-container *,
.vk-player,
.vk-player *,
iframe[src*="vkvideo.ru"],
iframe[src*="vk.com"],
iframe[src*="vk.ru"] {
    cursor: none !important;
}

/* Êàðòî÷êè âèäåî íà ñòðàíèöå âèäåî */
.vk-video-item,
.vk-video-item *,
.video-preview-card,
.video-preview-card *,
.latest-video,
.latest-video *,
.video-thumb-container,
.vk-video-thumb,
.vk-video-info,
.vk-video-title,
.vk-video-meta,
.vk-play-button,
.video-duration,
.video-progress,
.progress-bar {
    cursor: none !important;
}

/* Âñå êíîïêè "Ñìîòðåòü" íà êàðòî÷êàõ */
.vk-play-button,
.vk-play-button *,
.hero-button,
.hero-button * {
    cursor: none !important;
}

/* Äîïîëíèòåëüíî äëÿ âñåõ èíòåðàêòèâíûõ ýëåìåíòîâ íà ñòðàíèöå âèäåî */
.videos-page *,
.games-page *,
.index-page *,
.about-page *,
.projects-page *,
.photos-page *,
.news-page *,
.profile-page *,
.login-page * {
    cursor: none !important;
}

/* ===== ÒÎÑÒ ÄÎÑÒÈÆÅÍÈÉ ===== */
.achievement-toast {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background: #000000 !important;
    border-left: 8px solid #FFD700 !important;
    border-radius: 16px !important;
    padding: 20px 25px !important;
    color: #ffffff !important;
    max-width: 380px !important;
    min-width: 320px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.5) !important;
    z-index: 999999 !important;
    animation: toastAppear 0.4s ease-out, toastDisappear 0.3s ease-in 3.7s forwards !important;
    pointer-events: none !important;
    /* Äëÿ òåêñòà - Press Start 2P, äëÿ èêîíîê - ñèñòåìíûé */
    font-family: 'Press Start 2P', 'Courier New', monospace !important;
    border: 2px solid #FFD700 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    line-height: 1.5 !important;
}

@keyframes toastAppear {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastDisappear {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.achievement-toast .toast-icon {
    font-size: 2.5rem !important;
    filter: drop-shadow(0 0 10px gold) !important;
    line-height: 1 !important;
    /* Äëÿ èêîíîê èñïîëüçóåì ñèñòåìíûé øðèôò */
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Android Emoji', 'EmojiOne Color', 'Twemoji Mozilla', 'system-ui', sans-serif !important;
}

.achievement-toast .toast-content {
    flex: 1 !important;
}

.achievement-toast .toast-title {
    font-size: 0.8rem !important;
    color: #FFD700 !important;
    margin-bottom: 8px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-family: 'Press Start 2P', 'Courier New', monospace !important;
    word-break: break-word !important;
}

.achievement-toast .toast-desc {
    font-size: 0.65rem !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    font-family: 'Press Start 2P', 'Courier New', monospace !important;
    word-break: break-word !important;
    opacity: 0.9 !important;
}

.achievement-toast .toast-points {
    font-size: 0.6rem !important;
    color: #FFD700 !important;
    display: inline-block !important;
    padding: 4px 10px !important;
    background: rgba(255, 215, 0, 0.1) !important;
    border-radius: 20px !important;
    border: 1px solid #FFD700 !important;
    font-family: 'Press Start 2P', 'Courier New', monospace !important;
}

/* Àäàïòàöèÿ äëÿ ìîáèëüíûõ */
@media (max-width: 600px) {
    .achievement-toast {
        bottom: 15px !important;
        right: 15px !important;
        left: 15px !important;
        min-width: auto !important;
        padding: 15px !important;
    }
    
    .achievement-toast .toast-icon {
        font-size: 2rem !important;
    }
    
    .achievement-toast .toast-title {
        font-size: 0.7rem !important;
    }
    
    .achievement-toast .toast-desc {
        font-size: 0.55rem !important;
    }
    
    .achievement-toast .toast-points {
        font-size: 0.5rem !important;
    }
}