@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #070c18;
  --bg-secondary: #0f172a;
  --bg-card: #131d33;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --blue-primary: #2563eb;
  --cyan-accent: #06b6d4;
  --success: #22c55e;
  --danger: #ef4444;
  --border-glass: rgba(255, 255, 255, 0.1);
  --radius-card: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

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

/* ==========================================
   🔹 NAVBAR & HEADER
========================================== */
.navbar {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.85rem 1.2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo span {
  background: linear-gradient(135deg, var(--cyan-accent), var(--blue-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--cyan-accent); }

.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* 📱 HAMBURGER BUTTON (MOBILE) */
.menu-toggle {
  display: none;
  background: #1e293b;
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* 📱 MOBILE SIDEBAR DRAWER */
.drawer-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

.drawer-backdrop.active { display: block; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 290px;
  height: 100vh;
  background: #0f172a;
  border-left: 1px solid var(--border-glass);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 9999;
  transition: right 0.35s ease;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.9);
}

.mobile-drawer.active { right: 0; }

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}

.close-drawer {
  background: #1e293b;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 1.2rem;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   🔘 BUTTONS & FIRE PARTICLES
========================================== */
.btn {
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--cyan-accent));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  border: 1.5px solid var(--cyan-accent);
  color: var(--cyan-accent);
  background: rgba(6, 182, 212, 0.08);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* 🔥 বাটনের চারপাশ থেকে আগুনের শিখা */
.btn-on-fire {
  border-color: #ff4500 !important;
  box-shadow: 0 0 25px #ff3700, 0 0 50px #ff8800 !important;
}

.button-flame-spark {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 999999;
  animation: shootFlame 0.7s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes shootFlame {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(0.1); }
}

/* ==========================================
   📝 AUTH FORMS & INPUTS (Login / Register)
========================================== */
.auth-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.2rem;
}

.auth-card {
  background: #0f172a;
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-card);
  padding: 2.2rem 1.8rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(37, 99, 235, 0.2);
}

.auth-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #ffffff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-card p.subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

/* ইনপুট ফিল্ড ডার্ক ও গ্লোয়িং স্টাইল */
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #1e293b !important;
  border: 1.5px solid #334155 !important;
  border-radius: 12px;
  color: #ffffff !important;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--cyan-accent) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35) !important;
  background: #192237 !important;
}

/* 👁️ পাসওয়ার্ড ইনপুট ও চোখের আইকন সঠিক অ্যালাইনমেন্ট */
.password-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-wrapper .form-control {
  padding-right: 46px !important;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--success);
  color: #86efac;
}

/* ==========================================
   🚀 HERO & LANDING SECTIONS
========================================== */
.hero-section { padding: 3rem 0 2.5rem 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-content h1 .gradient-text {
  background: linear-gradient(135deg, #38bdf8, #2563eb, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-trust-indicators {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-card-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.user-status { display: flex; align-items: center; gap: 10px; }
.user-avatar-placeholder {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-primary), var(--cyan-accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: 0.85rem;
}

.status-badge {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.preview-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.2rem;
}
.preview-stat-box {
  background: #0f172a; border: 1px solid var(--border-glass); padding: 1rem; border-radius: 12px;
}
.preview-stat-box .title { font-size: 0.75rem; color: var(--text-secondary); }
.preview-stat-box .amount { font-size: 1.2rem; font-weight: 700; }

.preview-task-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  padding: 0.8rem; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem;
}

/* 📊 STATS & SECTIONS */
.stats-bar-section {
  padding: 2rem 0; background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat-card {
  text-align: center; padding: 1rem; border-radius: var(--radius-card);
  background: rgba(19, 29, 51, 0.4); border: 1px solid var(--border-glass);
}
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--cyan-accent); }
.stat-label { color: var(--text-secondary); font-size: 0.85rem; }

.how-it-works-section, .categories-section, .faq-section { padding: 4rem 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 2.5rem auto; }
.section-tag { color: var(--cyan-accent); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }

.steps-grid, .categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card, .category-card { background: var(--bg-card); border: 1px solid var(--border-glass); padding: 1.6rem 1.4rem; border-radius: var(--radius-card); }
.step-icon, .cat-icon-wrap { font-size: 2rem; margin-bottom: 1rem; }
.step-card h3, .category-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; }
.step-card p, .category-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: 12px; margin-bottom: 1rem; }
.faq-question { padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.faq-answer { padding: 0 1.4rem; max-height: 0; overflow: hidden; transition: all 0.3s ease; color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.faq-item.active .faq-answer { padding-bottom: 1.2rem; max-height: 200px; }

.footer { background: #060a14; border-top: 1px solid var(--border-glass); padding: 3rem 0 1.5rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-bottom { border-top: 1px solid var(--border-glass); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; color: var(--text-secondary); }

/* 📱 MOBILE RESPONSIVE RULES */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps-grid, .categories-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-auth-btns { display: none !important; }
  .menu-toggle { display: flex !important; }
  .steps-grid, .categories-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 2rem 0; }
}