/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --bg-card-hover: #141414;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-dim: #555555;
    --accent-pink: #ff006e;
    --accent-purple: #8b5cf6;
    --accent-blue: #00d4ff;
    --spotify-green: #1db954;
    --discord-blue: #5865f2;
    --border-color: rgba(255, 255, 255, 0.06);
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-pink);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: screen;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-pink);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
}

body:hover .cursor {
    opacity: 1;
}

[data-cursor="hover"]:hover ~ .cursor {
    transform: scale(2);
    background: var(--accent-pink);
}

[data-cursor="hover"]:hover ~ .cursor-follower {
    transform: scale(1.5);
    border-color: var(--accent-pink);
}

/* Animated Stars Background */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Gradient Orbs */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-pink), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-pink), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 10s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
}

/* Container */
.container {
    max-width: 650px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 56px;
}

.profile-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 32px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    opacity: 0.3;
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.profile-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--accent-pink);
    z-index: 1;
}

.profile-image {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--bg-dark);
    background: var(--bg-card);
    z-index: 2;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.status-ring {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.status-dot {
    width: 18px;
    height: 18px;
    background: #23a55a;
    border-radius: 50%;
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(35, 165, 90, 0);
    }
}

.username {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
    line-height: 1;
}

.domain {
    color: var(--text-secondary);
}

.handle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

/* Quote Section */
.quote-section {
    background: rgba(255, 0, 110, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.quote-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-pink);
}

.quote-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.quote-source {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

.quote-dash {
    color: var(--accent-pink);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: none;
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 110, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover .card-glow {
    opacity: 1;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
}

.card:hover::before {
    opacity: 1;
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    width: 28px;
    height: 28px;
}

.spotify-card .card-icon {
    color: var(--spotify-green);
}

.discord-card .card-icon {
    color: var(--discord-blue);
}

.github-card .card-icon {
    color: #ffffff;
}

.email-card .card-icon {
    color: var(--accent-purple);
    stroke-width: 2;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.arrow-icon,
.copy-icon {
    width: 22px;
    height: 22px;
    color: var(--text-dim);
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .arrow-icon,
.card:hover .copy-icon {
    opacity: 1;
    transform: translate(4px, -4px);
}

/* Audio Player */
.audio-player {
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all 0.4s ease;
}

.audio-player:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 110, 0.3);
}

.player-container {
    padding: 24px;
}

.player-artwork {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--accent-pink);
}

.player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playing-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 20px;
}

.playing-indicator .bar {
    width: 3px;
    background: var(--accent-pink);
    border-radius: 2px;
    animation: bounce 0.6s ease-in-out infinite;
}

.playing-indicator .bar:nth-child(1) {
    animation-delay: 0s;
}

.playing-indicator .bar:nth-child(2) {
    animation-delay: 0.2s;
}

.playing-indicator .bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { height: 8px; }
    50% { height: 18px; }
}

.playing-indicator.paused .bar {
    animation: none;
    height: 8px;
}

.player-info {
    text-align: center;
    margin-bottom: 20px;
}

.track-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.artist-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.control-btn:hover {
    background: var(--accent-pink);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-pink);
    cursor: none;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--accent-pink);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-pink);
    border: none;
    cursor: none;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--accent-pink);
}

.volume-percentage {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    min-width: 40px;
    text-align: right;
}

.hidden {
    display: none;
}

.progress-container {
    margin-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: none;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-pink);
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* Spotify Link */
.spotify-link {
    text-align: center;
    margin-bottom: 40px;
}

.spotify-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid rgba(29, 185, 84, 0.3);
    border-radius: 50px;
    color: #1db954;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.spotify-link a:hover {
    background: #1db954;
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.spotify-link svg {
    width: 20px;
    height: 20px;
}

/* Spotify Player (kept for backwards compatibility) */
.spotify-player {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease;
    display: none; /* Hidden since we're using custom player */
}

.spotify-player:hover {
    transform: translateY(-4px);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 20px;
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .username {
        font-size: 2.2rem;
    }

    .profile-wrapper {
        width: 140px;
        height: 140px;
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

    .quote-section {
        padding: 28px;
    }

    .quote-text {
        font-size: 1rem;
    }

    .volume-slider-container {
        flex-direction: column;
        gap: 4px;
    }

    .volume-slider {
        width: 100px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Touch devices - show default cursor */
@media (hover: none) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }
}
