@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --bg-gradient-alt: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --dark-bg: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glow-color: rgba(118, 75, 162, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: var(--bg-gradient);
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(118, 75, 162, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(79, 172, 254, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(240, 147, 251, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(245, 87, 108, 0.15) 0%, transparent 40%);
    background-size: 200% 200%;
    animation: patternShift 25s ease-in-out infinite, patternPulse 8s ease-in-out infinite;
    opacity: 0.7;
    will-change: background-position, opacity, transform;
    transition: opacity 0.3s ease, transform 0.1s ease-out;
}

.background-pattern:hover {
    opacity: 0.9;
}

@keyframes patternShift {
    0%, 100% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 50% 0%;
    }
}

@keyframes patternPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
}

.profile-section {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: rgba(118, 75, 162, 0.3);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(118, 75, 162, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.profile-image:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 50px rgba(118, 75, 162, 0.4), 0 0 0 8px rgba(118, 75, 162, 0.2);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.profile-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.link-card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.link-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.link-card:hover .link-glow {
    width: 200%;
    height: 200%;
}

.link-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    z-index: 1;
    position: relative;
    color: var(--text-primary);
}

.link-icon i {
    transition: transform 0.3s ease;
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.15);
}

.link-card:hover .link-icon i {
    transform: scale(1.1);
}

/* Platform-specific icon colors on hover */
.link-card[data-link="spotify"]:hover .link-icon {
    color: #1DB954;
}

.link-card[data-link="discord"]:hover .link-icon {
    color: #5865F2;
}

.link-card[data-link="steam"]:hover .link-icon {
    color: #171a21;
}

.link-card[data-link="github"]:hover .link-icon {
    color: #ffffff;
}

.link-card[data-link="lastfm"]:hover .link-icon {
    color: #D51007;
}

.link-card[data-link="anilist"]:hover .link-icon {
    color: #ff4081;
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1;
    position: relative;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.link-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.link-arrow {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    color: var(--text-secondary);
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(5px);
    color: var(--text-primary);
}

.link-card:hover .link-arrow i {
    transform: translateX(3px);
}

.footer {
    text-align: center;
    padding-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.heart {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific color glows for each link */
.link-card[data-link="spotify"]:hover {
    box-shadow: 0 10px 30px rgba(30, 215, 96, 0.4);
}

.link-card[data-link="anilist"]:hover {
    box-shadow: 0 10px 30px rgba(255, 64, 129, 0.4);
}

.link-card[data-link="discord"]:hover {
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.link-card[data-link="steam"]:hover {
    box-shadow: 0 10px 30px rgba(27, 40, 56, 0.4);
}

.link-card[data-link="github"]:hover {
    box-shadow: 0 10px 30px rgba(36, 41, 47, 0.4);
}

.link-card[data-link="lastfm"]:hover {
    box-shadow: 0 10px 30px rgba(208, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-glow {
        width: 150px;
        height: 150px;
    }

    .link-card {
        padding: 1rem 1.25rem;
    }

    .link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    #particles-canvas {
        opacity: 0.2;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


