/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #050508;
    --bg2: #0a0a12;
    --card-bg: rgba(12, 12, 22, 0.85);
    --accent: #8b5cf6;
    --accent2: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --red: #ef4444;
    --green: #22c55e;
    --yellow: #eab308;
    --orange: #f59e0b;
    --spotify: #1DB954;
    --text: #f1f1f7;
    --text2: #9ca3af;
    --text3: #6b7280;
    --glass-border: rgba(139, 92, 246, 0.18);
    --font: 'Outfit', sans-serif;
    --mono: 'Space Grotesk', monospace;
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: default;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== AUDIO UNLOCK OVERLAY ===== */
#audio-unlock {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#audio-unlock.gone {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.unlock-text {
    font-size: clamp(14px, 3vw, 20px);
    letter-spacing: 6px;
    color: var(--text3);
    text-transform: uppercase;
    animation: pulse-text 2s ease-in-out infinite;
    user-select: none;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ===== PARTICLES ===== */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ===== SCREEN FLASH ===== */
#screen-flash {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    background: white;
    transition: none;
}

#screen-flash.flash {
    animation: do-flash 0.35s ease-out forwards;
}

@keyframes do-flash {
    0% { opacity: 0.7; background: var(--accent); }
    30% { opacity: 0.4; background: white; }
    100% { opacity: 0; }
}

/* ===== INTRO SEQUENCE ===== */
#intro-sequence {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg);
    transition: opacity 0.8s ease;
}

#intro-sequence.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: scale(0.3);
    filter: blur(10px);
}

.intro-line.slam {
    animation: intro-slam 0.5s cubic-bezier(0.12, 0.8, 0.2, 1) forwards;
}

@keyframes intro-slam {
    0% {
        opacity: 0;
        transform: scale(3);
        filter: blur(12px);
    }
    50% {
        opacity: 1;
        filter: blur(0);
    }
    70% {
        transform: scale(0.92);
    }
    85% {
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.intro-line.shake {
    animation: screen-shake 0.4s ease-out;
}

@keyframes screen-shake {
    0% { transform: translate(0, 0) scale(1); }
    15% { transform: translate(-6px, 3px) scale(1); }
    30% { transform: translate(5px, -4px) scale(1); }
    45% { transform: translate(-3px, 2px) scale(1); }
    60% { transform: translate(4px, -1px) scale(1); }
    75% { transform: translate(-2px, 1px) scale(1); }
    100% { transform: translate(0, 0) scale(1); }
}

.intro-word {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    letter-spacing: 12px;
    color: var(--text3);
    text-transform: uppercase;
}

.intro-name {
    font-size: clamp(60px, 14vw, 160px);
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--accent2) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    position: relative;
}

.intro-surname {
    font-size: clamp(60px, 14vw, 160px);
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(139, 92, 246, 0.2);
}

/* Muzzle flash effect */
.muzzle-flash {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,200,50,0.8) 0%, rgba(255,100,0,0.4) 30%, transparent 70%);
    pointer-events: none;
    z-index: 150;
    animation: muzzle 0.15s ease-out forwards;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes muzzle {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.3); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* Smoke particles */
#smoke-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 90;
}

.smoke {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: smoke-rise 1.5s ease-out forwards;
}

@keyframes smoke-rise {
    0% {
        opacity: 0.6;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--sx), var(--sy)) scale(3);
    }
}

/* Bullet shell particles */
.shell {
    position: fixed;
    width: 4px;
    height: 10px;
    background: linear-gradient(to bottom, #ffd700, #b8860b);
    border-radius: 1px;
    z-index: 160;
    animation: shell-fly 0.6s ease-out forwards;
}

@keyframes shell-fly {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--ex), var(--ey)) rotate(720deg);
    }
}

/* ===== BIO CONTENT ===== */
#bio-content {
    position: relative;
    z-index: 1;
}

#bio-content.hidden { display: none; }

.bio-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.bio-card {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px 28px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 8px 40px rgba(0,0,0,0.5),
        0 0 80px rgba(139,92,246,0.04),
        inset 0 1px 0 rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    position: relative;
    overflow: hidden;
}

.bio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-30%); }
    100% { transform: translateX(30%); }
}

.bio-card.reveal {
    animation: card-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-up {
    from { opacity: 0; transform: translateY(50px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), transparent, var(--accent));
    opacity: 0.4;
    animation: glow-spin 5s linear infinite;
    filter: blur(5px);
}

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

.avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg);
    position: relative;
    z-index: 1;
}

.status-badge {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--bg2);
    z-index: 2;
}

.status-badge.online { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-badge.idle { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.status-badge.dnd { background: var(--red); box-shadow: 0 0 8px var(--red); }
.status-badge.offline { background: var(--text3); }

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.display-name {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.username {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text3);
}

.badges {
    display: flex;
    gap: 5px;
    margin-top: 2px;
}

.badge {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,92,246,0.12);
    color: var(--accent2);
    transition: transform 0.2s;
}

.badge:hover { transform: scale(1.2); }

/* Status Section */
.status-section {
    padding: 10px 14px;
    background: rgba(139,92,246,0.04);
    border-radius: 10px;
    border: 1px solid rgba(139,92,246,0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text3);
    flex-shrink: 0;
}

.status-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.idle { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.status-dot.dnd { background: var(--red); box-shadow: 0 0 6px var(--red); }

.status-row span {
    font-size: 13px;
    color: var(--text2);
    font-weight: 500;
}

.platforms {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.plat-tag {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(139,92,246,0.08);
    color: var(--accent2);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Spotify */
.spotify-card {
    padding: 14px;
    background: rgba(29,185,84,0.04);
    border-radius: 10px;
    border: 1px solid rgba(29,185,84,0.12);
}

.spotify-card.hidden { display: none; }

.spotify-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--spotify);
    margin-bottom: 10px;
}

.spotify-body {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sp-art {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.sp-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sp-song {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-artist {
    font-size: 11px;
    color: var(--text2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-album {
    font-size: 10px;
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.sp-progress {
    height: 100%;
    background: var(--spotify);
    border-radius: 2px;
    transition: width 1s linear;
}

/* About */
.about-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text3);
}

.about-line {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.5;
}

.about-line.dim { color: var(--text3); }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(167,139,250,0.06));
    color: var(--accent2);
    border: 1px solid rgba(139,92,246,0.12);
    transition: all 0.3s;
    cursor: default;
}

.tag:hover {
    background: rgba(139,92,246,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139,92,246,0.15);
}

/* Socials */
.socials {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.dc-btn {
    background: rgba(88,101,242,0.1);
    color: #7289da;
    border-color: rgba(88,101,242,0.15);
}

.dc-btn:hover {
    background: rgba(88,101,242,0.22);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(88,101,242,0.15);
}

.gh-btn {
    background: rgba(255,255,255,0.05);
    color: var(--text2);
    border-color: rgba(255,255,255,0.08);
}

.gh-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,255,255,0.06);
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--text3);
    font-size: 11px;
    letter-spacing: 1px;
    border-top: 1px solid rgba(139,92,246,0.06);
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 550px) {
    .bio-card { padding: 24px 18px; border-radius: 16px; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-text { align-items: center; }
    .socials { flex-direction: column; }
    .tags { justify-content: center; }
    .intro-line { gap: 10px; flex-wrap: wrap; }
    .intro-name, .intro-surname { font-size: clamp(40px, 12vw, 100px); }
}
