/* Google Bengali Font Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali&display=swap');

/* Reset and box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
body {
  font-family: 'Noto Sans Bengali', sans-serif;
  background: #f7f9fc;
  color: #222;
  padding: 2rem 5vw;
  text-align: center;            /* সমস্ত লেখা মাঝখানে */
  line-height: 1.7;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Section (animated bar) */
section {
  width: 100%;
  max-width: 720px;
  height: 6px;
  background: linear-gradient(90deg, #3f51b5, #2196f3, #00bcd4);
  margin-bottom: 2rem;
  border-radius: 3px;
  animation: slideRight 1.5s ease forwards;
}

/* Headings */
h1, h2, h3 {
  color: #1a237e;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  max-width: 720px;
  width: 100%;
  animation: fadeSlideDown 0.8s ease forwards;
}

h1 {
  font-size: 2.8rem;
  margin-top: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
}

/* Paragraphs */
p {
  max-width: 720px;
  margin: 0 auto 1.2rem auto;
  color: #444;
  font-size: 1.15rem;
  text-align: justify;    /* প্যারাগ্রাফ justified, সুন্দর পড়ার জন্য */
  animation: fadeIn 1.2s ease forwards;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ddd;
  max-width: 720px;
  width: 100%;
  text-align: center;
}

/* Animations */
@keyframes slideRight {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 1.5rem 3vw;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  p {
    font-size: 1rem;
    max-width: 100%;
  }
  footer {
    max-width: 100%;
  }
}
/* ব্যাকগ্রাউন্ড ক্যানভাস সেটআপ */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;  /* সব লেখা এর পিছনে থাকবে */
  pointer-events: none; /* ক্যানভাস ক্লিক ইভেন্ট আটকাবে না */
  background-color: #000; /* ডিফল্ট কালো ব্যাকগ্রাউন্ড */
  transition: background-color 5s ease;
}
