/* =========================================
   Prime Benchmark — Advanced Animations & Visual FX
   ========================================= */

/* ===== AURORA / GRADIENT MESH BACKGROUND ===== */
.aurora-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: auroraFloat 12s ease-in-out infinite;
  opacity: 0;
  transition: opacity 1s;
}

[data-theme="dark"] .aurora-orb { opacity: 1; }
[data-theme="light"] .aurora-orb { opacity: 0.25; }

.aurora-orb:nth-child(1) {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(67,176,72,0.3) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation-delay: 0s; animation-duration: 14s;
}
.aurora-orb:nth-child(2) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(125,216,127,0.2) 0%, transparent 70%);
  bottom: -150px; left: -150px;
  animation-delay: 4s; animation-duration: 18s;
}
.aurora-orb:nth-child(3) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(45,138,53,0.25) 0%, transparent 70%);
  top: 40%; left: 20%;
  animation-delay: 8s; animation-duration: 16s;
}
.aurora-orb:nth-child(4) {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(67,176,72,0.15) 0%, transparent 70%);
  top: 60%; right: 10%;
  animation-delay: 2s; animation-duration: 20s;
}

@keyframes auroraFloat {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(40px, -60px) scale(1.1); }
  50%  { transform: translate(-30px, 40px) scale(0.95); }
  75%  { transform: translate(20px, 30px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ===== HERO SECTION ENHANCEMENTS ===== */

/* Animated grid mesh overlay */
.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(67,176,72,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,176,72,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: meshMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes meshMove {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Floating particles inside hero */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  animation: heroParticleRise linear infinite;
}

@keyframes heroParticleRise {
  0%   { transform: translateY(100%) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Glowing ring animation */
.hero-glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(67,176,72,0.2);
  animation: ringExpand 4s ease-out infinite;
  pointer-events: none;
}
.hero-glow-ring:nth-child(1) { animation-delay: 0s; }
.hero-glow-ring:nth-child(2) { animation-delay: 1.3s; }
.hero-glow-ring:nth-child(3) { animation-delay: 2.6s; }

@keyframes ringExpand {
  0%   { width: 0; height: 0; opacity: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); }
  100% { width: 600px; height: 600px; opacity: 0; top: 50%; left: 50%; transform: translate(-50%, -50%); }
}

/* ===== MORPHING BLOB ===== */
.blob-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.blob {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blobMorph 10s ease-in-out infinite;
  opacity: 0.12;
  background: linear-gradient(135deg, var(--green), var(--green-light));
}

@keyframes blobMorph {
  0%,100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25%      { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50%      { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75%      { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* ===== SECTION BACKGROUND EFFECTS ===== */

/* Wave separator */
.wave-separator {
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.wave-separator svg {
  display: block;
  position: relative;
  z-index: 1;
}

/* Floating geometric shapes */
.geo-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.geo-shape {
  position: absolute;
  border: 1px solid rgba(67,176,72,0.15);
  animation: geoFloat 15s ease-in-out infinite;
  opacity: 0.5;
}

.geo-shape.triangle {
  width: 0; height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid rgba(67,176,72,0.08);
  border-top: none;
  background: transparent;
  border-radius: 0;
}

.geo-shape.circle {
  border-radius: 50%;
}

.geo-shape.square {
  transform: rotate(45deg);
}

@keyframes geoFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-20px) rotate(60deg); }
  66%      { transform: translateY(10px) rotate(120deg); }
}

/* ===== CARD ENHANCEMENTS ===== */

/* Card spotlight hover */
.card-spotlight {
  position: relative;
  overflow: hidden;
}

.card-spotlight::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(67,176,72,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card-spotlight:hover::after { opacity: 1; }

/* Shimmer loading effect */
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Tilt card effect */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}

/* ===== STATS STRIP ENHANCEMENTS ===== */

.stats-strip {
  position: relative;
  overflow: hidden;
}

.stats-strip .stat-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.03) 40%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.03) 60%,
    transparent 100%
  );
  animation: statShimmer 3s ease-in-out infinite;
}

@keyframes statShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== MARQUEE ENHANCEMENTS ===== */

.marquee-section {
  position: relative;
  overflow: hidden;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 10;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

/* ===== REVEAL ANIMATIONS ===== */

/* Enhanced reveal with different types */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.reveal.from-left {
  transform: translateX(-40px);
}

.reveal.from-right {
  transform: translateX(40px);
}

.reveal.scale-in {
  transform: scale(0.9);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

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

/* ===== FLOATING ELEMENTS ===== */

.float-el {
  animation: floatEl 6s ease-in-out infinite;
}

.float-el:nth-child(even) { animation-duration: 8s; animation-direction: alternate; }

@keyframes floatEl {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-15px) rotate(3deg); }
}

/* ===== PULSE GLOW ===== */

.pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(67,176,72,0.4); }
  50%      { box-shadow: 0 0 0 16px rgba(67,176,72,0); }
}

/* ===== GRADIENT TEXT ANIMATION ===== */

.gradient-text-animate {
  background: linear-gradient(
    90deg,
    var(--green) 0%,
    var(--green-light) 25%,
    #43e048 50%,
    var(--green-light) 75%,
    var(--green) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientTextFlow 4s linear infinite;
}

@keyframes gradientTextFlow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ===== TYPING CURSOR ===== */

.typing-cursor::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--green);
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ===== HERO CARD STACK ENHANCED ===== */

.hero-mockup-card {
  position: relative;
  overflow: hidden;
}

.hero-mockup-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.05),
    transparent
  );
  animation: cardSheen 4s ease-in-out infinite;
}

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

@keyframes cardSheen {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

/* ===== EXAM CARD GLOW HOVER ===== */

.exam-card {
  position: relative;
}

.exam-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--green), var(--green-light), var(--green-dark));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.exam-card:hover::after { opacity: 0.5; }

/* ===== TESTIMONIAL CARD HOVER GLOW ===== */

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(67,176,72,0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

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

/* ===== CTA SECTION ANIMATION ===== */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section .cta-beam {
  position: absolute;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.4), transparent);
  top: -100%;
  animation: beamSweep 6s ease-in-out infinite;
}

.cta-section .cta-beam:nth-child(1) {
  left: 20%; height: 200%;
  animation-delay: 0s;
}
.cta-section .cta-beam:nth-child(2) {
  left: 50%; height: 200%;
  animation-delay: 2s;
}
.cta-section .cta-beam:nth-child(3) {
  left: 80%; height: 200%;
  animation-delay: 4s;
}

@keyframes beamSweep {
  0%   { top: -100%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== ROTATING RING BACKGROUND ACCENT ===== */

.rotating-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(67,176,72,0.2);
  animation: spinRing 30s linear infinite;
  pointer-events: none;
}

.rotating-ring-2 {
  animation: spinRing 20s linear infinite reverse;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== SECTION DIVIDERS ===== */

.divider-wave {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin: 0;
}

.divider-wave::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 200%;
  height: 100%;
  background: var(--bg-alt);
  clip-path: ellipse(50% 60% at 50% 100%);
  animation: waveDivide 8s ease-in-out infinite alternate;
}

@keyframes waveDivide {
  from { transform: scaleX(1); }
  to   { transform: scaleX(1.1); }
}

/* ===== GLITCH TEXT EFFECT ===== */
@keyframes glitchText {
  0%,100% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 0); }
  20%      { clip-path: inset(10% 0 60% 0); transform: translate(2px, 0); }
  40%      { clip-path: inset(80% 0 5%  0); transform: translate(-1px, 0); }
  60%      { clip-path: inset(25% 0 50% 0); transform: translate(1px, 0); }
  80%      { clip-path: inset(70% 0 15% 0); transform: translate(-2px, 0); }
}

/* ===== SCROLL PROGRESS BAR ===== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--green-glow);
}

/* ===== CURSOR TRAIL ===== */

.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s;
  mix-blend-mode: normal;
  opacity: 0.7;
}

.cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(67,176,72,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s, height 0.2s;
}

/* ===== LOADING SPINNER ===== */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-icon {
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

@keyframes loaderPulse {
  0%,100% { transform: scale(1); box-shadow: 0 8px 30px var(--green-glow); }
  50%      { transform: scale(1.08); box-shadow: 0 12px 40px rgba(67,176,72,0.6); }
}

.loader-bar {
  width: 160px;
  height: 4.5px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: 2px;
  animation: loaderFill 0.9s ease forwards;
}

@keyframes loaderFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ===== CARD 3D TILT (using CSS vars set by JS) ===== */

.tilt-3d {
  transition: transform 0.15s ease;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
}

/* ===== RIPPLE EFFECT ON BUTTONS ===== */

.btn {
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: rippleOut 0.6s linear;
  pointer-events: none;
}

@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

/* ===== ANIMATED BADGE GLOW ===== */

.section-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(67,176,72,0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(67,176,72,0); }
}

/* ===== NUMBER COUNTER GLOW ===== */

.stat-number {
  position: relative;
}

.stat-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  animation: numGlow 3s ease-in-out infinite;
}

@keyframes numGlow {
  0%,100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* ===== FEATURES GRID STAGGER ===== */

.features-grid .card:nth-child(1)  { transition-delay: 0.05s; }
.features-grid .card:nth-child(2)  { transition-delay: 0.10s; }
.features-grid .card:nth-child(3)  { transition-delay: 0.15s; }
.features-grid .card:nth-child(4)  { transition-delay: 0.20s; }
.features-grid .card:nth-child(5)  { transition-delay: 0.25s; }
.features-grid .card:nth-child(6)  { transition-delay: 0.30s; }
.features-grid .card:nth-child(7)  { transition-delay: 0.35s; }
.features-grid .card:nth-child(8)  { transition-delay: 0.40s; }
.features-grid .card:nth-child(9)  { transition-delay: 0.45s; }

/* ===== ANIMATED HORIZONTAL RULE ===== */

.animated-hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  border: none;
  margin: 0 auto;
  width: 0%;
  animation: hrExpand 1.2s ease forwards;
}

@keyframes hrExpand {
  to { width: 100%; }
}

/* ===== STEP CONNECTOR LINE ANIMATION ===== */

.steps-grid::before {
  animation: connectorGrow 1.5s 0.5s ease forwards;
  width: 0;
}

@keyframes connectorGrow {
  to { width: 80%; }
}

/* ===== PAGE HERO ENHANCEMENTS ===== */

.page-hero {
  position: relative;
  overflow: hidden;
}

/* Add mesh to all page heroes */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(67,176,72,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,176,72,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: meshMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

/* Rotating ring behind page hero */
.page-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px dashed rgba(67,176,72,0.15);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spinRing 25s linear infinite;
  pointer-events: none;
}

.page-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ===== NOTICE / POST CARDS ===== */

.notice-card, .post-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.notice-card:hover, .post-card:hover {
  transform: translateY(-8px) scale(1.01);
}

/* ===== MOBILE OPTIMIZATIONS ===== */

@media (max-width: 768px) {
  .aurora-orb { filter: blur(60px); }
  .cursor-dot, .cursor-ring { display: none; }
  .hero-mesh { background-size: 40px 40px; }
}

/* ===== DARK THEME SPECIFIC ENHANCEMENTS ===== */

[data-theme="dark"] .hero-mesh {
  background-image:
    linear-gradient(rgba(67,176,72,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,176,72,0.08) 1px, transparent 1px);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 16px 50px rgba(67,176,72,0.2);
}

[data-theme="dark"] .exam-card:hover {
  box-shadow: 0 20px 60px rgba(67,176,72,0.25);
}

[data-theme="dark"] .hero-mockup-card {
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(67,176,72,0.1);
}

/* ===== NEON GLOW BORDERS (Dark Mode) ===== */

[data-theme="dark"] .pricing-card.featured {
  box-shadow:
    0 0 0 1px rgba(67,176,72,0.5),
    0 0 20px rgba(67,176,72,0.2),
    0 20px 60px rgba(0,0,0,0.5);
}

[data-theme="dark"] .cta-section {
  box-shadow: 0 20px 60px rgba(67,176,72,0.3), 0 0 0 1px rgba(67,176,72,0.2);
}

/* ===== JAPAN-THEMED SAKURA PETALS ===== */

.sakura-petal {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.7) 0%, rgba(255, 105, 135, 0.4) 100%);
  border-radius: 150% 0% 150% 0%;
  pointer-events: none;
  animation: petalFall linear infinite;
  z-index: 1;
  opacity: 0;
}

@keyframes petalFall {
  0%   { transform: translateX(0) rotate(0deg) translateY(-20px); opacity: 0; }
  5%   { opacity: 0.7; }
  95%  { opacity: 0.4; }
  100% { transform: translateX(var(--drift, 80px)) rotate(540deg) translateY(110vh); opacity: 0; }
}

/* ===== ANIMATED SECTION BACKGROUNDS ===== */

/* Dot pattern moving background */
.dot-pattern-bg {
  position: relative;
}

.dot-pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(67,176,72,0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: dotPatternShift 15s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes dotPatternShift {
  0%   { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

/* ===== SCROLL INDICATOR ===== */

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
  z-index: 10;
}

.scroll-indicator span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ===== HOLOGRAPHIC CARD SHINE ===== */

.holo-card {
  position: relative;
  overflow: hidden;
}

.holo-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(67,176,72,0.05) 60deg,
    rgba(125,216,127,0.08) 120deg,
    transparent 180deg,
    rgba(67,176,72,0.03) 240deg,
    transparent 360deg
  );
  animation: holoSpin 8s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

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

@keyframes holoSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== BACKGROUND ANIMATED GRADIENT ===== */

.animated-gradient-bg {
  background: linear-gradient(-45deg, #f5fff6, #e8f8e9, #f0fff1, #eafbea);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

[data-theme="dark"] .animated-gradient-bg {
  background: linear-gradient(-45deg, #0d1a0d, #0a140a, #0d1a10, #0f1f0f);
  background-size: 400% 400%;
}

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

/* ===== ICON SPIN ON HOVER ===== */

.card:hover .card-icon {
  animation: iconBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconBounce {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.2) rotate(-8deg); }
  70%  { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1.1) rotate(-5deg); }
}

/* ===== TYPEWRITER LOOP ===== */

.typewriter-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--green);
  animation: typewriterCursor 0.8s step-end infinite;
}

@keyframes typewriterCursor {
  0%,100% { border-color: var(--green); }
  50%      { border-color: transparent; }
}

/* ===== PROGRESS BAR ANIMATED PULSE ===== */

.hmcard-progress-fill {
  position: relative;
  overflow: hidden;
}

.hmcard-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: progressSheen 2s ease-in-out infinite 2s;
}

@keyframes progressSheen {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ===== NAVBAR ENHANCEMENT ===== */

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.navbar.scrolled::after { opacity: 0.5; }

/* ===== SOCIAL BUTTONS SPIN ===== */

.social-btn:hover {
  animation: socialSpin 0.4s ease;
}

@keyframes socialSpin {
  from { transform: translateY(-3px) rotate(-10deg); }
  to   { transform: translateY(-3px) rotate(0deg); }
}

/* ===== PRICING CARD HOVER RAYS ===== */

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(67,176,72,0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: featuredGlow 3s ease-in-out infinite;
}

@keyframes featuredGlow {
  0%,100% { opacity: 0.8; }
  50%      { opacity: 1; }
}

/* ===== MARQUEE ITEM HOVER GLOW ===== */

.marquee-item {
  position: relative;
  padding: 6px 12px;
  border-radius: 100px;
  transition: all 0.2s ease;
  cursor: default;
}

.marquee-item:hover {
  background: var(--badge-bg);
  color: var(--green);
  transform: scale(1.05);
}

/* ===== STEP CARD ENHANCED ===== */

.step-card {
  padding: 16px 8px;
  border-radius: 16px;
  transition: background 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

/* ===== FOOTER BRAND ICON GLOW ===== */

.footer .nav-logo-icon {
  animation: footerLogoGlow 4s ease-in-out infinite;
}

@keyframes footerLogoGlow {
  0%,100% { box-shadow: 0 4px 15px var(--green-glow); }
  50%      { box-shadow: 0 4px 25px rgba(67,176,72,0.6); }
}

/* ===== SECTION HEADER UNDERLINE ANIMATION ===== */

.section-title {
  position: relative;
  display: inline-block;
}

/* ===== STAT ITEM HOVER ===== */

.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

/* ===== HERO STATS BAR SEPARATOR ===== */

.hero-stats > div {
  position: relative;
  padding-left: 20px;
}

.hero-stats > div:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: var(--border);
}

/* ===== BACK TO TOP BUTTON ===== */

.back-to-top {
  position: fixed;
  bottom: 100px; right: 32px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 20px var(--green-glow);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(67,176,72,0.5);
}

/* ===== CANVAS POINTER EVENTS ===== */

#particles-canvas {
  opacity: 0.35;
}

[data-theme="dark"] #particles-canvas {
  opacity: 0.55;
}

/* ===== HERO CARD ENTRY ANIMATION ===== */

.hero-mockup-card.reveal {
  transform: translateX(40px);
}

.hero-mockup-card.reveal.visible {
  transform: translateX(0);
}

/* ===== ANIMATED BORDER ON SECTION BADGE ===== */

.section-badge {
  position: relative;
  overflow: hidden;
}

.section-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(67,176,72,0.2), transparent);
  animation: badgeSheen 3s ease-in-out infinite;
}

@keyframes badgeSheen {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ===== DARK MODE GLOW TEXT ===== */

[data-theme="dark"] .hero-title .highlight {
  filter: drop-shadow(0 0 20px rgba(67,176,72,0.4));
}

[data-theme="dark"] .stat-number {
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
}
