:root {
    --bg-color: #050505;
    --card-bg: rgba(18, 18, 18, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    
    /* Brand Colors */
    --github: #24292e;
    --linkedin: #0a66c2;
    --leetcode: #ffa116;
    --twitter: #000000;
    --instagram: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --telegram: #0088cc;
    --facebook: #1877f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #1e3a8a;
    top: -50px;
    left: -50px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #4c1d95;
    bottom: -100px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

/* Main Container */
.container {
    max-width: 460px;
    width: 92%;
    max-height: 94vh;
    max-height: 94dvh;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border);
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: zoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
.header {
    text-align: center;
    padding: 40px 24px 24px;
    flex-shrink: 0;
}

.profile-img-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0a0a0a;
}

.name {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verified-badge {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.username {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Links List */
.links-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 20px;
    scrollbar-width: none;
}

.links-wrapper::-webkit-scrollbar {
    display: none;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.social-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.github { background: var(--github); }
.linkedin { background: var(--linkedin); }
.leetcode { background: var(--leetcode); }
.twitter { background: var(--twitter); }
.instagram { background: var(--instagram); }
.telegram { background: var(--telegram); }
.facebook { background: var(--facebook); }

.social-content {
    flex: 1;
}

.social-text {
    font-size: 1.05rem;
    font-weight: 700;
}

.social-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Footer Action */
.footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--card-border);
    flex-shrink: 0;
}

.email-action {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.email-action:hover {
    background: var(--accent-color);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ffffff;
    color: #000000;
    padding: 14px 28px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Mobile Fixes */
@media (max-width: 480px) {
    .container {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }
}

@media (max-height: 700px) {
    .header { padding: 30px 24px 16px; }
    .profile-img-wrapper { width: 90px; height: 90px; }
    .name { font-size: 1.5rem; }
}