:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 15, 30, 0.4);
    --card-border: rgba(140, 50, 255, 0.15);
    --card-hover-border: rgba(176, 38, 255, 0.5);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-color: #b026ff;
    --accent-glow: rgba(176, 38, 255, 0.4);
    --status-online: #23a559;
    --status-idle: #f0b232;
    --status-dnd: #f23f43;
    --status-offline: #80848e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0.6)), url('https://i.postimg.cc/c18XKCtQ/what.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 0;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s infinite alternate;
}

.purple-1 {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
}

.purple-2 {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, #5e0bb5 0%, transparent 70%);
    animation-delay: -10s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 50px);
    }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Profile Section */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeUp 0.8s ease-out;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(176, 38, 255, 0.3);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.2);
    transition: all 0.3s ease;
    background-color: #1a1a1a;
}

.avatar-container:hover .avatar-img {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.05);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--status-offline);
    /* Default */
    border: 4px solid var(--bg-color);
    transition: background-color 0.3s ease;
}

/* Specific status colors set via JS */
.status-indicator.online {
    background-color: var(--status-online);
    box-shadow: 0 0 10px var(--status-online);
}

.status-indicator.idle {
    background-color: var(--status-idle);
    box-shadow: 0 0 10px var(--status-idle);
}

.status-indicator.dnd {
    background-color: var(--status-dnd);
    box-shadow: 0 0 10px var(--status-dnd);
}

.status-indicator.offline {
    background-color: var(--status-offline);
}

.username {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #b026ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Links Section */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    animation: fadeUp 0.8s ease-out backwards;
}

.link-card:nth-child(1) {
    animation-delay: 0.1s;
}

.link-card:nth-child(2) {
    animation-delay: 0.2s;
}

.link-card:nth-child(3) {
    animation-delay: 0.3s;
}

.link-card:nth-child(4) {
    animation-delay: 0.4s;
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(176, 38, 255, 0.1);
    background: rgba(30, 20, 45, 0.6);
}

.link-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: rgba(176, 38, 255, 0.1);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1.2rem;
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.link-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.link-arrow {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Footer */
footer {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 100;
    text-align: right;
    animation: fadeUp 0.8s ease-out backwards;
    animation-delay: 0.6s;
}

.impressum-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.impressum-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    .username {
        font-size: 1.8rem;
    }

    .link-card {
        padding: 0.8rem 1.2rem;
    }
}

/* Powered By Footer */
.powered-by {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 100;
    animation: fadeUp 0.8s ease-out backwards;
    animation-delay: 0.8s;
}

.powered-by a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.powered-by a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}