@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --gold-light: #FFF8DC;
    --red: #FF4444;
    --red-glow: #FF6B6B;
    --dark: #0A0A0A;
    --dark-card: rgba(15, 15, 25, 0.85);
    --white: #FFFFFF;
    --text-light: #CCCCCC;
    --text-dim: #999999;
    --neon-blue: #00D2FF;
    --neon-purple: #A855F7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 20px;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(-45deg, #0a0a0a, #1a1a2e, #16213e, #0f0f1a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0;
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-duration: 8s; animation-delay: 0s; }
.particle:nth-child(2) { width: 3px; height: 3px; left: 20%; animation-duration: 12s; animation-delay: 1s; }
.particle:nth-child(3) { width: 6px; height: 6px; left: 35%; animation-duration: 10s; animation-delay: 2s; }
.particle:nth-child(4) { width: 2px; height: 2px; left: 50%; animation-duration: 14s; animation-delay: 0.5s; }
.particle:nth-child(5) { width: 5px; height: 5px; left: 65%; animation-duration: 9s; animation-delay: 3s; }
.particle:nth-child(6) { width: 3px; height: 3px; left: 75%; animation-duration: 11s; animation-delay: 1.5s; }
.particle:nth-child(7) { width: 4px; height: 4px; left: 85%; animation-duration: 13s; animation-delay: 2.5s; }
.particle:nth-child(8) { width: 2px; height: 2px; left: 90%; animation-duration: 7s; animation-delay: 0.8s; }
.particle:nth-child(9) { width: 5px; height: 5px; left: 45%; animation-duration: 15s; animation-delay: 4s; }
.particle:nth-child(10) { width: 3px; height: 3px; left: 55%; animation-duration: 10s; animation-delay: 3.5s; }

@keyframes floatUp {
    0% { transform: translateY(110vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

.main-container {
    perspective: 1200px;
    width: 100%;
    max-width: 550px;
}

.profile-card {
    position: relative;
    background: var(--dark-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 215, 0, 0.25);
    border-radius: 30px;
    padding: 45px 35px 35px;
    text-align: center;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.15),
        0 0 80px rgba(255, 215, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: cardFloat 6s ease-in-out infinite;
    overflow: hidden;
    z-index: 1;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 35%,
        rgba(255, 215, 0, 0.03) 40%,
        rgba(255, 215, 0, 0.08) 45%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 215, 0, 0.08) 55%,
        rgba(255, 215, 0, 0.03) 60%,
        transparent 65%
    );
    animation: shineSweep 5s ease-in-out infinite;
    z-index: -1;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    30% { transform: translateY(-15px) rotateX(3deg); }
    60% { transform: translateY(-5px) rotateX(-1deg); }
}

@keyframes shineSweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ============ AVATAR SECTION ============ */
.avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.avatar-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: ringRotate linear infinite;
}

.avatar-ring:nth-child(1) {
    width: 170px;
    height: 170px;
    top: -10px;
    left: -10px;
    border-top-color: var(--gold);
    border-right-color: var(--gold);
    animation-duration: 4s;
}

.avatar-ring:nth-child(2) {
    width: 185px;
    height: 185px;
    top: -17.5px;
    left: -17.5px;
    border-top-color: var(--red-glow);
    border-left-color: var(--gold);
    animation-duration: 5s;
    animation-direction: reverse;
}

.avatar-ring:nth-child(3) {
    width: 200px;
    height: 200px;
    top: -25px;
    left: -25px;
    border-bottom-color: var(--neon-blue);
    border-right-color: var(--red-glow);
    animation-duration: 6s;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============ AVATAR IMAGE (FIXED) ============ */
.avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, 0.3);
    animation: avatarPulse 3s ease-in-out infinite;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    display: block;
}

@keyframes avatarPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.8), 0 0 100px rgba(255, 107, 107, 0.4);
    }
}

/* ============ NAME SECTION ============ */
.name-section {
    margin-bottom: 8px;
}

.name {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 30%, #FFD700 60%, #FF8C00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ============ BADGE ============ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 107, 107, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    padding: 10px 20px;
    margin: 15px 0;
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-icon {
    font-size: 20px;
    animation: trophyShake 1.5s ease-in-out infinite;
}

@keyframes trophyShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.badge-text {
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
}

/* ============ CHARACTER BOX ============ */
.character-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.character-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--red-glow));
    border-radius: 4px 0 0 4px;
}

.character-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.character-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.character-origin {
    font-size: 13px;
    color: var(--gold);
    font-weight: 500;
}

/* ============ DIALOGUE BOX ============ */
.dialogue-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px dashed rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 18px;
    margin: 15px 0;
    position: relative;
}

.dialogue-quote {
    font-size: 16px;
    font-weight: 500;
    color: var(--gold-light);
    font-style: italic;
    line-height: 1.6;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--gold);
    animation: 
        typing 4s steps(45) 1s infinite alternate,
        blink 0.8s step-end infinite;
    max-width: 100%;
}

@keyframes typing {
    0% { width: 0; }
    50% { width: 100%; }
    80% { width: 100%; }
    100% { width: 0; }
}

@keyframes blink {
    0%, 100% { border-color: var(--gold); }
    50% { border-color: transparent; }
}

.dialogue-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 8px;
}

/* ============ SHOWS SECTION ============ */
.shows-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}

.show-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.show-tag:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

/* ============ INFO GRID ============ */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.info-icon {
    font-size: 22px;
    width: 35px;
    text-align: center;
}

.info-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 14px;
    color: var(--white);
    font-weight: 600;
}

/* ============ STAR RATING ============ */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.star {
    font-size: 24px;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

.star:nth-child(1) { animation-delay: 0s; }
.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.4s; }
.star:nth-child(4) { animation-delay: 0.6s; }
.star:nth-child(5) { animation-delay: 0.8s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 8px gold); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
    .profile-card {
        padding: 30px 20px 25px;
        border-radius: 25px;
    }
    
    .name {
        font-size: 28px;
    }
    
    .avatar-img {
        width: 120px;
        height: 120px;
    }
    
    .avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .avatar-ring:nth-child(1) {
        width: 140px;
        height: 140px;
        top: -10px;
        left: -10px;
    }
    .avatar-ring:nth-child(2) {
        width: 155px;
        height: 155px;
        top: -17.5px;
        left: -17.5px;
    }
    .avatar-ring:nth-child(3) {
        width: 170px;
        height: 170px;
        top: -25px;
        left: -25px;
    }
    
    .dialogue-quote {
        font-size: 13px;
        white-space: normal;
        animation: none;
        border-right: none;
    }
}