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

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e1033 0%, #301b5e 100%);
    color: #e4e4e4;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: background 0.8s ease;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 700px;
    background: rgba(20, 10, 40, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.8s ease;
}

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

.container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 100%, rgba(188, 158, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    transition: background 0.8s ease;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.profile-image-container {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: conic-gradient(from 0deg, transparent 0%, rgba(188, 158, 255, 0.8) 25%, transparent 50%);
    border-radius: 50%;
    animation: rotate 4s linear infinite;
    z-index: -1;
    transition: background 0.8s ease;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(20, 10, 40, 0.8);
    box-shadow: 0 0 20px rgba(188, 158, 255, 0.3);
    transition: transform 0.3s ease, border 0.8s ease, box-shadow 0.8s ease;
}

.profile-image-container:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.5rem 0 0;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(188, 158, 255, 0.3);
    transition: transform 0.3s ease, text-shadow 0.8s ease;
}

h1:hover {
    transform: translateY(-2px);
}

.title {
    font-size: 1.1rem;
    color: #bc9eff;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s ease, color 0.8s ease;
}

.title:hover {
    opacity: 1;
}

.bio {
    margin: 1rem 0;
    font-size: 1.05rem;
    color: #d4cce8;
    line-height: 1.6;
    text-align: center;
    max-width: 580px;
    transition: color 0.3s ease;
}

.bio:hover {
    color: #ffffff;
}

.links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.link {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.2rem;
    background: rgba(30, 16, 51, 0.5);
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(188, 158, 255, 0.2);
    min-width: 130px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #bc9eff, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease, background 0.8s ease;
}

.link:hover {
    background: rgba(188, 158, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(188, 158, 255, 0.4);
}

.link:hover::after {
    transform: scaleX(1);
}

.link:active {
    transform: translateY(-1px);
}

.link svg {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.hint-text {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.profile-image-container:hover + .hint-text {
    opacity: 1;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    
    .container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .bio {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .profile-image-container {
        width: 110px;
        height: 110px;
    }
    
    .links {
        gap: 0.8rem;
    }
    
    .link {
        padding: 0.6rem 1rem;
        min-width: 120px;
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .profile-image-container {
        width: 90px;
        height: 90px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .title {
        font-size: 0.9rem;
    }
    
    .bio {
        font-size: 0.9rem;
    }
    
    .link {
        min-width: 110px;
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
}