/* ==========================================================================
   FILM LABS - DIGITAL VISITING CARD CSS
   Theme: Luxury Dark Charcoal & Metallic Gold
   ========================================================================== */

:root {
    /* Color Palette */
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #A37928;
    --gold-gradient: linear-gradient(135deg, #F5D77F 0%, #D4AF37 50%, #9B7423 100%);
    --gold-gradient-btn: linear-gradient(135deg, #E6C665 0%, #C5A039 50%, #9E7924 100%);
    
    --bg-dark-main: #0B0C0E;
    --card-dark-bg: #141519;
    --card-dark-surface: #1C1D24;
    --card-dark-border: rgba(212, 175, 55, 0.3);
    
    --card-light-bg: #FAFAF7;
    --card-light-surface: #FFFFFF;
    --card-light-border: rgba(212, 175, 55, 0.25);
    
    --text-gold: #D4AF37;
    --text-white: #FFFFFF;
    --text-muted-dark: #A0A3BD;
    --text-dark-main: #1D1E2C;
    --text-muted-light: #6C727F;
    
    --shadow-card: 0 24px 48px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.12);
    --shadow-btn: 0 8px 20px rgba(212, 175, 55, 0.25);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --font-script: 'Great Vibes', cursive;
    
    --radius-card: 36px;
    --radius-btn: 14px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark-main);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Background Lights */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
}
.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: -100px;
}
.bg-glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    right: -150px;
}

/* Main Layout Wrapper */
.main-wrapper {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Header */
.app-header {
    text-align: center;
}
.main-title {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    margin-bottom: 6px;
}
.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}
.subtitle .dot {
    color: var(--gold-primary);
    margin: 0 6px;
}

/* Mobile Tabs Bar */
.mobile-tabs {
    display: none;
    background: var(--card-dark-surface);
    border: 1px solid var(--card-dark-border);
    padding: 6px;
    border-radius: 50px;
    width: 100%;
    max-width: 380px;
}
.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tab-btn.active {
    background: var(--gold-gradient-btn);
    color: #000000;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Cards Grid Layout (Side by Side on Desktop) */
.cards-grid {
    display: flex;
    justify-content: center;
    gap: 35px;
    width: 100%;
}

/* Individual Card Container */
.card-wrapper {
    width: 100%;
    max-width: 400px;
    perspective: 1000px;
}

.card-inner {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 35px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   LEFT CARD (FRONT - DARK THEME)
   ========================================================================== */

.dark-card {
    background-color: var(--card-dark-bg);
    border: 1.5px solid var(--card-dark-border);
    padding: 24px 22px 30px;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.card-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.brand-logo .logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}
.status-badge {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ECC71;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-dot {
    width: 7px;
    height: 7px;
    background-color: #2ECC71;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ECC71;
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Hero Avatar */
.hero-avatar-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 10px 0 20px;
}
.avatar-ring {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    padding: 6px;
    background: var(--gold-gradient);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
    position: relative;
}
.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #0A0B0D;
    border: 3px solid #141519;
}
.verified-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--gold-gradient);
    color: #000000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    border: 3px solid var(--card-dark-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Profile Info */
.profile-info {
    text-align: center;
    margin-bottom: 22px;
}
.person-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}
.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.person-role {
    font-size: 1.02rem;
    color: var(--text-muted-dark);
    margin-top: 4px;
    font-weight: 500;
}
.person-tagline {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    font-style: italic;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 14px 8px;
    border-radius: 18px;
}
.stat-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-item:last-child {
    border-right: none;
}
.stat-icon {
    font-size: 0.95rem;
    color: var(--gold-primary);
    margin-bottom: 4px;
}
.stat-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
}
.stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted-dark);
    margin-top: 2px;
}

/* Quick Connect Grid */
.quick-connect-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.connect-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-dark-surface);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 14px 6px;
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.3s ease;
}
.connect-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}
.connect-icon {
    font-size: 1.25rem;
    color: var(--gold-primary);
    margin-bottom: 6px;
}
.connect-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted-dark);
}
.connect-btn:hover span {
    color: #FFFFFF;
}

/* Buttons Group */
.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}
.btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.btn-gold {
    background: var(--gold-gradient-btn);
    color: #000000;
    box-shadow: var(--shadow-btn);
}
.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.35);
}
.btn-dark-glass {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-dark-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}
.btn-white {
    background: #FFFFFF;
    color: #000000;
}
.btn-white:hover {
    background: #F0F0F0;
    transform: translateY(-2px);
}

/* Follow Me Section */


/* ==========================================================================
   RIGHT CARD (BACK - LIGHT THEME)
   ========================================================================== */

.light-card {
    background-color: var(--card-light-bg);
    border: 1.5px solid var(--card-light-border);
    padding: 26px 22px 26px;
    color: var(--text-dark-main);
    display: flex;
    flex-direction: column;
}

/* Section Header */
.sec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 12px;
}
.sec-header:first-child {
    margin-top: 0;
}
.sec-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.sec-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark-main);
}
.gold-hr {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.about-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted-light);
    margin-bottom: 18px;
    padding-left: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}
.service-box {
    background: var(--card-light-surface);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.service-box:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.15);
    transform: translateY(-3px);
}
.service-icon {
    font-size: 1.3rem;
    color: var(--gold-dark);
    margin-bottom: 8px;
}
.service-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dark-main);
    line-height: 1.3;
}

/* Contact Info & QR Section */
.contact-qr-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
    align-items: center;
}
.contact-details-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark-main);
    transition: transform 0.2s ease;
}
.contact-detail-item:hover {
    transform: translateX(3px);
}
.c-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.c-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: #333333;
    word-break: break-all;
}

/* QR Code Box */
.qr-card-box {
    background: #FFFFFF;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}
.qr-img-wrap {
    width: 100px;
    height: 100px;
    margin-bottom: 6px;
}
.qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.qr-btn {
    width: 100%;
    background: #000000;
    color: #FFFFFF;
    border: none;
    padding: 5px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.qr-btn:hover {
    background: var(--gold-dark);
}

/* Work Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.gallery-thumb {
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-thumb:hover img {
    transform: scale(1.1);
}
.thumb-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-thumb:hover .thumb-overlay {
    opacity: 1;
}

.gallery-btn-wrapper {
    margin-bottom: 20px;
}
.btn-outline-dark {
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    color: var(--text-dark-main);
    padding: 10px 16px;
    font-size: 0.88rem;
}
.btn-outline-dark:hover {
    border-color: var(--gold-dark);
    background: rgba(212, 175, 55, 0.08);
}

/* Footer Tagline */
.card-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 10px;
}
.fancy-tagline {
    font-family: var(--font-script);
    font-size: 1.45rem;
    color: var(--gold-dark);
}
.gold-heart {
    color: #E74C3C;
    font-size: 0.9rem;
    margin-left: 3px;
}

/* ==========================================================================
   MODALS & LIGHTBOX
   ========================================================================== */

.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}
.modal-content {
    position: relative;
    z-index: 10;
    background: #18191E;
    border: 1px solid var(--card-dark-border);
    border-radius: 24px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-card);
    color: #FFFFFF;
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Lightbox Specifics */
.lightbox-content {
    max-width: 800px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.lightbox-img-wrapper {
    max-width: 650px;
    max-height: 80vh;
    text-align: center;
}
.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    object-fit: contain;
}
.lightbox-caption {
    margin-top: 12px;
    font-size: 1rem;
    color: var(--gold-light);
}
.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #FFFFFF;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.nav-btn:hover {
    background: var(--gold-gradient);
    color: #000000;
}

/* QR Modal */
.qr-modal-content {
    text-align: center;
}
.qr-modal-body h3 {
    font-size: 1.3rem;
    color: var(--gold-primary);
    margin-bottom: 8px;
}
.qr-modal-body p {
    font-size: 0.88rem;
    color: var(--text-muted-dark);
    margin-bottom: 20px;
}
.large-qr-wrap {
    background: #FFFFFF;
    padding: 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}
.large-qr-wrap img {
    width: 220px;
    height: 220px;
    display: block;
}

/* Share Modal */
.share-modal-content h3 {
    font-size: 1.3rem;
    color: var(--gold-primary);
    margin-bottom: 6px;
}
.share-modal-content p {
    font-size: 0.88rem;
    color: var(--text-muted-dark);
    margin-bottom: 20px;
}
.share-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.share-opt-btn {
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.share-opt-btn.whatsapp { background: #25D366; }
.share-opt-btn.facebook { background: #1877F2; }
.share-opt-btn.twitter { background: #000000; border: 1px solid rgba(255,255,255,0.2); }
.share-opt-btn.email { background: #EA4335; }

.copy-link-box {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 8px 6px 14px;
    border-radius: 12px;
}
.copy-link-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
}
.copy-link-box button {
    background: var(--gold-gradient-btn);
    border: none;
    color: #000000;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1E2028;
    border: 1px solid var(--gold-primary);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast-icon {
    color: var(--gold-primary);
}

/* Responsive Media Queries */
@media (max-width: 820px) {
    body {
        padding: 20px 12px;
    }
    .app-header {
        margin-bottom: 5px;
    }
    .main-title {
        font-size: 1.7rem;
    }
    .mobile-tabs {
        display: flex;
    }
    .cards-grid {
        position: relative;
    }
    .card-wrapper {
        display: none;
    }
    .card-wrapper.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
