/* ==========================================================================
   Theme: Oceanic Silk (Premium Diamond Variant)
   Vibe: Corporate yet Festive, Elegant Muslim Lifestyle, High-Gloss Clean
   ========================================================================== */

/* ১. রুট ভেরিয়েবলস (Oceanic Silk কালার স্কিম) */
:root {
    --primary-blue: #0F4C81;
    --primary-blue-hover: #0a3357;
    --soft-amber: #E0A96D;
    --soft-amber-hover: #cc9458;
    --text-dark: #0D233A;
    --text-muted: #577399;
    --bg-light-1: #F7FAFC;
    --bg-light-2: #EBF4FA;
    --card-bg: rgba(255, 255, 255, 0.97);
    --card-shadow: 0 22px 45px rgba(15, 76, 129, 0.1);
    --border-blue: rgba(15, 76, 129, 0.12);
    --border-amber: rgba(224, 169, 109, 0.45);
    --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(15, 76, 129, 0.05) 0%, rgba(224, 169, 109, 0.04) 100%);
    border: 1px solid rgba(15, 76, 129, 0.08);
    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(15, 76, 129, 0.05);
}

@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: 3px solid var(--primary-blue);
    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(224, 169, 109, 0.06) 0%, transparent 65%);
    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(--soft-amber);
    box-shadow: 0 8px 22px rgba(15, 76, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.biz-name {
    font-size: 25px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.biz-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--soft-amber);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ৭. গ্রিটিংカード (ওশেনিক সিল্ক স্টাইল) */
.greeting-card {
    background: var(--card-bg);
    border: 1px solid var(--border-amber);
    border-top: 4px solid var(--primary-blue);
    border-radius: 24px;
    padding: 32px 20px;
    margin-bottom: 22px;
    box-shadow: 0 12px 35px rgba(15, 76, 129, 0.02);
    position: relative;
}

.islamic-art-top {
    font-size: 26px;
    color: var(--soft-amber);
    margin-bottom: 14px;
    animation: pulseAmber 2s infinite ease-in-out;
}

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

.wish-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.75;
    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.65;
    font-style: italic;
    font-weight: 500;
}

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

.thanks-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 76, 129, 0.06);
    border: 1px solid var(--border-blue);
    color: var(--primary-blue);
    padding: 8px 20px;
    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-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: var(--primary-blue); /* সকল আইকন ওশেনিক থিম কালারে */
    box-shadow: 0 5px 12px rgba(15, 76, 129, 0.06);
    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: linear-gradient(135deg, var(--primary-blue) 0%, #0a3357 100%);
    color: var(--soft-amber) !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 22px rgba(15, 76, 129, 0.3);
    border-color: var(--soft-amber);
}

/* ৯. ইন্টারেক্টিভ কন্ট্রোলস (ডাউনলোড ও ল্যাংগুয়েজ সুইচার) */
.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-blue) 0%, #0a3357 100%);
    border: 1px solid var(--soft-amber);
    color: #ffffff;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(15, 76, 129, 0.25);
    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(15, 76, 129, 0.4);
    background: linear-gradient(135deg, #0a3357 0%, var(--primary-blue) 100%);
    color: var(--soft-amber);
}

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

/* ল্যাংগুয়েজ সুইচার */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-blue);
    box-shadow: 0 4px 12px 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-blue);
    font-weight: 700;
}

.lang-switcher .divider {
    color: rgba(15, 76, 129, 0.2);
    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(--primary-blue);
}

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

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

.credits-text a:hover {
    color: var(--soft-amber);
}

/* ১১. ফ্লোটিং হোয়াটসঅ্যাপ বাটন */
.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.35);
    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.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

@keyframes pulseAmber {
    0% { transform: scale(1); opacity: 0.9; color: var(--soft-amber); }
    50% { transform: scale(1.08); opacity: 1; color: #f2c18d; filter: drop-shadow(0 0 5px rgba(224,169,109,0.6)); }
    100% { transform: scale(1); opacity: 0.9; color: var(--soft-amber); }
}

@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: 17px;
    }
}