/* --- CSS VARIABLES & CORE SETTINGS --- */
:root {
  --bg-primary: #07120d;
  --bg-secondary: #0e1e17;
  --bg-alt: #111e18;
  --primary-green: #1f8a5b;
  --hover-green: #27ae60;
  --gold-accent: #d4af37;
  --text-main: #f8f6f1;
  --text-secondary: #cfc9be;
  --border-color: rgba(212, 175, 55, 0.15);
  --glow-color: rgba(39, 174, 96, 0.15);
  --font-bangla: "Anek Bangla", sans-serif;
  --font-arabic: "Amiri", serif;
  --transition-premium: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth !important;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-bangla);
  line-height: 1.7;
  position: relative;
  width: 100%;
  overflow-x: clip; /* hidden এর পরিবর্তে clip ব্যবহার করায় sticky পারফেক্ট কাজ করবে */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- PREMIUM FLOATING GLOW ANIMATION --- */
.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.glow-1 {
  top: 15%;
  left: -10%;
  animation: floatGlow 12s infinite ease-in-out alternate;
}
.glow-2 {
  bottom: 20%;
  right: -10%;
  animation: floatGlow 15s infinite ease-in-out alternate-reverse;
}
@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, 60px) scale(1.15);
  }
}

/* --- SITE LOADER --- */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}
.loader-container.fade-out {
  opacity: 0;
  visibility: hidden;
}
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--gold-accent);
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- TOAST --- */
.toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-green), var(--hover-green));
  color: white;
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  border: 1px solid var(--border-color);
  transition: var(--transition-premium);
}
.toast.show {
  bottom: 30px;
}

/* --- MAIN HEADER REFIX (Sticky & High Z-Index) --- */
.main-header {
  position: sticky !important;
  top: 0 !important;
  width: 100%;
  z-index: 9999 !important; /* যেন কোনো সেকশনের নিচে চাপা না পড়ে */
  background-color: #07120d !important; /* সলিড ব্যাকগ্রাউন্ড কালার */
  background-color: rgba(7, 18, 13, 0.95) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
  transition: var(--transition-premium);
}

.main-header.scrolled {
  background-color: rgba(14, 30, 23, 0.98) !important;
  padding: 12px 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-accent);
  letter-spacing: 0.5px;
  font-family: var(--font-bangla);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold-accent);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-accent);
  transition: width 0.4s ease;
}
.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  transition: 0.3s;
}

/* --- TYPOGRAPHY & ISLAMIC DIVIDER --- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--text-main);
}
.arabic-text {
  font-family: var(--font-arabic);
  direction: rtl;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 2.3rem;
  color: var(--gold-accent);
  margin-bottom: 10px;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.islamic-divider {
  width: 120px;
  height: 16px;
  margin: 15px auto;
  position: relative;
  background: radial-gradient(circle, var(--gold-accent) 20%, transparent 25%);
  background-size: 16px 16px;
}
.islamic-divider::before,
.islamic-divider::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 45px;
  height: 2px;
  background-color: var(--gold-accent);
  opacity: 0.5;
}
.islamic-divider::before {
  left: 0;
}
.islamic-divider::after {
  right: 0;
}

/* --- ANIMATION TARGET HOVER WRAPPERS --- */
.animate-btn {
  transition: var(--transition-premium) !important;
}
.animate-btn:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 20px var(--glow-color) !important;
}
.glass-card-lift {
  transition: var(--transition-premium) !important;
}
.glass-card-lift:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}
.img-zoom-hover {
  overflow: hidden;
}
.img-zoom-hover .gallery-img-box,
.img-zoom-hover .profile-placeholder,
.img-zoom-hover .large-placeholder-img {
  transition: transform 0.6s ease !important;
}
.img-zoom-hover:hover .gallery-img-box,
.img-zoom-hover:hover .profile-placeholder,
.img-zoom-hover:hover .large-placeholder-img {
  transform: scale(1.06) !important;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-bangla);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.btn-green {
  background-color: var(--primary-green);
  color: #fff;
}
.btn-gold {
  background-color: var(--gold-accent);
  color: var(--bg-primary);
}
.btn-outline {
  background-color: transparent;
  color: var(--gold-accent);
  border: 1px solid var(--border-color);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}
.center-btn {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.alt-bg {
  background-color: var(--bg-alt);
  position: relative;
  z-index: 1;
}

/* --- TOP BAR & SOCIALS --- */
.top-bar {
  background-color: #040a07;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  padding: 10px 0;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-left .icon-text {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}
.social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}
.social-icons a {
  color: var(--text-secondary);
  transition: var(--transition-premium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-icons a:hover {
  color: var(--gold-accent);
  transform: scale(1.2);
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 80px 0;
  position: relative;
}
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}
.quran-verse {
  background: rgba(31, 138, 91, 0.08);
  border-left: 3px solid var(--gold-accent);
  padding: 20px;
  border-radius: 0 15px 15px 0;
  margin-bottom: 25px;
}
.quran-verse .arabic-text {
  font-size: 1.5rem;
  color: var(--gold-accent);
  margin-bottom: 8px;
}
.quran-verse .translation {
  font-style: italic;
  color: var(--text-secondary);
}
.quran-verse .reference {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--primary-green);
}
.hero-title {
  font-size: 3.2rem;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 35px;
}
.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Slider Core Bright Architecture */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}
.slider {
  width: 100%;
  height: 100%;
  position: relative;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 40px;
}
.slide-placeholder span {
  background: rgba(7, 18, 13, 0.85);
  padding: 8px 25px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  color: var(--gold-accent);
  font-weight: 600;
}
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background-color: var(--gold-accent);
  width: 24px;
}

/* --- TIMELINE HISTORY --- */
.history-section {
  padding: 80px 0;
}
.timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.timeline-item {
  padding: 15px 50px;
  position: relative;
  width: 50%;
}
.timeline-item::after {
  content: "★";
  color: var(--gold-accent);
  font-size: 11px;
  position: absolute;
  width: 26px;
  height: 26px;
  right: -13px;
  top: 35px;
  background-color: var(--bg-primary);
  border: 2px solid var(--gold-accent);
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-item.right {
  left: 50%;
}
.timeline-item.right::after {
  left: -13px;
}
.timeline-item.left {
  left: 0;
}
.timeline-content {
  padding: 35px;
  background: linear-gradient(
    135deg,
    rgba(14, 30, 23, 0.9),
    rgba(7, 18, 13, 0.95)
  );
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.timeline-year {
  display: inline-block;
  background-color: var(--primary-green);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.timeline-content h3 {
  font-size: 1.4rem;
  color: var(--gold-accent);
  margin-bottom: 10px;
}
.timeline-extended-text {
  max-width: 900px;
  margin: 60px auto 0 auto;
  text-align: center;
  border-top: 1px dashed var(--border-color);
  padding-top: 40px;
}
.history-para {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.8;
  text-align: justify;
}

/* --- PROFILE GRID --- */
.lineage-section {
  padding: 80px 0;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}
.profile-card {
  background: linear-gradient(
    135deg,
    rgba(14, 30, 23, 0.85),
    rgba(7, 18, 13, 0.95)
  );
  border: 1px solid var(--border-color);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.profile-img-container {
  width: 100%;
  height: 250px;
  background:
    linear-gradient(to bottom, transparent, rgba(7, 18, 13, 0.95)),
    url("https://images.unsplash.com/photo-1576489922094-27859a82473e?q=80&w=500")
      center/cover;
  position: relative;
}
.profile-placeholder {
  position: absolute;
  inset: 0;
  background: rgba(31, 138, 91, 0.05);
}
.profile-info {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.profile-info h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.profile-info .lifecycle {
  font-size: 0.85rem;
  color: var(--gold-accent);
  margin-bottom: 8px;
}
.profile-info .lineage-type {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 12px;
}
.profile-info .description {
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* --- URS COUNTDOWN --- */
.urs-section {
  padding: 80px 0;
}
.urs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}
.urs-card {
  background: linear-gradient(
    135deg,
    rgba(14, 30, 23, 0.85),
    rgba(7, 18, 13, 0.95)
  );
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 35px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.urs-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
  padding: 2px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
}
.urs-card h3 {
  font-size: 1.4rem;
  color: var(--gold-accent);
  margin-top: 15px;
  margin-bottom: 10px;
}
.urs-card .bangla-date {
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 12px;
}
.urs-card .urs-desc {
  color: var(--text-secondary);
  margin-bottom: 25px;
}
.countdown-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: rgba(7, 18, 13, 0.7);
  padding: 15px;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 20px;
}
.countdown-unit span {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}
.countdown-unit small {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.urs-details-btn {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  text-decoration: none !important;
  padding: 12px 0 !important;
  font-size: 1rem !important;
}

/* --- PHOTO GALLERY --- */
.gallery-section {
  padding: 80px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
}
.gallery-img-box {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 18, 13, 0.95), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: var(--text-main);
  font-weight: 600;
}

/* Lightbox Framework Layout */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 10, 7, 0.94);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-premium);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-content img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 16px;
  border: 2px solid var(--gold-accent);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.lightbox.open .lightbox-content img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 3.5rem;
  cursor: pointer;
  z-index: 2001;
}

/* --- HADIYA POPUP BLOCK --- */
.hadia-section {
  padding: 60px 0;
}
.hadia-container {
  background: linear-gradient(
    135deg,
    rgba(31, 138, 91, 0.18) 0%,
    rgba(14, 30, 23, 0.95) 100%
  );
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.hadia-text h2 {
  color: var(--gold-accent);
  font-size: 2rem;
}
.hadia-text p {
  color: var(--text-secondary);
  max-width: 750px;
}

/* High Performance Fully Responsive Popup Overlay Layout */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 10, 7, 0.8);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.4s;
  padding: 20px;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: linear-gradient(135deg, var(--bg-secondary), #091410);
  border: 1px solid var(--gold-accent);
  border-radius: 24px;
  width: 100%;
  max-width: 490px;
  padding: 35px 30px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  z-index: 5;
}
.modal-close:hover {
  color: var(--gold-accent);
}
.modal-card h3 {
  text-align: center;
  color: var(--gold-accent);
  font-size: 1.7rem;
  margin-bottom: 5px;
}

.account-card {
  background: rgba(7, 18, 13, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}
.account-info {
  display: flex;
  flex-direction: column;
}
.acc-type {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 6px;
}
.acc-type.bkash {
  background-color: #df146e;
  color: white;
}
.acc-type.nagad {
  background-color: #f7921e;
  color: white;
}
.acc-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}
.modal-footer-note {
  font-size: 0.85rem;
  color: var(--primary-green);
  text-align: center;
  margin-top: 20px;
  font-style: italic;
}

/* --- ISLAMIC QUOTES --- */
.quotes-section {
  padding: 80px 0;
}
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
}
.quote-card {
  background: linear-gradient(
    135deg,
    rgba(14, 30, 23, 0.6),
    rgba(7, 18, 13, 0.8)
  );
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
}
.quote-arabic {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: var(--gold-accent);
  text-align: center;
  margin-bottom: 15px;
  direction: rtl;
}
.quote-bn {
  text-align: center;
  font-style: italic;
  margin-bottom: 12px;
}
.quote-ref {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--primary-green);
  font-weight: 600;
}

/* --- VIDEO --- */
.video-section {
  padding: 80px 0;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.video-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.video-placeholder-frame {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(14, 30, 23, 0.6), rgba(7, 18, 13, 0.95)),
    url("https://images.unsplash.com/photo-1618220179428-22790b461013?q=80&w=500")
      center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}
.play-icon {
  font-size: 2.2rem;
  color: var(--gold-accent);
  margin-bottom: 10px;
}

/* --- CONTACT MAP & FORM --- */
.contact-section {
  padding: 80px 0;
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.map-placeholder {
  width: 100%;
  height: 390px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.map-core-design {
  text-align: center;
}
.map-core-design p {
  margin-top: 15px;
  font-weight: 600;
}
.form-wrapper {
  background: linear-gradient(
    135deg,
    rgba(14, 30, 23, 0.9),
    rgba(7, 18, 13, 0.95)
  );
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 35px;
}
.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background-color: rgba(7, 18, 13, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--text-main);
  font-family: var(--font-bangla);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
}
.error-msg {
  color: #e74c3c;
  font-size: 0.85rem;
  position: absolute;
  bottom: -20px;
  left: 2px;
  display: none;
}
.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #e74c3c;
}
.form-group.invalid .error-msg {
  display: block;
}
.form-status {
  margin-top: 15px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  display: none;
  padding: 10px;
  border-radius: 8px;
}
.form-status.success {
  display: block;
  background: rgba(31, 138, 91, 0.15);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}
.form-status.error {
  display: block;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

/* --- SUBPAGES ADDITIONS STYLE ARCHITECTURE --- */
.subpage-hero {
  padding: 140px 0 60px 0;
  background: linear-gradient(
    to bottom,
    var(--bg-secondary),
    var(--bg-primary)
  );
  border-bottom: 1px solid var(--border-color);
}
.subpage-hero h1 {
  font-size: 2.8rem;
  color: var(--gold-accent);
}
.details-body {
  padding: 80px 0;
}
.details-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.details-visuals {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.large-placeholder-img {
  width: 100%;
  height: 320px;
  background: linear-gradient(45deg, #11221a, #07120d);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
}
.premium-placeholder-p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  text-align: justify;
  line-height: 1.8;
}

/* --- FOOTER --- */
.main-footer {
  background-color: #040906;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 25px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--gold-accent);
  font-size: 1.25rem;
  margin-bottom: 15px;
}
.footer-divider {
  width: 40px;
  height: 2px;
  background-color: var(--primary-green);
  margin-bottom: 20px;
}
.footer-about {
  color: var(--text-secondary);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-premium);
}
.footer-links a:hover {
  color: var(--gold-accent);
  padding-left: 6px;
}
.footer-contact-item {
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  text-align: center;
  color: rgba(248, 246, 241, 0.4);
}

/* --- ANIMATIONS LOOK CLASSES via INTERSECTION OBSERVER --- */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-fade.active,
.reveal-up.active,
.reveal-slide-left.active,
.reveal-slide-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==================================================
   ADVANCED MOBILE & TABLET RESPONSIVE DEEP OVERRIDES
   ================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* Hide Header Top Part on Mobile */
  .top-bar {
    display: none !important;
  }

  /* Paddings Reset */
  .hero-section,
  .history-section,
  .lineage-section,
  .urs-section,
  .gallery-section,
  .quotes-section,
  .video-section,
  .contact-section,
  .details-body {
    padding: 50px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .section-header h2 {
    font-size: 1.9rem;
  }

  /* Grid system stack collapses */
  .hero-container,
  .contact-container,
  .details-split {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  /* Hadiya Mobile Row Stack Override */
  .hadia-container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding: 30px 20px;
    gap: 25px;
  }

  /* Navigation structural drawer mobile view setup */
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    flex-direction: column;
    padding: 90px 25px 40px 25px;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1000;
    align-items: flex-start;
    gap: 18px;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.6);
  }
  .nav-menu.open {
    left: 0;
  }
  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }
  .nav-link::after {
    display: none;
  }
  .nav-menu .btn {
    width: 100%;
    margin-top: 10px;
  }

  /* Timeline adaptations */
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .timeline-item.right {
    left: 0;
  }
  .timeline-item::after {
    left: 7px !important;
    top: 28px;
  }
  .timeline-content {
    padding: 20px;
  }

  /* Details split */
  .details-visuals {
    order: 2;
  }
  .details-text-content {
    order: 1;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  .logo-text {
    font-size: 1.25rem;
  }
  .top-bar-content {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  /* Hero structural texts resizing */
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .quran-verse .arabic-text {
    font-size: 1.25rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .slider-wrapper {
    height: 260px;
  }

  /* Cards adaptations for small screens preventing breaks */
  .profile-grid,
  .urs-grid,
  .gallery-grid,
  .quotes-grid,
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .profile-card,
  .urs-card,
  .quote-card,
  .form-wrapper {
    padding: 20px;
  }
  .countdown-container {
    padding: 10px;
  }
  .countdown-unit span {
    font-size: 1.25rem;
  }

  /* Hadiya popup internal cards adaptations to stack properly below 480px screen widths */
  .account-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px 15px;
    gap: 12px;
  }
  .account-card .btn {
    width: 100%;
    justify-content: center;
  }
  .modal-card {
    padding: 30px 15px 25px 15px;
    width: 100%;
  }
  .modal-card h3 {
    font-size: 1.4rem;
  }
  .acc-num {
    font-size: 1.15rem;
  }

  .history-para {
    font-size: 1rem;
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .subpage-hero h1 {
    font-size: 2rem;
  }
  .large-placeholder-img {
    height: 220px;
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .logo-text {
    font-size: 1.15rem;
  }
  .section-header h2 {
    font-size: 1.65rem;
  }
}

@media (max-width: 320px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .countdown-unit span {
    font-size: 1.1rem;
  }
  .acc-num {
    font-size: 1.05rem;
  }
}
