@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background Image with Blur */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('startingsoonakira.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(1px);
    z-index: -2;
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(69, 69, 69, 0.307);
    backdrop-filter: blur(6px);
    z-index: -1;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95%;
    height: 95vh;
    padding: 18px;
}

.profile-card {
    background: #0000003f;
    backdrop-filter: blur(10px);
    width: 400px;
    max-width: 90vw;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    border: 3px solid white;
    box-shadow: 0 5px 20px rgba(80, 67, 67, 0.3);
    position: relative;
    z-index: 1;
}

/* Tilt / hover highlight variables */
:root {
    --rx: 0deg; /* rotateX */
    --ry: 0deg; /* rotateY */
    --glowX: 50%;
    --glowY: 20%;
}

/* Make container provide perspective for 3D tilt */
.container {
    perspective: 1200px;
}

/* Transform the card based on mouse position via CSS variables */
.profile-card {
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 300ms cubic-bezier(.2,.9,.2,1), box-shadow 300ms ease;
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.35));
}

/* Subtle lift and stronger shadow when hovered */
.profile-card.hovered {
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

/* Moving highlight using pseudo-element */
.profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(600px 200px at var(--glowX) var(--glowY), rgba(255,255,255,0.12), rgba(255,255,255,0.02) 30%, transparent 45%);
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 250ms ease, transform 250ms ease;
    transform: translateZ(1px);
}

.profile-card.hovered::before {
    opacity: 1;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.566);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.status {
    font-size: 16px;
    color: white;
    opacity: 0.8;
    margin-bottom: 5px;
}

.status::after {
    content: "";
    display: block;
    width: 100%;
    max-width: 250px;
    height: 2px;
    background-color: white;
    margin: 10px auto;
}

.roles {
    font-size: 14px;
    color: white;
    opacity: 0.9;
    margin-bottom: 10px;
}

.bio {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    font-size: 20px;
    color: #ff0000;
    transition: 0.3s ease;
}

.social-icons a:hover {
    background: #ff0000;
    color: white;
    transform: scale(1.1);
}

.discord-presence {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-align: center;
}

/* Radiating star particles shown on pointer move */
#star-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 9998; /* above background but below overlays like enter */
}

.star {
    position: absolute;
    width: 8px;
    height: 8px;
    pointer-events: none;
    transform-origin: center;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    display: inline-block;
}

.star svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.9));
}

.star polygon {
    fill: white;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .star { width: 6px; height: 6px; }
}

/* Responsive */
@media (max-width: 768px) {
    .profile-card {
        width: 90%;
        padding: 20px;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 20px;
    }

    .status, .roles, .bio {
        font-size: 14px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        width: 95%;
        padding: 15px;
    }

    .profile-img {
        width: 100px;
        height: 100px;
    }

    .name {
        font-size: 18px;
    }

    .status, .roles, .bio {
        font-size: 12px;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
#enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 9999;
    transition: opacity 1s ease, transform 1s ease, visibility 1s ease;
    transform: scale(1);
}

#enter-overlay.hidden {
    opacity: 0;
    transform: scale(1.2); /* Zoom out */
    visibility: hidden;
}

.enter-message {
    font-weight: bold;
    text-align: center;
    animation: flicker 2s infinite;
}

/* Optional: Flickering glow for the text */
@keyframes flicker {
    0%, 80% { opacity: 0.8; text-shadow: 0 0 5px white; }
    45% { opacity: 1; text-shadow: 0 0 15px white; }
}
.music-header {
    background: #0000003f;
    color: white;
    padding: 8px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
}
.cover {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #000000;
}

/* Music player: clean, responsive */
#music-player {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 380px;
    max-width: calc(100% - 36px);
    background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.25));
    color: white;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    backdrop-filter: blur(6px) saturate(110%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10000;
    cursor: move;
    padding: 10px;
    display: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    /* brief highlight when volume changes */
}

#music-player.volume-flash {
    box-shadow: 0 12px 36px rgba(255,120,120,0.18), 0 4px 10px rgba(0,0,0,0.4) !important;
    transform: translateY(-2px);
}

/* Volume HUD styles */
#volume-hud {
    font-family: 'Poppins', sans-serif;
    pointer-events: none;
}

@media (max-width: 520px) {
    #volume-hud { right: 16px; bottom: 100px; font-size: 12px; }
}
#music-player.visible { display:block; opacity:1; transform: translateY(0); }

.music-header { display:flex; justify-content:space-between; align-items:center; gap:8px }
.music-header .title { font-weight:600; font-size:13px }

.music-body { display:flex; align-items:center; gap:10px }
.cover { width:72px; height:72px; border-radius:8px; object-fit:cover; border:1px solid rgba(255,255,255,0.06) }

.music-info { display:flex; flex-direction:column; gap:8px; width:100% }
#song-title { font-size:13px; font-weight:600; color:#fff }

/* seek bar and controls */
.player-controls { display:flex;
     flex-direction:column;
      gap:8px 
    }
.seek-row { display:flex; align-items:center; gap:8px }
#seek { flex:1; -webkit-appearance:none;
     appearance:none;
      height:8px;
       border-radius:6px;
        background: transparent;
         outline:none;
          position:relative 
        }
#seek::-webkit-slider-runnable-track { height:8px;
     border-radius:6px;
      background: linear-gradient(90deg,#ff6b6b,#ff4d79);
     }
#seek::-webkit-slider-thumb { -webkit-appearance:none;
     margin-top:-3px;
      width:14px;
       height:14px;
        border-radius:50%;
         background:white;
          box-shadow:0 2px 6px rgba(0,0,0,0.4);
           cursor:pointer 
        }
#seek::-moz-range-track { height:8px;
     border-radius:6px;
      background: linear-gradient(90deg,#ff6b6b,#ff4d79);
     }
#seek::-moz-range-thumb { width:14px;
     height:14px;
      border-radius:50%;
       background:white;
        box-shadow:0 2px 6px rgba(0,0,0,0.4);
         cursor:pointer 
        }
#seek::-webkit-slider-thumb { -webkit-appearance:none;
     width:14px;
      height:14px;
       border-radius:50%;
        background:white;
         box-shadow:0 2px 6px rgba(0,0,0,0.4);
          cursor:pointer 
        }
#current-time,#duration{ font-size:11px;
     color:rgba(255,255,255,0.8);
      min-width:34px;
       text-align:center }
.big-controls { display:flex;
     justify-content:center;
      gap:12px; align-items:center 
    }
.icon-btn { background: rgba(255,255,255,0.04);
     border:1px solid rgba(255,255,255,0.04);
      color:white;
       padding:6px 8px;
        border-radius:8px;
         cursor:pointer 
        }
.play-btn { background: linear-gradient(90deg,#ff6b6b,#ff4d79);
     border:none 
    }

@media (max-width:520px)
{ #music-player{ right:12px; left:12px; width:auto } 
.cover{ width:60px; height:60px } 
}

/* music-sheet removed */
/* fancy seek progress via JS retained; seek uses inline --p if available */

/* Volume popover wrapper & vertical slider */
.vol-popover-wrapper { position: relative; display: inline-block; }
.vol-popover { position: absolute; right: 0; bottom: 44px; width: 48px; height: 140px; display: flex; align-items: center; justify-content: center; padding: 6px 6px; background: rgba(0,0,0,0.8); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 160ms; z-index: 10010; }
.vol-popover input[type="range"] { -webkit-appearance: none; appearance: none; width: 140px; height: 24px; transform: rotate(-90deg); transform-origin: center; }
.vol-popover input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg,#ff6b6b,#ff4d79); }
.vol-popover input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.4); margin-top: -3px; border: 2px solid rgba(255,255,255,0.12); }
.vol-popover input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg,#ff6b6b,#ff4d79); }
.vol-popover input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.4); border: 2px solid rgba(255,255,255,0.12); }

/* show popover when aria-hidden is false */
.vol-popover[aria-hidden="false"] { opacity: 1; visibility: visible; }

@media (max-width: 520px) {
    .vol-popover { right: 4px; bottom: 56px; }
}

