/* ==========================================================================
   CineMosaik White Theme — Premium Studio Design System
   Inspired by and modeled 100% on therakibhossain.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-subtle: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;
  --color-text-title: #0f172a;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  --color-primary: #0284c7;
  --color-primary-hover: #0369a1;
  --color-primary-light: #f0f9ff;
  --color-primary-border: #bae6fd;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-bengali: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Reset & Base Elements */
html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-body);
}

body {
  margin: 0;
  padding: 0;
  background-color: #fafbfc;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(2, 132, 199, 0.04) 0%, transparent 700px),
    url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 44 0 L 0 0 0 44' fill='none' stroke='%23cbd5e1' stroke-width='0.75' stroke-dasharray='2 3' stroke-opacity='0.45'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-position: center top, 0 0;
  color: var(--color-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Architectural Grid for Sections */
main > section.bg-white,
section.bg-white {
  background-color: #ffffff !important;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 44 0 L 0 0 0 44' fill='none' stroke='%23cbd5e1' stroke-width='0.75' stroke-dasharray='2 3' stroke-opacity='0.35'/%3E%3C/svg%3E");
  background-size: 44px 44px;
}

main > section.bg-slate-50,
section.bg-slate-50 {
  background-color: #f8fafc !important;
  background-image: 
    linear-gradient(to right, rgba(100, 116, 139, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100, 116, 139, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Standalone Grid Mesh Class */
.bg-grid-mesh {
  background-image: 
    linear-gradient(to right, rgba(100, 116, 139, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100, 116, 139, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Bengali Typography Utility */
.font-bn {
  font-family: var(--font-bengali);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Selection */
::selection {
  background-color: #0284c7;
  color: #ffffff;
}

/* Container */
.container-custom {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.625rem;
  border-radius: 9999px;
  border: 1px solid var(--color-primary);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: var(--color-text-title) !important;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.625rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-border-hover);
  color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Pills & Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary-hover);
  border: 1px solid var(--color-primary-border);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
}

.pill-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: var(--color-text-body);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.pill-feature:hover {
  border-color: var(--color-primary-border);
  background-color: var(--color-primary-light);
  color: var(--color-primary-hover);
}

/* White Theme Cards */
.white-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.white-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Services Card specifically matching Rakib */
.service-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card:hover {
  border-color: var(--color-primary-border);
  box-shadow: 0 16px 32px -8px rgba(2, 132, 199, 0.08);
  transform: translateY(-4px);
}

.service-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-primary-border);
}

/* Results / Counter Stat Card */
.stat-box {
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary-border);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text-title);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Review / Testimonial Card */
.review-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.review-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.star-rating {
  display: flex;
  gap: 0.25rem;
  color: #f59e0b;
  margin-bottom: 1rem;
}

/* Hero Profile Frame */
.hero-image-wrap {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.8);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.02);
}

/* Video Player Box */
.video-showreel-box {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: #0f172a;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-pulse-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background-color: #ffffff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.play-pulse-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--color-primary);
  color: #ffffff;
}

.play-pulse-btn svg {
  width: 1.75rem;
  height: 1.75rem;
  margin-left: 0.2rem;
}

/* Modal Lightbox */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.video-modal-close:hover {
  color: #38bdf8;
}

/* Portfolio Card */
.portfolio-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0f172a;
  cursor: pointer;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-thumb:hover img {
  transform: scale(1.05);
}

.portfolio-thumb-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-thumb:hover .portfolio-thumb-overlay {
  opacity: 1;
}

.portfolio-play-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #ffffff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.portfolio-thumb:hover .portfolio-play-btn {
  transform: scale(1);
}

/* Marquee / Brand Scroller */
.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Before After Comparison Slider */
.ba-box {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 9;
  user-select: none;
  cursor: ew-resize;
}

.ba-img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-overlay-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #ffffff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.ba-img-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 900px;
  max-width: none;
  object-fit: cover;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  z-index: 5;
  pointer-events: none;
}

/* Nav Link Hover Underline */
.nav-item {
  position: relative;
  color: var(--color-text-body);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.nav-item:hover, .nav-item.active {
  color: var(--color-primary);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

/* Clean Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   Language Switcher & Bengali Typography
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  padding: 2px;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.lang-btn:hover {
  color: var(--color-text-title);
}

/* Smooth content transition on language switch */
[data-i18n] {
  transition: opacity 0.15s ease;
}

/* Bengali font enforcement when active */
html[lang="bn"] body,
body.lang-bn,
body.lang-bn h1,
body.lang-bn h2,
body.lang-bn h3,
body.lang-bn h4,
body.lang-bn p,
body.lang-bn a,
body.lang-bn button,
body.lang-bn span,
body.lang-bn input,
body.lang-bn textarea {
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif !important;
}

body.lang-bn h1,
body.lang-bn h2 {
  line-height: 1.35;
}

/* ==========================================================================
   Sound Architecture & Audio Player Styles
   ========================================================================== */
.audio-switch-btn {
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

.audio-switch-btn.active {
  background-color: var(--color-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  border-color: rgba(56, 189, 248, 0.5);
}

.audio-wave-bar {
  flex: 1;
  background-color: #38bdf8;
  border-radius: 9999px;
  min-height: 4px;
  max-height: 100%;
  transition: height 0.15s ease, background-color 0.25s ease;
}

.audio-wave-bar.raw-mode {
  background-color: #f43f5e;
}

/* ==========================================================================
   Retention Architecture Interactive Tabs
   ========================================================================== */
.retention-tab {
  user-select: none;
}

.retention-tab.active {
  border-color: var(--color-primary) !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15), 0 4px 6px -2px rgba(2, 132, 199, 0.05);
  transform: translateX(4px);
}

/* ==========================================================================
   FAQ Accordion Styles
   ========================================================================== */
.faq-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-card.open {
  border-color: var(--color-primary-border);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

.faq-card.open .faq-icon {
  transform: rotate(180deg);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.faq-content {
  display: none;
  animation: faqSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.faq-card.open .faq-content {
  display: block !important;
}

@keyframes faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Floating WhatsApp Quick-Chat Button (StorySync Style)
   ========================================================================== */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -3px rgba(37, 211, 102, 0.45), 0 4px 6px -4px rgba(37, 211, 102, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 15px 30px -3px rgba(37, 211, 102, 0.6);
}

.whatsapp-floating-btn:active {
  transform: scale(0.95);
}

.whatsapp-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid #25d366;
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events-none;
}

.whatsapp-online-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #10b981;
  border: 2px solid #ffffff;
  border-radius: 9999px;
  z-index: 20;
}

.whatsapp-tooltip {
  position: absolute;
  right: 4.25rem;
  background-color: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.whatsapp-floating-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}


