:root {
    --primary-color: #ffffff;
    --secondary-color: #a0a0a0;
    --accent-color: #7289da;
    /* Discord Blue as base accent */
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 15px;
    --font-main: 'Outfit', sans-serif;
}

/* Cinematic Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    z-index: 50;
    pointer-events: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: var(--primary-color);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}


#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(0.98);
    /* Minnak uzaklaştırma */
    background: #000;
    filter: brightness(0.5) contrast(1.2);
    transition: filter 1s ease;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 10%, #000 180%), rgba(0, 0, 0, 0.4);
    z-index: -1;
    animation: vignette-pulse 10s ease-in-out infinite;
}

@keyframes vignette-pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Custom Cursor & Trail - REMOVED */

/* Background Video Styling */

/* Entrance Overlay */
.entrance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transition: all 1.5s cubic-bezier(0.8, 0, 0.2, 1);
}

.entrance-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.5) rotate(2deg);
}

.enter-content {
    text-align: center;
    position: relative;
}

.blink {
    font-size: 0.9rem;
    letter-spacing: 15px;
    font-weight: 300;
    animation: blink-glitch 3s infinite;
    color: #fff;
    text-transform: uppercase;
}

@keyframes blink-glitch {

    0%,
    100% {
        opacity: 0.3;
        text-shadow: none;
        transform: scale(1);
    }

    33% {
        transform: translate(2px, -1px);
        text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
    }

    66% {
        transform: translate(-2px, 1px);
        text-shadow: -2px 0 #ff00c1, 2px 0 #00fff9;
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Background Scanlines */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 20;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
    animation: scanline-flicker 0.15s infinite;
}

@keyframes scanline-flicker {
    0% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.35;
    }

    100% {
        opacity: 0.25;
    }
}

/* Main Content Staggered Animation */
.hidden {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(20px);
    pointer-events: none;
}

.stagger {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.visible .stagger {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

#main-content {
    transition: all 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-width: 420px;
    z-index: 10;
}

#main-content.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: all;
}

/* Profile Card with Neon Border */
.profile-card {
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.9), inset 0 0 100px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    animation: floating 6s ease-in-out infinite, border-flow 10s linear infinite;
    transition: transform 0.1s ease-out;
    /* Added for smooth tilt */
    transform-style: preserve-3d;
}

@keyframes border-flow {
    0% {
        border-color: rgba(255, 255, 255, 0.1);
    }

    33% {
        border-color: rgba(114, 137, 218, 0.3);
    }

    66% {
        border-color: rgba(255, 0, 193, 0.3);
    }

    100% {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.profile-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: skewX(-25deg);
    animation: sweep 4s infinite 1s;
    pointer-events: none;
}

@keyframes sweep {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }

    50% {
        transform: translateY(-15px) rotateX(2deg) rotateY(-1deg);
    }
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.1), transparent 30%);
    animation: rotate-glow 8s linear infinite;
    pointer-events: none;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.avatar-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: avatar-pulse 4s ease-in-out infinite;
}

@keyframes avatar-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
    }
}

.username {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
    letter-spacing: -2px;
    display: flex;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: default;
}

.username span {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: letter-glow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.username span:hover {
    transform: translateY(-10px) scale(1.3) rotate(5deg);
    color: #7289da;
    text-shadow: 0 0 20px #fff, 0 0 40px #7289da;
}

@keyframes letter-glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        filter: brightness(1);
    }

    100% {
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 45px rgba(114, 137, 218, 0.5);
        filter: brightness(1.3);
        transform: translateY(-2px);
    }
}

.username .highlight {
    color: #fff;
    text-shadow: 0 0 15px #fff, 0 0 30px #7289da;
    display: inline-block;
    animation: glow-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #7289da;
        transform: scale(1);
    }

    to {
        text-shadow: 0 0 20px #fff, 0 0 40px #7289da, 0 0 60px rgba(114, 137, 218, 0.5);
        transform: scale(1.1);
    }
}

.discord-id {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    cursor: default;
}

.discord-id:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.verse {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: 8px;
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: 1.5px;
    font-style: italic;
    transition: all 0.4s ease;
    cursor: default;
    animation: verse-glow 3s ease-in-out infinite alternate;
}

.verse:hover {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

@keyframes verse-glow {
    0% {
        opacity: 0.4;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }

    100% {
        opacity: 0.7;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }
}

/* Social Icons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 35px;
    z-index: 2;
    position: relative;
}

.social-icon {
    width: 44px;
    height: 44px;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s, background 0.5s;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    transform: scale(1.2) translateY(-10px);
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.1);
}

.social-icon img {
    width: 24px;
    height: 24px;
    transition: transform 0.5s ease;
}

.social-icon:hover img {
    transform: rotate(5deg) scale(1.1);
}

/* Music Player */
.music-player {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    margin-top: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
}

.controls i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.controls i:hover {
    color: #fff;
    transform: scale(1.2);
    text-shadow: 0 0 10px #fff;
}

.controls i#play-btn {
    font-size: 1.5rem;
}

.progress-container {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fff, #888, #fff);
    background-size: 200% 100%;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s linear;
    animation: shimmer-swipe 3s linear infinite;
}

@keyframes shimmer-swipe {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff;
    transform: scale(0);
    transition: transform 0.2s;
}

.progress-container:hover .progress-bar::after {
    transform: scale(1);
}

.time {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Visualizer */
.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 30px;
    margin-top: 15px;
    opacity: 0.5;
}

.bar {
    width: 3px;
    background: #fff;
    border-radius: 2px;
    height: 4px;
    transition: height 0.1s ease;
}

/* Custom Menu */
#custom-menu {
    position: fixed;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 8px;
    z-index: 10000;
    width: 180px;
    transform: scale(0.9);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
}

.hidden-menu {
    opacity: 0;
    pointer-events: none;
}

.menu-item {
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 5px 0;
}

/* Click Ripple */
.ripple {
    position: fixed;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    animation: ripple-out 0.8s ease-out forwards;
}

@keyframes ripple-out {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }

    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .profile-card {
        padding: 35px 25px;
        width: 90%;
        margin: auto;
    }

    .username {
        font-size: 1.5rem;
    }
}