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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 400px;
    width: 100%;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.profile-bio {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.link-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-text {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.link-arrow {
    color: #999;
    font-size: 14px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    color: #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    font-size: 14px;
    opacity: 0.8;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Stagger animation for links */
.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; }

/* Enhanced Responsive CSS */
@media (max-width: 480px) {
    .profile-card {
        padding: 20px;
        margin: 10px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .profile-bio {
        font-size: 15px;
    }
    
    .link-item {
        padding: 14px 16px;
    }
    
    body {
        padding: 10px;
        align-items: flex-start;
        padding-top: 40px;
    }
}

@media (max-width: 360px) {
    .profile-name {
        font-size: 20px;
    }
    
    .profile-bio {
        font-size: 14px;
    }
    
    .link-item {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .link-icon {
        margin-right: 12px;
    }
}

/* Prevent text overflow on very small screens */
.profile-name, .profile-bio, .link-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
}