/* ============================================================
   VIR'S PERSONAL WEBSITE — CLEAN, OPTIMIZED & OPEN SOURCE
   ============================================================ */

/* ==================== 1. MAIN COLORS ==================== */
:root {
    --primary: #E246A1;
    --bg-dark: #0a001f;
    --text-light: #e0d0ff;
    --card-dark: rgba(20, 15, 40, 0.4);
    --card-light: rgba(255, 255, 255, 0.7);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: background 0.6s ease, color 0.6s ease;
}

/* Background layers */
#particles-js, #snow-canvas, #click-effect {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
#snow-canvas { z-index: 2; }
#click-effect { z-index: 9998; }

/* Layout */
.container {
    width: 100%;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    position: relative;
    background: var(--card-dark);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 120px 35px 40px;
    width: 90%;
    max-width: 900px;
    margin: 30px auto;
    border: 2px solid rgba(226, 70, 161, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(226, 70, 161, 0.2);
}

/* Top Banner */
.top-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(20, 15, 40, 0.6);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    font-size: 0.95rem;
    pointer-events: none;
}

/* Profile */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.avatar-wrapper {
    perspective: 1000px;
    width: 150px;
    height: 150px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 20px rgba(226, 70, 161, 0.5);
}

.username { color: var(--primary); font-size: 1.1rem; }
.name { font-size: 3rem; color: #fff; }

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.badge {
    background: rgba(226, 70, 161, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
}

.bio-container {
    max-width: 700px;
    text-align: center;
}

.bio-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bio { font-size: 1.1rem; line-height: 1.6; }

/* Sections */
.divider {
    border-top: 1px solid rgba(226, 70, 161, 0.5);
    width: 60%;
    max-width: 500px;
    margin: 2.5rem auto;
}

.section { margin-bottom: 3rem; text-align: center; }

.section-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pills */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.pill {
    background: rgba(226, 70, 161, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 70, 161, 0.3);
    transition: all 0.4s ease;
}

.pill:hover {
    transform: translateY(-8px) scale(1.1);
    background: rgba(226, 70, 161, 0.4);
}

/* Social */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.social-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(226, 70, 161, 0.3);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.5s ease;
}

.social-btn:hover {
    transform: translateY(-10px) scale(1.1);
    background: rgba(226, 70, 161, 0.4);
}

.social-icon { width: 32px; height: 32px; }

/* Footer */
.footer {
    margin-top: 4rem;
    text-align: center;
    color: rgba(224, 208, 255, 0.6);
}


/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
    background: rgba(226, 70, 161, 0.3);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Floating Character */
.floating-character {
    position: fixed;
    bottom: -5px;
    right: -5px;
    z-index: 999;
    pointer-events: none;
}

.floating-character img {
    width: 360px;
    filter: drop-shadow(0 10px 20px rgba(226, 70, 161, 0.6));
}

/* Glowing Cursor */
#glowing-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover #glowing-cursor { opacity: 1; }

/* Hide default cursor */
a, button, .pill, .badge, .social-btn, .avatar-wrapper, .theme-toggle,
.discord-widget, .lastfm-widget, .spotify-widget, .anilist-wrapper,
#back-to-top, .floating-character, .music-player-bar * {
    cursor: none !important;
}

/* ==================== FIXED BOTTOM MUSIC PLAYER (SMALLER SIZE) ==================== */
.music-player-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;                      /* Slightly narrower */
    max-width: 500px;                /* Reduced from 700px for smaller bar */
    height: 100px;                   /* Reduced from 140px */
    background: rgba(20, 15, 40, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(226, 70, 161, 0.4);
    display: flex;
    align-items: center;
    padding: 12px 16px;              /* Reduced padding */
    gap: 16px;                       /* Reduced gap */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.music-player-bar:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Smaller cover image */
.music-player-cover img {
    width: 70px;                     /* Reduced from 88px */
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

/* Main area */
.music-player-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Top row */
.music-player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;                       /* Reduced gap */
    margin-top: 5px;   /* ← CHANGE THIS VALUE */
}

/* Smaller progress bar */
.music-player-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;                /* Reduced */
    flex: 1;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 2px;
}

/* Smaller volume */
.music-player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-player-volume svg {
    width: 18px;                     /* Reduced */
    height: 18px;
    fill: white;
    opacity: 0.8;
}

#volume-slider {
    -webkit-appearance: none;
    width: 70px;                     /* Reduced from 80px */
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(226, 70, 161, 0.6);
}

/* Bottom controls */
.music-player-bottom-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 12px;                /* Reduced top margin */
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;               /* Reduced from 1.8rem */
    cursor: pointer;
    padding: 8px;                    /* Reduced padding */
    border-radius: 50%;
    transition: background 0.3s ease;
}

.control-btn:hover {
    background: rgba(226, 70, 161, 0.3);
}

.play-pause svg {
    width: 28px;                     /* Reduced */
    height: 28px;
    fill: white;
}

/* Light mode */
body.light-mode .music-player-bar {
    background: rgba(255, 255, 255, 0.8);
    color: #2d1b69;
    border-color: rgba(226, 70, 161, 0.3);
}

body.light-mode .progress-bar {
    background: rgba(0, 0, 0, 0.2);
}
/* Responsive */
@media (max-width: 600px) {
    .music-player-bar {
        width: 95%;
        height: 100px;
        padding: 12px;
    }
    .music-player-cover img {
        width: 70px;
        height: 70px;
    }
}

 /* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.anilist-img {
    width: 100%;
    max-width: 900px;        /* Back to normal size */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ==================== MUSIC PLAYER ICONS FIX ==================== */
/* Play/Pause SVG icon — white in dark mode, dark in light mode */
.play-pause svg,
.music-player-volume svg {
    fill: white;
    width: 32px;
    height: 32px;
    transition: fill 0.3s ease;
}

/* Volume icon specifically */
.music-player-volume svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

/* Light mode: dark icons */
body.light-mode .play-pause svg,
body.light-mode .music-player-volume svg {
    fill: #2d1b69;
}

/* ==================== FOOTER - BOTTOM LEFT ==================== */
.footer {
    position: fixed;
    bottom: -40px;                    /* Distance from bottom */
    left: -500px;                      /* Distance from left */
    margin: 0;                       /* Remove default margin */
    padding: 0.8rem 1.2rem;
    background: rgba(20, 15, 40, 0.6); /* Semi-transparent background */
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(226, 70, 161, 0.3);
    font-size: 0.9rem;
    color: var(--text-light);
    z-index: 998;                    /* Below music player if needed */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Light mode */
body.light-mode .footer {
    background: rgba(255, 255, 255, 0.8);
    color: #2d1b69;
    border-color: rgba(226, 70, 161, 0.3);
}