/*============================================================================
 * Theme Name: Shadow Elegance (Premium Diamond Edition)
 * Description: Eid-ul-Adha Special Dynamic Business Card
 * Colors: Primary Pure White (#FFFFFF), Accent Muted Gray (#9CA3AF)
 * Background: linear-gradient(135deg, #111827 0%, #030712 100%)
 * Vibe: Solid, Ultra-Professional & Sharp Dark Mode
 ============================================================================*/

/* ১. গ্লোবাল রিসেট এবং প্রোটেকশন */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
    background: linear-gradient(135deg, #111827 0%, #030712 100%);
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* ২. ব্যাকগ্রাউন্ড অ্যানিমেটেড ক্রিস্টাল ডাস্ট ও মনোক্সেড পার্টিকল্স */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    animation: shadowFloat linear infinite;
}

.shape.circle { border-radius: 50%; }
.shape.square { border-radius: 4px; }
.shape.triangle {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 16px solid rgba(156, 163, 143, 0.08);
}

@keyframes shadowFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* ৩. মেইন লেআউট র‍্যাপার */
.page-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.capture-area {
    width: 100%;
    flex-grow: 1;
}

/* ৪. এক্সপোর্ট জোন (ডাউনলোড কালার ও গ্লো লক মেকানিজম) */
/* html2canvas ফিক্স: !important দিয়ে ডার্ক শ্যাডো গ্রেডিয়েন্ট ও পিউর হোয়াইট বর্ডার লক করা হয়েছে যাতে ডাউনলোডের পর হুবহু একই থাকে */
#exportZone {
    width: 100% !important;
    background: linear-gradient(135deg, #111827 0%, #030712 100%) !important;
    border: 2px solid #FFFFFF !important;
    border-radius: 28px !important;
    padding: 35px 24px !important;
    box-shadow: 0 15px 40px rgba(3, 7, 18, 0.9), inset 0 0 30px rgba(255, 255, 255, 0.03) !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* কার্ডের টপে আল্ট্রা-ব্রাইট পিউর হোয়াইট লেজার লাইন */
#exportZone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #9CA3AF, #FFFFFF, #9CA3AF);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.6);
}

/* ৫. ব্র্যান্ড ও প্রোফাইল সেকশন */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.logo-box {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3px;
    background: #030712;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.biz-name {
    font-size: 25px;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    margin-bottom: 6px;
    letter-spacing: 0.8px;
}

.biz-desc {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
    padding: 0 15px;
    line-height: 1.45;
    letter-spacing: 0.5px;
}

/* ৬. গর্জিয়াস নিয়ন ডার্ক গ্রিটিং কার্ড */
.greeting-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 30px 22px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.02);
    margin-bottom: 24px;
    position: relative;
    backdrop-filter: blur(12px);
}

.islamic-art-top {
    font-size: 32px;
    color: #FFFFFF;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    animation: shadowGlow 2s infinite ease-in-out;
}

@keyframes shadowGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); color: #FFFFFF; }
}

.greeting-card h1 {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 14px;
    line-height: 1.35;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.wish-text {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.65;
    font-weight: 400;
}

/* ৭. কাস্টম ইউজার টেক্সট মেসেজ বক্স */
.user-custom-msg {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid #FFFFFF;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.01);
}

.user-custom-msg p {
    font-size: 13.5px;
    color: #FFFFFF;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

/* ৮. থ্যাঙ্কস ব্যাজ */
.thanks-container {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.thanks-badge {
    background: linear-gradient(135deg, #FFFFFF 0%, #9CA3AF 100%);
    color: #030712;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.animate-heart {
    color: #030712;
    animation: shadowHeart 1.2s infinite;
}

@keyframes shadowHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

/* ৯. সোশ্যাল মিডিয়া গ্রিড (২ লাইনে প্রতি লাইনে ৫টি করে - স্ক্রিনের একদম মাঝ বরাবর) */
.social-grid-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 365px;
    justify-items: center;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF; /* সম্পূর্ণ থিম কালার কাস্টমাইজড আইকন */
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-decoration: none !important; /* আন্ডারলাইন সম্পূর্ণ বন্ধ */
    outline: none;
}

/* আইকনের নিচে আন্ডারলাইন বা কমেন্ট লাইন আসার সমস্ত সম্ভাবনা ব্লক */
.social-btn *, .social-btn:hover, .social-btn:focus, .social-btn:active {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

/* সোশ্যাল বাটন সলিড ডার্ক হোভার এফেক্ট */
.social-btn:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #9CA3AF 100%);
    color: #030712;
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    border-color: #FFFFFF;
}

/* ১০. ইন্টারেক্টিভ কন্ট্রোলস (ডাউনলোড বাটন ও ল্যাঙ্গুয়েজ সুইচার) */
.interactive-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    margin-top: 10px;
}

.download-trigger {
    width: 100%;
    background: linear-gradient(135deg, #FFFFFF 0%, #9CA3AF 100%);
    color: #030712;
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.download-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.35);
    filter: brightness(1.05);
}

.download-trigger i {
    font-size: 18px;
}

/* ল্যাঙ্গুয়েজ সুইচার */
.lang-switcher {
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switcher a {
    font-size: 13px;
    font-weight: 600;
    color: #9CA3AF;
    text-decoration: none;
    opacity: 0.6;
    transition: all 0.2s;
}

.lang-switcher a.active {
    color: #FFFFFF;
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.lang-switcher .divider {
    color: #9CA3AF;
    opacity: 0.3;
    font-size: 12px;
}

/* ১১. সাইট ফুটার */
.site-global-footer {
    text-align: center;
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.copyright-text {
    font-size: 12px;
    color: #9CA3AF;
    opacity: 0.7;
    margin-bottom: 6px;
}

.copyright-text b {
    color: #FFFFFF;
}

.credits-text {
    font-size: 11px;
    color: #9CA3AF;
    opacity: 0.5;
}

.credits-text a {
    color: #9CA3AF;
    text-decoration: none;
}

.credits-text a b {
    color: #FFFFFF;
}

/* ১২. ফ্লোটিং হোয়াটসঅ্যাপ বাটন */
.whatsapp-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none !important;
}

.ping-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.35;
    z-index: -1;
    animation: shadowWave 1.6s infinite ease-out;
}

@keyframes shadowWave {
    0% { transform: scale(1); opacity: 0.35; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* ১৩. রেসপনসিভ মোবাইল অপ্টিমাইজেশন */
@media (max-width: 380px) {
    .social-grid {
        gap: 8px;
        max-width: 315px;
    }
    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
        border-radius: 11px;
    }
    .biz-name { font-size: 22px; }
    .greeting-card h1 { font-size: 22px; }
    #exportZone { padding: 30px 15px !important; }
}