/* ==========================================================================
   Theme: Royal Gold & Ivory (Premium Diamond Variant)
   Vibe: Elite, Royal Islamic, Clean & Captivating
   ========================================================================== */

/* ১. রুট ভেরিয়েবলস (থিম কালার স্কিম) */
:root {
    --primary-gold: #C5A880;
    --primary-gold-hover: #b3956d;
    --navy-slate: #1E293B;
    --text-dark: #2C3E50;
    --text-muted: #64748B;
    --bg-light-1: #FFFDF9;
    --bg-light-2: #F5EFE6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 20px 40px rgba(197, 168, 128, 0.15);
    --border-gold: rgba(197, 168, 128, 0.3);
    --font-premium: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
}

/* ২. গ্লোবাল রিসেট ও বেস স্টাইল */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none !important; /* আইকন বা লিংকের নিচে আন্ডারলাইন চিরতরে বন্ধ */
    outline: none;
}

body {
    font-family: var(--font-premium);
    background: linear-gradient(135deg, var(--bg-light-1) 0%, var(--bg-light-2) 100%);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    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: linear-gradient(135deg, rgba(197, 168, 128, 0.1) 0%, rgba(30, 41, 59, 0.05) 100%);
    border: 1px solid rgba(197, 168, 128, 0.15);
    backdrop-filter: blur(1px);
    animation: floatShapes linear infinite;
    bottom: -100px;
}

.shape.circle { border-radius: 50%; }
.shape.square { border-radius: 12px; transform: rotate(45deg); }
.shape.triangle {
    width: 0; height: 0;
    background: transparent;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(197, 168, 128, 0.1);
}

@keyframes floatShapes {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

/* ৪. পেজ র‍্যাপার এবং ক্যাপচার এরিয়া */
.page-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.capture-area {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ৫. এক্সপোর্ট জোন (ডাউনলোড এরিয়া - কালার লকড) */
/* ডাউনলোড করার সময় যেন ব্যাকগ্রাউন্ড ও কালার সেম থাকে তা ফিক্সড করা হয়েছে */
.card-export-zone {
    width: 100%;
    background: #ffffff linear-gradient(135deg, var(--bg-light-1) 0%, var(--bg-light-2) 100%) !important;
    border: 2px solid var(--primary-gold);
    border-radius: 32px;
    padding: 35px 25px;
    box-shadow: var(--card-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ডায়মন্ড ওয়াটারমার্ক ইফেক্ট ব্যাকগ্রাউন্ডে */
.card-export-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197,168,128,0.03) 0%, transparent 70%);
    pointer-events: none;
}

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

.logo-box {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: #ffffff;
    padding: 5px;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: scale(1.05);
}

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

.biz-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy-slate);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.biz-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ৭. রয়্যাল ঈদ গ্রিটিং কার্ড */
.greeting-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    padding: 30px 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
}

.islamic-art-top {
    font-size: 24px;
    color: var(--primary-gold);
    margin-bottom: 12px;
    animation: pulseGold 2s infinite ease-in-out;
}

.greeting-card h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy-slate);
    margin-bottom: 15px;
    line-height: 1.3;
}

.wish-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 500;
}

/* কাস্টম ইউজার মেসেজ */
.user-custom-msg {
    padding: 0 15px;
    margin-bottom: 25px;
}

.user-custom-msg p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

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

.thanks-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--navy-slate);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.animate-heart {
    color: #e11d48;
    animation: heartBeat 1.2s infinite;
}

/* ৮. সোশ্যাল মিডিয়া গ্রিড (প্রতি লাইনে ৫টি করে ২ লাইনে ১০টি) */
.social-grid-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* প্রতি লাইনে ৫টি বাটন */
    gap: 12px;
    width: 100%;
    max-width: 360px; /* স্ক্রিনের মাঝ বরাবর রাখার জন্য */
    justify-items: center;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-gold); /* সব আইকন থিম কালার কম্বিনেশনে */
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* আন্ডারলাইন প্রটেকশন ডাবল চেক */
.social-btn i {
    text-decoration: none !important;
}

/* সোশ্যাল বাটন হোভার ইফেক্ট (ব্রাইট অ্যান্ড ডায়মন্ড লুক) */
.social-btn:hover {
    background: var(--primary-gold);
    color: #ffffff !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.4);
}

/* ৯. ইন্টারেক্টিভ কন্ট্রোলস (ডাউনলোড ও ল্যাংগুয়েজ) */
.interactive-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 5px;
}

.download-trigger {
    width: 100%;
    max-width: 340px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #b3956d 100%);
    border: none;
    color: #ffffff;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(197, 168, 128, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.download-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(197, 168, 128, 0.5);
    background: linear-gradient(135deg, #b3956d 0%, var(--primary-gold) 100%);
}

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

/* ল্যাংগুয়েজ সুইচার */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.lang-switcher a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

.lang-switcher a.active {
    color: var(--primary-gold);
    font-weight: 700;
}

.lang-switcher .divider {
    color: rgba(197, 168, 128, 0.4);
    font-size: 12px;
}

/* ১০. গ্লোবাল ফুটার */
.site-global-footer {
    margin-top: auto;
    padding-top: 40px;
    padding-bottom: 10px;
    text-align: center;
}

.copyright-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.copyright-text b {
    color: var(--navy-slate);
}

.credits-text {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.credits-text a {
    color: var(--primary-gold);
    transition: color 0.2s;
}

.credits-text a:hover {
    color: var(--navy-slate);
}

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

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(10deg);
}

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

/* ১২. কি-ফ্রেম অ্যানিমেশনসমূহ */
@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

@keyframes pulseGold {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; color: #b3956d; }
    100% { transform: scale(1); opacity: 0.9; }
}

@keyframes pingEffect {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ১৩. রেসপন্সিভ মিডিয়া কোয়েরি */
@media (max-width: 400px) {
    .card-export-zone {
        padding: 25px 15px;
    }
    .greeting-card h1 {
        font-size: 22px;
    }
    .social-grid {
        gap: 8px;
        max-width: 320px;
    }
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}