@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
    --bg-primary: #e8e8e8;
    --bg-secondary: #f5f5f5;
    --text-primary: #2d2d2d;
    --text-secondary: #6b6b6b;
    --accent: #9ca3af;
    --accent-secondary: #6b7280;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border: rgba(156, 163, 175, 0.4);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Matrix Background */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
}

/* Main Content */
.main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.main.hidden {
    opacity: 0;
    pointer-events: none;
}

.container {
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 0.8s ease;
}

/* Avatar */
.avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
}

.avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Discord Status Indicator */
.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    background: #23a55a;
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s ease;
}

.status-indicator.online {
    background: #23a55a;
}

.status-indicator.idle {
    background: #f0b232;
}

.status-indicator.dnd {
    background: #f23f43;
}

.status-indicator.offline {
    background: #80848e;
}

/* Username */
.username {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    font-family: 'MedievalSharp', cursive;
    color: var(--text-primary);
    animation: fadeIn 1s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rainbow-text {
    color: var(--text-primary);
}

/* Bio Text */
.bio {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease;
}

/* Info Badges */
.info-badge {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeIn 1.4s ease;
}

.badge {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    animation: fadeIn 1.6s ease;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(156, 163, 175, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-card:hover::before {
    left: 100%;
}

.social-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(156, 163, 175, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.social-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.social-handle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Specific social colors on hover */
.discord:hover { border-color: #9ca3af; }
.telegram:hover { border-color: #9ca3af; }
.telegram-channel:hover { border-color: #9ca3af; }
.github:hover { border-color: #9ca3af; }

.discord:hover .social-icon { background: rgba(156, 163, 175, 0.25); color: var(--text-primary); }
.telegram:hover .social-icon { background: rgba(156, 163, 175, 0.25); color: var(--text-primary); }
.telegram-channel:hover .social-icon { background: rgba(156, 163, 175, 0.25); color: var(--text-primary); }
.github:hover .social-icon { background: rgba(156, 163, 175, 0.25); color: var(--text-primary); }

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 30px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    margin: 0 auto 30px;
    max-width: 350px;
    transition: all 0.3s ease;
    animation: fadeIn 1.8s ease;
}

.volume-control:hover {
    border-color: var(--accent);
}

.volume-icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.volume-slider {
    flex: 1;
    height: 6px;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) 50%, var(--bg-secondary) 50%, var(--bg-secondary) 100%);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

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

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: var(--accent-secondary);
    transform: scale(1.2);
}

.volume-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 10px;
}

.volume-slider::-moz-range-track {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.volume-slider::-moz-range-progress {
    height: 6px;
    background: var(--accent);
    border-radius: 10px;
}

.volume-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 45px;
    text-align: right;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 20px 0;
    animation: fadeIn 2s ease;
}

.heart {
    color: var(--accent);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .username {
        font-size: 2rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .avatar-wrapper {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .username {
        font-size: 1.8rem;
    }
    
    .bio {
        font-size: 1rem;
    }
    
    .social-card {
        padding: 15px;
    }
    
    .info-badge {
        flex-direction: column;
        align-items: center;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 2px solid var(--border);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cookie-accept {
    padding: 10px 30px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
