
/* Suppress third-party plugin injected contact forms & sticky elements */
.mystickyelements-fixed, 
#stickyelements-form, 
.mystickyelement-lists-wrap, 
.mystickyelements-contact-form,
[class*="stickyelements"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

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

:root {
  --primary-purple: #7c3aed;
  --primary-indigo: #6366f1;
  --primary-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --text-dark: #0f172a;
  --text-slate: #334155;
  --text-muted: #64748b;
  --bg-light: #fbfbfe;
  --card-bg: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

.font-jost {
  font-family: 'Jost', sans-serif;
}

/* -------------------------------------------------------------
 * 1. BRAND GRADIENTS & RICH CARDS
 * ------------------------------------------------------------- */
.bg-brand-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #2563eb 100%);
}

.text-brand-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Rich Course Card */
.course-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #2563eb, #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: #c4b5fd;
  box-shadow: 0 20px 35px -10px rgba(124, 58, 237, 0.15);
}

/* Rich Feature Card with Hover Gradient Reveal */
.feature-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.04);
}

.feature-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
  z-index: -1;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-box:hover::after {
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-6px);
  border-color: #a78bfa;
  box-shadow: 0 16px 30px -8px rgba(124, 58, 237, 0.12);
}

.feature-box:hover .feature-icon {
  transform: scale(1.1) rotate(-4deg);
}

.feature-icon {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------
 * 2. PRIMARY BUTTONS WITH ELEGANT SHINE
 * ------------------------------------------------------------- */
.btn-brand {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.35);
}

.btn-brand::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(30deg) translate(-120%, -120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn-brand:hover::after {
  transform: rotate(30deg) translate(120%, 120%);
}

.btn-brand:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.45);
}

.btn-brand:active {
  transform: translateY(0) scale(0.98);
}

/* Arrow glide */
.btn-arrow i, .btn-arrow svg {
  transition: transform 0.25s ease;
  display: inline-block;
}
.btn-arrow:hover i, .btn-arrow:hover svg {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
 * 3. 4-STEP CONNECTED PATHWAY ROADMAP
 * ------------------------------------------------------------- */
.step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: #c4b5fd;
  box-shadow: 0 16px 30px -8px rgba(124, 58, 237, 0.1);
}

.step-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 14px -3px rgba(124, 58, 237, 0.4);
}

/* -------------------------------------------------------------
 * 4. CONTINUOUS MOTION & FLOATING BADGES
 * ------------------------------------------------------------- */
@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-float-slow {
  animation: softFloat 4s ease-in-out infinite;
}

@keyframes tickerLoop {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.animate-ticker {
  display: flex;
  width: max-content;
  animation: tickerLoop 35s linear infinite;
  will-change: transform;
}

.animate-ticker:hover {
  animation-play-state: paused;
}

/* Floating WhatsApp (Right side, directly above AI Live Chat) */
.wa-btn {
  position: fixed !important;
  right: 1.25rem !important;
  left: auto !important;
  bottom: 5.5rem !important;
  z-index: 45 !important;
  animation: softFloat 3s ease-in-out infinite;
  transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}
.wa-btn:hover {
  transform: scale(1.05) translateY(-2px) !important;
}

@media (min-width: 641px) {
  body.has-sticky-bar .wa-btn {
    bottom: 6.5rem !important; /* Floats cleanly above the sticky urgency bar and AI chat */
    right: 1.25rem !important;
    left: auto !important;
  }
}

/* -------------------------------------------------------------
 * 5. ACCORDIONS & MODALS
 * ------------------------------------------------------------- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.accordion-item.active .accordion-content,
.curriculum-module.active .accordion-content,
.faq-item.active .accordion-content {
  max-height: 2400px;
  opacity: 1;
}

.accordion-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-icon,
.curriculum-module.active .accordion-icon,
.faq-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Premium Curriculum Typography & Code Badges */
.curriculum-module code {
  background-color: #f3e8ff;
  color: #7e22ce;
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 0.12rem 0.35rem;
  border-radius: 0.375rem;
  font-size: 0.82em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-word;
  white-space: normal;
  display: inline;
}

.curriculum-module li {
  line-height: 1.6;
}

/* Modal */
#enquiry-modal {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#enquiry-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#enquiry-modal.flex {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#enquiry-modal .modal-content {
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

#enquiry-modal.flex .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.counter-num {
  font-variant-numeric: tabular-nums;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Reverse Marquee Loop */
@keyframes tickerLoopReverse {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.animate-ticker-reverse {
  display: flex;
  width: max-content;
  animation: tickerLoopReverse 36s linear infinite;
  will-change: transform;
}

.animate-ticker-reverse:hover {
  animation-play-state: paused;
}

/* Dedicated Course & Company Marquee classes */
.animate-ticker-courses {
  display: flex;
  width: max-content;
  animation: tickerLoop 42s linear infinite;
  will-change: transform;
}
.animate-ticker-courses:hover {
  animation-play-state: paused;
}

.animate-ticker-companies {
  display: flex;
  width: max-content;
  animation: tickerLoopReverse 36s linear infinite;
  will-change: transform;
}
.animate-ticker-companies:hover {
  animation-play-state: paused;
}

/* -------------------------------------------------------------
 * 6. CONTENT SCROLL ENTRANCE & REVEAL TRANSITIONS
 * ------------------------------------------------------------- */
.reveal-content {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-content.is-revealed,
.reveal-content.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left.is-revealed,
.reveal-left.aos-animate {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right.is-revealed,
.reveal-right.aos-animate {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale.is-revealed,
.reveal-scale.aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Delay Utility Classes */
.delay-50  { transition-delay: 50ms !important; }
.delay-100 { transition-delay: 100ms !important; }
.delay-150 { transition-delay: 150ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-250 { transition-delay: 250ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-350 { transition-delay: 350ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }

/* Signature Hover From Bottom Effect (Original Live Site Style) */
.hover_from_bottom {
  position: relative;
  overflow: hidden;
}

.hover_from_bottom .hover-slide-item {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover_from_bottom:hover .hover-slide-item {
  transform: translateY(0);
  opacity: 1;
}

/* Smooth Table Row Transitions */
.table-row-hover {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.table-row-hover:hover {
  background-color: rgba(124, 58, 237, 0.04);
}

/* Image zoom inside card on hover */
.img-zoom-hover {
  overflow: hidden;
}
.img-zoom-hover img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom-hover:hover img,
.course-card:hover .img-zoom-hover img {
  transform: scale(1.08);
}

/* Smooth Icon Hover Glow & Rotation */
.icon-pop-hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.icon-pop-hover:hover {
  transform: scale(1.15) rotate(-3deg);
}

/* Tab Content Fade In / Slide Up */
.tab-content-enter {
  animation: tabContentEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes tabContentEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------
 * 12. COMPREHENSIVE MOBILE VIEW RESPONSIVENESS & OVERLAP PREVENTION
 * ------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Prevent horizontal screen shaking and overflow clipping */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  /* 1. Floating WhatsApp Button: Positioned on the Right, directly above AI Chat on mobile */
  .wa-btn {
    position: fixed !important;
    right: 1rem !important;
    left: auto !important;
    bottom: 5.25rem !important; /* Floats safely right above Tawk.to AI chat widget */
    width: 3.25rem !important;
    height: 3.25rem !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    z-index: 45 !important;
    box-shadow: 0 10px 25px -3px rgba(16, 185, 129, 0.45) !important;
  }

  /* WhatsApp ping notification dot pinned cleanly to top-right corner of circle */
  .wa-btn > .relative.flex {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
  }

  /* Hide wide text label on mobile to avoid covering content */
  .wa-btn span.text-xs,
  .wa-btn span.hidden.sm\:inline {
    display: none !important;
  }

  /* 2. When Sticky Urgency Bar is active, elevate WhatsApp so both AI chat and urgency bar are clear */
  body.has-sticky-bar .wa-btn {
    bottom: 6.5rem !important;
    right: 1rem !important;
    left: auto !important;
  }

  /* 3. Sticky Urgency Bar: Compact vertical stacking on mobile */
  #sticky-urgency-bar {
    padding: 0.5rem 0.75rem !important;
  }
  #sticky-urgency-bar .max-w-7xl {
    gap: 0.35rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  #sticky-urgency-bar .flex.items-center.gap-3 {
    gap: 0.35rem !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    justify-content: center !important;
  }
  #sticky-urgency-bar .flex.items-center.gap-2\.5 {
    gap: 0.5rem !important;
    width: 100% !important;
    justify-content: center !important;
  }
  #sticky-urgency-bar button[data-open-enquiry] {
    flex: 1 !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 11px !important;
    text-align: center !important;
  }
  #sticky-urgency-bar a[href*="wa.me"] {
    padding: 0.4rem 0.75rem !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  #sticky-urgency-bar #close-urgency-bar {
    padding: 0.25rem 0.5rem !important;
  }

  /* 4. Top Header Bar: Hide long email address on mobile so phone & social icons fit on 1 line */
  header.bg-slate-900 a[href^="mailto:"] {
    display: none !important;
  }
  header.bg-slate-900 .max-w-7xl {
    justify-content: space-between !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* 5. Universal Icon Protection: Prevent icons from getting squished or overlapping text */
  i.fa-solid,
  i.fa-brands,
  i.fa-regular,
  svg {
    flex-shrink: 0;
  }

  /* Accordion headers & number badges */
  .accordion-icon,
  .module-header i,
  .faq-header i,
  .module-header span.w-7 {
    flex-shrink: 0 !important;
  }

  /* 6. Card & Text Wrapping Protection */
  .course-card, .feature-box, .step-card {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* 7. Ensure batch countdown timer stays inline on mobile */
  .batch-countdown {
    white-space: nowrap !important;
    font-size: 11px !important;
  }
}

/* ==========================================================================
   PERMANENT LIGHT NAVBAR GUARDRAIL (Zero Dark Nav Allowed on Any Page / Scroll)
   ========================================================================== */
nav,
nav.sticky,
nav.sticky.bg-slate-950\/95,
nav.sticky.bg-slate-900\/95,
nav[class*="bg-slate-950"],
nav[class*="bg-slate-900"] {
  background-color: rgba(255, 255, 255, 0.96) !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

nav a.text-slate-600,
nav a[class*="text-slate-600"] {
  color: #475569 !important;
}

nav a.text-slate-800,
nav a[class*="text-slate-800"] {
  color: #0f172a !important;
}

nav a:hover {
  color: #2563eb !important;
}

nav #mobile-menu-btn {
  color: #334155 !important;
}
