/* ScaleUp Global — Custom Styles */

:root {
  /* Default: Dark Theme */
  --bg-color: #0a0a0a;
  --surface-color: #111111;
  --surface-200: #1a1a1a;
  --surface-300: #222222;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa; /* text-zinc-400 */
  --text-muted: #71717a; /* text-zinc-500 */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.2);
  --brand-color: #00e676;
  --brand-hover: #00c853;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(10, 10, 10, 0.95);
  --footer-bg: #111111;
  --grid-color: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
  --bg-color: #fafafa;
  --surface-color: #ffffff;
  --surface-200: #f4f4f5;
  --surface-300: #e4e4e7;
  --text-primary: #18181b; /* text-zinc-900 */
  --text-secondary: #52525b; /* text-zinc-600 */
  --text-muted: #71717a; /* text-zinc-500 */
  --border-color: rgba(0, 0, 0, 0.1);
  --border-light: rgba(0, 0, 0, 0.15);
  --brand-color: #059669; /* deeper green for better light contrast */
  --brand-hover: #047857;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --nav-bg: rgba(250, 250, 250, 0.95);
  --footer-bg: #f4f4f5;
  --grid-color: rgba(0, 0, 0, 0.03);
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--surface-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-color); }

/* ══════════════════════════════════════════════════════════════════════
   MODERN ANIMATIONS
   ══════════════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 230, 118, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 230, 118, 0.6); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes progressFill {
  from { width: 0%; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* New modern animations */
@keyframes orbit-fast {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}
@keyframes orbit-fast-reverse {
  from { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
  to { transform: rotate(0deg) translateX(90px) rotate(0deg); }
}
@keyframes orbit-fast-medium {
  from { transform: rotate(180deg) translateX(150px) rotate(-180deg); }
  to { transform: rotate(540deg) translateX(150px) rotate(-540deg); }
}
@keyframes spin-fast {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes glow-pulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.4),
                0 0 40px rgba(0, 230, 118, 0.2),
                0 0 60px rgba(0, 230, 118, 0.1);
  }
  50% { 
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.6),
                0 0 60px rgba(0, 230, 118, 0.4),
                0 0 90px rgba(0, 230, 118, 0.2);
  }
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes text-shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}
@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes slide-up-reveal {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scale-up {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
@keyframes blob-move {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
@keyframes ripple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  50% { border-color: transparent; }
}
@keyframes particle-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
.animate-slide-left { animation: slideInLeft 0.6s ease-out forwards; }
.animate-slide-right { animation: slideInRight 0.6s ease-out forwards; }
.animate-pulse-glow { animation: pulse-glow 2s infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-scale-in { animation: scaleIn 0.4s ease-out forwards; }
.animate-orbit-fast { animation: orbit-fast 3s linear infinite; }
.animate-orbit-fast-reverse { animation: orbit-fast-reverse 2.5s linear infinite; }
.animate-orbit-fast-medium { animation: orbit-fast-medium 4s linear infinite; }
.animate-spin-fast { animation: spin-fast 2s linear infinite; }
.animate-spin-reverse { animation: spin-reverse 3s linear infinite; }
.animate-glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }
.animate-gradient-shift { animation: gradient-shift 3s ease infinite; background-size: 200% 200%; }
.animate-morph { animation: morph 8s ease-in-out infinite; }
.animate-blob { animation: blob-move 7s ease-in-out infinite; }
.animate-bounce-subtle { animation: bounce-subtle 2s ease-in-out infinite; }

/* Intersection observer animations */
.reveal { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
}
.reveal.active { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Parallax reveal classes */
.parallax-reveal {
  opacity: 0;
  transform: translateY(100px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.parallax-reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.parallax-section {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20%;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #00e676, #10b981, #00e676);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s linear infinite;
}

/* Shimmer text effect */
.shimmer-text {
  background: linear-gradient(90deg, var(--text-primary) 0%, var(--brand-color) 50%, var(--text-primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 3s linear infinite;
}

/* Glass effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* Enhanced glass with gradient */
.glass-gradient {
  background: linear-gradient(135deg, var(--glass-bg), rgba(0, 230, 118, 0.05));
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}

/* Card hover */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 230, 118, 0.15);
  border-color: rgba(0, 230, 118, 0.4);
}

/* Magnetic hover effect */
.magnetic-hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button primary */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-color), var(--brand-hover));
  color: #ffffff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-hover), var(--brand-color));
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.4);
}

/* Button secondary */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}
.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.btn-secondary:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.btn-secondary:hover {
  border-color: var(--brand-color);
  color: #ffffff;
  transform: translateY(-3px);
}

/* CTA chip styles - Modern look */
.cta-chip {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--brand-color);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-chip:hover {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.25), rgba(16, 185, 129, 0.2));
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 230, 118, 0.2);
}

/* Sticky CTA button */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  animation: pulse-glow 2s infinite;
}

/* Navigation */
.nav-link {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-color);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand-color);
}

/* Step indicator line */
.step-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-color), #10b981);
  z-index: 0;
}

/* Grid pattern background */
.bg-grid {
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Radial glow */
.radial-glow {
  background: radial-gradient(ellipse at center, rgba(0, 230, 118, 0.08) 0%, transparent 70%);
}

/* Hero overlay */
.hero-overlay {
  background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface-color) 50%, var(--surface-200) 100%);
}

/* Animated gradient background */
.animated-gradient-bg {
  background: linear-gradient(-45deg, #0a0a0a, #111111, rgba(0, 230, 118, 0.1), #1a1a1a);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

[data-theme="light"] .animated-gradient-bg {
  background: linear-gradient(-45deg, #fafafa, #ffffff, rgba(5, 150, 105, 0.1), #f4f4f5);
  background-size: 400% 400%;
}

/* Floating particles container */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--brand-color);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 10s linear infinite;
}

/* Interactive card */
.interactive-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.interactive-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, rgba(0, 230, 118, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}
.interactive-card:hover::before {
  opacity: 1;
}
.interactive-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-10px);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(0, 230, 118, 0.1);
}

/* Orbit container for problem section */
.orbit-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-element {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Toast notification */
.toast {
  animation: slideInRight 0.4s ease-out, fadeIn 0.4s ease-out;
}

/* Light/dark mode styles */
[data-theme="light"] .light-hidden {
  display: none !important;
}
[data-theme="dark"] .dark-hidden {
  display: none !important;
}
[data-theme="light"] .light-show {
  display: block !important;
}
[data-theme="dark"] .dark-show {
  display: block !important;
}

/* ── Light Mode Text Color Overrides ──────────────────────────────────── */

[data-theme="light"] .text-white {
  color: var(--text-primary) !important;
}
[data-theme="light"] .text-zinc-100,
[data-theme="light"] .text-zinc-200,
[data-theme="light"] .text-zinc-300 {
  color: var(--text-secondary) !important;
}
[data-theme="light"] .text-zinc-400 {
  color: var(--text-muted) !important;
}

/* Light mode glass cards need dark text */
[data-theme="light"] .glass {
  color: var(--text-primary);
}
[data-theme="light"] .glass h1,
[data-theme="light"] .glass h2,
[data-theme="light"] .glass h3,
[data-theme="light"] .glass h4,
[data-theme="light"] .glass p,
[data-theme="light"] .glass span,
[data-theme="light"] .glass label {
  color: inherit;
}

/* Light mode table/surface text */
[data-theme="light"] .bg-surface-200,
[data-theme="light"] .bg-surface-100 {
  color: var(--text-primary);
}

/* Light mode nav links */
[data-theme="light"] .nav-link {
  color: var(--text-secondary);
}
[data-theme="light"] .nav-link:hover {
  color: var(--brand-color);
}

/* Ensure body text always has correct contrast in both themes */
[data-theme="light"] body {
  color: var(--text-primary);
}

/* Assessment and form inputs in light mode */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  color: var(--text-primary) !important;
  background-color: var(--surface-200) !important;
  border-color: rgba(0,0,0,0.15) !important;
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: var(--text-muted) !important;
}

/* Dashboard sidebar in light mode */
[data-theme="light"] #dashboard-sidebar {
  background-color: var(--surface-100);
  border-color: var(--border-color);
}

/* Interactive intro section */
.intro-visual-container {
  position: relative;
  min-height: 500px;
}
.intro-floating-card {
  position: absolute;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.intro-floating-card:hover {
  z-index: 10;
  transform: scale(1.1) !important;
}

/* Tilt effect on mouse move */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}

/* Glowing border animation */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--brand-color), transparent, var(--brand-color));
  border-radius: inherit;
  z-index: -1;
  animation: spin-fast 4s linear infinite;
  opacity: 0.5;
}

/* Counter animation */
.counter-number {
  font-variant-numeric: tabular-nums;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .parallax-reveal { opacity: 1; transform: none; }
}

