/* Basic Reset & Font Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    --brand-bg: #622a0f;
    --brand-dark-bg: #4a1e0b;
    --card-inner-bg: rgba(74, 30, 11, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.75);
    --whatsapp-green: #25D366;
    --linkedin-blue: #0A66C2;
}

body {
    background-color: #2b1307;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    color: var(--text-white);
}

.main-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

/* Card Outer Container */
.card-container {
    width: 100%;
    background: linear-gradient(180deg, #6c2f12 0%, #622a0f 50%, #52220b 100%);
    border-radius: 36px;
    padding: 20px 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Top Logo Box */
.logo-card {
    width: 100%;
    background: #ffffff;
    border-radius: 22px;
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
}

.company-logo {
    max-width: 100%;
    height: 75px;
    object-fit: contain;
}

/* Inner Card Wrapper */
.inner-card {
    width: 100%;
    background: var(--card-inner-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 28px 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Profile Photo (Google User Icon) */
.profile-photo-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Name & Title */
.profile-name {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.full-name-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-weight: 400;
}

.profile-role {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 22px;
}

.role-title {
    color: rgba(255, 255, 255, 0.7);
}

.dot {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
}

.role-desc {
    color: var(--text-white);
    font-weight: 600;
}

/* Contact Links */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.contact-item:hover {
    color: #ffffff;
    opacity: 0.9;
    text-decoration: underline;
}

.contact-icon {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

/* Download Contact Button */
.btn-download-vcard {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-white);
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.btn-download-vcard:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.btn-download-vcard:active {
    transform: translateY(0);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Action Social Buttons */
.social-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    width: 100%;
    background: rgba(85, 41, 19, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    background: rgba(105, 51, 23, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.social-btn-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-whatsapp {
    background: var(--whatsapp-green);
    color: #ffffff;
}

.icon-whatsapp svg {
    width: 22px;
    height: 22px;
}

.icon-linkedin {
    background: var(--linkedin-blue);
    color: #ffffff;
}

.icon-linkedin svg {
    width: 20px;
    height: 20px;
}

.social-btn-label {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.external-icon {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.social-btn:hover .external-icon {
    opacity: 0.9;
}

/* QR Code Section */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.qr-code-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-code-box:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Target ONLY the primary QR image inside box */
.qr-code-box > img, 
.qr-code-box > svg {
    width: 125px !important;
    height: 125px !important;
    display: block;
}

/* QR Code Hover Download Overlay (Compact Icon) */
.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 35, 35, 0.72);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.qr-code-box:hover .qr-overlay,
.qr-code-box:active .qr-overlay {
    opacity: 1;
}

/* Explicit compact size for download icon inside overlay */
.qr-overlay .qr-download-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    color: #ffffff !important;
    stroke-width: 2.2 !important;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
    display: block !important;
}

/* Footer */
.card-footer {
    margin-top: 18px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    font-weight: 500;
}

.footer-wa-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-wa-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Fullscreen QR Code Modal */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.qr-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.qr-modal-card {
    background: #622a0f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 32px 24px 28px;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-modal-overlay.active .qr-modal-card {
    transform: scale(1);
}

.qr-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: background 0.2s ease;
}

.qr-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.qr-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.modal-qr-box {
    background: #ffffff;
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
}

.modal-qr-box img, .modal-qr-box svg {
    width: 210px;
    height: 210px;
    display: block;
}

.qr-modal-sub {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.qr-modal-url {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
    margin-bottom: 18px;
}

.btn-download-qr {
    background: #ffffff;
    color: #622a0f;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-download-qr:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111111;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
