body {
  box-sizing: border-box;
  font-family: 'Poppins', 'Noto Serif Bengali', sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.4s ease, color 0.4s ease;
}

* {
  box-sizing: border-box;
}

.dark-toggle {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #0a3d2e, #1f6f54);
  color: #ffd700;
}

.dark-toggle:hover {
  transform: scale(1.15) rotate(20deg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

body {
  background-color: #ffffff;
  color: #1f2937;
}

body.dark-mode {
  background-color: #111827;
  color: #e5e7eb;
}

body.dark-mode nav {
  background: rgba(17, 24, 39, 0.97) !important;
  border-bottom: 1px solid #374151;
}

body.dark-mode nav a {
  color: #fbbf24 !important;
}

body.dark-mode nav a:hover {
  color: #ffffff !important;
}

body.dark-mode .bg-white {
  background-color: #1f2937 !important;
}

body.dark-mode .bg-gray-50 {
  background-color: #111827 !important;
}

body.dark-mode .bg-green-50 {
  background-color: #1a2e23 !important;
}

body.dark-mode .bg-yellow-50 {
  background-color: #2a2510 !important;
}

body.dark-mode .bg-blue-50 {
  background-color: #1a2332 !important;
}

body.dark-mode .bg-yellow-100 {
  background-color: #2a2510 !important;
  border-color: #4a4520 !important;
}

body.dark-mode .text-gray-800 {
  color: #f3f4f6 !important;
}

body.dark-mode .text-gray-700 {
  color: #d1d5db !important;
}

body.dark-mode .text-gray-600 {
  color: #9ca3af !important;
}

body.dark-mode .text-gray-500 {
  color: #9ca3af !important;
}

body.dark-mode .text-green-800 {
  color: #6ee7b7 !important;
}

body.dark-mode .text-green-700 {
  color: #34d399 !important;
}

body.dark-mode .card {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
}

body.dark-mode .committee-card {
  background-color: #1f2937 !important;
  border: 1px solid #374151;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #374151 !important;
  border-color: #4b5563 !important;
  color: #f3f4f6 !important;
}

body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder {
  color: #9ca3af !important;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
  border-color: #fbbf24 !important;
}

body.dark-mode .shadow-md,
body.dark-mode .shadow-lg,
body.dark-mode .shadow-xl,
body.dark-mode .shadow-2xl {
  box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
}

body.dark-mode .section-divider {
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

body.dark-mode #backToTop {
  background: #fbbf24;
  color: #111827;
  border-color: #374151;
}

body.dark-mode ::-webkit-scrollbar {
  width: 8px;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #1f2937;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background-color: #374151 !important;
  border-color: #4b5563 !important;
  color: #f3f4f6 !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #9ca3af !important;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
  border-color: #fbbf24 !important;
}

body.dark-mode .bg-gray-100 {
  background-color: #374151 !important;
}

.gradient-bg {
  background: linear-gradient(135deg, #0a3d2e 0%, #1f6f54 50%, #2d8a68 100%);
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.section-divider {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  margin: 0 auto 40px;
  border-radius: 2px;
}

.islamic-pattern {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
}

.activity-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

nav {
  backdrop-filter: blur(10px);
  background: rgba(11, 46, 34, 0.95);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.committee-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.committee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.committee-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a3d2e, #1f6f54);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ffd700;
  font-weight: 700;
  border: 4px solid #ffd700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ffd700;
}

.smooth-scroll {
  scroll-behavior: smooth;
}

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #fbbf24;
  color: #14532d;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid #166534;
  transition: all 0.3s;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
}

#backToTop:hover {
  background: white;
  transform: scale(1.1);
}

nav a.active-page {
  color: white !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

section, div, p, h1, h2, h3, h4, span, a, img {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
