:root {
    --banner-glow: rgba(88, 101, 242, 0.8);
    --pfp-glow: rgba(255, 0, 105, 0.8);
}

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

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

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    transition: background 1s ease;
}

.bg-glow-banner {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 40vh;
    background: var(--banner-glow);
}

.bg-glow-pfp {
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: var(--pfp-glow);
}

#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-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: blink 1.5s infinite;
}

@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 transparent;
    border-top-color: var(--banner-glow);
    border-bottom-color: var(--pfp-glow);
    border-left-color: var(--banner-glow);
    border-right-color: var(--pfp-glow);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    z-index: 1;
    transition: border-color 1s ease;
}

.nav-arrow,
.nav-home {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    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 rgba(255, 255, 255, 0.1);
}

.nav-arrow:hover,
.nav-home:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.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: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: scale(0.95);
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

.slide-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

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

.banner {
    width: 100%;
    max-width: 800px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: -50px;
    position: relative;
    box-shadow: 0 0 30px var(--banner-glow);
}

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

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

.pfp-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #1a1a1a;
    box-shadow: 0 0 30px var(--pfp-glow);
    background: #000;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pfp-img:hover {
    box-shadow: 0 0 50px var(--pfp-glow), 0 0 100px var(--pfp-glow);
    border-color: var(--pfp-glow);
}

.content-wrapper {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

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

.username-text {
    font-size: 32px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-weight: 700;
    margin: 0;
}

.flag {
    font-size: 32px;
    line-height: 1;
}

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

.stats {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.stat {
    flex: 1;
}

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

.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;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-button {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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(88, 101, 242, 0.3);
    border-color: #5865F2;
    color: #5865F2;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

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

.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: #5865F2; }
.social-button.discord:hover .tooltip-text { color: #5865F2; }

.social-button.vacban:hover .tooltip-wrapper { border-color: #ff0069; }
.social-button.vacban:hover .tooltip-text { color: #ff0069; }

.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: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 15px;
    width: 100%;
}

.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(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.4);
}

.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: #5865F2;
    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(0, 217, 255, 0),
            #00d9ff,
            rgba(88, 101, 242, 1),
            rgba(0, 217, 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, #00d9ff, #5865F2, #00d9ff);
    z-index: -1;
    border-radius: 22px;
    background-size: 400% 400%;
    animation: borderFlow 4s ease infinite;
    opacity: 0.4;
    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: #5865F2;
    text-decoration: none;
}

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

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

@media (max-width: 600px) {
    .main-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .browser-window {
        width: 95%;
        height: 70vh;
    }
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
