:root {
    --banner-glow: rgba(255, 255, 255, 0.18);
    --pfp-glow: rgba(255, 255, 255, 0.22);
    --accent: rgba(255, 255, 255, 0.12);
    --accent-soft: rgba(255, 255, 255, 0.06);
    --border-tint: rgba(255, 255, 255, 0.1);
    --accent-color: rgba(72, 187, 180, 0.85);
    --accent-color-soft: rgba(72, 187, 180, 0.25);
}

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

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.nav-arrow:focus-visible,
.nav-home:focus-visible,
.social-button:focus-visible,
.discord-join-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

/* Ghost cursor – only on devices with precise pointer (no touch). Force no system cursor anywhere. */
@media (hover: hover) and (pointer: fine) {
    *,
    *::before,
    *::after {
        cursor: none !important;
    }
    /* Force cursor none on iframes (Spotify/Discord embeds). Inner iframe content may still show its cursor in some browsers. */
    iframe,
    .spotify-embed-wrap,
    .spotify-embed-wrap iframe,
    .music-player-spotify,
    .music-player-spotify * {
        cursor: none !important;
    }
}

.cursor-dot,
.cursor-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    top: 0;
    left: 0;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.15s ease-out, height 0.15s ease-out, box-shadow 0.15s ease-out;
}

.cursor-dot.cursor-hover {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.cursor-ghost {
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse 80% 100% at 50% 40%, rgba(255, 255, 255, 0.35) 0%, rgba(200, 200, 200, 0.2) 40%, transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: ghostFloat 2.5s ease-in-out infinite;
    transition: transform 0.2s ease-out, width 0.2s ease-out, height 0.2s ease-out, opacity 0.2s ease-out;
}

.cursor-ghost.cursor-hover {
    width: 44px;
    height: 44px;
    background: radial-gradient(ellipse 80% 100% at 50% 40%, var(--accent-color-soft) 0%, rgba(255, 255, 255, 0.35) 40%, transparent 70%);
}

@media (hover: hover) and (pointer: fine) {
    .cursor-dot { display: block; }
    .cursor-ghost { display: block; }
}

@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ghost { display: none !important; }
}

@keyframes ghostFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

body {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: -webkit-fill-available;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    position: relative;
    font-weight: 500;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

.bg-animated {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #0a0a0a;
    overflow: hidden;
}

/* Black heart GIF background – add your own as img/bg.gif */
.bg-animated::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: url('img/bg.gif') center center / cover no-repeat;
    opacity: 0.9;
}

.bg-animated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%);
    pointer-events: none;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.overlay-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.overlay-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: blink 1.5s infinite;
    transition: opacity 0.35s ease;
}

.overlay-loading {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay-loading.overlay-loading-visible {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.overlay-loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.overlay-loading-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-color), rgba(255, 255, 255, 0.6));
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    transition: none;
}

.overlay-loading-fill.overlay-loading-fill-active {
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.overlay-loading-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: overlayLoadingPulse 0.8s ease-in-out infinite;
}

@keyframes overlayLoadingPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.main-container {
    position: relative;
    width: 95vw;
    height: 95vh;
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid var(--banner-glow);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    z-index: 1;
    animation: borderGlow 5s ease-in-out infinite;
}

.grain-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0.006;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.reveal-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.reveal-done .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-0 { transition-delay: 0ms; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    }
    50% {
        border-color: var(--accent-color-soft);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-color-soft);
    }
}

.nav-arrow,
.nav-home {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-tint);
}

.nav-arrow .nav-tooltip,
.nav-home .nav-tooltip {
    position: absolute;
}

.nav-tooltip {
    position: absolute;
    white-space: nowrap;
    padding: 6px 12px;
    background: rgba(20, 18, 40, 0.95);
    border: 1px solid var(--border-tint);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.nav-arrow:hover .nav-tooltip,
.nav-home:hover .nav-tooltip {
    opacity: 1;
    visibility: visible;
}

.nav-down .nav-tooltip {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
}
.nav-down:hover .nav-tooltip {
    transform: translateX(-50%) translateY(-4px);
}

.nav-left .nav-tooltip {
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
}
.nav-left:hover .nav-tooltip {
    transform: translateY(-50%) translateX(4px);
}

.nav-home .nav-tooltip {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
}
.nav-home:hover .nav-tooltip {
    transform: translateX(-50%) translateY(-4px);
}

.nav-arrow:hover,
.nav-home:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transform: scale(1.05);
    border-color: var(--border-tint);
    box-shadow: 0 0 20px var(--accent-soft);
}

.nav-down {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.nav-down:hover {
    transform: translateX(-50%) scale(1.05);
}

.nav-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.nav-right:hover {
    transform: translateY(-50%) scale(1.05);
}

.nav-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.nav-left:hover {
    transform: translateY(-50%) scale(1.05);
}

.nav-home {
    top: 20px;
    left: 20px;
    display: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.5s;
    transform: scale(0.98) translateY(12px);
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.slide-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 24px var(--accent-soft);
    position: relative;
    z-index: 10;
}

#home {
    align-items: center;
    padding-top: 48px;
}

.banner {
    width: 100%;
    max-width: 720px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: -44px;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 32px var(--accent-soft);
    border: 1px solid var(--border-tint);
    background: url('img/banner.png') center center / cover no-repeat;
    background-color: #1a1a1a;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pfp {
    position: relative;
    z-index: 10;
    margin-bottom: 24px;
}

.pfp-img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 3px solid var(--border-tint);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 28px var(--pfp-glow);
    background: #0a0a0a;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pfp-img:hover {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.4), 0 0 36px var(--pfp-glow);
    border-color: rgba(255, 255, 255, 0.25);
}

.avatar-easter-tooltip {
    position: absolute;
    left: 50%;
    bottom: -36px;
    transform: translateX(-50%) scale(0.8);
    font-size: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 20;
}

.avatar-easter-tooltip.avatar-easter-visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.pfp-img.avatar-bounce {
    animation: avatarBounce 0.5s ease;
}

@keyframes avatarBounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(0.95); }
}

.content-wrapper {
    text-align: center;
    width: 100%;
    max-width: 560px;
    background: linear-gradient(180deg, rgba(25, 25, 25, 0.6) 0%, rgba(12, 12, 12, 0.7) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 26px 22px;
    border: 1px solid var(--border-tint);
    box-shadow: 0 0 40px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.username {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.username-text {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    display: inline-block;
    background: linear-gradient(90deg, #7a8a8f 0%, #9eb0b5 25%, #e8f4f4 50%, #9eb0b5 75%, #7a8a8f 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: usernameGradient 6s ease-in-out infinite;
    letter-spacing: 0.04em;
}

@keyframes usernameGradient {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.flag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: var(--accent-soft);
    border: 1px solid var(--border-tint);
    border-radius: 8px;
    padding: 6px 12px;
    line-height: 1;
}

.description-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 16px;
    font-weight: 400;
}

.now-section {
    display: none;
    font-size: 13px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.now-section.visible {
    display: block;
}

.now-section-text {
    display: inline-block;
    background: linear-gradient(90deg, #0d9488 0%, #14b8a6 20%, #1db954 40%, #2dd4bf 60%, #1db954 80%, #0d9488 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: usernameGradient 5s ease-in-out infinite;
}

.stats {
    display: flex;
    gap: 12px;
    background: var(--accent-soft);
    border: 1px solid var(--border-tint);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.stat {
    flex: 1;
}

.stat-content {
    height: 25px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.stat-content-loading .stat-value {
    animation: loadingPulse 1.2s ease-in-out infinite;
}

.stat-value,
.stat-icon {
    position: absolute;
    transition: 0.3s;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.stat-icon {
    transform: translateY(30px);
    opacity: 0;
}

.stat:hover .stat-value {
    transform: translateY(-30px);
    opacity: 0;
}

.stat:hover .stat-icon {
    transform: translateY(0);
    opacity: 1;
}

.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.live-indicator {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #43b581;
    margin-bottom: 8px;
}

.live-indicator[aria-hidden="false"] {
    display: inline-flex;
}

.live-indicator::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #43b581;
    box-shadow: 0 0 8px #43b581;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.presence-card {
    width: 100%;
    margin-bottom: 18px;
}

.presence-card-loading .presence-card-link {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.presence-card-loading .presence-avatar {
    opacity: 0.7;
}

.presence-card-loading .presence-username,
.presence-card-loading .presence-status-text {
    color: rgba(255, 255, 255, 0.5);
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.presence-card-link {
    display: block;
    background: var(--accent-soft);
    border: 1px solid var(--border-tint);
    border-radius: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.presence-card-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-tint);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 255, 255, 0.04);
    transform: scale(1.01);
}

.presence-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.presence-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.presence-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-tint);
}

.presence-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(10, 10, 10, 0.95);
    background: #747f8d;
    box-sizing: content-box;
}

.presence-status-dot[data-status="online"] { background: #43b581; }
.presence-status-dot[data-status="idle"] { background: #faa61a; }
.presence-status-dot[data-status="dnd"] { background: #f04747; }
.presence-status-dot[data-status="offline"] { background: #747f8d; }

.presence-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.presence-username {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.presence-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.presence-status-text {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.presence-badges {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.presence-badges .presence-badge {
    width: 15px;
    height: 15px;
    object-fit: contain;
    border-radius: 3px;
}

.presence-guild-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.presence-guild-tag {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.02em;
}

.presence-spotify {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-tint);
}

.presence-spotify:not(.visible) {
    display: none !important;
}

.presence-spotify-art {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.presence-spotify-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.presence-spotify-label {
    font-size: 10px;
    color: #1db954;
    text-transform: uppercase;
    font-weight: 600;
}

.presence-spotify-track {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.presence-spotify-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.social-button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-tint);
    position: relative;
    overflow: visible;
}

.social-button:hover {
    transform: translateY(-5px);
}

.social-button.tg:hover {
    background: rgba(0, 136, 204, 0.3);
    border-color: #0088cc;
    color: #0088cc;
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
}

.social-button.github:hover {
    background: rgba(110, 84, 148, 0.3);
    border-color: #6e5494;
    color: #6e5494;
    box-shadow: 0 5px 20px rgba(110, 84, 148, 0.4);
}

.social-button.discord:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.social-button.vacban:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.social-button.email:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.social-button.soundcloud:hover {
    background: rgba(255, 85, 0, 0.3);
    border-color: #ff5500;
    color: #ff5500;
    box-shadow: 0 5px 20px rgba(255, 85, 0, 0.4);
}

.social-button.ltc:hover {
    background: rgba(52, 93, 157, 0.3);
    border-color: #345d9d;
    color: #345d9d;
    box-shadow: 0 5px 20px rgba(52, 93, 157, 0.4);
    cursor: copy;
}

.tooltip-wrapper {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: auto;
    max-width: 160px;
    height: 32px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.social-button:hover .tooltip-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip-text {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tooltip-text.marquee {
    animation: scrollText 4s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.social-button.tg:hover .tooltip-wrapper { border-color: #0088cc; }
.social-button.tg:hover .tooltip-text { color: #0088cc; }

.social-button.github:hover .tooltip-wrapper { border-color: #6e5494; }
.social-button.github:hover .tooltip-text { color: #6e5494; }

.social-button.discord:hover .tooltip-wrapper { border-color: rgba(255, 255, 255, 0.3); }
.social-button.discord:hover .tooltip-text { color: #fff; }

.social-button.vacban:hover .tooltip-wrapper { border-color: rgba(255, 255, 255, 0.25); }
.social-button.vacban:hover .tooltip-text { color: #fff; }

.social-button.email:hover .tooltip-wrapper { border-color: #ffffff; }
.social-button.email:hover .tooltip-text { color: #ffffff; }

.social-button.soundcloud:hover .tooltip-wrapper { border-color: #ff5500; }
.social-button.soundcloud:hover .tooltip-text { color: #ff5500; }

.social-button.ltc:hover .tooltip-wrapper { border-color: #345d9d; }
.social-button.ltc:hover .tooltip-text { color: #345d9d; }

.music-player {
    background: var(--accent-soft);
    border: 1px solid var(--border-tint);
    padding: 14px 16px;
    border-radius: 12px;
    width: 100%;
}

.music-player-spotify {
    background: var(--accent-soft);
    border: 1px solid var(--border-tint);
    padding: 14px 16px;
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.music-player-spotify:hover {
    border-color: var(--border-tint);
    box-shadow: 0 0 24px var(--accent-soft);
}

.music-player-spotify .spotify-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.music-player-spotify .spotify-icon {
    color: #1db954;
    font-size: 22px;
}

.music-player-spotify .spotify-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.music-player-spotify .spotify-embed-wrap {
    position: relative;
    width: 100%;
    min-height: 152px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-tint);
}

.music-player-spotify .spotify-embed-wrap iframe {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 152px;
    border: none;
}

/* Overlay so custom cursor shows over Spotify; on touch devices it doesn't block */
.spotify-cursor-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .spotify-cursor-overlay {
        pointer-events: auto;
        cursor: none;
    }
}

.discord-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
}

.discord-widget-wrap {
    width: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-widget-iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.discord-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.discord-members-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.discord-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.discord-member {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 14px;
    transition: border-color 0.2s, background 0.2s;
}

.discord-member:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.discord-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.discord-member-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.discord-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    transition: background 0.2s, transform 0.2s;
}

.discord-join-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.discord-setup {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding: 20px;
    text-align: center;
    margin: 0;
}

.song-info {
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 10px;
}

.song-title-wrapper {
    display: inline-block;
    animation: marquee 10s linear infinite;
}

.song-title {
    color: #fff;
    font-size: 14px;
}

.player-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    width: 20px;
    display: flex;
    justify-content: center;
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.volume-container {
    width: 80px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.volume-icon {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.player-range {
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    flex: 1;
    width: 100%;
    background-image: linear-gradient(#fff, #fff);
    background-repeat: no-repeat;
    background-size: 0% 100%;
}

.player-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}

.website-grid,
.github-grid,
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 50px;
    padding-top: 10px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    min-height: 140px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.grid-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.website-item {
    min-height: 80px;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
}

.website-item .grid-text {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    word-break: break-all;
    font-family: 'JetBrains Mono', monospace;
}

.website-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.repo-item {
    justify-content: flex-start;
    padding: 20px;
    min-height: 120px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.repo-item:hover {
    min-height: 180px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.repo-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.repo-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.repo-body {
    flex: 1;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.repo-item:hover .repo-body {
    max-height: 100px;
    opacity: 1;
}

.repo-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 10px;
}

.repo-footer {
    display: flex;
    gap: 15px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: auto;
}

.repo-stat {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
}

.repo-stat.language {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.game-item {
    padding: 0;
    border: none;
    background-color: #111;
    min-height: 120px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.game-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.1) 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 15px;
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 1;
}

.game-item:hover {
    transform: none;
    box-shadow: none;
}

.game-item:hover .game-bg {
    transform: scale(1.1);
}

.game-item:hover .game-overlay {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.game-title {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.game-item:hover .game-title {
    transform: translateY(0);
}

.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-modal.active {
    opacity: 1;
}

.browser-window {
    width: 80%;
    max-width: 1100px;
    height: 80vh;
    background: #000;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
    z-index: 10;
}

.preview-modal.active .browser-window {
    transform: scale(1);
    opacity: 1;
}

.browser-window::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    padding: 3px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0),
            rgba(180, 180, 180, 0.6),
            rgba(120, 120, 120, 0.8),
            rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 11;
    background-size: 200% 200%;
    animation: borderFlow 3s linear infinite;
    pointer-events: none;
}

.browser-window::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(0deg, rgba(100, 100, 100, 0.5), rgba(180, 180, 180, 0.4), rgba(100, 100, 100, 0.5));
    z-index: -1;
    border-radius: 22px;
    background-size: 400% 400%;
    animation: borderFlow 4s ease infinite;
    opacity: 0.5;
    filter: blur(15px);
}

@keyframes borderFlow {
    0% { background-position: 50% 0%; }
    50% { background-position: 50% 100%; }
    100% { background-position: 50% 0%; }
}

.browser-content {
    flex: 1;
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    scrollbar-width: none;
}

#previewFrame {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 5;
    background: #fff;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#previewFrame[src]:not([src="about:blank"]) {
    opacity: 1;
}

.preview-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 1;
    text-align: center;
    width: 100%;
}

#directLink {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

#directLink:hover {
    text-decoration: underline;
}

.browser-content::-webkit-scrollbar,
#previewFrame::-webkit-scrollbar {
    display: none;
}

/* Tablet and below */
@media (max-width: 768px) {
    .main-container {
        width: 100%;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 0;
        padding env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
    .slide {
        padding: 24px 20px;
    }
    #home {
        padding-top: 28px;
    }
    .banner {
        height: 140px;
        max-width: 100%;
        margin-bottom: -36px;
    }
    .content-wrapper {
        max-width: 100%;
        padding: 20px 18px;
    }
    .username-text {
        font-size: 24px;
    }
    .description-text {
        font-size: 14px;
    }
    .pfp-img {
        width: 96px;
        height: 96px;
    }
    .stats {
        padding: 12px 14px;
        gap: 10px;
    }
    .stat-value, .stat-icon {
        font-size: 16px;
    }
    .presence-card-link {
        padding: 12px 14px;
    }
    .presence-avatar {
        width: 42px;
        height: 42px;
    }
    .presence-username {
        font-size: 14px;
    }
    .social-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    .nav-arrow,
    .nav-home {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 18px;
    }
    .nav-down { bottom: 16px; }
    .nav-right { right: 16px; }
    .nav-left { left: 16px; }
    .nav-home { top: 16px; left: 16px; }
    .slide-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .discord-page {
        gap: 20px;
    }
    .discord-join-btn {
        padding: 14px 24px;
        min-height: 48px;
    }
    .website-grid,
    .github-grid,
    .games-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 80px;
    }
    .grid-item {
        min-height: 120px;
        padding: 18px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .slide {
        padding: 20px 16px;
    }
    #home {
        padding-top: 20px;
    }
    .banner {
        height: 120px;
        margin-bottom: -32px;
    }
    .content-wrapper {
        padding: 18px 14px;
    }
    .username-text {
        font-size: 22px;
    }
    .pfp-img {
        width: 88px;
        height: 88px;
    }
    .now-section {
        font-size: 12px;
        padding: 8px 12px;
    }
    .nav-arrow,
    .nav-home {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 16px;
    }
    .nav-down { bottom: 12px; }
    .nav-right { right: 12px; }
    .nav-left { left: 12px; }
    .nav-home { top: 12px; left: 12px; }
}

@media (max-width: 600px) {
    .browser-window {
        width: 95%;
        height: 70vh;
    }
}
