/* ==========================================================================
   SkillPro Course Selling Platform - Mobile-First Luxury Design System
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #eff6ff;
  --bg-card: #ffffff;
  --bg-glass: rgba(37, 99, 235, 0.04);
  --bg-input: #f8fbff;
  
  --text-primary: #102a43;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-primary: #2563eb;
  --accent-secondary: #0284c7;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  --accent-gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
  
  --brand-bkash: #df146e;
  --brand-nagad: #f7921e;
  --brand-whatsapp: #25d366;
  --brand-telegram: #0088cc;
  --brand-messenger: #0084ff;
  
  --border-color: #dbe7f5;
  --border-glow: rgba(37, 99, 235, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 10px 30px -5px rgba(37, 99, 235, 0.4);
  --shadow-card: 0 10px 25px -5px rgba(30, 64, 175, 0.12);
  
  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #eff6ff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(37, 99, 235, 0.04);
  --bg-input: #f8fbff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-color: #dbe7f5;
  --border-glow: rgba(37, 99, 235, 0.2);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  padding-bottom: 75px; /* Space for Mobile Sticky Footer */
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #1d4ed8, #0284c7);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  z-index: 100;
}

.announcement-bar .bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timer-pill {
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Header & Mobile Drawer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-color);
}

body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  -webkit-text-fill-color: initial;
  box-shadow: var(--shadow-glow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-link:hover { color: var(--accent-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 8px 25px -3px rgba(37, 99, 235, 0.55), 0 4px 14px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: rotate(30deg) translateX(-100%);
  animation: btnShimmer 3.5s infinite;
  pointer-events: none;
}

@keyframes btnShimmer {
  0% { transform: rotate(30deg) translateX(-100%); }
  25% { transform: rotate(30deg) translateX(100%); }
  100% { transform: rotate(30deg) translateX(100%); }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px -3px rgba(37, 99, 235, 0.7), 0 8px 20px rgba(37, 99, 235, 0.5);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-secondary {
  background: #eff6ff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
}

.btn-secondary:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.btn-glow-pulse {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.65), 0 8px 25px -3px rgba(37, 99, 235, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0), 0 8px 25px -3px rgba(37, 99, 235, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 8px 25px -3px rgba(37, 99, 235, 0.5); }
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Mobile Slide-Out Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 1500;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

/* Mobile Sticky Bottom Conversion Bar (FB Ads High Conversion) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glow);
  padding: 10px 16px;
  z-index: 990;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.5);
}

body.light-theme .mobile-sticky-bar {
  background: rgba(255, 255, 255, 0.95);
}

.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-price-box {
  display: flex;
  flex-direction: column;
}

.sticky-current-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.sticky-orig-price {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Hero Section */
.hero-section {
  padding: 40px 0 60px;
  position: relative;
}

.hero-glow-bg {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(14, 165, 233, 0.08) 50%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid var(--border-glow);
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.current-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.original-price {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-badge {
  background: #ef4444;
  color: white;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}

.hero-cta-box .btn {
  max-width: 360px;
  width: 100%;
  padding: 14px 28px;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}

.guarantee-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 4px;
  flex-wrap: wrap;
}

.guarantee-text i {
  color: #10b981;
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.guarantee-text span {
  display: inline-block;
  line-height: 1.4;
}

/* Video Preview Card */
.hero-video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.8);
}

.video-info-footer {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
}

/* Features Grid */
.features-section {
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 36px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-lg);
}

.feature-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Curriculum Accordion */
.curriculum-section {
  padding: 50px 0;
  background: var(--bg-secondary);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}

.accordion-icon { transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #eff6ff;
}

.accordion-item.active .accordion-body {
  max-height: 600px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
}

.lesson-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  gap: 10px;
}

.lesson-preview-tag {
  background: #10b981;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

/* Testimonials */
.testimonials-section { padding: 50px 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars { color: #fbbf24; font-size: 1rem; }
.testimonial-text { font-size: 0.92rem; color: var(--text-secondary); font-style: italic; }

.user-profile { display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 44px; height: 44px; border-radius: var(--radius-full); object-fit: cover; border: 2px solid var(--accent-primary); }
.user-name { font-weight: 700; font-size: 0.95rem; }
.user-role { font-size: 0.8rem; color: var(--text-muted); }

/* Floating Social Widgets */
.floating-widgets {
  position: fixed;
  bottom: 85px; /* Above mobile sticky bar */
  right: 16px;
  z-index: 980;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.45rem;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.widget-btn:hover {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 16px 32px -3px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
}

.widget-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.widget-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.45);
}

.widget-messenger {
  background: linear-gradient(135deg, #0084ff 0%, #00c6ff 100%);
  box-shadow: 0 8px 20px rgba(0, 132, 255, 0.45);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* Payment Tabs */
.payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.payment-tab {
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.payment-tab.active {
  border-color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-primary);
}

.payment-details-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  outline: none;
}

.form-control:focus { border-color: var(--accent-primary); }

/* Pixel Toast */
.pixel-log-toast {
  position: fixed;
  bottom: 80px;
  left: 16px;
  z-index: 1500;
  background: #111827;
  border: 1px solid #10b981;
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  max-width: 90%;
}

.pixel-log-toast.show { transform: translateY(0); opacity: 1; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0 24px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ==========================================================================
   SUPER MOBILE RESPONSIVE QUERIES (320px - 768px Optimization)
   ========================================================================== */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-sticky-bar { display: block; }
  
  .header-actions .btn-primary { display: none; } /* Hide duplicate desktop CTA in header */
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .hero-price-tag {
    justify-content: center;
  }
  
  .hero-cta-box {
    margin: 0 auto;
    width: 100%;
  }

  .announcement-bar {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .announcement-bar .bar-content {
    gap: 6px;
  }
  
  .modal-backdrop {
    padding: 10px;
  }

  .modal-window {
    padding: 20px 14px;
    border-radius: var(--radius-md);
    max-height: 92vh;
    box-sizing: border-box;
  }

  .payment-tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .payment-tab {
    padding: 8px 4px;
    font-size: 0.78rem;
  }
}
