/* --- Root Identity Setup --- */
:root {
    --bg: #f8fafc;
    --glass-box: #ffffff;
    --border: rgba(99, 102, 241, 0.12);
    --text: #0f172a;
    --text-muted: #475569;
    --accent: #2563eb;
    --shadow: rgba(0, 0, 0, 0.04);
    --divider-color: #cbd5e1;
}
[data-theme="dark"] {
    --bg: #0f172a;
    --glass-box: #1e293b;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --shadow: rgba(0, 0, 0, 0.2);
    --divider-color: #475569;
}

/* --- Core Resets & Beautiful Bengali Typography --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 650px; margin: 0 auto; padding: 0 5%; }

/* Smart Line Break & Text Protection Settings */
p, h1, h2, h3, h4, span {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.6;
}

/* --- Page Entry Smooth Animation --- */
.fade-in-page { opacity: 0; transform: translateY(10px); animation: pageShow 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes pageShow { to { opacity: 1; transform: translateY(0); } }
@keyframes floatAnim { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.animate-float { animation: floatAnim 3.5s ease-in-out infinite; }

/* --- Fixed Section Headers & Titles Layout --- */
.section-title {
    text-align: center; 
    font-size: clamp(1.3rem, 5vw, 1.65rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 25px; /* Healthy gap with content below */
}

/* Title Spacing & Padding for premium look */
.text-center-pad {
    padding: 6px 14px;
    background: transparent;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.main-title {
    max-width: 520px;
    margin: 0 auto 15px auto;
}

/* Hero Description Constraints (Edge-to-Edge Fixing) */
.hero-desc-container {
    width: 100%;
    max-width: 520px; /* Constrains it from hitting screens corners */
    margin: 0 auto 25px;
    padding: 0 20px;
}
.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
}

/* --- Classic Elegant -✦- Section Divider --- */
.section-divider {
    text-align: center;
    color: var(--divider-color);
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin: 45px 0;
    font-weight: 600;
    user-select: none;
}

/* --- Header & Brand Navbar --- */
header { width: 100%; padding: 18px 5%; background: transparent; }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: 3px; color: var(--text); text-decoration: none; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--glass-box); color: var(--text); cursor: pointer; transition: 0.25s; display: flex; align-items: center; justify-content: center; }
.theme-btn:hover { background: var(--accent); color: #fff; }

/* --- Profile Container Frame Fixes --- */
.hero { padding: 25px 0 10px; display: flex; flex-direction: column; align-items: center; }
.profile-container { position: relative; display: inline-block; width: 145px; height: 145px; margin-bottom: 25px; }
.profile-glow-ring { width: 100%; height: 100%; border-radius: 50%; border: 2.5px dashed var(--accent); padding: 5px; display: flex; align-items: center; justify-content: center; }
.profile-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Profile Bubble Alignment Fix */
.speech-bubble { 
    position: absolute; top: -18px; right: -88px; background: #fff; color: #1e293b; 
    padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 0.82rem; 
    box-shadow: 0 6px 15px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); white-space: nowrap; z-index: 5; 
}

/* --- Advanced Speaker Button Components --- */
.badge-container-flex { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.hero-badge { display: inline-block; padding: 6px 16px; background: var(--glass-box); border-radius: 50px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border); }
.speaker-action-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px var(--shadow); transition: 0.2s; }
.speaker-action-btn.playing { background: #ef4444; animation: pulseWave 1.3s infinite; }
@keyframes pulseWave { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* --- Action Buttons Layout --- */
.hero-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-main { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; background: var(--accent); color: #fff; border-radius: 50px; font-size: 0.92rem; text-decoration: none; font-weight: 600; border: 2px solid var(--accent); cursor: pointer; transition: 0.25s; }
.btn-main:hover { transform: translateY(-2px); opacity: 0.95; }
.btn-outline { display: inline-block; padding: 11px 26px; background: transparent; color: var(--accent); border: 2px solid var(--accent); border-radius: 50px; font-size: 0.92rem; text-decoration: none; font-weight: 600; transition: 0.25s; cursor: pointer; }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* --- Banner Box Dimensions --- */
.banner-wrapper-box { width: 100%; border-radius: 16px; overflow: hidden; height: 210px; box-shadow: 0 4px 12px var(--shadow); }
.banner-wrapper-box img { width: 100%; height: 100%; object-fit: cover; }

/* --- Dynamic Dynamic Populate Content Grids --- */
.section-header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 10px; margin-bottom: 5px; }
.view-all-badge-btn { background: var(--glass-box); border: 1px solid var(--border); padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; cursor: pointer; color: var(--text); font-weight: 600; transition: 0.2s; white-space: nowrap; }
.view-all-badge-btn:hover { background: var(--accent); color: #fff; }

.friends-row { display: flex; gap: 15px; overflow-x: auto; padding: 10px 0; width: 100%; }
.friends-row::-webkit-scrollbar { display: none; }
.friend-card { min-width: 125px; background: var(--glass-box); border: 1px solid var(--border); border-radius: 16px; padding: 18px 10px; flex-shrink: 0; box-shadow: 0 4px 10px var(--shadow); text-align: center; }
.friend-img-box { width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--accent); margin: 0 auto 10px; padding: 2px; }
.friend-img-box img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.friend-card h4 { font-size: 0.85rem; margin-bottom: 10px; font-weight: 700; }
.btn-small { background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; text-decoration: none; display: inline-block; font-weight: 600; }

.grid { display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; }
.service-card { background: var(--glass-box); border: 1px solid var(--border); border-radius: 16px; padding: 22px 18px; box-shadow: 0 4px 10px var(--shadow); text-align: center; }
.service-card i { font-size: 1.6rem; color: var(--accent); margin-bottom: 10px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 6px; font-weight: 700; }
.service-card p { font-size: 0.88rem; color: var(--text-muted); }

/* Campaigns Presentation Item Design */
.work-wrapper { position: relative; width: 100%; text-align: left; background: var(--glass-box); border-radius: 16px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 4px 12px var(--shadow); }
.work-img { width: 100%; height: 190px; object-fit: cover; display: block; }
.work-info-box { padding: 16px; }
.work-info-box h3 { font-size: 1.05rem; margin-bottom: 6px; font-weight: 700; }
.work-info-box p { font-size: 0.85rem; color: var(--text-muted); }

/* YouTube Frame Wrap */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* --- Talk Box Area Card --- */
.talk-box-card { background: var(--glass-box); border: 1px dashed var(--accent); border-radius: 20px; padding: 35px 20px; text-align: center; width: 100%; }
.talk-desc-text { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 18px; }

/* --- Marquee Bar Layout --- */
.marquee { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; background: var(--glass-box); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; overflow: hidden; white-space: nowrap; margin-top: 35px; }

/* --- Footer Elements --- */
footer { padding: 35px 0 25px; background: transparent; width: 100%; text-align: center; }
.footer-brand { font-size: 1.2rem; font-weight: 700; letter-spacing: 3px; margin-bottom: 8px; }
.footer-tagline { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 15px; }
.footer-socials { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 1rem; text-decoration: none; transition: 0.2s; }
.footer-socials a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.footer-bottom-line { font-size: 0.78rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 15px; opacity: 0.8; }
.hardcoded-credit-line { font-size: 0.75rem; font-weight: 700; color: var(--accent); margin-top: 6px; }

/* --- Full Screen Creator Page View Layer --- */
#friends-page { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--bg); z-index: 9999; overflow-y: auto; padding-bottom: 40px; }
.hidden-view { display: none; }
.friends-nav-bar { width: 100%; background: var(--glass-box); border-bottom: 1px solid var(--border); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 10; }
.back-home-action-btn { background: var(--accent); color: #fff; border: none; padding: 6px 14px; border-radius: 50px; font-weight: 600; font-size: 0.82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.creator-page-nav-title { font-size: 1rem; font-weight: 700; letter-spacing: 2px; }
.friends-page-container-content { padding-top: 20px; text-align: center; }
.creator-page-subtitle-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.friends-grid-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; }

/* --- Premium Interactive Dual Option Popup Modal Panel --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; z-index: 10000;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open-show { opacity: 1; pointer-events: auto; }
.modal-box-panel {
    background: var(--glass-box); width: 90%; max-width: 420px;
    border-radius: 24px; padding: 28px 22px; position: relative;
    transform: translateY(15px); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 35px var(--shadow); border: 1px solid var(--border);
    text-align: center;
}
.modal-overlay.open-show .modal-box-panel { transform: translateY(0); }
.modal-close-trigger-btn { position: absolute; top: 12px; right: 18px; background: none; border: none; font-size: 1.8rem; color: var(--text-muted); cursor: pointer; }
.modal-panel-title { font-size: 1.22rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.modal-panel-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; }
.modal-cards-holder { display: flex; flex-direction: column; gap: 12px; }

.modal-action-card {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    border-radius: 16px; text-decoration: none; text-align: left;
    transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--border);
}
.modal-action-card:hover { transform: translateY(-2px); box-shadow: 0 5px 12px var(--shadow); }
.dynamic-insta-gradient { background: linear-gradient(135deg, rgba(254,218,119,0.12) 0%, rgba(225,48,108,0.12) 50%, rgba(147,63,141,0.12) 100%); border-color: rgba(225,48,108,0.2); }
.dynamic-fb-blue { background: rgba(24, 119, 242, 0.08); border-color: rgba(24, 119, 242, 0.2); }

.modal-card-icon i { font-size: 1.6rem; }
.dynamic-insta-gradient .modal-card-icon i { color: #dc2743; }
.dynamic-fb-blue .modal-card-icon i { color: #1877f2; }

.modal-card-info h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 2px; font-weight: 700; }
.modal-card-info p { font-size: 0.78rem; color: var(--text-muted); }

@media (min-width: 520px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .friends-grid-layout { grid-template-columns: repeat(3, 1fr); }
}

/* ব্যানার ইমেজ রেসপনসিভ এবং ওভারফ্লো ফিক্স */
.image-banner {
    width: 100%;
    max-width: 1200px; /* আপনার ওয়েবসাইটের কন্টেইনার সাইজ অনুযায়ী */
    margin: 20px auto;
    padding: 0 15px;
    overflow: hidden;
}

.image-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px; /* সুন্দর রাউন্ডেড কর্নার দেওয়ার জন্য */
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
