@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

body, html {
    font-family: 'Space Grotesk', sans-serif;
    height: 100%;
    background: #0b0a12;
    color: #fff;
}

body {
    background-image: url('../images/Nilo_Hintergrund.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(11, 10, 18, 0.65);
    z-index: 0;
}

.fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: #0b0a12;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-wrap {
    text-align: center;
    animation: fadeSlide 0.7s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.loader-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.06);
    border-top-color: #6c63ff;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-name {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    background: rgba(108, 99, 255, 0.15);
    color: #c4bfff;
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.enter-btn:hover {
    background: rgba(108, 99, 255, 0.25);
    border-color: rgba(108, 99, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.15);
}

.enter-btn:active {
    transform: translateY(-1px);
}

.hidden {
    display: none !important;
}

#linktree {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    animation: fadeSlide 0.6s ease;
}

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

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 28px 24px;
    transition: all 0.35s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(108, 99, 255, 0.06);
}

.profile-card {
    text-align: center;
    padding: 36px 24px 28px;
}

.avatar-ring {
    width: 112px;
    height: 112px;
    margin: 0 auto 18px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #6c63ff, #a78bfa, #6c63ff);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

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

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.avatar-ring:hover .avatar {
    transform: scale(1.04);
}

.profile-card h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #e0e0ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-card .bio {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.music-card {
    padding: 20px;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.music-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6c63ff, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.music-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.track-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6c63ff, #a78bfa);
    border-radius: 4px;
    transition: width 0.3s linear;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ctrl-btn:hover {
    background: rgba(108, 99, 255, 0.3);
    transform: scale(1.05);
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

#volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6c63ff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6c63ff;
    cursor: pointer;
    border: none;
}

.hobbies-card {
    padding: 18px 24px;
}

.hobby-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.hobby-row i {
    font-size: 24px;
    color: #5865f2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 12px;
}

.discord-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    padding: 16px 24px;
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.15);
    cursor: pointer;
}

.discord-link:hover {
    background: rgba(88, 101, 242, 0.22);
    border-color: rgba(88, 101, 242, 0.35);
}

.discord-link i:first-child {
    font-size: 24px;
    color: #5865f2;
}

.discord-link span {
    flex: 1;
}

.discord-link i:last-child {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s ease;
}

.discord-link:hover i:last-child {
    transform: translateX(4px);
}

.footer {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.12);
    padding: 8px 0 4px;
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    .avatar-ring {
        width: 96px;
        height: 96px;
    }
    .profile-card {
        padding: 28px 20px 22px;
    }
    .profile-card h1 {
        font-size: 22px;
    }
    .card {
        padding: 22px 18px;
    }
}
