/* ═══ GLOBAL SYSTEM STYLES ═══ */
:root {
    --gold-primary: #dfba73;
    --gold-secondary: #c5a059;
    --bg-dark: #07070a;
    --card-bg: rgba(12, 12, 18, 0.48);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-outfit: 'Outfit', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-outfit);
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: none; /* Hide default cursor to show custom cursor */
}



/* ═══ VIDEO BACKGROUND SYSTEM ═══ */
.video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(7, 7, 10, 0.3) 0%,
        rgba(5, 5, 7, 0.82) 100%
    );
    z-index: 1;
}

/* ═══ MAIN LAYOUT CONTAINER ═══ */
.container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 460px;
    padding: 20px;
}

/* ═══ GLASSMORPHISM CARD ═══ */
.card {
    position: relative;
    width: 380px;
    height: 380px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid var(--border-color);
    border-radius: 24px; /* Smooth luxury rounding */
    padding: 24px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ═══ PROFILE PICTURE (AVATAR) ═══ */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.neon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top: 2px solid var(--gold-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    animation: rotateRing 8s linear infinite;
    z-index: 1;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ═══ PROFILE DETAILS ═══ */
.profile-details {
    text-align: center;
    width: 100%;
}

.name {
    font-family: var(--font-serif);
    font-size: 34px; /* Large elegant serif name */
    font-weight: 400;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 40%, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}

/* ═══ SKILLS SECTION ═══ */
.skills-section {
    width: 100%;
}

.section-title {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-align: center;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.skill-tag {
    font-size: 11px;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; /* Pill shaped */
    padding: 5px 12px;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ═══ MUSIC CONTROLLER SYSTEM ═══ */
.music-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.music-title {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.music-artist {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.45);
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Equalizer Bar Animation */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 20px;
    height: 14px;
}

.equalizer .bar {
    width: 2px;
    height: 2px;
    background-color: var(--gold-primary);
    transition: height 0.1s ease;
}

/* Dynamic Animating State */
.equalizer.animating .bar:nth-child(1) { animation: equalise 0.8s ease infinite alternate; }
.equalizer.animating .bar:nth-child(2) { animation: equalise 0.5s ease infinite alternate; }
.equalizer.animating .bar:nth-child(3) { animation: equalise 1.2s ease infinite alternate; }
.equalizer.animating .bar:nth-child(4) { animation: equalise 0.7s ease infinite alternate; }
.equalizer.animating .bar:nth-child(5) { animation: equalise 0.9s ease infinite alternate; }

@keyframes equalise {
    0% { height: 2px; }
    100% { height: 14px; }
}

.play-btn {
    background: var(--gold-primary);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-dark);
    box-shadow: 0 4px 10px rgba(223, 186, 115, 0.2);
    transition: all 0.3s ease;
    cursor: none;
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(223, 186, 115, 0.35);
}

.play-btn svg {
    width: 12px;
    height: 12px;
}

/* ═══ VIEW COUNTER (fixed top center) ═══ */
.view-counter {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(12, 12, 18, 0.45);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.view-counter svg {
    width: 15px;
    height: 15px;
    color: var(--gold-primary);
}

.view-count {
    font-weight: 600;
    color: #ffffff;
}

.view-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* ═══ SOCIAL LINKS (fixed at bottom center) ═══ */
.social-links {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: none;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #ffffff;
    border-color: var(--gold-primary);
    background: rgba(223, 186, 115, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.hidden {
    display: none !important;
}

/* ═══ TAP TO ENTER SPLASH ═══ */
.enter-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Translucent blue tint so the background video stays visible */
    background: radial-gradient(
        circle at center,
        rgba(30, 70, 160, 0.30) 0%,
        rgba(8, 20, 55, 0.55) 100%
    );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.enter-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.enter-pulse {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid #5b9dff;
    margin-bottom: 18px;
    position: relative;
    animation: enterPulse 2s ease-out infinite;
}

.enter-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: 14px solid #5b9dff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    transform: translateX(3px);
}

@keyframes enterPulse {
    0%   { box-shadow: 0 0 0 0 rgba(91, 157, 255, 0.45); }
    100% { box-shadow: 0 0 0 22px rgba(91, 157, 255, 0); }
}

.enter-text {
    font-family: var(--font-serif);
    font-size: 26px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 40%, #5b9dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.enter-sub {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

/* ═══ CUSTOM MOUSE POINTER GLOW ═══ */
.cursor-glow {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.6),
        0 0 20px var(--gold-primary);
    transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    mix-blend-mode: screen;
}

/* Hovering active state */
.cursor-glow.hovering {
    width: 16px;
    height: 16px;
    background-color: var(--gold-primary);
    box-shadow: 
        0 0 12px var(--gold-primary),
        0 0 24px var(--gold-primary);
}

/* ═══ MOBILE RESPONSIVE ADAPTATIONS ═══ */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
        border-radius: 20px;
    }
    
    .name {
        font-size: 28px;
    }
    
    .avatar-wrapper {
        width: 80px;
        height: 80px;
    }
}
