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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
}

body.light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
}

body.dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

#profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#profile-bio {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto;
}

.links {
    width: 100%;
    max-width: 500px;
}

.section-header {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-header:first-child {
    margin-top: 0;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.section-header h2::before,
.section-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.section-header h2::before {
    right: 100%;
    margin-right: 1rem;
}

.section-header h2::after {
    left: 100%;
    margin-left: 1rem;
}

.section-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

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

.link-item {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.link-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.link-item::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-item:hover::before {
    left: 100%;
}

.link-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.link-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    text-align: center;
}

.link-text {
    flex: 1;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.link-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

footer {
    margin-top: 3rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

footer a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

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

.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.2s; }
.link-item:nth-child(3) { animation-delay: 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.4s; }
.link-item:nth-child(5) { animation-delay: 0.5s; }
.link-item:nth-child(6) { animation-delay: 0.6s; }
.link-item:nth-child(7) { animation-delay: 0.7s; }
.link-item:nth-child(8) { animation-delay: 0.8s; }

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    #profile-name {
        font-size: 1.8rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .link-item {
        padding: 0.8rem 1rem;
    }
    
    .link-content {
        gap: 0.8rem;
    }
    
    .link-icon {
        font-size: 1.3rem;
        width: 2rem;
    }
}