/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

/* Background Video */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) saturate(1.2);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(88, 101, 242, 0.1) 0%,
        rgba(255, 73, 97, 0.1) 50%,
        rgba(114, 137, 218, 0.1) 100%
    );
    z-index: -1;
}

/* Audio Control */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.audio-btn.muted {
    color: #ff4961;
}

/* Container principal */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    z-index: 10;
    position: relative;
}

/* Profile Card - Style Dark Polymorphism */
.profile-card {
    background: rgba(20, 20, 25, 0.85);
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02);
    animation: slideInUp 0.8s ease;
    position: relative;
    overflow: hidden;
    z-index: 50;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(88, 101, 242, 0.6) 20%, 
        rgba(255, 73, 97, 0.6) 50%, 
        rgba(114, 137, 218, 0.6) 80%, 
        transparent 100%
    );
    background-size: 200% 100%;
    animation: gradient 4s ease infinite;
}

.profile-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.02) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    border-radius: 24px;
}

/* Header */
.card-header {
    position: relative;
    height: 130px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.profile-banner {
    height: 120px;
    background: linear-gradient(135deg, 
        rgba(88, 101, 242, 0.8), 
        rgba(255, 73, 97, 0.8),
        rgba(114, 137, 218, 0.8)
    );
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
}

.profile-avatar {
    position: absolute;
    top: 60px;
    left: 13px;
    width: 90px;
    height: 90px;
    z-index: 100;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(20, 20, 25, 0.9);
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.profile-avatar img:hover {
    transform: scale(1.08);
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(88, 101, 242, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: #43b581;
    border-radius: 50%;
    border: 3px solid rgba(20, 20, 25, 0.9);
    animation: pulse 2s ease infinite;
    box-shadow: 
        0 0 10px rgba(67, 181, 129, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Custom Status Bubble - Style Discord */
.custom-status-bubble {
    position: absolute;
    bottom: 15px;
    left: 95px;
    background: rgba(200, 200, 200, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 200px;
    z-index: 200;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: fadeInScale 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    min-width: 80px;
}

.custom-status-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 0;
    border-color: transparent rgba(200, 200, 200, 0.95) transparent transparent;
}

.custom-status-emoji {
    font-size: 16px;
    flex-shrink: 0;
}

.custom-status-text {
    color: #000000;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Card Body */
.card-body {
    padding: 45px 25px 25px;
    position: relative;
    z-index: 60;
}

/* Profile Info */
.profile-info {
    margin-bottom: 25px;
}

.username {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #43b581;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(67, 181, 129, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(67, 181, 129, 0.15);
    width: fit-content;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #43b581;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
    box-shadow: 0 0 8px rgba(67, 181, 129, 0.4);
}

/* Bio */
.bio {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(88, 101, 242, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.bio p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.bio p:last-child {
    margin-bottom: 0;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #b9bbbe;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-link.github:hover {
    background: #333;
    color: #fff;
}

.social-link.discord:hover {
    background: #5865f2;
    color: #fff;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.social-link.linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

/* Tooltips */
.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.social-link:hover::after {
    opacity: 1;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(88, 101, 242, 0.08);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #5865f2, #ff4961);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

/* Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.8), rgba(255, 73, 97, 0.8));
    color: white;
    border: 1px solid rgba(88, 101, 242, 0.3);
    box-shadow: 
        0 6px 20px rgba(88, 101, 242, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.9), rgba(255, 73, 97, 0.9));
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(88, 101, 242, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #5865f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-content p {
    color: #b9bbbe;
    font-size: 16px;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.welcome-screen.hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    animation: slideInUp 1s ease;
}

.welcome-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5865f2, #ff4961);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: gradient 3s ease infinite;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #b9bbbe;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.welcome-btn {
    background: linear-gradient(135deg, #5865f2, #ff4961);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.welcome-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.4);
}

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

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .profile-card {
        max-width: 350px;
    }
    
    .card-body {
        padding: 30px 15px 15px;
    }
    
    .username {
        font-size: 20px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .stats {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        max-width: 300px;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        bottom: -20px;
    }
    
    .card-body {
        padding: 25px 12px 12px;
    }
    
    .username {
        font-size: 18px;
    }
    
    .discriminator {
        font-size: 14px;
    }
}