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

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0f2a 50%, #0a0a0f 100%);
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

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

.profile-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2em;
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 3em;
    max-width: 800px;
    width: 100%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out;
}

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

.profile-header {
    text-align: center;
    margin-bottom: 3em;
}

.profile-image {
    margin-bottom: 1.5em;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    display: block;
    margin: 0 auto;
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.4),
        0 0 0 3px rgba(255, 215, 0, 0.2);
    animation: glow 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 
        0 15px 40px rgba(255, 215, 0, 0.6),
        0 0 0 4px rgba(255, 215, 0, 0.3);
}

@keyframes glow {
    0%, 100% { box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
}

.profile-name {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2em;
}

.profile-title {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.1em;
}

.profile-content {
    display: grid;
    gap: 2.5em;
}

.bio-section h2,
.skills-section h2,
.projects-section h2,
.contact-section h2 {
    font-size: 1.3em;
    margin-bottom: 1em;
    color: #FFD700;
    font-weight: 600;
    position: relative;
    padding-left: 1.5em;
}

.bio-section h2::before,
.skills-section h2::before,
.projects-section h2::before,
.contact-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.bio-section p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
}

.skill-tag {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.5em 1.2em;
    border-radius: 25px;
    font-size: 0.9em;
    color: #FFD700;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 1.5em;
    transition: all 0.3s ease;
    margin-bottom: 2em;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
    color: #FFD700;
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.project-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1em;
}

.project-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.project-link:hover {
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.social-links {
    display: flex;
    gap: 1.5em;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.8em 1.5em;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.05);
}

.social-link:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.back-link {
    margin-top: 2em;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.back-link:hover {
    color: #FFD700;
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .profile-card {
        padding: 2em;
    }
    
    .profile-name {
        font-size: 2em;
    }
    
    .social-links {
        flex-direction: column;
    }
}