/* =============================================
   LuminaSpark — style.css
   ============================================= */

/* === Base === */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: border-box; }

/* === Scroll Progress Bar === */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #adc7ff, #e9c400, #adc7ff);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  z-index: 9999;
  transition: width 0.1s ease;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Mouse Glow === */
.mouse-glow {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(173, 199, 255, 0.07) 0%, rgba(4, 19, 41, 0) 70%);
  position: fixed;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.08s linear, top 0.08s linear;
}

/* === Scroll Spotlight === */
#scrollSpotlight {
  position: fixed;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(173, 199, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: top 0.6s ease-out;
  left: 50%;
}

/* === Glass Card === */
.glass-card {
  background: rgba(17, 32, 54, 0.4);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(173, 199, 255, 0.1);
}

/* === Text Glow === */
.text-glow {
  text-shadow: 0 0 30px rgba(173, 199, 255, 0.4);
}

/* === Spark Hover === */
.spark-hover {
  transition: all 0.3s ease;
}
.spark-hover:hover {
  box-shadow: 0 0 30px rgba(173, 199, 255, 0.6), 0 0 60px rgba(233, 196, 0, 0.2);
  transform: translateY(-2px);
}

/* === Floating Particle (Hero) === */
.floating-particle {
  position: absolute;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  from { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  to   { transform: translateY(-120px) scale(0); opacity: 0; }
}

/* === Spark Burst Particle === */
.spark-burst-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  animation: spark-burst linear forwards;
}
@keyframes spark-burst {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* === Section Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.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; }

/* === Nav active link === */
.nav-link {
  color: #c1c7ce;
  transition: color 0.3s;
}
.nav-link:hover { color: #fff; }
.nav-link.active {
  color: #adc7ff;
  border-bottom: 2px solid #adc7ff;
  padding-bottom: 4px;
}

/* === Decorative Glow Orb === */
.glow-orb {
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  position: absolute;
}

/* === Don't List === */
.dont-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.dont-item::before {
  content: '×';
  font-size: 1.25rem;
  font-weight: 900;
  color: #ff6b6b;
  line-height: 1.6;
  flex-shrink: 0;
}

/* === Strength Cards === */
.strength-card {
  background: rgba(17, 32, 54, 0.4);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(173, 199, 255, 0.08);
  transition: all 0.4s ease;
}
.strength-card:hover {
  border-color: rgba(173, 199, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(173, 199, 255, 0.08);
}
.strength-number {
  font-family: 'Manrope', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(173, 199, 255, 0.06);
  line-height: 1;
  position: absolute;
  right: 1.5rem;
  top: 1rem;
}

/* === Extension Cards === */
.ext-card {
  background: rgba(17, 32, 54, 0.5);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(173, 199, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.ext-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(173,199,255,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* links inside must remain clickable */
}
.ext-card:hover::before { opacity: 1; }
.ext-card:hover {
  border-color: rgba(173, 199, 255, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(173, 199, 255, 0.1);
}

/* === Terminal Aesthetic (Claude Code section) === */
.terminal-window {
  background: rgba(1, 14, 36, 0.9);
  border: 1px solid rgba(173, 199, 255, 0.15);
  border-radius: 0.75rem;
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}
.terminal-header {
  background: rgba(17, 32, 54, 0.8);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(173, 199, 255, 0.1);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-body {
  padding: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.8;
}
.terminal-prompt { color: #adc7ff; }
.terminal-cmd    { color: #e9c400; }
.terminal-out    { color: #8a9bbf; }
.terminal-success { color: #4ade80; }
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: #adc7ff;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* === Process Step (upgraded) === */
.process-step {
  position: relative;
}
.process-step .step-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: rgba(17, 32, 54, 0.8);
  border: 1px solid rgba(173, 199, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  transition: all 0.5s ease;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.process-step:hover .step-circle {
  background: linear-gradient(135deg, #adc7ff, #4a8eff);
  color: #002e68;
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(173, 199, 255, 0.4);
}
.process-step.highlight .step-circle {
  border-color: rgba(233, 196, 0, 0.5);
  box-shadow: 0 0 20px rgba(233, 196, 0, 0.15);
}

/* === MarketingOps list === */
.ops-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #c1c6d7;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}
.ops-item::before {
  content: '—';
  color: #adc7ff;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* === Hero image overlay === */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(4, 19, 41, 0.15) 0%,
    rgba(4, 19, 41, 0.55) 50%,
    rgba(4, 19, 41, 1) 100%
  );
}

/* =============================================
   Mobile Menu
   ============================================= */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(4, 19, 41, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-overlay.open {
  transform: translateX(0);
}
.mobile-nav-link {
  font-size: 1.75rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: #c1c6d7;
  display: block;
  padding: 0.6rem 2rem;
  text-align: center;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
  width: 100%;
}
.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: #adc7ff;
}

/* =============================================
   Contact Modal
   ============================================= */

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 19, 41, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.contact-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.contact-modal-content {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(173, 199, 255, 0.15);
}
.contact-modal-overlay.open .contact-modal-content {
  transform: translateY(0) scale(1);
}
.contact-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(173, 199, 255, 0.08);
  border: 1px solid rgba(173, 199, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c1c6d7;
  cursor: pointer;
  transition: all 0.2s ease;
}
.contact-modal-close:hover {
  background: rgba(173, 199, 255, 0.15);
  color: #fff;
}

/* Contact Form Inputs */
.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #adc7ff;
  font-family: 'Manrope', sans-serif;
}
.contact-input {
  display: block;
  width: 100%;
  background: rgba(17, 32, 54, 0.6);
  border: 1px solid rgba(173, 199, 255, 0.15);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: #d6e3ff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Override browser autofill background (Chrome/Safari) */
.contact-input:-webkit-autofill,
.contact-input:-webkit-autofill:hover,
.contact-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(17, 32, 54, 0.9) inset;
  -webkit-text-fill-color: #d6e3ff;
  caret-color: #d6e3ff;
  border-color: rgba(173, 199, 255, 0.3);
}
.contact-input::placeholder { color: rgba(193, 198, 215, 0.35); }
.contact-input:focus {
  border-color: rgba(173, 199, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(173, 199, 255, 0.08);
}

/* Alert states */
.contact-alert {
  display: none;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  margin-bottom: 1.25rem;
}
.contact-alert.show { display: block; }
.contact-alert--error {
  background: rgba(147, 0, 10, 0.3);
  border: 1px solid rgba(255, 180, 171, 0.3);
  color: #ffb4ab;
}
.contact-alert--success {
  background: rgba(0, 100, 50, 0.3);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

/* === Responsive helpers === */
@media (max-width: 768px) {
  .terminal-window { font-size: 0.75rem; }
  .contact-modal-content { padding: 2rem 1.5rem; }
}
