/* E-Card Concept Styles */
.ecard-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 24px 60px; /* Adjusted for navbar */
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
}

.ecard-container {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 40px;
    padding: 60px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect behind the card */
.ecard-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.05), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.profile-section {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 24px;
    border: 2px solid var(--accent-color);
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 90%;
    line-height: 1.6;
}

.links-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ecard-link {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 100px; /* pill shape */
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ecard-link:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -12px rgba(59, 130, 246, 0.3);
}

.ecard-link .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
}

.ecard-link:hover .icon-box {
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border-color: transparent;
}

.ecard-link .icon-box img {
    width: 22px;
    height: 22px;
    filter: invert(1);
    transition: all 0.3s ease;
}

.ecard-link:hover .icon-box img {
    transform: scale(1.1);
}

.link-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.link-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.action-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    margin-right: 12px;
    transition: all 0.3s ease;
}

.ecard-link:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -12px rgba(59, 130, 246, 0.3);
}

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

.profile-section {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ecard-link {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ecard-link:nth-child(1) { animation-delay: 0.1s; }
.ecard-link:nth-child(2) { animation-delay: 0.15s; }
.ecard-link:nth-child(3) { animation-delay: 0.2s; }
.ecard-link:nth-child(4) { animation-delay: 0.25s; }
.ecard-link:nth-child(5) { animation-delay: 0.3s; }
.ecard-link:nth-child(6) { animation-delay: 0.35s; }
.ecard-link:nth-child(7) { animation-delay: 0.4s; }
.ecard-link:nth-child(8) { animation-delay: 0.45s; }

/* Responsive adjustments */
@media (max-width: 480px) {
    .ecard-container {
        padding: 40px 24px;
        border-radius: 32px;
    }
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    .profile-name {
        font-size: 1.7rem;
    }
    .ecard-link {
        padding: 14px 18px;
    }
}

/* Social Brand Colors */
.ecard-link.facebook:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: #1877F2;
}

.ecard-link.instagram:hover {
    background: rgba(214, 36, 159, 0.1);
    border-color: #d6249f;
}

.ecard-link.whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25D366;
}

.ecard-link.x:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
}
