/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@400;500;600;700&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

/* ===== CSS Variables (ডিজাইন সিস্টেম) ===== */
:root {
  --bg-primary: #f8fafc; /* Light grayish blue background */
  --bg-secondary: #ffffff; /* Pure white */
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --accent: #0284c7; /* Intelligence agency blue */
  --accent-glow: rgba(2, 132, 199, 0.2);
  --accent-cyan: #0369a1; /* Darker blue for hover */
  --text-primary: #0f172a; /* Dark slate */
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: rgba(15, 23, 42, 0.1); /* Subtle dark border */
  --border-hover: rgba(2, 132, 199, 0.4);
  --font-bangla: 'Hind Siliguri', sans-serif;
  --font-tech: 'Orbitron', sans-serif;
  --font-body-en: 'Rajdhani', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-bangla);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Utility ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-header h2 {
  font-family: var(--font-tech); font-size: 14px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-primary);
  font-weight: 700;
}
.section-header a {
  font-family: var(--font-body-en); font-size: 13px; color: var(--accent);
  letter-spacing: 1px; transition: color .3s;
  font-weight: 600;
}
.section-header a:hover { color: var(--accent-cyan); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border: 1px solid var(--accent);
  color: var(--accent); font-family: var(--font-tech);
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  background: transparent; cursor: pointer; transition: all .3s;
  position: relative; overflow: hidden;
  border-radius: 4px; /* Slightly softer corners for clean theme */
  font-weight: 600;
}
.btn:hover {
  background: var(--accent); color: #ffffff;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-filled {
  background: var(--accent); color: #ffffff;
}
.btn-filled:hover {
  background: var(--accent-cyan); box-shadow: 0 4px 15px var(--accent-glow);
  border-color: var(--accent-cyan);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.navbar .container {
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-family: var(--font-tech); font-size: 22px; font-weight: 900;
  color: var(--text-primary); letter-spacing: 5px; margin-right: -5px;
  text-decoration: none; display: inline-block;
  transition: all 0.3s ease;
  line-height: 1;
}
.logo:hover {
  transform: scale(1.02);
  text-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}
.logo span { 
  color: var(--accent); font-size: 11px; display: block; 
  letter-spacing: 6.8px; margin-right: -6.8px;
  font-weight: 700; transition: all 0.3s ease;
  margin-top: 4px;
}
.logo:hover span {
  color: var(--accent-cyan);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--font-body-en); font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-secondary); transition: color .3s;
  font-weight: 600;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { margin-left: 16px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text-primary); transition: all .3s;
  border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: url("hero bg 1.png") center/cover no-repeat;
}

.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 350px; gap: 60px; align-items: center;
}
.hero-content {
  background: transparent;
  padding: 40px;
  border-radius: 16px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 3px;
  color: #38bdf8; margin-bottom: 20px; text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.hero h1 {
  font-family: var(--font-bangla); font-size: 52px; font-weight: 700;
  line-height: 1.2; margin-bottom: 20px; color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.hero h1 .highlight { color: #38bdf8; display: block; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.hero-desc {
  font-size: 16px; color: #f1f5f9; max-width: 520px;
  margin-bottom: 32px; line-height: 1.8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-buttons .btn {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border-color: #ffffff;
}
.hero-buttons .btn:hover {
  background: #ffffff;
  color: var(--text-primary);
}
.hero-buttons .btn-filled {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.hero-buttons .btn-filled:hover {
  background: var(--accent-cyan);
}

/* Hero Sci-Fi Panel */
.sci-fi-panel {
  background: transparent;
  border: none;
  border-radius: 16px; padding: 24px; backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.panel-item {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.panel-item:last-child { border-bottom: none; }
.panel-label {
  font-family: var(--font-tech); font-size: 10px; letter-spacing: 2px;
  color: #cbd5e1; text-transform: uppercase; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.panel-value {
  font-family: var(--font-tech); font-size: 12px; letter-spacing: 1px;
  color: #38bdf8; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-family: var(--font-tech);
  font-size: 10px; letter-spacing: 2px; animation: float 3s ease-in-out infinite;
  font-weight: 600;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== Key Operatives ===== */
.operatives { padding: 100px 0; background: var(--bg-secondary); }
.operative-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.operative-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px; text-align: center;
  transition: all .4s ease; position: relative; overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.operative-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .4s;
}
.operative-card:hover {
  transform: translateY(-8px); border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(2,132,199,0.08);
}
.operative-card:hover::before { opacity: 1; }
.operative-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, #e0e7ff, #f1f5f9);
  border: 2px solid var(--border); display: flex; align-items: center;
  justify-content: center; font-size: 28px;
  color: var(--accent);
}
.operative-name {
  font-family: var(--font-body-en); font-size: 16px; font-weight: 700;
  letter-spacing: 1px; margin-bottom: 4px; text-transform: uppercase; color: var(--text-primary);
}
.operative-role {
  font-family: var(--font-tech); font-size: 10px; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 12px; text-transform: uppercase; font-weight: 700;
}
.operative-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}
.operative-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-family: var(--font-tech); font-size: 10px; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; transition: gap .3s; font-weight: 700;
}
.operative-link:hover { gap: 12px; color: var(--accent-cyan); }

/* ===== Missions (Books Grid) ===== */
.missions { padding: 80px 0; background: var(--bg-primary); }
.missions-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mission-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: all .4s ease; position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.mission-card:hover {
  transform: translateY(-6px); border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(2,132,199,0.1);
}
.mission-cover {
  height: 180px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex; align-items: center; justify-content: center;
}
.mission-cover-text {
  font-family: var(--font-bangla); font-size: 28px; font-weight: 700;
  color: rgba(15,23,42,0.15); text-align: center; line-height: 1.3;
}
.mission-number {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--font-tech); font-size: 9px; letter-spacing: 2px;
  background: rgba(2,132,199,0.1); color: var(--accent);
  padding: 4px 10px; border-radius: 4px; font-weight: 700;
}
.mission-info { padding: 16px; }
.mission-series {
  font-family: var(--font-bangla); font-size: 16px; font-weight: 700;
  margin-bottom: 4px; color: var(--text-primary);
}
.mission-title {
  font-size: 13px; color: var(--text-secondary); line-height: 1.4;
}
.mission-cta {
  display: flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: var(--font-tech); font-size: 10px; letter-spacing: 1.5px;
  color: var(--accent); text-transform: uppercase; font-weight: 700;
}

/* ===== Stats Section ===== */
.stats { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-item {}
.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-number {
  font-family: var(--font-tech); font-size: 32px; font-weight: 700; color: var(--accent);
}
.stat-label {
  font-family: var(--font-tech); font-size: 10px; letter-spacing: 2px;
  color: var(--text-muted); text-transform: uppercase; margin-top: 4px; font-weight: 700;
}

/* ===== Features Grid ===== */
.features { padding: 80px 0; background: var(--bg-primary); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 32px; transition: all .4s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(2,132,199,0.08);
  transform: translateY(-4px);
}
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-title {
  font-family: var(--font-tech); font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 12px; color: var(--text-primary); font-weight: 700;
}
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.feature-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 10px 20px; border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--font-tech); font-size: 10px; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; transition: all .3s; font-weight: 700;
}
.feature-cta:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); }

/* ===== CTA Section ===== */
.cta-section {
  position: relative;
  padding: 120px 0; text-align: center;
  overflow: hidden;
}

/* Container for slides */
.cta-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Individual slides */
.cta-bg-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: cta-fade 20s infinite;
}

/* Delay for each slide (total 20s = 4 slides * 5s) */
.cta-bg-slider .slide:nth-child(1) { animation-delay: 0s; }
.cta-bg-slider .slide:nth-child(2) { animation-delay: 5s; }
.cta-bg-slider .slide:nth-child(3) { animation-delay: 10s; }
.cta-bg-slider .slide:nth-child(4) { animation-delay: 15s; }

/* Overlay to darken background so text is readable */
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7); /* Dark overlay */
  z-index: 1;
}

/* Keyframes for smooth fade */
@keyframes cta-fade {
  0% { opacity: 0; transform: scale(1.05); }
  5% { opacity: 1; transform: scale(1.04); }
  25% { opacity: 1; transform: scale(1.02); }
  30% { opacity: 0; transform: scale(1.01); }
  100% { opacity: 0; transform: scale(1); }
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-family: var(--font-tech); font-size: 26px; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 12px; color: #ffffff; font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.cta-section p {
  font-size: 18px; color: #e2e8f0; margin-bottom: 32px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 24px; border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; color: var(--text-primary); }
.footer-tagline { font-size: 14px; color: var(--text-muted); }
.footer h4 {
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px; color: var(--text-primary); font-weight: 700;
}
.footer-links a {
  display: block; padding: 4px 0; font-size: 14px; color: var(--text-secondary);
  transition: color .3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all .3s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); background: rgba(2,132,199,0.05); }
.newsletter-input {
  display: flex; gap: 8px; margin-top: 12px;
}
.newsletter-input input {
  flex: 1; padding: 10px 16px; background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-primary); font-family: var(--font-bangla); font-size: 14px;
  outline: none; transition: border-color .3s;
}
.newsletter-input input:focus { border-color: var(--accent); }
.newsletter-input button {
  padding: 10px 16px; background: var(--accent); border: none;
  border-radius: 6px; color: #ffffff; cursor: pointer;
  font-size: 16px; transition: background .3s;
}
.newsletter-input button:hover { background: var(--accent-cyan); }
.footer-bottom {
  text-align: center; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,0.6); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity .3s;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; max-width: 800px; width: 100%;
  max-height: 90vh; overflow: hidden; position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  display: flex; flex-direction: column;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px; border-bottom: 1px solid var(--border);
  background: var(--bg-secondary); z-index: 1;
  flex-shrink: 0; /* হেডার সংকুচিত হবে না */
  border-radius: 12px 12px 0 0; /* উপরের কর্নার গোল রাখি */
}
.modal-header h3 { font-family: var(--font-bangla); font-size: 22px; color: var(--text-primary); font-weight: 700; }
.modal-close {
  width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: 50%; background: var(--bg-primary); color: var(--text-primary);
  font-size: 18px; cursor: pointer; transition: all .3s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.05); }
.modal-body { padding: 28px; overflow-y: auto; flex: 1; /* বডিতে স্ক্রল হবে, মডাল কর্নার অক্ষুণ্ণ থাকবে */ }
.modal-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px;
}
.meta-item {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px;
}
.meta-label {
  font-family: var(--font-tech); font-size: 9px; letter-spacing: 2px;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; font-weight: 700;
}
.meta-value { font-size: 15px; color: var(--text-primary); font-weight: 600; }
.modal-summary { margin-bottom: 24px; }
.modal-summary h4 {
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px; font-weight: 700;
}
.modal-summary p { font-family: var(--font-bangla); font-size: 17px; color: var(--text-primary); line-height: 1.9; text-align: justify; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Mission Cover Image ===== */
/* কার্ডের উপরে ছবি দেখানোর জন্য */
.mission-cover-img {
  width: 100%; height: 100%;
  object-fit: cover; /* ছবি কেটে ফিট করবে, বিকৃত হবে না */
  display: block;
  transition: transform 0.4s ease;
}
.mission-card:hover .mission-cover-img {
  transform: scale(1.05); /* হোভারে একটু zoom হবে */
}

/* Slides Badge — কার্ডে স্লাইড সংখ্যা দেখাবে */
.slides-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(2, 132, 199, 0.85);
  color: #ffffff; font-family: var(--font-tech);
  font-size: 9px; letter-spacing: 1px; font-weight: 700;
  padding: 4px 8px; border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ===== Slide Gallery (Modal-এর ভেতরে) ===== */
.slide-section {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  background: var(--bg-primary);
}
.slide-section-title {
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase;
  padding: 12px 16px; margin: 0; font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.slide-viewer {
  display: flex; align-items: center; gap: 8px; padding: 12px;
}
.slide-gallery {
  flex: 1; position: relative;
  aspect-ratio: 16/9; /* স্লাইডের ratio */
  overflow: hidden; border-radius: 6px;
  background: #f1f5f9;
}
/* প্রতিটি স্লাইড ছবি */
.gallery-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; /* ছবির পুরোটা দেখাবে */
  opacity: 0; /* লুকানো থাকবে */
  pointer-events: none; /* লুকানো স্লাইডে ক্লিক পড়বে না */
  -webkit-user-select: auto;
  user-select: auto;
  -webkit-touch-callout: default; /* মোবাইলে লং-প্রেস সেভ ইনেবল */
  transition: opacity 0.4s ease;
}
/* সক্রিয় স্লাইড দেখা যাবে */
.gallery-slide.active { 
  opacity: 1; 
  pointer-events: auto; /* শুধু এক্টিভ স্লাইডে ক্লিক/লং-প্রেস হবে */
  z-index: 10;
}

/* Prev / Next বাটন */
.slide-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--bg-secondary); color: var(--accent);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; font-weight: 700;
}
.slide-btn:hover {
  background: var(--accent); color: #ffffff;
  border-color: var(--accent);
}

/* স্লাইড নম্বর কাউন্টার */
.slide-counter {
  text-align: center; padding: 8px;
  font-family: var(--font-tech); font-size: 10px;
  letter-spacing: 2px; color: var(--text-muted);
  border-top: 1px solid var(--border); font-weight: 700;
}

/* ===== ফুল-স্ক্রিন এক্সপ্যান্ড বাটন (গ্যালারির মাঝখানে ভাসমান) ===== */
.fs-expand-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  opacity: 0.7;
}
.fs-expand-btn:hover {
  opacity: 1;
  background: rgba(2, 132, 199, 0.8);
  border-color: rgba(2, 132, 199, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ===== ফুল-স্ক্রিন ওভারলে ===== */
.fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999; /* সবার উপরে */
  background: #000000;
  display: none;            /* ডিফল্টে লুকানো */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.fs-overlay.active {
  display: flex;  /* .active ক্লাস থাকলে দেখাবে */
}

/* ফুল-স্ক্রিন ইমেজ */
.fs-slide-img {
  max-width: 100%;
  max-height: calc(100vh - 70px); /* নেভবারের জায়গা বাদ */
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.3s ease;
}

/* ট্যাপ জোন (মোবাইলে বাম/ডান ট্যাপে স্লাইড চেঞ্জ) */
.fs-tap-zone {
  position: absolute;
  top: 0;
  bottom: 70px; /* নেভবারের উচ্চতা বাদ */
  width: 40%;
  z-index: 10;
  cursor: pointer;
}
.fs-tap-left { left: 0; }
.fs-tap-right { right: 0; }

/* ===== নিচের নেভিগেশন বার (Glassmorphism ইফেক্ট) ===== */
.fs-navbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 20;
}

/* Prev / Next বাটন */
.fs-nav-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}
.fs-nav-btn:hover {
  background: rgba(2, 132, 199, 0.6);
  border-color: rgba(2, 132, 199, 0.8);
}
.fs-nav-btn:active {
  transform: scale(0.95);
}

/* মাঝের অংশ: কাউন্টার + End বাটন */
.fs-nav-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* স্লাইড কাউন্টার (যেমন: ৫ / ১৫) */
.fs-counter {
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
}

/* End বাটন */
.fs-end-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}
.fs-end-btn:hover {
  background: rgba(239, 68, 68, 0.5);
  color: #ffffff;
}
.fs-end-btn:active {
  transform: scale(0.95);
}

/* ===== ফুল-স্ক্রিন — মোবাইল রেসপন্সিভ ===== */
@media (max-width: 480px) {
  .fs-navbar {
    height: 56px;
    padding: 0 10px;
  }
  .fs-nav-btn {
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: 1px;
  }
  .fs-counter {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .fs-end-btn {
    padding: 6px 10px;
    font-size: 9px;
  }
  .fs-slide-img {
    max-height: calc(100vh - 56px);
  }
  .fs-tap-zone {
    bottom: 56px;
  }
  .fs-expand-btn {
    width: 42px; height: 42px;
    font-size: 16px;
  }
}

/* ===== ⭐ Review & Discussion Section ===== */
.review-section {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-primary);
}
.review-section-title {
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase;
  padding: 12px 16px; margin: 0; font-weight: 700;
  border-bottom: 1px solid var(--border);
}

/* গড় রেটিং */
.review-avg {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-bottom: 1px solid var(--border);
}
.avg-stars {
  font-size: 22px; color: #f59e0b; /* সোনালী তারা */
  letter-spacing: 2px;
}
.avg-text {
  font-family: var(--font-bangla); font-size: 13px;
  color: var(--text-secondary);
}

/* রিভিউ ফর্ম */
.review-form {
  padding: 16px; border-bottom: 1px solid var(--border);
}
.star-rating-input {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.star-label {
  font-family: var(--font-bangla); font-size: 14px;
  color: var(--text-secondary); font-weight: 600;
}
/* ইন্টারেক্টিভ স্টার */
.stars-interactive {
  display: flex; gap: 4px;
}
.stars-interactive i {
  font-size: 22px; color: #cbd5e1; cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.stars-interactive i:hover,
.stars-interactive i.hovered {
  color: #f59e0b; transform: scale(1.15);
}
.stars-interactive i.selected {
  color: #f59e0b;
}

/* ইনপুট ফিল্ড */
.review-input,
.review-textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-primary);
  font-family: var(--font-bangla); font-size: 14px;
  outline: none; transition: border-color 0.3s;
  margin-bottom: 10px; resize: vertical;
}
.review-input:focus,
.review-textarea:focus {
  border-color: var(--accent);
}
.review-submit-btn {
  width: 100%; justify-content: center;
  padding: 10px 20px; font-size: 11px;
}
/* স্ট্যাটাস মেসেজ */
.review-status {
  margin-top: 8px; font-size: 13px;
  font-family: var(--font-bangla); text-align: center;
  min-height: 20px;
}
.review-status.success { color: #22c55e; }
.review-status.error { color: #ef4444; }

/* রিভিউ তালিকা */
.reviews-list {
  max-height: 300px; overflow-y: auto;
  padding: 12px 16px;
}
.reviews-loading {
  text-align: center; padding: 20px;
  color: var(--text-muted); font-family: var(--font-bangla);
  font-size: 14px;
}

/* প্রতিটি রিভিউ কার্ড */
.review-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px; margin-bottom: 10px;
  transition: border-color 0.3s;
}
.review-card:hover {
  border-color: var(--border-hover);
}
.review-card:last-child { margin-bottom: 0; }
.review-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.review-card-name {
  font-family: var(--font-bangla); font-size: 14px;
  font-weight: 700; color: var(--text-primary);
}
.review-card-date {
  font-family: var(--font-tech); font-size: 9px;
  letter-spacing: 1px; color: var(--text-muted);
}
.review-card-stars {
  font-size: 14px; color: #f59e0b;
  letter-spacing: 1px; margin-bottom: 6px;
}
.review-card-comment {
  font-family: var(--font-bangla); font-size: 14px;
  color: var(--text-secondary); line-height: 1.6;
}
.no-reviews {
  text-align: center; padding: 20px;
  color: var(--text-muted); font-family: var(--font-bangla);
  font-size: 14px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  /* Tablet Navbar Adjustments to prevent overlapping */
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 12px; letter-spacing: 0.5px; }
  .logo { font-size: 18px; letter-spacing: 3px; }
  .logo span { font-size: 9px; letter-spacing: 4px; margin-top: 2px; }
  .nav-cta { margin-left: 8px; }
  .btn.nav-cta { padding: 8px 14px; font-size: 10px; letter-spacing: 1px; }

  .hero-grid { grid-template-columns: 1fr; }
  .sci-fi-panel { display: none; }
  .operative-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--bg-secondary);
    padding: 24px; border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
  .hero h1 { font-size: 36px; }
  .operative-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .missions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-meta { grid-template-columns: 1fr; }

  /* ===== Modal — ট্যাবলেট / মোবাইল ===== */
  .modal-overlay { padding: 12px; } /* overlay এর চারপাশে কম spacing */
  .modal {
    border-radius: 10px;
    max-height: 92vh; /* স্ক্রিনের বেশি জায়গা ব্যবহার করবে */
  }
  /* Modal Header — টাইটেল ও ক্লোজ বাটন */
  .modal-header {
    padding: 16px 18px; /* কম প্যাডিং */
  }
  .modal-header h3 {
    font-size: 17px; /* ছোট টাইটেল */
    line-height: 1.4;
    padding-right: 12px; /* ক্লোজ বাটনের সাথে গ্যাপ */
  }
  .modal-close {
    width: 32px; height: 32px; /* ছোট ক্লোজ বাটন */
    font-size: 15px;
    flex-shrink: 0; /* সংকুচিত হবে না */
  }
  /* Modal Body */
  .modal-body {
    padding: 18px; /* কম প্যাডিং */
  }
  /* Meta Items (Series, Book Name) */
  .meta-item {
    padding: 12px; /* কম অভ্যন্তরীণ spacing */
  }
  .meta-value {
    font-size: 14px; /* ছোট টেক্সট */
  }
  /* Mission Briefing সারাংশ */
  .modal-summary p {
    font-size: 15px; /* পড়তে সুবিধা হবে */
    line-height: 1.8;
  }
  /* Slide Gallery */
  .slide-viewer {
    padding: 8px; /* কম spacing */
    gap: 6px;
  }
  .slide-btn {
    width: 30px; height: 30px; /* ছোট নেভিগেশন বাটন */
    font-size: 14px;
  }
  /* Action Buttons — নিচে পাশাপাশি / স্ট্যাক */
  .modal-actions {
    flex-direction: column; /* একটার নিচে আরেকটা */
    gap: 10px;
  }
  .modal-actions .btn {
    width: 100%; /* পুরো চওড়া */
    justify-content: center; /* টেক্সট মাঝে */
    padding: 12px 20px;
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .missions-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }

  /* ===== Modal — ছোট মোবাইল ===== */
  .modal-overlay { padding: 8px; } /* একদম কম গ্যাপ */
  .modal {
    border-radius: 8px;
    max-height: 95vh; /* প্রায় পুরো স্ক্রিন কভার */
  }
  /* Header */
  .modal-header {
    padding: 12px 14px;
  }
  .modal-header h3 {
    font-size: 15px; /* আরও ছোট টাইটেল */
    line-height: 1.35;
  }
  .modal-close {
    width: 28px; height: 28px;
    font-size: 13px;
  }
  /* Body */
  .modal-body {
    padding: 14px; /* কমপ্যাক্ট */
  }
  /* Meta */
  .modal-meta {
    gap: 10px;
  }
  .meta-item {
    padding: 10px;
  }
  .meta-label {
    font-size: 8px; /* ছোট লেবেল */
  }
  .meta-value {
    font-size: 13px;
  }
  /* সারাংশ */
  .modal-summary h4 {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .modal-summary p {
    font-size: 14px;
    line-height: 1.75;
  }
  /* Slide Section */
  .slide-section-title {
    font-size: 9px;
    padding: 10px 12px;
  }
  .slide-viewer {
    padding: 6px;
    gap: 4px;
  }
  .slide-btn {
    width: 26px; height: 26px; /* ক্ষুদ্র বাটন */
    font-size: 12px;
  }
  .slide-counter {
    font-size: 9px;
    padding: 6px;
  }
  /* Action Buttons */
  .modal-actions .btn {
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: 1px;
  }
}

/* ===== 🤖 AI চ্যাটবট স্টাইল ===== */

/* ভাসমান টগল বাটন */
.chatbot-toggle {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 8000;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.4);
  transition: all 0.3s ease;
  animation: chatbot-pulse 3s ease-in-out infinite;
}
.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.6);
}
.chatbot-toggle.active {
  animation: none;
  background: linear-gradient(135deg, #ef4444, #f87171);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
}
@keyframes chatbot-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(2, 132, 199, 0.4); }
  50% { box-shadow: 0 6px 32px rgba(2, 132, 199, 0.7), 0 0 0 12px rgba(2, 132, 199, 0.1); }
}

/* চ্যাট উইন্ডো */
.chatbot-window {
  position: fixed;
  bottom: 92px; right: 24px;
  z-index: 8001;
  width: 380px;
  max-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  display: none; /* ডিফল্টে লুকানো */
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.05);
  animation: chatbot-slide-up 0.3s ease-out;
}
.chatbot-window.active {
  display: flex;
}
@keyframes chatbot-slide-up {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* চ্যাট হেডার */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chatbot-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chatbot-name {
  font-family: var(--font-bangla);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.chatbot-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-tech);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #94a3b8;
  text-transform: uppercase;
}
.chatbot-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: status-blink 2s infinite;
}
@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.chatbot-minimize {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.chatbot-minimize:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

/* মেসেজ এরিয়া */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  max-height: 360px;
  background: var(--bg-primary);
}

/* প্রতিটি মেসেজ */
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: msg-fade-in 0.3s ease;
}
@keyframes msg-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* বট মেসেজ — বাম থেকে */
.bot-msg { flex-direction: row; }
.bot-msg .chat-msg-bubble {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px 14px 14px 14px;
}

/* ইউজার মেসেজ — ডান থেকে */
.user-msg {
  flex-direction: row-reverse;
}
.user-msg .chat-msg-bubble {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border-radius: 14px 4px 14px 14px;
  border: none;
}

/* মেসেজ অ্যাভাটার */
.chat-msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
.user-msg .chat-msg-avatar {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  border: none;
  color: #ffffff;
  font-size: 12px;
}

/* মেসেজ বাবল */
.chat-msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  font-family: var(--font-bangla);
  font-size: 14px;
  line-height: 1.7;
  word-wrap: break-word;
}

/* টাইপিং ইন্ডিকেটর */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}
.typing-indicator span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ইনপুট এরিয়া */
.chatbot-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-bangla);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.chatbot-input:focus {
  border-color: var(--accent);
}
.chatbot-input::placeholder {
  color: var(--text-muted);
}
.chatbot-send {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}
.chatbot-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}
.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== চ্যাটবট — মোবাইল রেসপন্সিভ ===== */
@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 86px;
    max-height: 70vh;
    border-radius: 14px;
  }
  .chatbot-toggle {
    bottom: 16px; right: 16px;
    width: 50px; height: 50px;
    font-size: 20px;
  }
  .chatbot-messages {
    min-height: 250px;
    max-height: calc(70vh - 130px);
  }
}
