:root {
    --accent: #ffffff;
    --bg-color: #050505;
    --card-bg: rgba(10, 10, 10, 0.45); /* More see-through */
    --card-border: rgba(255, 255, 255, 0.12); /* Slightly stronger border to hold the glass shape */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --blur: 0px; /* Disabled to fix lag */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow: hidden; /* Prevents scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

/* Background Layers */
.bg-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -3;
    background-size: cover;
    background-position: center;
    transition: filter 0.5s ease;
    will-change: transform;
    transform: translateZ(0); /* Force GPU compositing */
}



.bg-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0); /* Force GPU compositing */
}

/* Entrance Screen */
.enter-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color); 
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.8s ease;
}

.enter-text {
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--text-primary);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 15px rgba(255,255,255,0.2); }
    50% { opacity: 0.4; text-shadow: none; }
}

/* Main Profile Container */
.main-content {
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.main-content.hidden {
    display: none;
}

/* Premium Glass Profile Card */
.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    width: min(640px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Entrance Animation Initial State */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Avatar & Animated Border */
.avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    background-color: #111; /* fallback behind transparent PNGs */
}

.avatar-border {
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, var(--accent) 100%);
    animation: spin 3s linear infinite;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0); /* Force GPU */
}

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

.discord-status-dot {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid #1a1a1a; /* blends with glass card slightly */
    z-index: 3;
    background-color: #747f8d;
    transition: background-color 0.3s;
    display: none !important;
}

/* Text Elements */
.name-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.display-name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.badges {
    display: flex;
    gap: 0.4rem;
}

.badge {
    color: var(--accent);
    font-size: 0.95rem;
    position: relative;
}

/* Tooltips */
[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.1);
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.username {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.bio {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s ease;
}

.bio:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Social Links */
.socials {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    display: none !important;
}

.social-icon {
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-3px);
}

/* Discord Activity Panel */
.discord-activity, .music-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.discord-activity:hover, .music-player:hover {
    background: rgba(0, 0, 0, 0.4);
}

.discord-activity.hidden, .music-player.hidden {
    display: none;
}

.activity-icon, .music-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.activity-details, .music-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
}

.activity-name, .music-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.activity-state, .music-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Music Controls */
.music-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.volume-icon {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.volume-slider {
    -webkit-appearance: none;
    width: 55px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background: var(--accent);
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    padding: 0.5rem;
    opacity: 0.7;
}

.control-btn:hover {
    color: var(--accent);
    opacity: 1;
    transform: scale(1.1);
}

/* Projects Section */
.projects-section {
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.projects-section.hidden {
    display: none;
}

.projects-heading {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    margin-bottom: 1.2rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.projects-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}



.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.project-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.2rem 1.4rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    gap: 1.2rem;
}

.project-card.clickable:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.project-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
}

.project-name {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.3rem;
    letter-spacing: -0.2px;
}

.project-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.6rem;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
}

.project-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    display: none !important;
}

/* View Counter */
.view-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2.5rem;
    opacity: 0.5;
}

.view-counter.hidden {
    display: none;
}

/* Aesthetic Animated Cursor */
.aesthetic-cursor {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 1);
    will-change: left, top, transform;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none;
}

.cursor-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarPulse 1.2s infinite ease-out;
}

@keyframes radarPulse {
    0% {
        width: 6px;
        height: 6px;
        opacity: 1;
    }
    100% {
        width: 45px;
        height: 45px;
        opacity: 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .profile-card {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .socials {
        gap: 1rem;
        display: none !important;
}
    
    .display-name {
        font-size: 1.3rem;
    }
}












