/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Warna Tema MLBB Neon */
:root {
    --mlbb-purple: #7b2cbf;
    --mlbb-blue: #3a86ff;
    --mlbb-pink: #ff006e;
    --mlbb-green: #38b000;
    --mlbb-yellow: #ffbe0b;
    --mlbb-dark: #0d0221;
    --mlbb-black: #050014;
    --neon-glow-purple: 0 0 5px #7b2cbf, 0 0 10px #7b2cbf, 0 0 15px #7b2cbf, 0 0 20px #7b2cbf;
    --neon-glow-blue: 0 0 5px #3a86ff, 0 0 10px #3a86ff, 0 0 15px #3a86ff, 0 0 20px #3a86ff;
    --neon-glow-pink: 0 0 5px #ff006e, 0 0 10px #ff006e, 0 0 15px #ff006e, 0 0 20px #ff006e;
    --neon-glow-yellow: 0 0 5px #ffbe0b, 0 0 10px #ffbe0b, 0 0 15px #ffbe0b, 0 0 20px #ffbe0b;
}

body {
    background-color: var(--mlbb-black);
    min-height: 100vh;
    padding: 25px 15px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    font-family: 'Rajdhani', sans-serif;
}

/* Latar Belakang Grid Animasi */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(123, 44, 191, 0.1) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(123, 44, 191, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    animation: grid-move 15s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

/* Latar Belakang Neon Glow */
.bg-neon-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.2), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: glow-pulse 8s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
}

/* Kontainer Utama Ala MLBB */
.mlbb-container {
    max-width: 600px;
    width: 100%;
    background-color: var(--mlbb-dark);
    border: 1px solid var(--mlbb-purple);
    border-radius: 10px;
    padding: 35px 30px;
    box-shadow: var(--neon-glow-purple);
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

/* Header Profil Hero */
.hero-profile {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

/* Badge Rank Mythic */
.rank-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--mlbb-dark);
    border: 2px solid var(--mlbb-yellow);
    border-radius: 20px;
    padding: 5px 15px;
    color: var(--mlbb-yellow);
    font-weight: 700;
    box-shadow: 0 0 10px var(--mlbb-yellow);
    z-index: 2;
}

.neon-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border: 1px solid var(--mlbb-yellow);
    border-radius: 20px;
    animation: ring-pulse 2s ease-in-out infinite alternate;
}

@keyframes ring-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; box-shadow: 0 0 15px var(--mlbb-yellow); }
}

/* Avatar Hero */
.hero-avatar-box {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mlbb-blue);
    position: relative;
    z-index: 2;
}

.avatar-neon-border {
    position: absolute;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border-radius: 50%;
    background: linear-gradient(45deg, var(--mlbb-blue), var(--mlbb-purple), var(--mlbb-pink));
    filter: blur(5px);
    z-index: 1;
    animation: border-rotate 5s linear infinite;
}

@keyframes border-rotate {
    0% { filter: blur(5px) hue-rotate(0deg); }
    100% { filter: blur(5px) hue-rotate(360deg); }
}

/* Partikel Energi */
.energy-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--mlbb-pink);
    border-radius: 50%;
    box-shadow: var(--neon-glow-pink);
    z-index: 3;
    animation: particle-float 6s ease-in-out infinite;
}

.energy-particle::before,
.energy-particle::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: var(--neon-glow-blue);
    background-color: var(--mlbb-blue);
    animation: particle-float 4s ease-in-out infinite;
}

.energy-particle::before {
    top: 20px;
    right: -10px;
    animation-delay: 1s;
}

.energy-particle::after {
    bottom: 10px;
    left: -15px;
    animation-delay: 2s;
}

@keyframes particle-float {
    0% { transform: translate(0, 0) scale(0.8); opacity: 0.7; }
    50% { transform: translate(5px, -5px) scale(1); opacity: 1; }
    100% { transform: translate(0, 0) scale(0.8); opacity: 0.7; }
}

/* Nama Hero */
.hero-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    text-shadow: var(--neon-glow-purple);
}

.hero-name span {
    color: var(--mlbb-pink);
    text-shadow: var(--neon-glow-pink);
}

.hero-role {
    font-size: 1.1rem;
    color: var(--mlbb-blue);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--mlbb-blue);
}

/* Stats Bar Ala MLBB */
.stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(123, 44, 191, 0.5);
    border-bottom: 1px solid rgba(123, 44, 191, 0.5);
}

.stat-item {
    text-align: center;
}

.stat-item span:first-child {
    font-size: 0.9rem;
    color: #ccc;
    display: block;
}

.neon-text {
    font-weight: 700;
    color: var(--mlbb-blue);
    text-shadow: var(--neon-glow-blue);
}

/* Garis Pembatas Neon */
.mlbb-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.neon-line {
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mlbb-purple), transparent);
    box-shadow: var(--neon-glow-purple);
}

.mlbb-icon {
    font-size: 1.5rem;
    animation: icon-glow 2s ease-in-out infinite alternate;
}

@keyframes icon-glow {
    0% { text-shadow: var(--neon-glow-blue); }
    100% { text-shadow: var(--neon-glow-pink); }
}

/* Link Skill Button */
.skill-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.skill-button {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background-color: rgba(13, 2, 33, 0.8);
    border: 1px solid var(--mlbb-purple);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Efek Neon Glow di Tombol */
.skill-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 44, 191, 0.3), transparent);
    animation: skill-glow-move 3s linear infinite;
}

@keyframes skill-glow-move {
    100% { left: 100%; }
}

.skill-button:hover {
    border-color: var(--mlbb-pink);
    box-shadow: var(--neon-glow-pink);
    transform: translateY(-2px);
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--mlbb-dark);
    border: 2px solid var(--mlbb-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--mlbb-blue);
    font-size: 1.3rem;
    margin-right: 20px;
    transition: all 0.4s ease;
    position: relative;
}

.skill-button:hover .skill-icon {
    border-color: var(--mlbb-pink);
    color: var(--mlbb-pink);
    box-shadow: var(--neon-glow-pink);
}

.skill-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
}

.skill-text p {
    font-size: 0.85rem;
    color: #ccc;
}

/* Footer Ala UI MLBB */
.mlbb-footer {
    position: relative;
    padding-top: 15px;
    border-top: 1px solid var(--mlbb-purple);
}

.power-bar {
    width: 100%;
    height: 8px;
    background-color: var(--mlbb-dark);
    border: 1px solid var(--mlbb-blue);
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.power-fill {
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, var(--mlbb-blue), var(--mlbb-purple));
    box-shadow: var(--neon-glow-blue);
    animation: power-pulse 4s ease-in-out infinite alternate;
}

@keyframes power-pulse {
    0% { width: 75%; opacity: 0.8; }
    100% { width: 85%; opacity: 1; }
}

.mlbb-footer p {
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
}

/* Responsive Mobile */
@media (max-width: 500px) {
    .mlbb-container {
        padding: 25px 20px;
    }

    .hero-name {
        font-size: 1.8rem;
    }

    .hero-avatar {
        width: 130px;
        height: 130px;
    }

    .skill-button {
        padding: 15px 20px;
    }

    .skill-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-right: 15px;
    }

    .skill-text h3 {
        font-size: 1rem;
    }
}
