/* ==========================================================================
   PREMIUM DIGITAL BUSINESS CARD - DESIGN SYSTEM & STYLES
   Executive Theme: Mine Trade Alliance & Thomas Group Consulting
   ========================================================================== */

/* 1. CSS VARIABLES (DESIGN TOKENS) */
:root {
    --color-deep-blue: #081225;
    --color-exec-blue: rgba(17, 34, 64, 0.75);
    --color-card-border: rgba(197, 168, 128, 0.2);
    --color-gold-premium: #C5A880; /* Premium metallic gold */
    --color-gold-bright: #D4AF37;  /* High contrast gold */
    --color-gold-glow: rgba(197, 168, 128, 0.35);
    --color-white: #F8FAFC;
    --color-slate: #94A3B8;
    --color-slate-light: #CBD5E1;
    --color-whatsapp: #25D366;
    --color-phone: #3B82F6;
    --color-email: #EC4899;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-quick: all 0.15s ease-in-out;
}

/* 2. BASE STYLING & RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-deep-blue);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 3. BACKGROUND LIGHT CIRCLES (AMBIENT GLOW) */
.bg-blur-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.bg-blur-circle.primary {
    width: 300px;
    height: 300px;
    background-color: #1e3a8a;
    top: -50px;
    left: -100px;
}

.bg-blur-circle.secondary {
    width: 400px;
    height: 400px;
    background-color: #0c4a6e;
    bottom: -100px;
    right: -100px;
}

.bg-blur-circle.gold {
    width: 250px;
    height: 250px;
    background-color: var(--color-gold-premium);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.06;
    filter: blur(100px);
}

/* 4. MAIN CONTAINER (MOBILE CENTERED) */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* 5. HERO SECTION */
.hero-section {
    text-align: center;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Oval Profile Container with Golden border */
.profile-container {
    width: 140px;
    height: 185px;
    border-radius: 70px / 92.5px; /* Perfect oval math */
    border: 3px solid var(--color-gold-premium);
    box-shadow: 0 0 25px var(--color-gold-glow),
                inset 0 0 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: var(--transition-smooth);
}

.profile-container:hover .profile-image {
    transform: scale(1.08);
}

/* MTA Executive Badge */
.executive-title-badge {
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.15), rgba(197, 168, 128, 0.05));
    border: 1px solid var(--color-gold-premium);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    animation: fadeIn 1s ease-out 0.2s both;
}

.gold-badge-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-gold-bright);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

/* Executive Name & Role */
#executive-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-white);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.executive-role {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-gold-premium);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    animation: fadeIn 1s ease-out 0.4s both;
}

.company-brand-box {
    margin-bottom: 16px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.company-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-slate-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Positioning Message */
.positioning-statement {
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    color: var(--color-slate);
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.5;
    animation: fadeIn 1s ease-out 0.6s both;
}

/* 6. BUTTONS & ACTIONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

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

/* Main CTA: Save Contact vCard */
.main-cta-section {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.btn-save-contact {
    background: linear-gradient(135deg, #C5A880, #9A7B56);
    color: #081225;
    box-shadow: 0 4px 20px rgba(197, 168, 128, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-save-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite linear;
}

.btn-save-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(197, 168, 128, 0.45);
    background: linear-gradient(135deg, #D5B990, #A98A65);
}

.btn-save-contact:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(197, 168, 128, 0.2);
}

/* 7. QUICK ACTION BUTTONS (CALL, WHATSAPP, EMAIL) */
.quick-actions-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.quick-action-card {
    background-color: var(--color-exec-blue);
    border: 1px solid var(--color-card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 16px 8px;
    text-decoration: none;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.quick-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition-smooth);
    background-color: rgba(255, 255, 255, 0.05);
}

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

.quick-action-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-slate-light);
}

/* Quick Actions States & Colors */
.quick-action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 168, 128, 0.4);
    background-color: rgba(17, 34, 64, 0.9);
}

.quick-action-card:active {
    transform: scale(0.96);
}

.quick-action-card:hover .quick-icon-wrapper.call {
    background-color: var(--color-phone);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.quick-action-card:hover .quick-icon-wrapper.whatsapp {
    background-color: var(--color-whatsapp);
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
}

.quick-action-card:hover .quick-icon-wrapper.email {
    background-color: var(--color-email);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

/* 8. CORPORATE LINKS SECTION */
.section-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-gold-premium);
    margin-bottom: 12px;
    padding-left: 4px;
}

.corporate-links-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.corporate-link-card {
    background-color: var(--color-exec-blue);
    border: 1px solid var(--color-card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--color-white);
    transition: var(--transition-smooth);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-premium);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

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

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
}

.card-subtitle {
    font-size: 0.78rem;
    color: var(--color-slate);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.card-arrow {
    color: var(--color-slate);
    opacity: 0.5;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.card-arrow svg {
    width: 18px;
    height: 18px;
}

/* Hover States for Link Cards */
.corporate-link-card:hover {
    transform: translateX(4px);
    border-color: rgba(197, 168, 128, 0.5);
    background-color: rgba(23, 42, 77, 0.85);
}

.corporate-link-card:hover .card-icon {
    background-color: var(--color-gold-premium);
    color: #081225;
    transform: scale(1.05);
}

.corporate-link-card:hover .card-arrow {
    color: var(--color-gold-bright);
    opacity: 1;
    transform: translateX(2px);
}

.corporate-link-card:active {
    transform: scale(0.99) translateX(2px);
}

/* 9. QR SHARE SECTION */
.qr-share-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.qr-interactive-card {
    background-color: var(--color-exec-blue);
    border: 1px solid var(--color-card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.qr-image-wrapper {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    background-color: white;
    padding: 4px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.qr-overlay-hint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 18, 37, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    color: var(--color-gold-premium);
    gap: 4px;
    padding: 4px;
    text-align: center;
}

.qr-overlay-hint svg {
    width: 16px;
    height: 16px;
}

.qr-overlay-hint span {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qr-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
}

.qr-card-desc {
    font-size: 0.78rem;
    color: var(--color-slate);
    line-height: 1.35;
}

/* Hover QR Card */
.qr-interactive-card:hover {
    border-color: rgba(197, 168, 128, 0.45);
    background-color: rgba(23, 42, 77, 0.85);
}

.qr-interactive-card:hover .qr-overlay-hint {
    opacity: 1;
}

.qr-interactive-card:active {
    transform: scale(0.98);
}

/* Native share button */
.btn-share-profile {
    background-color: transparent;
    border: 1px solid rgba(197, 168, 128, 0.4);
    color: var(--color-gold-premium);
    box-shadow: none;
    margin-top: 4px;
}

.btn-share-profile:hover {
    background-color: rgba(197, 168, 128, 0.1);
    border-color: var(--color-gold-premium);
    color: var(--color-white);
}

.btn-share-profile:active {
    background-color: rgba(197, 168, 128, 0.15);
    transform: translateY(1px);
}

/* 10. SOCIAL NETWORKS (FACEBOOK, YOUTUBE) */
.social-networks-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.social-badge {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-slate-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.social-badge svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

/* Social Hover states */
.social-badge:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.08);
}

.social-badge.facebook:hover {
    border-color: #1877F2;
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.2);
}

.social-badge.facebook:hover svg {
    color: #1877F2;
}

.social-badge.youtube:hover {
    border-color: #FF0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.social-badge.youtube:hover svg {
    color: #FF0000;
}

.social-badge:active {
    transform: scale(0.97);
}

/* 11. ADDRESS LOCATION CARD */
.office-location-card {
    background-color: var(--color-exec-blue);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-style: normal;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    animation: fadeInUp 0.8s ease-out 1s both;
}

.office-location-card:hover {
    border-color: rgba(197, 168, 128, 0.45);
    background-color: rgba(23, 42, 77, 0.85);
    transform: translateY(-2px);
}

.office-location-card:active {
    transform: scale(0.99);
}

.map-link-hint {
    font-size: 0.78rem;
    color: var(--color-gold-premium);
    margin-top: 4px;
    font-weight: 500;
    display: inline-block;
    transition: var(--transition-smooth);
}

.office-location-card:hover .map-link-hint {
    color: var(--color-gold-bright);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.loc-icon {
    color: var(--color-gold-premium);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

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

.loc-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.loc-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
}

.loc-address {
    font-size: 0.82rem;
    color: var(--color-slate-light);
}

.loc-region {
    font-size: 0.78rem;
    color: var(--color-slate);
}

/* 12. FOOTER EJECUTIVO */
.executive-footer {
    text-align: center;
    padding: 24px 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8px;
    animation: fadeIn 1.2s ease-out 1.1s both;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gold-premium);
}

.footer-alliance {
    font-size: 0.78rem;
    color: var(--color-slate-light);
    letter-spacing: 0.5px;
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--color-slate);
    margin-top: 4px;
}

/* 13. LIGHTBOX MODAL FOR QR ZOOM */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(8, 18, 37, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
}

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

.qr-modal-container {
    background-color: #0e1e35;
    border: 1px solid rgba(197, 168, 128, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(197, 168, 128, 0.15);
    border-radius: 24px;
    width: 100%;
    max-width: 380px;
    padding: 32px 24px 24px 24px;
    position: relative;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--color-slate);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-quick);
}

.qr-modal-close:hover {
    color: var(--color-white);
}

.qr-modal-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
}

.qr-modal-body {
    background-color: white;
    padding: 12px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.qr-modal-image {
    width: 200px;
    height: 200px;
    display: block;
    object-fit: contain;
}

.qr-modal-hint {
    font-size: 0.8rem;
    color: var(--color-slate);
    line-height: 1.4;
    max-width: 280px;
    margin: 0 auto;
}

/* 14. TOAST NOTIFICATION */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #112240, #0c1a30);
    border: 1px solid var(--color-gold-premium);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4), 0 0 10px rgba(197, 168, 128, 0.1);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

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

/* 15. CSS ANIMATIONS */
@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for Tablets/Desktop preview */
@media (min-width: 500px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 40px 0;
    }
    .app-container {
        border-radius: 30px;
        background-color: rgba(17, 34, 64, 0.3);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }
}
