/* Monochrome Design Tokens */
:root {
    --bg-dark: #000000;
    --bg-card: rgba(10, 10, 10, 0.55);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.25);
    --accent-color: #ffffff;
    --text-main: #ffffff;
    --text-muted: #888888;
    
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none; /* Custom cursor */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Custom Cursor */
.custom-cursor {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: #ffffff;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.custom-cursor.hovered {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Background Image Layer */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('Background.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(20%) contrast(110%);
    z-index: -4;
    pointer-events: none;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background: transparent;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 30%, #000000 100%);
    z-index: -2;
    pointer-events: none;
    opacity: 0.85;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
}

/* Copy Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Simplified Entry Screen */
.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.enter-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.enter-btn svg {
    margin-left: 2px; /* Center play symbol */
}

.enter-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.enter-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    opacity: 0;
    transform: translateY(15px) scale(0.99);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.main-container.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 22px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.15s ease-out;
}

/* Badges */
.badge-row {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.badge i {
    width: 11px;
    height: 11px;
}

.badge:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

/* Avatar */
.avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.avatar-wrapper:hover .avatar {
    filter: grayscale(0%);
    border-color: #ffffff;
    transform: scale(1.03);
}

/* User Info */
.profile-info {
    text-align: center;
    margin-bottom: 25px;
}

.username {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.bio-typing {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    min-height: 20px;
}

.cursor-blink {
    font-weight: 300;
    animation: blink 0.8s infinite;
}

/* Section Title */
.section-title {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: lowercase;
    margin-bottom: 12px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 4px;
}

/* Connections Grid */
.links-section {
    width: 100%;
    margin-bottom: 25px;
}

.social-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.social-card:last-child {
    margin-bottom: 0;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.social-svg-raw {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.social-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.social-handle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.social-action {
    opacity: 0.4;
    transform: translateX(-4px);
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.action-icon {
    width: 14px;
    height: 14px;
}

/* Card Hover States */
.social-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.social-card:hover .social-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.social-card:hover .social-action {
    opacity: 1;
    transform: translateX(0);
    color: #ffffff;
}

/* Custom Music Player Styles */
.music-section {
    width: 100%;
    margin-top: 5px;
}

.music-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
}

.music-card:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.music-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-details {
    display: flex;
    flex-direction: column;
}

.music-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.music-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.music-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.15s;
}

.progress-container:hover {
    height: 6px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 2px;
}

.music-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.music-controls::before {
    content: '';
    width: 92px; /* Centers the play button by balancing the volume controller's width (14px icon + 8px gap + 70px slider) */
}

.music-control-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.music-control-btn:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.music-control-btn.playing {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.music-control-btn.playing:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.music-control-btn i {
    width: 14px;
    height: 14px;
    display: inline-block;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 92px;
}

.volume-container i {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    transition: var(--transition-smooth);
}

.volume-slider:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Webkit Range Thumb */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.1s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Firefox Range Thumb */
.volume-slider::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    transition: transform 0.1s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
}

/* Typing cursor animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Mobile responsive fixes */
@media (max-width: 480px) {
    .main-container {
        padding: 12px;
    }
    
    .profile-card {
        padding: 24px 16px;
    }

    .username {
        font-size: 1.6rem;
    }
}
