/* Reset and base styles */
* {
    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;
    color: #e2e8f0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    background: #2d3748;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 40px 30px;
    border: 1px solid #4a5568;
}

/* Profile section */
.profile {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image {
    margin-bottom: 20px;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #667eea;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #fff;
}

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

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f7fafc;
}

.profile-bio {
    font-size: 16px;
    color: #a0aec0;
    margin-bottom: 0;
}

/* Links section */
.links {
    margin-bottom: 40px;
}

.link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: #4a5568;
    border: 2px solid #718096;
    border-radius: 12px;
    text-decoration: none;
    color: #f7fafc;
    transition: all 0.3s ease;
    font-weight: 500;
}

.link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.link:last-child {
    margin-bottom: 0;
}

.link-icon {
    font-size: 20px;
    margin-right: 15px;
    min-width: 24px;
    text-align: center;
}

.link-text {
    font-size: 16px;
    flex: 1;
}

/* Social icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #4a5568;
    border: 2px solid #718096;
    border-radius: 50%;
    text-decoration: none;
    color: #f7fafc;
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-icon:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
}

.footer p {
    font-size: 14px;
    color: #a0aec0;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .profile-bio {
        font-size: 14px;
    }
    
    .link {
        padding: 14px 16px;
        margin-bottom: 10px;
    }
    
    .link-text {
        font-size: 15px;
    }
    
    .link-icon {
        font-size: 18px;
        margin-right: 12px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 25px 15px;
    }
    
    .profile-image img {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .link {
        padding: 12px 14px;
    }
    
    .social-icons {
        gap: 12px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus styles for accessibility */
.link:focus,
.social-icon:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
        color: #333;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
    }
    
    .profile-name {
        color: #2d3748;
    }
    
    .profile-bio {
        color: #718096;
    }
    
    .link {
        background: #f7fafc;
        color: #2d3748;
        border-color: #e2e8f0;
    }
    
    .link:hover,
    .social-icon:hover {
        background: #f7fafc;
        color: #2d3748;
        transform: none;
        box-shadow: none;
    }
    
    .social-icon {
        background: #f7fafc;
        color: #2d3748;
        border-color: #e2e8f0;
    }
    
    .footer {
        border-top-color: #e2e8f0;
    }
    
    .footer p {
        color: #718096;
    }
}