* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

img, a {
    -webkit-user-drag: none;
    user-drag: none;
}

::selection {
    background: transparent;
}

body {
    overflow: hidden;
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #0a0a0a;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

@media (min-aspect-ratio: 16/9) {
    .video-background video {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-background video {
        width: auto;
        height: 100%;
    }
}

.content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin-left: auto;
}

.glass-card {
    background: rgba(20, 20, 30, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 20px;
    padding: 24px 30px;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.username {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.95);
}

.typing-text {
    min-height: 30px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.icon-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(30, 30, 40, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon:hover {
    transform: scale(1.15);
    background: rgba(40, 40, 50, 0.4);
    color: rgba(255, 255, 255, 1);
}

.icon-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-wrapper:hover .icon-tooltip {
    opacity: 1;
}

/* Цвета соцсетей при наведении */
.icon.telegram:hover  { background: rgba(38, 165, 228, 0.35);  border-color: rgba(38, 165, 228, 0.6); }
.icon.tiktok:hover    { background: rgba(37, 244, 238, 0.25);  border-color: rgba(254, 44, 85, 0.6); }
.icon.discord:hover   { background: rgba(88, 101, 242, 0.4);   border-color: rgba(88, 101, 242, 0.7); }
.icon.youtube:hover   { background: rgba(255, 0, 0, 0.35);     border-color: rgba(255, 0, 0, 0.6); }

/* Кнопки-ссылки */
.link-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 12px;
    background: rgba(30, 30, 40, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.25s ease;
}

.link-btn i {
    width: 18px;
    text-align: center;
    opacity: 0.85;
}

.link-btn:hover {
    background: rgba(50, 50, 65, 0.45);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}


.music-player {
    background: rgba(20, 20, 30, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 15px;
    padding: 15px;
    width: 350px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.music-cover {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.music-info {
    flex-grow: 1;
}

.music-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.95);
}

.music-artist {
    font-size: 12px;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

.music-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(30, 30, 40, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(40, 40, 50, 0.4);
    transform: scale(1.1);
    color: rgba(255, 255, 255, 1);
}

.bio-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 350px;
    height: 100vh;
    background: rgba(15, 15, 25, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 24px 28px;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.4);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.bio-panel.active {
    left: 0;
}

.bio-content {
    padding-top: 40px;
}

.bio-content h2 {
    font-size: 20px;
    margin-bottom: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
}

.bio-content .bio-subtitle {
    margin-top: 22px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(30, 30, 40, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.info-item:hover {
    background: rgba(50, 50, 65, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.info-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.25;
}

.info-label {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.6;
}

.info-value {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.bio-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.close-bio {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(30, 30, 40, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.close-bio:hover {
    transform: rotate(90deg);
    background: rgba(40, 40, 50, 0.4);
    color: rgba(255, 255, 255, 1);
}

.bio-panel::-webkit-scrollbar {
    width: 6px;
}

.bio-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.bio-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.bio-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .glass-card, .music-player {
        width: 90%;
    }
    
    .bio-panel {
        width: 85%;
        left: -100%;
    }
    
    .video-background video {
        left: 0;
        transform: translate(0, -50%);
    }
    
    .content {
        align-items: center;
        margin-left: 0;
    }
}
/* ===== Страница My Projects ===== */
body.page-projects {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

.projects-content {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 40px 50px;
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.projects-main {
    flex: 1;
    min-width: 0;
    margin-top: 130px;
}

.projects-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 18px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 12px;
    background: rgba(20, 20, 30, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s ease;
}

.back-btn:hover {
    background: rgba(50, 50, 65, 0.45);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

.projects-title {
    margin: 0;
    font-size: 34px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.95);
}

.projects-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 330px));
    gap: 16px;
}

.project-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    isolation: isolate;
    background: linear-gradient(135deg, #1a0508 0%, #3a0a10 45%, #14060a 100%);
    border: 1px solid rgba(255, 90, 60, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* размытый логотип как фон блока */
.project-bg {
    position: absolute;
    inset: -30px;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.4);
    opacity: 0.35;
    transform: scale(1.1);
    transition: opacity 0.3s ease, transform 0.6s ease;
}

/* огненное свечение снизу + затемнение сверху */
.project-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 120%, rgba(255, 80, 30, 0.45), transparent 55%),
        radial-gradient(circle at 100% -20%, rgba(180, 20, 50, 0.35), transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 110, 70, 0.55);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 32px rgba(255, 70, 40, 0.25);
}

.project-card:hover .project-bg {
    opacity: 0.5;
    transform: scale(1.2);
}

.project-logo {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 13px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.project-info {
    flex-grow: 1;
    min-width: 0;
}

.project-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.project-link {
    font-size: 12px;
    font-weight: 300;
    opacity: 0.75;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-open {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
    transition: all 0.3s ease;
}

.project-card:hover .project-open {
    background: rgba(255, 90, 60, 0.35);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .projects-content {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 24px;
        padding: 30px 20px;
    }

    .projects-side {
        order: -1;
        align-items: center;
        text-align: center;
    }

    .projects-main {
        flex: none;
        width: 100%;
        margin-top: 0;
    }

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

/* ===== Gclicker ===== */
.project-clicker {
    background: linear-gradient(135deg, #050d1a 0%, #0a2540 50%, #06121f 100%);
    border-color: rgba(60, 170, 255, 0.25);
}

.project-clicker .project-glow {
    background:
        radial-gradient(circle at 15% 120%, rgba(30, 160, 255, 0.4), transparent 55%),
        radial-gradient(circle at 100% -20%, rgba(0, 220, 200, 0.28), transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
}

.project-clicker:hover {
    border-color: rgba(80, 190, 255, 0.55);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 32px rgba(40, 160, 255, 0.28);
}

.project-clicker:hover .project-open {
    background: rgba(60, 170, 255, 0.35);
}

.project-logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.92);
}

.project-desc {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 4px;
    opacity: 0.9;
}

/* ===== FART UA ===== */
.project-fart {
    background: linear-gradient(135deg, #0d0618 0%, #2a0f4a 50%, #0b0613 100%);
    border-color: rgba(170, 100, 255, 0.28);
}

.project-fart .project-glow {
    background:
        radial-gradient(circle at 15% 120%, rgba(150, 70, 255, 0.45), transparent 55%),
        radial-gradient(circle at 100% -20%, rgba(255, 60, 160, 0.28), transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
}

.project-fart:hover {
    border-color: rgba(190, 130, 255, 0.6);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 32px rgba(150, 80, 255, 0.3);
}

.project-fart:hover .project-open {
    background: rgba(160, 90, 255, 0.35);
}

/* ===== Часы (киевское время) ===== */
.clock-card {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    min-width: 220px;
    padding: 14px 20px;
    border-radius: 15px;
    background: rgba(20, 20, 30, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.clock-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    opacity: 0.7;
}

.clock-time {
    font-size: 30px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.clock-date {
    font-size: 12px;
    font-weight: 300;
    opacity: 0.85;
}

/* ===== Статус сервера FART UA ===== */
.server-status {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.status-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #888;
}

.server-status.online .status-dot {
    background: #3ddc84;
    box-shadow: 0 0 8px rgba(61, 220, 132, 0.8);
}

.server-status.offline .status-dot {
    background: #ff4d4d;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.7);
}

.status-name {
    font-weight: 500;
}

.status-info {
    margin-left: auto;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

/* на телефонах часы и статус скрыты */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
    .clock-card {
        display: none !important;
    }
}
