:root {
    --bg-dark: #0f1011;
    --card-bg: #111214;
    --text-primary: #f2f3f5;
    --text-secondary: #b5bac1;
    --text-muted: #949ba4;
    --accent-color: #5865f2;
    --status-online: #23a55a;
    --status-idle: #f0b232;
    --status-dnd: #f23f43;
    --status-offline: #80848e;
    --spotify-green: #1db954;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 40px 0;
}

/* Parallax Background */
.parallax-container {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: -1;
    transition: transform 0.1s ease-out;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.7);
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.profile-wrapper {
    width: 100%;
    max-width: 520px;
    padding: 24px;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-card {
    width: 100%;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(88, 101, 242, 0.1);
}

/* Banner Shimmer */
.banner-wrapper {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.card-banner {
    height: 100%;
    background-color: var(--accent-color);
    background-size: cover;
    background-position: center;
}

.banner-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.card-header {
    height: 60px;
    padding: 0 24px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.avatar-container {
    position: absolute;
    top: -65px;
    left: 24px;
    width: 110px;
    height: 110px;
    background-color: var(--card-bg);
    border-radius: 50%;
    padding: 8px;
    transition: transform 0.3s ease;
}

.avatar-container:hover {
    transform: scale(1.05);
}

.thought-bubble {
    position: absolute;
    top: 5px;
    left: 85px;
    background: var(--card-bg);
    padding: 8px 14px;
    border-radius: 16px 16px 16px 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    z-index: 50;
    transform: translateY(-50%);
    pointer-events: none;
    animation: bubblePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bubblePop {
    from {
        opacity: 0;
        transform: translateY(-30%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 6px solid var(--card-bg);
    transition: transform 0.3s ease;
}

.badge-row {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.badge-icon:hover {
    transform: translateY(-2px);
}

.card-body {
    padding: 24px 28px;
}

.display-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
}

.username-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    cursor: pointer;
    position: relative;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.username-container:hover {
    background: rgba(255, 255, 255, 0.05);
}

.member-since.small {
    margin-top: 0px;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.member-since.small .info-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.member-since.small .info-value {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.username {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.tag {
    font-size: 15px;
    color: var(--text-muted);
}

.copy-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
    margin: 20px 0;
}

.section-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.activities-container {
    margin-top: 20px;
}

.activity-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: background 0.2s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.activity-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-type {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.activity-name {
    font-size: 15px;
    font-weight: 800;
}

.activity-details {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-info {
    margin-top: 0px;
}

/* Status Colors */
.status-online {
    background-color: var(--status-online);
}

.status-idle {
    background-color: var(--status-idle);
}

.status-dnd {
    background-color: var(--status-dnd);
}

.status-offline {
    background-color: var(--status-offline);
}

/* GitHub Rectangle Button */
.social-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.github-rect {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    /* Even more compact */
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    /* Smallest text */
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.github-rect:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.rect-icon {
    width: 20px;
    height: 20px;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: var(--card-bg);
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 24px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .modal-card {
    transform: scale(0.9);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.modal-body p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-body .highlight {
    color: var(--accent-color);
    font-weight: 700;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #f23f43;
    /* Red status color */
    color: white;
}

.btn-cancel:hover {
    background: #c03135;
    transform: translateY(-2px);
}

.btn-continue {
    background: var(--accent-color);
    color: white;
}

.btn-continue:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 500px) {
    .profile-wrapper {
        padding: 12px;
    }

    .display-name {
        font-size: 22px;
    }

    .avatar-container {
        width: 90px;
        height: 90px;
        top: -55px;
    }

    .card-banner {
        height: 110px;
    }
}