*{
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 1rem;
    
    margin:0;
    
    
    
}

.navigation{
    max-width: 600px;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 1rem;
    border-radius: 15px;

}

.navigation ul{
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    margin: 0;
}

.navigation ul li a{
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.navigation ul li a:hover,
.navigation ul li a.active{
    background: rgba(255, 255, 255, 0.2);
}

article[data-testid="test-profile-card"]{
    background:whitesmoke;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width:600px;
    padding:0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

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


header[data-testid="test-user-name"]{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    box-sizing: border-box;
    font-size: 1.5rem;
    font-weight: 600;
    hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;

    
}


.card-content{
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    gap: 1.5rem;
}

p[data-testid="test-user-bio"]{
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
    max-width: 400px;
}


p[data-testid="test-user-bio"].expanded {
    line-clamp: unset;
    -webkit-line-clamp: unset;
    overflow: visible;
}



figure{
    margin: 0;
    margin-top: -64px;
    border-radius: 50%;
    
    display: flex;
    
    align-items: center;
    flex-direction: column;
    flex-shrink: 0;
    
}

figure label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f2f5;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    
}

figure label:hover {
    background: #667eea;
    color: white;
}

img[data-testid="test-user-avatar"] {
    cursor: pointer;
    transition: transform 0.3s ease;
}

img[data-testid="test-user-avatar"]:hover {
    transform: scale(1.05);
}

figure img{
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;

}


.time-display span{
    font-size: 0.875rem;
    color: #049cc2ff;
    margin-top: 0.25rem;
}


nav[data-testid="test-user-social-links"] {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}


nav[data-testid="test-user-social-links"] ul{
    list-style: none;
    
}

nav[data-testid="test-user-social-links"] a{
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    font-size: 0.875rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100px;
}



section ul{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    
}

section ul li{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: white;
    background: #5482c7ff;
    padding:10px;
    border-radius:7px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 150px;
    white-space: normal;
    text-overflow: ellipsis;
}


@media (max-width: 500px) {
    .card-content{
        flex-direction: column;
        align-items: center;
    }

    figure{
        margin:-30px;
    }

    p{
        text-align: center;
    }

    nav[data-testid="test-user-social-links"]{
        justify-content: center;
    }
}

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

@media (max-width: 300px) {
    article[data-testid="test-profile-card"] {
        max-width: 100%;
    }
    section ul[data-testid="test-user-hobbies"] li{
        font-size: 0.75rem;
        padding: 8px;
    }

    .time-display,
    .time-display span{
        font-size: 10px;
        text-align: center;

    }

    .navigation ul li a{
        font-size: 0.5rem;
    }

    header[data-testid="test-user-name"]{
        font-size: 1rem;
    }

}

@media(max-width:300px){
    .navigation ul li a{
        font-size: 0.3rem;
        
    }
}







