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

:root {
    --bg-dark: #0a0a0a;
    --bg-card: rgba(16, 16, 16, 0.8);
    --green-accent: #2d5a3d;
    --green-light: #3d7a52;
    --green-glow: #4a9960;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Moderustic', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #0a0a0a 0%, #0d1a12 50%, #122418 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Entrance Screen */
.entrance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

.entrance-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entrance-content {
    text-align: center;
}

.entrance-title {
    font-size: 4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px var(--green-glow);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 40px var(--green-glow), 0 0 80px rgba(74, 153, 96, 0.3);
    }
    50% {
        text-shadow: 0 0 60px var(--green-glow), 0 0 100px rgba(74, 153, 96, 0.5);
    }
}

.entrance-prompt {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    animation: promptPulse 2s ease-in-out infinite;
}

@keyframes promptPulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

/* Cursor Trail */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.trail-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--green-glow);
    border-radius: 50%;
    pointer-events: none;
    box-shadow:
        0 0 10px var(--green-glow),
        0 0 20px var(--green-glow),
        0 0 30px var(--green-accent);
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    width: 100%;
    max-width: 420px;
}

/* Profile Card */
.card-wrapper {
    perspective: 1000px;
}

.profile-card {
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(45, 90, 61, 0.3);
    box-shadow:
        0 0 40px rgba(45, 90, 61, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.profile-card:hover {
    box-shadow:
        0 0 60px rgba(45, 90, 61, 0.15),
        0 25px 70px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(45, 90, 61, 0.5);
}

/* Avatar Section */
.avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.avatar-ring {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--green-accent), var(--green-glow));
    box-shadow: 0 0 20px rgba(74, 153, 96, 0.3);
}

.avatar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #5865F2;
    transition: all 0.3s ease;
}

.avatar-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    pointer-events: none;
}

.avatar-decoration img {
    width: 100%;
    height: 100%;
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #747f8d;
    border: 4px solid var(--bg-card);
    transition: background 0.3s ease;
    z-index: 10;
}

.status-indicator.online { background: #3ba55c; }
.status-indicator.idle { background: #faa61a; }
.status-indicator.dnd { background: #ed4245; }
.status-indicator.offline { background: #747f8d; }

/* Username Section */
.username-section {
    text-align: center;
    margin-bottom: 0.75rem;
}

.username {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.typing-cursor {
    display: inline-block;
    color: var(--green-glow);
    animation: blink 1s infinite;
    font-weight: 300;
}

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

/* Discord Presence Card */
.discord-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.discord-info {
    flex: 1;
    min-width: 0;
}

.discord-username {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.discord-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #747f8d;
    flex-shrink: 0;
}

.discord-status-dot.online { background: #3ba55c; }
.discord-status-dot.idle { background: #faa61a; }
.discord-status-dot.dnd { background: #ed4245; }
.discord-status-dot.offline { background: #747f8d; }

.discord-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Social Links */
.socials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(45, 90, 61, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: var(--green-light);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.social-link:hover svg {
    fill: var(--green-glow);
}

.social-link span {
    flex: 1;
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.music-player.visible {
    opacity: 1;
}

.music-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(45, 90, 61, 0.3);
    color: var(--green-glow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.music-btn:hover {
    background: rgba(45, 90, 61, 0.2);
    border-color: var(--green-accent);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(45, 90, 61, 0.3);
}

.music-btn.playing {
    animation: spin 4s linear infinite;
}

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

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.footer a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-secondary);
}

.footer img {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .main-content {
        padding: 1.5rem 1rem;
    }

    .profile-card {
        padding: 2rem 1.5rem;
    }

    .avatar-wrapper {
        width: 80px;
        height: 80px;
    }

    .avatar-decoration {
        width: 110px;
        height: 110px;
    }

    .username {
        font-size: 1.75rem;
    }

    .social-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .music-player {
        bottom: 16px;
        right: 16px;
    }

    .music-btn {
        width: 42px;
        height: 42px;
    }
}

/* Selection */
::selection {
    background: var(--green-accent);
    color: var(--text-primary);
}
