﻿body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.vcard-header {
    background: linear-gradient(135deg, #c64747 0%, #8b2f2f 100%);
    padding: 60px 20px 0px;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.profile-initials {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid white;
    background-color: rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.vcard-name {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 10px;
    color: white;
}

.vcard-title {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.6;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.action-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .action-btn:hover {
        background-color: rgba(255,255,255,0.1);
    }

    .action-btn:first-child {
        border-right: 1px solid rgba(255,255,255,0.2);
    }

    .action-btn svg {
        display: block;
        margin: 0 auto 8px;
        width: 24px;
        height: 24px;
    }

.vcard-content {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 100vh;
}

.contact-item {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 16px;
}

    .contact-item:last-child {
        border-bottom: none;
    }

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .contact-icon svg {
        width: 20px;
        height: 20px;
        color: #666;
    }

.contact-details {
    flex: 1;
}
.contact-details a {
    color: #495057;
}

.contact-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 16px;
    color: #333;
    word-break: break-word;
}

    .contact-value a {
        color: #2d5882;
        text-decoration: none;
    }

.qr-section {
    padding: 30px 24px;
    text-align: center;
    background-color: #fafafa;
}

.share-section {
    padding: 30px 24px;
    background-color: white;
}

.share-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .share-btn:hover {
        background-color: #f5f5f5;
        border-color: #999;
    }

    .share-btn svg {
        width: 16px;
        height: 16px;
    }
.vcard-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    .vcard-loader-overlay.hidden {
        opacity: 0;
        visibility: hidden;
    }

.vcard-loader-content {
    text-align: center;
    animation: fadeInScale 0.8s ease-out;
}

.vcard-loader-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
    animation: logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .vcard-loader-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
        animation: logoPulse 2s ease-in-out infinite;
    }

.vcard-loader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border: 3px solid transparent;
    border-top-color: #dc3545;
    border-right-color: #dc3545;
    border-radius: 50%;
    animation: ringRotate 1.5s linear infinite;
}

    .vcard-loader-ring::before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        border: 3px solid transparent;
        border-bottom-color: rgba(220, 53, 69, 0.3);
        border-left-color: rgba(220, 53, 69, 0.3);
        border-radius: 50%;
        animation: ringRotateReverse 2s linear infinite;
    }

.vcard-loader-text {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #495057;
    animation: textPulse 2s ease-in-out infinite;
}

.vcard-loader-dots {
    display: inline-block;
}

    .vcard-loader-dots span {
        animation: dotBounce 1.4s ease-in-out infinite;
        display: inline-block;
    }

        .vcard-loader-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .vcard-loader-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

/* Content Animation */
.vcard-content {
    animation: contentFadeIn 0.8s ease-out 0.3s both;
}

@@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-30px);
    }

    60% {
        transform: scale(1.1) translateY(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes ringRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes ringRotateReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes dotBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-8px);
    }
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vcard-loader-logo {
        width: 100px;
        height: 100px;
    }

    .vcard-loader-ring {
        width: 120px;
        height: 120px;
        margin: -60px 0 0 -60px;
    }

    .vcard-loader-text {
        font-size: 0.75rem;
    }
}

/* Floating Action Button Styles */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.fab-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: -1;
}

    .fab-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

.fab-main {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545 0%, #c92333 100%);
    border: none;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 10;
}

    .fab-main:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 28px rgba(220, 53, 69, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .fab-main:active {
        transform: scale(0.95);
    }

    .fab-main.active {
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        transform: rotate(135deg);
    }

.fab-icon {
    width: 28px;
    height: 28px;
    fill: white;
    transition: all 0.3s ease;
    position: absolute;
}

.fab-icon-close {
    opacity: 0;
    transform: rotate(-135deg);
}

.fab-main.active .fab-icon-share {
    opacity: 0;
    transform: rotate(135deg);
}

.fab-main.active .fab-icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: none;
}

.fab-option {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0) translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    pointer-events: none;
    color: white;
}

.fab-menu.active .fab-option {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.fab-option:nth-child(1) {
    transition-delay: 0.05s;
}

.fab-option:nth-child(2) {
    transition-delay: 0.1s;
}

.fab-option:nth-child(3) {
    transition-delay: 0.15s;
}

.fab-option:nth-child(4) {
    transition-delay: 0.2s;
}

.fab-option:nth-child(5) {
    transition-delay: 0.25s;
}

.fab-option:nth-child(6) {
    transition-delay: 0.3s;
}

.fab-option svg {
    width: 24px;
    height: 24px;
}

.fab-option:hover {
    transform: scale(1.15) translateY(0);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.fab-option::after {
    content: attr(data-label);
    position: absolute;
    right: 68px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fab-option:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Platform-specific colors */
.fab-instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.fab-whatsapp {
    background: #25D366;
}

.fab-facebook {
    background: #1877F2;
}

.fab-twitter {
    background: #000000;
}

.fab-email {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fab-copy {
    background: #6c757d;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab-main {
        width: 56px;
        height: 56px;
    }

    .fab-icon {
        width: 24px;
        height: 24px;
    }

    .fab-option {
        width: 48px;
        height: 48px;
    }

        .fab-option svg {
            width: 20px;
            height: 20px;
        }

    .fab-menu {
        bottom: 72px;
    }

    .fab-option::after {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Social Media Section Styles */
.social-media-section {
    padding: 32px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    margin: 24px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    animation: slideUpFade 0.6s ease-out 0.4s both;
}

.social-header {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: socialItemAppear 0.5s ease-out forwards;
}

    .social-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .social-link:nth-child(2) {
        animation-delay: 0.2s;
    }

    .social-link:nth-child(3) {
        animation-delay: 0.3s;
    }

    .social-link:nth-child(4) {
        animation-delay: 0.4s;
    }

    .social-link:nth-child(5) {
        animation-delay: 0.5s;
    }

    .social-link svg {
        width: 60px;
        height: 60px;
        padding: 16px;
        border-radius: 50%;
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
        color: #495057;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 -2px 8px rgba(0, 0, 0, 0.05);
    }

    .social-link:hover svg {
        transform: translateY(-8px) scale(1.15);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 6px 12px rgba(0, 0, 0, 0.12);
    }

.social-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.social-link:hover .social-label {
    color: #2c3e50;
    transform: scale(1.05);
}

/* Platform-specific hover colors */
.social-instagram:hover svg {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
}

.social-facebook:hover svg {
    background: #1877F2;
    color: white;
}

.social-youtube:hover svg {
    background: #FF0000;
    color: white;
}

.social-twitter:hover svg {
    background: #000000;
    color: white;
}

.social-website:hover svg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes socialItemAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsiveness for social media */
@media (max-width: 768px) {
    .social-media-section {
        padding: 24px 16px;
        margin: 16px 0;
    }

    .social-header {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .social-links {
        gap: 16px;
    }

    .social-link svg {
        width: 52px;
        height: 52px;
        padding: 14px;
    }

    .social-label {
        font-size: 11px;
    }

    .social-link:hover svg {
        transform: translateY(-4px) scale(1.1);
    }
}

/* Download vCard Button Styles */
.download-vcard-container {
    display: flex;
    justify-content: center;
    padding: 32px 20px;
    animation: downloadBtnFadeIn 0.8s ease-out 0.5s both;
}

.download-vcard-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: subtlePulse 3s ease-in-out infinite;
}

.download-btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #dc3545 0%, #c92333 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-vcard-btn:hover .download-btn-bg {
    transform: scale(1.05);
    box-shadow: 0 12px 36px rgba(220, 53, 69, 0.45), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.download-vcard-btn:active .download-btn-bg {
    transform: scale(0.98);
}

.download-btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.download-icon {
    width: 32px;
    height: 32px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-vcard-btn:hover .download-icon {
    transform: translateY(3px);
    animation: downloadBounce 0.6s ease-in-out;
}

.download-btn-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.download-btn-subtext {
    position: absolute;
    bottom: -18px;
    left: 48px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.01em;
}

.download-btn-shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease-in-out;
}

.download-vcard-btn:hover .download-btn-shine {
    left: 200%;
}

@keyframes downloadBtnFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes downloadBounce {
    0%, 100% {
        transform: translateY(3px);
    }

    50% {
        transform: translateY(8px);
    }
}

/* Mobile responsiveness for download button */
@media (max-width: 768px) {
    .download-vcard-container {
        padding: 24px 16px;
    }

    .download-vcard-btn {
        padding: 16px 32px;
    }

    .download-btn-text {
        font-size: 16px;
    }

    .download-icon {
        width: 28px;
        height: 28px;
    }

    .download-btn-subtext {
        font-size: 11px;
        bottom: -16px;
        left: 44px;
    }
}