/* ==========================================================================
   VIEWPORT SCROLL ENTRANCE INTERFACES (ANIMATION CLASSES)
   ========================================================================== */

/* Standard Blocks Entrance */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

/* Staggered Component Entrance (Cards, FAQ rows) */
.scroll-reveal-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

/* Visible Activation Rule Triggered by Javascript Observer */
.scroll-reveal.reveal-active,
.scroll-reveal-stagger.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   HERO BACKGROUND LAYER REFACTORING WITH NEW CHOSEN PROPERTIES
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 150px 0;
  background-image: url("../imgs/image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

/* Translucent Gradient Protection Layer */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(17, 1, 96, 0.92) 0%,
    rgba(114, 3, 107, 0.646) 100%
  );
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Font styling variations for darker contrast background setup */
.hero-text h1 {
  color: var(--electric-lavender);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

/* Fixed Vanilla CSS nesting syntax bug here */
.hero-text h1 .highlight {
  color: var(--bg-light);
  position: relative;
  font-weight: 700;
  font-size: 2.5rem;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 540px;
  width: 100%;
}

/* Contrast button replacement variation within hero context */
.hero-section .btn-electric {
  background: var(--surface-white);
  color: #1c01a6;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.hero-section .btn-electric:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--surface-white);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

/* IDE Shell Code Module Container */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}
.floating-ide-card {
  background: var(--ink-black);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: floatCard 6s ease-in-out infinite;
  box-sizing: border-box;
}

@keyframes floatCard {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.ide-header {
  background: #0d0d0d;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1a1a1a;
  box-sizing: border-box;
}
.ide-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.d-red {
  background: #ff5f56;
}
.d-yellow {
  background: #ffbd2e;
}
.d-green {
  background: #27c93f;
}
.ide-title {
  font-family: monospace;
  font-size: 0.8rem;
  color: #666;
}
.ide-content {
  padding: 32px;
  font-family: monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  background: #050505;
  box-sizing: border-box;
}
.code-line {
  color: #f8f8f2;
}
.code-line.indented {
  padding-left: 20px;
}
.c-keyword {
  color: #ff79c6;
}
.c-class {
  color: #8be9fd;
  font-weight: bold;
}
.c-variable {
  color: #50fa7b;
}
.c-method {
  color: #f1fa8c;
}
.c-property {
  color: #ffb86c;
}
.c-string {
  color: var(--electric-cyan);
}

/* Tech Stack Core Modules */
.packages-section {
  padding: 100px 0;
  box-sizing: border-box;
}
.section-heading {
  margin-bottom: 60px;
}
.section-heading h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-heading p {
  color: var(--electric-cyan);
  font-size: 1.1rem;
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.package-card {
  background: var(--surface-white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    border-color 0.4s ease,
    opacity 0.6s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(140, 232, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.package-card:hover .card-glow {
  opacity: 1;
}
.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(30, 0, 181, 0.08);
  border-color: rgba(30, 0, 181, 0.1);
}
.package-card.featured {
  background: linear-gradient(180deg, var(--surface-white) 0%, #f6f3ff 100%);
  border: 1px solid rgba(30, 0, 181, 0.15);
}
.package-icon {
  font-size: 2.6rem;
  color: var(--brand-blue);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.package-card:hover .package-icon {
  transform: scale(1.1);
}
.package-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.package-card p {
  color: var(--ink-black);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Duration Panel Core Matrix block */
.duration-section {
  padding: 60px 0 100px 0;
  box-sizing: border-box;
}
.duration-panel {
  background: var(--brand-blue);
  color: var(--surface-white);
  border-radius: 24px;
  padding: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(30, 0, 181, 0.25);
  box-sizing: border-box;
  width: 100%;
}
.duration-panel::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--electric-cyan);
  filter: blur(100px);
  top: -150px;
  right: -150px;
  opacity: 0.3;
}
.duration-info {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.duration-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.duration-info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 44px;
}
.metrics-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}
.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.metric-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bg-light);
  line-height: 1;
  margin-bottom: 6px;
}
.metric-lbl {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   FAQ ACCORDION LAYOUT SYSTEM (WITH SPLIT SIDE-BY-SIDE INTERFACE)
   ========================================================================== */
.faq-section {
  padding: 100px 0;
  background-color: var(--surface-white);
  border-top: 1px solid rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

/* Grid Wrapper supporting Two Column Viewports on Desktop Screens */
.faq-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: flex-start;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Custom Accordion Layout System settings width constraint override */
.faq-accordion-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.faq-item {
  background-color: var(--bg-light);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  transition:
    border-color 0.3s ease,
    opacity 0.6s ease,
    transform 0.6s ease;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-black);
  cursor: pointer;
  gap: 20px;
  box-sizing: border-box;
}

.faq-icon {
  font-size: 1rem;
  color: var(--brand-blue);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 0 24px;
  box-sizing: border-box;
}

.faq-content p {
  color: var(--ink-black);
  font-size: 1rem;
  line-height: 1.6;
  padding-bottom: 24px;
}

.faq-item.active {
  border-color: rgba(30, 0, 181, 0.15);
  background-color: var(--surface-white);
  box-shadow: 0 10px 25px rgba(30, 0, 181, 0.03);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ==========================================================================
   MENTORSHIP PLANS MATRIX (REWORKED NEON & GLASS INTERACTION)
   ========================================================================== */

.mentorship-plans-section {
  padding: 100px 20px;
  background:
    linear-gradient(
      135deg,
      rgba(17, 1, 96, 0.7) 0%,
      rgba(114, 3, 107, 0.5) 100%
    ),
    url("../imgs/imageweb13.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
  box-sizing: border-box;
  width: 100%;
}

.plans-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
}

/* Header Node Styling */
.plans-header-node {
  text-align: center;
  margin-bottom: 70px;
}

.plans-pre-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--neon-violet);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.plans-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 18px 0;
  letter-spacing: -0.5px;
}

.title-accent-line {
  width: 120px;
  height: 1px;
  background: var(--neon-violet);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 12px var(--neon-violet);
}

/* Plan Cards Grid System */
.plans-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 35px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

/* Glassmorphism Structural Cards */
.plan-glass-card {
  background: var(--glass-surface);
  backdrop-filter: blur(16px) saturate(190%);
  -webkit-backdrop-filter: blur(16px) saturate(190%);
  border: 2px solid var(--surface-white);
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;

  /* Hardened transitions handles mouse-leave snapping cleanly */
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  transition:
    opacity 0.8s cubic-bezier(0.2, 1, 0.2, 1),
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* CSS Mouse Glow Spotting Ring */
.plan-glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 1.5px; /* Border thickness */
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(255, 255, 255, 0.25),
    transparent 80%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Linear Card Light Reflector Overlay */
.plan-card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 70%
  );
  transform: translate3d(-100%, 0, 0);
  transition: none;
  pointer-events: none;
}

/* Active Hover Framework states */
.plan-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.plan-glass-card:hover::before {
  opacity: 1;
}

.plan-glass-card:hover .plan-card-shine {
  transform: translate3d(50%, 0, 0);
  transition: transform 0.9s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Dynamic Active Focus Glow from JS Interaction Engine */
.plan-glass-card.is-focused {
  border-color: var(--neon-violet);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 20px 45px var(--neon-violet-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Internal Topology & Layout elements */
.plan-badge-row {
  margin-bottom: 25px;
  transform: translateZ(20px); /* Lifts elements off card surface in 3D */
}

.duration-badge {
  background: rgba(157, 78, 223, 0.12);
  color: var(--bg-light);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(157, 78, 223, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--electric-lavender);
  margin: 0 0 15px 0;
  transform: translateZ(25px);
}

.plan-price-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 25px;
  transform: translateZ(30px);
}

.price-value {
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.plan-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent
  );
  margin-bottom: 25px;
}

/* Technology Cluster Matrix */
.plan-stack-wrapper {
  margin-bottom: 35px;
  flex-grow: 1;
  transform: translateZ(20px);
}

.stack-label {
  font-size: 0.85rem;
  color: #a0aec0;
  margin: 0 0 12px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stack-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  transition:
    background 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.plan-glass-card:hover .tech-tag {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Subtle individual badge shift on hover */
.tech-tag:hover {
  transform: scale(1.05) translateY(-2px);
  border-color: var(--neon-violet) !important;
  color: #ffffff;
}

/* Call To Action Buttons */
.plan-action-node {
  margin-top: auto;
  transform: translateZ(35px);
}

.btn-plan-engagement {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--neon-violet);
  color: #ffffff;
  padding: 15px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(157, 78, 223, 0.2);
  box-sizing: border-box;
  transition:
    background 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.2s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-plan-engagement i {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-plan-engagement:hover {
  background: var(--neon-violet-hover);
  box-shadow: 0 8px 25px var(--neon-violet-glow);
  transform: translateY(-2px);
}

.btn-plan-engagement:hover i {
  transform: translateX(5px);
}

/* Empty State Handling */
.plans-empty-state {
  text-align: center;
  padding: 70px 20px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 20px;
  border: 1px dashed rgba(157, 78, 223, 0.2);
  box-sizing: border-box;
}

.plans-empty-state i {
  font-size: 3.5rem;
  color: #4a5568;
  margin-bottom: 20px;
  animation: pulseEmptyState 2s infinite ease-in-out;
}

.plans-empty-state p {
  color: #a0aec0;
  font-size: 1.1rem;
}

/* Keyframes */
@keyframes pulseEmptyState {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
    color: var(--neon-violet);
  }
}
