/* ================================
   Digital Business Card Template 4
   ================================
   
   Modern design with background pattern.
   Vibrant and eye-catching.
   
   HOW TO CUSTOMIZE:
   - Change gradient colors
   - Modify pattern style
   - Adjust card dimensions
   ================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

img,
svg {
    max-width: 100%;
    height: auto;
}

/* Business Card Container */
.business-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

/* Background Pattern */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 1;
    padding: 30px;
    text-align: center;
}

/* Avatar Wrapper */
.avatar-wrapper {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Name */
.name {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Title */
.title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
    word-break: break-word;
}

.contact-link:hover {
    background: #f5f5f5;
}

.contact-link .icon {
    font-size: 1.1rem;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .business-card {
        max-width: 100%;
        border-radius: 16px;
    }

    .bg-pattern {
        height: 160px;
    }

    .card-content {
        padding: 25px 20px;
    }

    .avatar {
        width: 90px;
        height: 90px;
        border-width: 4px;
    }

    .name {
        font-size: 1.5rem;
    }

    .title {
        font-size: 0.9rem;
    }

    .contact-link {
        font-size: 0.85rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Footer Styles */
.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    z-index: 100;
}

.page-footer a {
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.page-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

