:root {
  /**
   * COLORS
   */

  /* light theme */
  --background-light: hsl(293, 100%, 98%);
  --on-background-light: hsl(264, 8%, 12%);
  --surface-light: hsl(293, 100%, 98%);
  --on-surface-light: hsl(264, 8%, 12%);
  --on-surface-variant-light: hsl(264, 7%, 29%);
  --surface-container-low-light: hsl(278, 44%, 96%);
  --surface-container-light: hsl(276, 38%, 95%);
  --surface-bright-light: hsl(293, 100%, 98%);
  --primary-light: hsl(256, 34%, 48%);
  --on-primary-light: hsl(0, 0%, 100%);
  --outline-light: hsl(270, 4%, 47%);
  --outline-variant-light: hsl(270, 11%, 79%);

  /* dark theme */
  --background-dark: hsl(260, 14%, 8%);
  --on-background-dark: hsl(280, 17%, 90%);
  --surface-dark: hsl(260, 14%, 8%);
  --on-surface-dark: hsl(280, 17%, 90%);
  --on-surface-variant-dark: hsl(270, 11%, 79%);
  --surface-container-low-dark: hsl(264, 8%, 12%);
  --surface-container-dark: hsl(257, 10%, 14%);
  --surface-bright-dark: hsl(270, 5%, 23%);
  --primary-dark: hsl(258, 100%, 87%);
  --on-primary-dark: hsl(259, 58%, 28%);
  --outline-dark: hsl(264, 5%, 58%);
  --outline-variant-dark: hsl(264, 7%, 29%);

  /**
   * TYPOGRAPHY
   */

  /* font family */
  --font-primary: "Open Sans", sans-serif;
  --font-secondary: "Noto Sans", sans-serif;

  /* font size */
  --base-font-size: 62.5%;
  --display-large: 5.7rem;
  --display-medium: 4.5rem;
  --display-small: 2.3rem;
  --headline-large: 3.2rem;
  --headline-medium: 2.8rem;
  --headline-small: 2.4rem;
  --title-large: 2rem;
  --title-medium: 1.6rem;
  --title-small: 1.4rem;
  --label-large: 1.4rem;
  --label-medium: 1.2rem;
  --label-small: 1.1rem;
  --body-large: 1.6rem;
  --body-medium: 1.4rem;
  --body-small: 1.2rem;

  /* font weight */
  --weight-regular: 400;
  --weight-medium: 500;

  /**
   * BORDER RADIUS
   */

  --radius-extra-small: 4px;
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-full: 500px;
  --radius-circle: 50%;

  /**
   * BOX SHADOW
   */

  --elevation-1: 0px 1px 3px 1px #00000026, 0px 1px 2px 0px #0000004d;

  /**
   * OTHER
   */

  --section-padding: 24px;
  --top-bar-height: 64px;
}

[data-theme="light"] {
  color-scheme: light;

  --background: var(--background-light);
  --on-background: var(--on-background-light);
  --surface: var(--surface-light);
  --on-surface: var(--on-surface-light);
  --on-surface-variant: var(--on-surface-variant-light);
  --surface-container-low: var(--surface-container-low-light);
  --surface-container: var(--surface-container-light);
  --surface-bright: var(--surface-bright-light);
  --primary: var(--primary-light);
  --on-primary: var(--on-primary-light);
  --outline: var(--outline-light);
  --outline-variant: var(--outline-variant-light);
}

[data-theme="dark"] {
  color-scheme: dark;

  --background: var(--background-dark);
  --on-background: var(--on-background-dark);
  --surface: var(--surface-dark);
  --on-surface: var(--on-surface-dark);
  --on-surface-variant: var(--on-surface-variant-dark);
  --surface-container-low: var(--surface-container-low-dark);
  --surface-container: var(--surface-container-dark);
  --surface-bright: var(--surface-bright-dark);
  --primary: var(--primary-dark);
  --on-primary: var(--on-primary-dark);
  --outline: var(--outline-dark);
  --outline-variant: var(--outline-variant-dark);
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    /**
     * TRANSITION
     */

    /* duration */
    --motion-duration-short-1: 100ms;

    /* easing */
    --motion-easing-linear: cubic-bezier(0, 0, 1, 1);
  }
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a,
img,
span,
input,
button,
textarea {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
}

input,
button,
textarea {
  background: none;
  border: none;
  font: inherit;
}

input,
textarea {
  width: 100%;
}

button {
  cursor: pointer;
}

textarea {
  resize: none;
}

html {
  font-family: var(--font-secondary);
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--on-background);
  font-size: var(--body-large);
}

/*-----------------------------------*\
  #TYPOGRAPHY
\*-----------------------------------*/

.display-large {
  font-family: var(--font-primary);
  font-size: var(--display-large);
  font-weight: var(--weight-regular);
  line-height: 64px;
  letter-spacing: -0.25px;
}

.display-medium {
  font-family: var(--font-primary);
  font-size: var(--display-medium);
  font-weight: var(--weight-regular);
  line-height: 52px;
}

.display-small {
  font-family: var(--font-primary);
  font-size: var(--display-small);
  font-weight: var(--weight-regular);
  line-height: 44px;
}

.headline-large {
  font-family: var(--font-primary);
  font-size: var(--headline-large);
  font-weight: var(--weight-regular);
  line-height: 40px;
}

.headline-medium {
  font-family: var(--font-primary);
  font-size: var(--headline-medium);
  font-weight: var(--weight-regular);
  line-height: 36px;
}

.headline-small {
  font-family: var(--font-primary);
  font-size: var(--headline-small);
  font-weight: var(--weight-regular);
  line-height: 32px;
}

.title-large {
  font-family: var(--font-primary);
  font-size: var(--title-large);
  font-weight: var(--weight-regular);
  line-height: 28px;
}

.title-medium {
  font-family: var(--font-primary);
  font-size: var(--title-medium);
  font-weight: var(--weight-medium);
  line-height: 24px;
  letter-spacing: 0.15px;
}

.title-small {
  font-family: var(--font-primary);
  font-size: var(--title-small);
  font-weight: var(--weight-medium);
  line-height: 20px;
  letter-spacing: 0.1px;
}

.body-large {
  font-size: var(--body-large);
  font-weight: var(--weight-regular);
  line-height: 24px;
  letter-spacing: 0.5px;
}

.body-medium {
  font-size: var(--body-medium);
  font-weight: var(--weight-regular);
  line-height: 20px;
  letter-spacing: 0.25px;
}

.body-small {
  font-size: var(--body-small);
  font-weight: var(--weight-regular);
  line-height: 16px;
  letter-spacing: 0.4px;
}

.label-large {
  font-size: var(--label-large);
  font-weight: var(--weight-medium);
  line-height: 20px;
  letter-spacing: 0.1px;
}

.label-medium {
  font-size: var(--label-medium);
  font-weight: var(--weight-medium);
  line-height: 16px;
  letter-spacing: 0.5px;
}

.arabic-font {
  font-family: "Tajawal", sans-serif;
}

.label-small {
  font-size: var(--label-small);
  font-weight: var(--weight-medium);
  line-height: 16px;
  letter-spacing: 0.5px;
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.material-symbols-outlined {
  width: 1em;
  height: 1em;
  display: block;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

:has(> .state-layer) {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.state-layer {
  position: absolute;
  inset: 0;
  background-color: var(--state-layer-bg);
  transition: var(--motion-duration-short-1) var(--motion-easing-linear);
  opacity: 0;
}

:has(> .state-layer):hover .state-layer {
  opacity: 0.08;
}

:has(> .state-layer):is(:focus, :focus-visible, :active) .state-layer {
  opacity: 0.12;
}

.section {
  padding-block: var(--section-padding);
}

.container {
  padding-inline: 16px;
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: transparent;
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-content:not(.active) {
  display: none;
}

.section-title {
  margin-block-end: 16px;
}

/*-----------------------------------*\
  #COMPONENT
\*-----------------------------------*/

/**
 * BUTTON
 */

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.btn {
  height: 40px;
  display: grid;
  place-items: center;
  padding-inline: 24px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--on-primary);
  font-weight: var(--weight-medium);
  overflow: hidden;
  --state-layer-bg: var(--on-primary);
}

.btn:hover:not(:focus) {
  box-shadow: var(--elevation-1);
}

/**
 * TAB
 */

.primary-tabs {
  background-color: var(--background);
  margin-block-start: 24px;
  margin-inline: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  border-block-end: 1px solid var(--outline-variant);
}

.tab-btn {
  height: 48px;
  width: 100%;
  display: grid;
  place-content: center;
  background-color: var(--surface);
  color: var(--on-surface-variant);
  --state-layer-bg: var(--on-surface-variant);
}

.tab-btn.active {
  color: var(--primary);
  --state-layer-bg: var(--primary);
}

.tab-text {
  position: relative;
  height: 48px;
  line-height: 48px;
}

.tab-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background-color: var(--primary);
  opacity: 0;
}

.tab-btn.active .tab-text::after {
  opacity: 1;
}

/**
 * CHIP
 */

.chip {
  height: 32px;
  max-width: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-inline: 16px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-small);
  background-color: var(--surface);
  color: var(--on-surface-variant);
  --state-layer-bg: var(--on-surface-variant);
}

.chip .material-symbols-outlined {
  font-size: 1.8rem;
}

/**
 * CARD
 */

.card {
  background-color: var(--surface-container-low);
  border-radius: 25px;
  padding: 16px;
  display: grid;
  gap: 16px;
  --state-layer-bg: var(--on-surface);
}

.card-banner {
  border-radius: 25px;
}

.card-content {
  display: grid;
  gap: 4px;
}

.card-subtitle {
  color: var(--on-surface-variant);
}

.card-title {
  color: var(--on-surface);
}

/**
 * INPUT FIELD
 */

.input-field,
.textarea {
  color: var(--on-surface);
  padding: 13px 16px;
  box-shadow: inset 0 0 0 1px var(--outline);
  border-radius: 18px;
  outline: none;
  transition: box-shadow var(--motion-duration-short-1)
    var(--motion-easing-linear);
}

.textarea {
  height: 120px;
  padding: 16px;
}

:where(.input-field, .textarea)::placeholder {
  color: var(--on-surface-variant);
}

:where(.input-field, .textarea):focus {
  box-shadow: inset 0 0 0 2px var(--primary);
}

/*-----------------------------------*\
  #TOP BAR
\*-----------------------------------*/

.topbar {
  background-color: var(--background);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--top-bar-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 16px;
  z-index: 4;
}

[data-theme="dark"] .logo .light,
[data-theme="light"] .logo .dark {
  display: none;
}

[data-theme="dark"] .logo .dark,
[data-theme="light"] .logo .light {
  display: block;
}

.theme-btn {
  color: var(--on-surface-variant);
  --state-layer-bg: var(--on-surface-variant);
  border-radius: var(--radius-full);
  overflow: hidden;
}



/* ========================================================
   🔥 PREMIUM MOON LOGIC (NO LOAD ANIMATION FIX)
   ======================================================== */

/* ১. বাটন কন্টেইনার */
.theme-btn {
  position: relative;
  overflow: hidden;
  z-index: 10000;
  view-transition-name: theme-btn;
  transition: transform 0.2s ease;
}
.theme-btn:active { transform: scale(0.9); }

/* ২. আইকন সেটিংস - (Global Settings) */
.theme-btn .material-symbols-outlined {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  border-radius: 50%;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

/* --------------------------------------------------------
   🌙 MOON ICON SETUP (The Logic Fix)
   -------------------------------------------------------- */

/* ✅ লজিক ফিক্স:
   আমরা চাঁদের আইকনটিকে ডিফল্টভাবেই (Default) "দৃশ্যমান ও সোজা" রাখব।
   এর ফলে লাইট মোডে যখন পেজ রিফ্রেশ করবেন, ব্রাউজার দেখবে কোন পরিবর্তন হয়নি,
   তাই সে এনিমেশন বা ট্রানজিশন প্লে করবে না। স্থির থাকবে।
*/
.theme-btn .dark {
  opacity: 1; 
  transform: translate(-50%, -50%) scale(1) rotate(0deg); /* ডিফল্ট পজিশন */
}

/* যখন ডার্ক মোড অন হবে, তখন চাঁদ লুকানোর কোড */
[data-theme="dark"] .theme-btn .dark {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0) rotate(-90deg) !important;
  /* লুকানোর সময় নরমাল ট্রানজিশন */
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* যখন লাইট মোড (আবার আসবে) - তখন আমরা স্পেশাল এফেক্ট দিব */
[data-theme="light"] .theme-btn .dark {
  /* পজিশন আগের মতোই ১, তাই রিফ্রেশে চেঞ্জ হবে না */
  transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
  opacity: 1 !important;
  
  /* 🔥 ট্রানজিশনটি শুধুমাত্র এখানেই অ্যাপ্লাই হবে।
     অর্থাৎ ডার্ক থেকে লাইটে আসার সময়ই কেবল এই 'Swing' এফেক্ট কাজ করবে। */
  transition: 
    transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s,
    opacity 0.4s ease 0.6s;
}


/* --------------------------------------------------------
   ☀️ SUN ICON SETUP
   -------------------------------------------------------- */

/* সূর্য ডিফল্টভাবে লুকানো থাকবে (কারণ আমরা চাঁদকে ডিফল্ট করেছি) */
.theme-btn .light {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0) rotate(90deg);
}

/* ডার্ক মোডে সূর্য দৃশ্যমান হবে */
[data-theme="dark"] .theme-btn .light {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

/* লাইট মোডে সূর্য লুকাবে */
[data-theme="light"] .theme-btn .light {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0) rotate(90deg) !important;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* --------------------------------------------------------
   ✨ STARS LAYER (Optional)
   -------------------------------------------------------- */
.theme-btn::before {
  content: "✦";
  position: absolute;
  color: var(--on-surface-variant);
  font-size: 10px;
  opacity: 0;
  transform: scale(0);
  z-index: 10001;
  pointer-events: none;
  top: 6px;
  right: 9px;
}

[data-theme="light"] .theme-btn::before {
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.9s, opacity 0.4s ease 0.9s;
  opacity: 0.8;
  transform: scale(1) rotate(0deg);
}


/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  padding-block-start: calc(var(--top-bar-height) + 24px);
}

.hero .container {
  display: grid;
  align-items: center;
  gap: 24px;
}

.hero-banner {
  width: 240px;
  border-radius: 25%; /* [FIX] বাটনটি গোল করা হলো */
}

.hero-content {
  max-width: 500px;
}

.hero .section-subtitle {
  color: var(--on-surface-variant);
}

.hero .section-text {
  margin-block: 5px 16px;
  color: var(--on-surface-variant);
}

.hero .btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/*-----------------------------------*\
  #ABOUT CARD
\*-----------------------------------*/

.about-card {
  background-color: var(--surface-container-low);
  color: var(--on-surface-variant);
  margin-inline: 16px;
  padding: 16px;
  margin-block-start: 24px;
  border-radius: 25px;
}

.about-card .card-title {
  color: var(--on-surface);
}

.about-card .card-text {
  margin-block: 12px;
  padding-block: 12px;
  border-block: 1px solid var(--outline-variant);
}

.about-list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/*-----------------------------------*\
  #PROJECT
\*-----------------------------------*/

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/

.resume-tab .list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-block-end: 28px;
}

.resume-card {
  display: grid;
  gap: 4px;
}

.resume-card .card-subtitle {
  color: var(--primary);
}

.resume-card .card-text {
  color: var(--on-surface-variant);
}

.resume-bottom-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.resume-bottom-item {
  background-color: var(--surface-container);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-small);
}

.resume-bottom-item .icon {
  height: 28px;
}

/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.contact-tab {
  padding-block-end: 0;
}

.contact-tab .container {
  padding-block-end: 24px;
}

.contact-info,
.contact-info-list {
  display: grid;
  gap: 12px;
}

.contact-info {
  margin-block-end: 24px;
}

.contact-info-list {
  padding-block-end: 12px;
  border-block-end: 1px solid var(--outline-variant);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info .icon-box {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--on-surface-variant);
}

.info-content {
  display: grid;
  gap: 4px;
}

.info-title {
  color: var(--on-surface-variant);
  opacity: 0.6;
}

.info-text {
  color: var(--on-surface-variant);
}

.social-list {
  display: flex;
  gap: 12px;
}

.social-item {
  padding: 12px;
}

.input-wrapper {
  margin-block-start: 16px;
  display: grid;
  gap: 10px;
}

.contact-form {
  background-color: var(--surface-container);
  padding: 16px;
  margin-block-end: 16px;
  border-radius: 25px;
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer .container {
  text-align: center;
  padding: 16px;
  border-block-start: 1px solid var(--outline-variant);
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for larger than 768px screen
 */

@media (min-width: 768px) {
  /**
   * REUSED STYLE
   */

  .article {
    position: relative;
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    align-items: flex-start;
  }

  .about-card,
  .primary-tabs {
    position: sticky;
    top: 64px;
  }

  .primary-tabs {
    z-index: 2;
  }

  /**
   * HERO
   */

  .hero .container {
    grid-template-columns: 0.2fr 1fr;
  }
}

/**
 * responsive for larger than 1200px screen
 */

@media (min-width: 1200px) {
  /**
   * REUSED STYLE
   */

  .container,
  .article {
    max-width: 1128px;
    margin-inline: auto;
  }

  /**
   * ABOUT CARD
   */

  .about-card {
    margin-inline: 8px;
  }

  /**
   * CONTACT
   */

  .contact-tab .container {
    display: grid;
    align-items: flex-start;
    grid-template-columns: 0.6fr 1fr;
    gap: 24px;
  }

  .small {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
  }
}

/* LANGUAGE BUTTONS + TOPBAR CONTROLS */
.topbar-controls {
  margin-left: 5px; /* pushes controls to the right */
  display: flex;
  align-items: center;
  gap: 10px;
}

/* language nav */
.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* individual lang button (pill) */
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full); /* pill */
  border: 1px solid var(--outline);
  background-color: var(--surface);
  color: var(--on-surface-variant);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms var(--motion-easing-linear),
    box-shadow 120ms var(--motion-easing-linear);
  --state-layer-bg: transparent;
}

/* hover / active states */
.lang-btn:hover,
.lang-btn:focus {
  transform: translateY(-1px);
  box-shadow: var(--elevation-1);
  outline: none;
}

/* active/selected language */
.lang-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background-color: color-mix(
    in srgb,
    var(--primary) 8%,
    transparent
  ); /* subtle tint */
}

/* small screens: compact the language labels a bit */
@media (max-width: 480px) {
  .lang-btn {
    padding: 6px 8px;
    font-size: 0.95rem;
  }

  /* if space is tight, hide text and show initials - optional pattern */
  .lang-btn.compact {
    padding: 6px;
    width: 36px;
    justify-content: center;
  }
}

/* ensure theme button aligns visually with language pills */
.theme-btn {
  margin-inline-start: 4px;
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  --state-layer-bg: var(--on-surface-variant);
}

/* --- Name & Verified Badge Styles --- */

/* নামের কন্টেইনার */
.profile-name-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ব্যাজের সাইজ এবং ডিজাইন */
.verified-badge-inline {
  width: 30px;
  height: 30px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* (Optional) নামের মার্জিন রিমুভ করা যাতে অ্যালাইনমেন্ট ঠিক থাকে */
.profile-name-wrapper h1 {
  margin: 0;
  line-height: 1.2;
}

/* Background Overlay */
.fb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65); /* একটু বেশি ডার্ক যাতে ফোকাস থাকে */
  z-index: 9999;
  display: flex;
  align-items: flex-end; /* Mobile default: Bottom Sheet */
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.fb-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content Box */
.fb-modal-content {
  background-color: var(--surface);
  width: 100%;
  max-width: 480px; /* ডেস্কটপে খুব বেশি চওড়া হবে না */
  border-radius: 20px 20px 0 0;
  padding: 30px 24px; /* প্যাডিং বাড়ানো হয়েছে স্পেসের জন্য */
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--on-surface);
  text-align: left;
  direction: ltr;
}

.fb-modal-overlay.active .fb-modal-content {
  transform: translateY(0);
}

/* Header Section */
.fb-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--outline-variant);
  margin-bottom: 20px;
}

.fb-profile-pic {
  width: 56px; /* ছবির সাইজ একটু বাড়ানো হয়েছে */
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--outline-variant);
}

.fb-profile-name {
  font-size: 1.25rem; /* নাম বড় করা হয়েছে */
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- Special CSS for Popup Badge Only --- */
.popup-header-badge {
  display: inline-block;
  width: 11px; /* পপ-আপের ব্যাজের ফিক্সড সাইজ */
  height: 11px;
  line-height: 0; /* ভার্টিক্যাল অ্যালাইনমেন্ট ঠিক রাখার জন্য */
}
/* ------------------------------------- */

/* Text Content (Typography Improved) */
.fb-info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fb-icon-wrapper span {
  font-size: 32px; /* আইকন বড় করা হয়েছে */
  color: var(--on-surface);
}

/* টেক্সট সাইজ ফিক্স */
.fb-text-content h4 {
  font-size: 1.1rem; /* হেডিং সাইজ */
  font-weight: 700;
  margin: 0 0 6px 0;
}

.fb-text-content p {
  font-size: 1rem; /* প্যারাগ্রাফ এখন স্ট্যান্ডার্ড সাইজ (16px) */
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin: 0;
}

.fb-subtext {
  font-size: 0.95rem; /* সাবটেক্সটও এখন স্পষ্ট পড়া যাবে */
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin-top: 10px;
}

/* --- Done Button UX Fix --- */
.fb-close-btn {
  display: block; /* ব্লক লেভেল যাতে মার্জিন কাজ করে */
  width: auto; /* অটো উইডথ */
  min-width: 140px; /* ন্যূনতম সাইজ */
  margin: 30px auto 0 auto; /* উপরে গ্যাপ এবং মাঝখানে আনার জন্য auto */
  padding: 12px 30px;
  border: none;
  background-color: var(--primary);
  color: var(--on-primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px; /* পিল শেপ বাটন (Pill Shape) */
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* হালকা শ্যাডো */
}

.fb-close-btn:active {
  transform: scale(0.96); /* ক্লিক এফেক্ট */
}

/* Desktop & Responsive Adjustments */
@media (min-width: 768px) {
  .fb-modal-overlay {
    align-items: center; /* পিসিতে সেন্টারে */
  }
  .fb-modal-content {
    border-radius: 24px; /* পিসিতে সব কোণা রাউন্ড */
    transform: translateY(30px);
    opacity: 0;
  }
  .fb-modal-overlay.active .fb-modal-content {
    transform: translateY(0);
    opacity: 1;
  }
  .fb-modal-handle {
    display: none;
  }
}

/* Mobile Handle */
.fb-modal-handle {
  width: 48px;
  height: 5px;
  background-color: var(--outline-variant);
  border-radius: 10px;
  margin: 0 auto 15px auto;
  opacity: 0.6;
}



/* --- Professional View Transition Animation --- */
::view-transition-image-pair(root) {
  isolation: isolate;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  pointer-events: none; /* অ্যানিমেশনের সময় ক্লিক ব্লক করবে না */
}

/* Dark -> Light (Reverse Animation) */
/* ডার্ক লেয়ার (Old) উপরে থাকবে এবং ছোট হবে */
.reverse-transition::view-transition-old(root) {
  z-index: 9999;
  object-fit: cover;
}
.reverse-transition::view-transition-new(root) {
  z-index: 1;
  object-fit: cover;
}

/* Light -> Dark (Forward Animation) */
/* ডার্ক লেয়ার (New) উপরে থাকবে এবং বড় হবে */
::view-transition-new(root) {
  z-index: 9999; 
  object-fit: cover;
}
::view-transition-old(root) {
  z-index: 1;
  object-fit: cover;
}




/* =========================================
   PREMIUM CUSTOM DROPDOWN (CLEAN + ANIMATED)
   ========================================= */

.custom-dropdown {
  position: relative;
  display: inline-block;
  margin-inline-end: 8px;
}

/* ১. মেইন বাটন (কম্প্যাক্ট সাইজ) */
.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 100px;
  height: 36px;
  padding: 0 14px;
  background-color: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  color: var(--on-surface);
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-dropdown.active .dropdown-toggle {
  background-color: var(--surface-container-low);
  border-color: var(--outline-variant);
}

.arrow-icon {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.custom-dropdown.active .arrow-icon {
  transform: rotate(180deg);
}

/* ২. ড্রপডাউন মেনু */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 140px;
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
  padding: 6px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: all 0.2s ease;
}

.custom-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ৩. ড্রপডাউন আইটেম */
.dropdown-item {
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 2px;
  color: var(--on-surface-variant);
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: none; 
  
  /* [ANIMATION FIX] ট্রানজিশন এখানে থাকতে হবে */
  transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

/* [HOVER EFFECT] ব্যাকগ্রাউন্ড নেই, কিন্তু এনিমেশন আছে */
.dropdown-item:not(.active):hover {
  background-color: transparent; /* কোনো ব্যাকগ্রাউন্ড কালার নেই */
  color: var(--primary); /* টেক্সট হাইলাইট হবে */
  
  /* [RESTORED] এনিমেশন ফিরে আনা হয়েছে */
  transform: translateX(6px); 
}

/* অ্যাক্টিভ আইটেম */
.dropdown-item.active {
  background-color: var(--primary);
  color: var(--on-primary);
}

.dropdown-item.active:hover {
  transform: none; /* অ্যাক্টিভ থাকলে নড়বে না */
}

/* --- মোবাইল রেসপন্সিভ --- */
@media (max-width: 480px) {
  .dropdown-toggle {
    min-width: 90px;
    height: 34px;
    padding: 0 10px;
    font-size: 1.2rem;
  }
  .arrow-icon {
    font-size: 1.6rem;
  }
}


/* --- FIXED LANGUAGE FONTS (For Dropdown) --- */

/* ইংরেজির জন্য */
.font-bn {
  font-family: "Hind Siliguri", sans-serif !important;
  font-weight: 700 !important; /* আগে 500 ছিল, এখন 600 করা হলো */
}

/* বাংলার জন্য */
.font-bn {
  font-family: "Hind Siliguri", sans-serif !important;
  font-weight: 700; /* বাংলার জন্য একটু বোল্ড ভালো লাগে */
}

/* আরবির জন্য */
.font-sa {
  font-family: "Tajawal", sans-serif !important;
  font-weight: 700; /* আরবি ফন্ট সাধারণত চিকন দেখায় তাই বোল্ড করা হলো */
}






/**
 * TAB (UPDATED FOR ROUNDED STYLE)
 */

.primary-tabs {
  background-color: var(--background);
  margin-block-start: 24px;
  margin-inline: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  border-block-end: 1px solid var(--outline-variant);
  
  /* নতুন যোগ করা হয়েছে: বাটনগুলোর মাঝে ফাঁকা জায়গা */
  gap: 12px; 
  padding-bottom: 12px; /* নিচের বর্ডার থেকে একটু উপরে তোলার জন্য */
}

.tab-btn {
  height: 48px;
  width: 100%;
  display: grid;
  place-content: center;
  background-color: var(--surface);
  color: var(--on-surface-variant);
  --state-layer-bg: var(--on-surface-variant);
  
  /* নতুন যোগ করা হয়েছে: বাটন রাউন্ড বা গোল করার জন্য */
  border-radius: 50px; /* বা var(--radius-full) */
  overflow: hidden; /* যাতে ক্লিক ইফেক্ট বা লাইট রাউন্ড শেপের বাইরে না যায় */
  border: 1px solid transparent; /* ক্লিন লুকের জন্য */
  transition: all 0.3s ease;
}

/* অ্যাক্টিভ ট্যাবের স্টাইল */
.tab-btn.active {
  color: var(--primary);
  background-color: var(--surface-container-low); /* অ্যাক্টিভ হলে হালকা ব্যাকগ্রাউন্ড */
  --state-layer-bg: var(--primary);
  border-color: var(--outline-variant); /* অপশনাল: বর্ডার চাইলে */
}

.tab-text {
  position: relative;
  height: 48px;
  line-height: 48px;
  font-weight: 600;
}

/* নিচের দাগটি (Underline) যদি না চান, তবে এই অংশটি মুছে ফেলতে পারেন বা opacity: 0 করে দিতে পারেন।
   রাউন্ড বাটনে সাধারণত নিচের দাগ থাকে না। তাই আমি এটি হাইড করে দিচ্ছি। */
.tab-text::after {
  display: none; 
}




/* --- Simple & Normal Clock Style --- */

.location-wrapper {
  display: flex;
  align-items: center;
  gap: 8px; /* লোকেশন এবং সময়ের মাঝের গ্যাপ */
  flex-wrap: wrap;
}

.location-link {
  text-decoration: none;
  color: var(--on-surface-variant); /* আপনার থিমের ডিফল্ট টেক্সট কালার */
  font-size: var(--label-small);
  font-weight: var(--weight-medium);
  transition: color 0.3s;
}

.location-link:hover {
  color: var(--primary); /* হোভার করলে প্রাইমারি কালার হবে */
}

.simple-clock {
  font-size: var(--label-small); /* সাইটের ডিফল্ট ছোট ফন্ট সাইজ */
  font-weight: 600; /* একটু বোল্ড যাতে চোখে পড়ে */
  color: var(--primary); /* সময়ের রঙ প্রাইমারি কালার হবে */
  background-color: transparent; /* কোনো ব্যাকগ্রাউন্ড কালার নেই */
  padding: 0;
  border: none;
  cursor: default; /* ক্লিক আইকন আসবে না */
  min-width: 60px;
}



/* --- Language Dropdown UI (Pro Translate Icon) --- */

/* ১. মেইন বাটনের Translate আইকন স্টাইল */
.nav-icon {
  font-size: 1.7rem; /* [UX FIX] আইকন সাইজ একটু বড় করা হয়েছে */
  color: var(--primary); /* থিমের কালার */
  margin-inline-end: 6px; /* টেক্সট থেকে দূরত্ব ব্যালেন্স করা হয়েছে */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ২. ড্রপডাউন টোগল বাটন (সাইজ এবং ফ্লেক্স ফিক্স) */
.dropdown-toggle {
  gap: 2px; /* উপাদানগুলোর মাঝের গ্যাপ */
  padding-inline: 12px 10px; /* প্যাডিং এডজাস্টমেন্ট */
  display: flex;
  align-items: center;
  height: 40px; /* বাটনের হাইট ফিক্সড যাতে আইকন বড় হলেও ভেঙে না যায় */
}

/* ৩. অ্যারো আইকন সাইজ */
.arrow-icon {
  font-size: 1.4rem; 
  opacity: 0.8;
}


/* =========================================
   LANGUAGE DROPDOWN FONT FIXES (GLOBAL)
   (এই অংশটি সব CSS ফাইলের নিচে থাকতে হবে)
   ========================================= */

/* ১. ইংরেজি ফন্ট ফিক্স */
.font-en {
  font-family: 'Open Sans', sans-serif !important;
  font-weight: 600;
}

/* ২. বাংলা ফন্ট ফিক্স */
.font-bn {
  font-family: 'Hind Siliguri', sans-serif !important;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ৩. হিন্দি ফন্ট ফিক্স */
.font-hi {
  font-family: 'Noto Sans Devanagari', sans-serif !important;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ৪. উর্দু ফন্ট ফিক্স (Fixing the Space Issue) */
.font-ur {
  font-family: 'Noto Nastaliq Urdu', serif !important;
  font-weight: 700;
  line-height: 1.6; /* আগে 2.0 ছিল, এখন 1.6 করা হলো যাতে স্পেস কমে */
  font-size: 1.1rem; /* সাইজ একটু কমানো হলো */
  padding-top: 4px; /* টেক্সট মাঝখানে আনার জন্য */
}

/* ৫. আরবি ফন্ট ফিক্স */
.font-sa {
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 700;
}



/* =========================================
   🐍 BALANCED PREMIUM PRELOADER
   ========================================= */

/* ১. মেইন কন্টেইনার */
#premium-preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background); /* থিম অনুযায়ী ব্যাকগ্রাউন্ড */
  z-index: 9999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

#premium-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ২. লোগো সেকশন */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px; /* লোগো ও লাইনের মাঝে স্পেস */
}

.loader-logo {
  width: 72px; /* লোগো সাইজ অপটিমাইজড */
  height: auto;
  object-fit: contain;
  /* লোগোটি স্মুথলি ভেসে থাকবে */
  animation: floatLogo 3s ease-in-out infinite;
  will-change: transform; /* পারফরম্যান্স অপটিমাইজেশন */
}

/* ৩. ✅ থিম লজিক (Theme Logic) */
.icon-for-dark-theme, .icon-for-light-theme {
  display: none;
}

/* ডার্ক মোডে সাদা লোগো */
[data-theme="dark"] .icon-for-dark-theme {
  display: block;
}

/* লাইট মোডে কালো লোগো */
[data-theme="light"] .icon-for-light-theme {
  display: block;
}

/* ৪. 🐍 SNAKE ANIMATION (PERFECT THICKNESS) */
.snake-loader {
  width: 180px; /* লোডারের দৈর্ঘ্য */
  height: 40px;
}

.snake-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* পেছনের হালকা লাইন (Track) */
.snake-track {
  stroke: var(--outline-variant);
  stroke-width: 6; /* ট্র্যাক একটু চিকন (6px) */
  opacity: 0.15;
  stroke-linecap: round;
  fill: none;
}

/* চলমান সাপের মতো লাইন (Main Line) */
.snake-line {
  stroke: var(--primary); /* থিমের মেইন কালার */
  stroke-width: 8; /* 🔥 এখন এটি একদম পারফেক্ট (8px) */
  stroke-linecap: round; /* মাথাগুলো সুন্দর গোল */
  fill: none;
  stroke-dasharray: 30 250; /* সাপের দৈর্ঘ্য */
  stroke-dashoffset: 0;
  /* এনিমেশনটি এখন আরও স্মুথ ও প্রিমিয়াম */
  animation: snakeMove 1.6s cubic-bezier(0.5, 0.05, 0.5, 0.95) infinite;
  /* হালকা শ্যাডো যা দেখতে ভালো লাগে কিন্তু চোখে লাগে না */
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));
}

/* ৫. এনিমেশন কি-ফ্রেম */
@keyframes snakeMove {
  0% {
    stroke-dashoffset: 280; /* ডান দিক থেকে শুরু */
  }
  50% {
    stroke-dasharray: 70 250; /* মাঝখানে আসলে সাপটি একটু লম্বা হবে */
  }
  100% {
    stroke-dashoffset: -250; /* বাম দিকে চলে যাবে */
  }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}