/* ==========================================================================
   APNA Modern Design System - 2026 Edition
   ========================================================================== */

:root {
  /* Color Palette */
  --apna-primary: #4f46e5;
  --apna-primary-hover: #4338ca;
  --apna-primary-light: #eef2ff;
  --apna-secondary: #06b6d4;
  --apna-secondary-hover: #0891b2;
  --apna-accent: #3b82f6;
  --apna-success: #10b981;
  --apna-warning: #f59e0b;
  --apna-danger: #ef4444;

  /* Neutrals & Dark Surfaces */
  --apna-dark: #0b0f19;
  --apna-dark-card: #111827;
  --apna-dark-surface: #1f2937;
  --apna-slate-900: #0f172a;
  --apna-slate-800: #1e293b;
  --apna-slate-700: #334155;
  --apna-slate-600: #475569;
  --apna-slate-500: #64748b;
  --apna-slate-400: #94a3b8;
  --apna-slate-200: #e2e8f0;
  --apna-slate-100: #f1f5f9;
  --apna-slate-50: #f8fafc;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 35px -5px rgba(79, 70, 229, 0.35);
  --shadow-glow-cyan: 0 0 35px -5px rgba(6, 182, 212, 0.35);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  font-family: var(--font-body);
  color: var(--apna-slate-700);
  background-color: var(--apna-slate-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--apna-slate-900);
  letter-spacing: -0.025em;
}

.urdu-font {
  font-family: var(--font-urdu);
  line-height: 2.2;
  direction: rtl;
  text-align: right;
}

/* ==========================================================================
   Modern Header & Navigation
   ========================================================================== */
.modern-header {
  background: rgba(11, 15, 25, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
  padding: 14px 0;
  z-index: 1030;
}

.modern-header.scrolled {
  background: rgba(11, 15, 25, 0.95) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
}

.modern-header .logo img {
  max-height: 46px;
  transition: transform var(--transition-normal);
}

.modern-header .logo:hover img {
  transform: scale(1.03);
}

.modern-navmenu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.modern-navmenu a {
  color: #cbd5e1 !important;
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.modern-navmenu a:hover,
.modern-navmenu a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

.btn-login-modern {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none;
}

.btn-login-modern:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-register-modern {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 22px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  transition: all var(--transition-fast) !important;
  text-decoration: none;
}

.btn-register-modern:hover {
  background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%) !important;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
  transform: translateY(-2px);
}

/* ==========================================================================
   Modern Hero Section
   ========================================================================== */
.hero-mesh {
  background-color: #0b0f19;
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.25) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.2) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(30, 41, 59, 0.5) 0px, transparent 50%);
  padding: 130px 0 90px 0;
  position: relative;
  overflow: hidden;
}

.hero-mesh::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--apna-slate-50), transparent);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  margin-top: 15px;
}

.hero-img-container {
  position: relative;
  text-align: center;
}

.hero-img-container img {
  max-width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ==========================================================================
   Modern Feature Cards (Glass & Soft Elevation)
   ========================================================================== */
.modern-card {
  background: #ffffff;
  border: 1px solid var(--apna-slate-200);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all var(--transition-normal);
  position: relative;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.modern-card:hover {
  transform: translateY(-8px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-xl), 0 0 25px -5px rgba(79, 70, 229, 0.12);
}

.card-icon-bubble {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 24px;
  transition: transform var(--transition-bounce);
}

.modern-card:hover .card-icon-bubble {
  transform: scale(1.1) rotate(-3deg);
}

.icon-blue { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.icon-indigo { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.icon-cyan { background: rgba(6, 182, 212, 0.1); color: #0891b2; }
.icon-amber { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.icon-emerald { background: rgba(16, 185, 129, 0.1); color: #059669; }

/* ==========================================================================
   Modern Stats Section
   ========================================================================== */
.stat-card-modern {
  background: #ffffff;
  border: 1px solid var(--apna-slate-200);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.stat-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-card-modern:hover::before {
  opacity: 1;
}

.stat-number-gradient {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Modern Pricing & Package Cards
   ========================================================================== */
.pricing-card-modern {
  background: #ffffff;
  border: 2px solid var(--apna-slate-200);
  border-radius: 24px;
  padding: 40px 32px;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: default;
}

.pricing-card-modern:hover {
  border-color: #4f46e5;
  box-shadow: 0 20px 45px -10px rgba(79, 70, 229, 0.25), 0 0 0 4px rgba(79, 70, 229, 0.08);
  transform: translateY(-8px);
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

.pricing-card-modern.featured {
  border: 2px solid #4f46e5;
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.22);
  transform: scale(1.02);
  background: #f5f3ff;
}

.pricing-card-modern.featured:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: 0 30px 60px -10px rgba(79, 70, 229, 0.4), 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--apna-slate-900);
  line-height: 1;
  margin: 20px 0;
}

.pricing-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--apna-slate-500);
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  flex-grow: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--apna-slate-600);
}

.pricing-features-list li i {
  color: #10b981;
  font-size: 1.1rem;
  margin-top: 2px;
}

/* Always show pricing card action buttons */
.pricing-card-modern .btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: auto;
  transition: all 0.2s ease;
}

/* ==========================================================================
   Modern Multi-Step Form Wizard
   ========================================================================== */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--apna-slate-200);
  transform: translateY(-50%);
  z-index: 1;
}

.wizard-progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  transform: translateY(-50%);
  z-index: 2;
  transition: width var(--transition-normal);
}

.wizard-step-node {
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--apna-slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--apna-slate-500);
  transition: all var(--transition-normal);
}

.wizard-step-node.active {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.18);
}

.wizard-step-node.completed {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
}

.form-control-modern {
  border: 1.5px solid var(--apna-slate-200);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--apna-slate-900);
  background-color: #ffffff;
  transition: all var(--transition-fast);
}

.form-control-modern:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  outline: none;
}

.form-label-modern {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--apna-slate-700);
  margin-bottom: 6px;
}

/* ==========================================================================
   Modern Footer
   ========================================================================== */
.modern-footer {
  background: #0b0f19;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 70px 0 30px 0;
}

.modern-footer h5 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.modern-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-footer ul li {
  margin-bottom: 12px;
}

.modern-footer ul a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.925rem;
  transition: color var(--transition-fast);
}

.modern-footer ul a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  margin-right: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-icon-btn:hover {
  background: #4f46e5;
  color: #ffffff;
  transform: translateY(-2px);
}
