:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #161616;
    --bg-card: rgba(32, 32, 32, 0.85);
    --bg-card-hover: rgba(45, 45, 45, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #ffffff;
    --border-color: rgba(60, 60, 60, 0.5);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-quaternary: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(67, 233, 123, 0.05) 0%, transparent 70%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-feature-settings: "palt" 1;
    letter-spacing: 0.02em;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(102, 126, 234, 0.15),
            rgba(118, 75, 162, 0.1) 40%,
            transparent 80%
        );
    pointer-events: none;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.profile-section {
    text-align: center;
    margin-bottom: 3rem;
}

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

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                var(--gradient-primary) border-box;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.avatar:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: var(--shadow-glow), 0 12px 40px rgba(0, 0, 0, 0.4);
}


.name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.08em;
}

.title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.bio-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
    margin: 1.5rem auto 0;
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.bio-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
}

.bio-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border-radius: 8px;
}

.bio-text {
    flex: 1;
}

.links-section {
    margin-bottom: 3rem;
}

.link-category {
    margin-bottom: 3rem;
    padding: 0;
    position: relative;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.general-activity {
    border-left-color: rgba(102, 126, 234, 0.6);
}

.ai-community {
    border-left-color: rgba(67, 233, 123, 0.6);
}

.nft-project {
    border-left-color: rgba(240, 147, 251, 0.6);
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: none;
    position: relative;
    transition: all 0.2s ease;
}

.category-icon {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.category-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    opacity: 0.9;
}

.links-grid {
    display: grid;
    gap: 1rem;
    padding-left: 1rem;
}

.link-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.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;
}

.link-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(102, 126, 234, 0.7);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 
                var(--shadow-glow), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

.icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.icon img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.link-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

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

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

.link-text {
    font-weight: 500;
    font-size: 1.1rem;
    flex-grow: 1;
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
}

.link-username {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.twitter .icon {
    background: linear-gradient(135deg, #1a1d1f, #2a2d3f);
    box-shadow: 0 4px 16px rgba(26, 29, 31, 0.5);
}
.twitter:hover .icon {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
}

.portfolio .icon {
    background: var(--gradient-primary);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}
.portfolio:hover .icon {
    background: var(--gradient-primary);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5);
}

.note .icon {
    background: var(--gradient-quaternary);
    box-shadow: 0 4px 16px rgba(67, 233, 123, 0.3);
}
.note:hover .icon {
    background: var(--gradient-quaternary);
    box-shadow: 0 6px 24px rgba(67, 233, 123, 0.5);
}

.standfm .icon {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 16px rgba(240, 147, 251, 0.3);
}
.standfm:hover .icon {
    background: var(--gradient-secondary);
    box-shadow: 0 6px 24px rgba(240, 147, 251, 0.5);
}

.company .icon {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.company:hover .icon {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.company .icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    padding: 4px;
}

.discord .icon {
    background: linear-gradient(135deg, #2c2f33, #5865f2);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
}
.discord:hover .icon {
    background: linear-gradient(135deg, #5865f2, #7289da);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.6);
}

.learning .icon {
    background: var(--gradient-quaternary);
    box-shadow: 0 4px 16px rgba(67, 233, 123, 0.3);
}
.learning:hover .icon {
    background: var(--gradient-quaternary);
    box-shadow: 0 6px 24px rgba(67, 233, 123, 0.5);
}

.nft .icon {
    background: var(--gradient-primary);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}
.nft:hover .icon {
    background: var(--gradient-primary);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5);
}

.sale .icon {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 16px rgba(240, 147, 251, 0.3);
}
.sale:hover .icon {
    background: var(--gradient-secondary);
    box-shadow: 0 6px 24px rgba(240, 147, 251, 0.5);
}

.voicy .icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}
.voicy:hover .icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
}

.newsletter .icon { 
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}
.newsletter:hover .icon { 
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5);
}

.footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .name {
        font-size: 1.75rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .bio-container {
        padding: 1rem;
        gap: 0.5rem;
    }

    .bio-item {
        font-size: 0.875rem;
    }

    .bio-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .link-card {
        padding: 1rem;
    }

    .icon {
        width: 48px;
        height: 48px;
    }

    .icon svg {
        width: 24px;
        height: 24px;
    }

    .icon img {
        width: 48px;
        height: 48px;
    }

    .company .icon img {
        width: 48px;
        height: 48px;
    }

    .link-text {
        font-size: 1rem;
    }

    .link-username {
        font-size: 0.75rem;
    }
}

.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    animation: float-particles 8s infinite linear;
}

.particle:nth-child(2n) {
    background: rgba(67, 233, 123, 0.3);
    animation-duration: 12s;
    animation-delay: -2s;
}

.particle:nth-child(3n) {
    background: rgba(240, 147, 251, 0.4);
    animation-duration: 10s;
    animation-delay: -4s;
}

@keyframes float-particles {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .background-particles {
        display: none;
    }
}