/* ============================================================
   JP Careers — Custom CSS
   Glassmorphism | Neon | Dark Mode | Gen Z Aesthetic
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #6C63FF;
  --primary-alt: #7F5AF0;
  --cyan: #00D4FF;
  --green: #00FFA3;
  --yellow: #FFB800;
  --bg-dark: #050816;
  --bg-dark2: #0B1023;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.10);
  --text-primary: #F0F0F5;
  --text-muted: #8891A4;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-neon: 0 0 30px rgba(108, 99, 255, 0.35);
  --shadow-cyan: 0 0 30px rgba(0, 212, 255, 0.30);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.40);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode {
  --bg-dark: #F0F2FF;
  --bg-dark2: #E8EBFA;
  --bg-card: rgba(108, 99, 255, 0.07);
  --border-glass: rgba(108, 99, 255, 0.15);
  --text-primary: #0B1023;
  --text-muted: #4A5568;
  --shadow-card: 0 8px 32px rgba(108, 99, 255, 0.12);
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--cyan));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-alt); }

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--green));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---------- Glassmorphism Utilities ---------- */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.glass-sm {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
}

.glass-dark {
  background: rgba(5, 8, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-lg);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, var(--yellow), #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Animated Gradient Background ---------- */
.animated-gradient-bg {
  background: linear-gradient(
    -45deg,
    #050816,
    #0B1023,
    #0D0B2B,
    #050816,
    #060D1F
  );
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Gradient Orbs ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-purple {
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  width: 600px;
  height: 600px;
}

.orb-cyan {
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  width: 500px;
  height: 500px;
  animation-delay: -4s;
}

.orb-green {
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
  width: 400px;
  height: 400px;
  animation-delay: -2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ---------- Neon Glow Effects ---------- */
.neon-glow {
  box-shadow: var(--shadow-neon);
}

.neon-glow-cyan {
  box-shadow: var(--shadow-cyan);
}

.neon-border {
  box-shadow: 0 0 0 1px var(--primary), 0 0 20px rgba(108, 99, 255, 0.2);
}

/* ---------- Card Hover Effects ---------- */
.card-hover {
  transition: var(--transition);
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(108, 99, 255, 0.25), 0 0 40px rgba(0, 212, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.4);
}

.card-hover-green:hover {
  box-shadow: 0 20px 60px rgba(0, 255, 163, 0.2);
  border-color: rgba(0, 255, 163, 0.4);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
  filter: brightness(1.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

.btn-cyan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--cyan), #0099CC);
  color: #050816;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ---------- Section Headings ---------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.6rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.light-mode #navbar.scrolled {
  background: rgba(240, 242, 255, 0.88);
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 80vw);
  height: 100vh;
  background: rgba(11, 16, 35, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--border-glass);
  z-index: 1100;
  padding: 5rem 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#mobile-menu.open { right: 0; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.75rem;
  transition: var(--transition);
}

.mobile-nav-link:hover {
  background: var(--bg-card);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* ---------- Dark Mode Toggle ---------- */
#theme-toggle {
  width: 44px;
  height: 24px;
  background: rgba(108, 99, 255, 0.2);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  outline: none;
}

#theme-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.light-mode #theme-toggle::before {
  transform: translateX(20px);
}

/* ---------- Hero Section ---------- */
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* ---------- Stats Floating Cards ---------- */
.stat-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  animation: floatCard 4s ease-in-out infinite;
  transition: var(--transition);
}

.stat-card:nth-child(2) { animation-delay: -1.3s; }
.stat-card:nth-child(3) { animation-delay: -2.6s; }

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-lg);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 20px 60px rgba(108, 99, 255, 0.2);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 212, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.4), rgba(0, 212, 255, 0.2));
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

/* ---------- Country Cards ---------- */
.country-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.country-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.country-flag {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

/* ---------- Timeline ---------- */
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  flex: 1;
}

.timeline-step::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  opacity: 0.4;
}

.timeline-step:last-child::after { display: none; }

.timeline-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
  transition: var(--transition);
}

.timeline-step:hover .timeline-number {
  transform: scale(1.15);
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.7);
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(108, 99, 255, 0.3);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  gap: 1rem;
  user-select: none;
  transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--primary);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 16px 50px rgba(108, 99, 255, 0.15);
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

/* ---------- Blog Cards ---------- */
.blog-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
}

.blog-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.blog-thumb-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-alt), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-thumb-gradient {
  transform: scale(1.05);
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Form Styles ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 0.75rem;
  padding: 0.875rem 1.125rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
  background: rgba(108, 99, 255, 0.04);
}

.form-select option {
  background: var(--bg-dark2);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- WhatsApp Floating Button ---------- */
#whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  text-decoration: none;
  animation: pulseWA 2.5s ease-in-out infinite;
}

#whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7);
}

@keyframes pulseWA {
  0%, 100% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5); }
  50%       { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.8), 0 0 0 8px rgba(37, 211, 102, 0.08); }
}

/* ---------- Popup Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-dark2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
  outline: none;
  font-family: var(--font-body);
}

.modal-close:hover {
  background: rgba(255, 100, 100, 0.15);
  color: #ff6464;
  border-color: rgba(255, 100, 100, 0.3);
}

/* ---------- Intersection Observer Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible { opacity: 1; }

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---------- Counter Animation ---------- */
.counter-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-primary); }

/* ---------- Article / Blog Body ---------- */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.article-body p { margin-bottom: 1.25rem; }

.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-body li { margin-bottom: 0.5rem; }

.article-body strong { color: var(--text-primary); font-weight: 600; }

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-body th {
  background: rgba(108, 99, 255, 0.15);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.article-body tr:hover td {
  background: rgba(108, 99, 255, 0.05);
}

/* ---------- TOC Sidebar ---------- */
.toc {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toc-list a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  border-left: 2px solid transparent;
  transition: var(--transition);
}

.toc-list a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(108, 99, 255, 0.08);
}

/* ---------- Tag / Badge ---------- */
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.tag-green {
  background: rgba(0, 255, 163, 0.1);
  border-color: rgba(0, 255, 163, 0.2);
  color: var(--green);
}

.tag-yellow {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.2);
  color: var(--yellow);
}

.tag-purple {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.25);
  color: var(--primary);
}

/* ---------- Stars ---------- */
.stars {
  color: var(--yellow);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ---------- Alert / Info box ---------- */
.alert-info {
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 0.875rem;
  padding: 1.25rem 1.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(0, 255, 163, 0.07);
  border: 1px solid rgba(0, 255, 163, 0.2);
  border-radius: 0.875rem;
  padding: 1.25rem 1.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ---------- Section Dividers ---------- */
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--cyan), transparent);
  opacity: 0.3;
  margin: 0;
}

/* ---------- Light Mode Overrides ---------- */
.light-mode body { background-color: var(--bg-dark); }
.light-mode .glass { background: rgba(108, 99, 255, 0.06); }
.light-mode .animated-gradient-bg {
  background: linear-gradient(-45deg, #F0F2FF, #E8EBFA, #EEF0FF, #F5F3FF);
  background-size: 400% 400%;
}
.light-mode .orb { opacity: 0.07; }
.light-mode #mobile-menu {
  background: rgba(240, 242, 255, 0.97);
}
.light-mode .form-input,
.light-mode .form-select,
.light-mode .form-textarea {
  background: rgba(108, 99, 255, 0.04);
  color: var(--text-primary);
}

/* ---------- Utility Helpers ---------- */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.font-heading { font-family: var(--font-heading); }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }

/* ---------- Responsive Helpers ---------- */
@media (max-width: 768px) {
  .section-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .hero-headline { font-size: clamp(2rem, 7vw, 3rem); }
  .timeline-step::after { display: none; }
}

/* ---------- Print styles ---------- */
@media print {
  #navbar, #whatsapp-btn, .modal-overlay { display: none !important; }
  body { background: white; color: black; }
}
