/* NexusLink — Global Styles (Light Theme) */

/* Base */
* { font-family: 'Inter', system-ui, sans-serif; }
html { scroll-behavior: smooth; }

/* ============ Light Cards ============ */
.glass {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.glass-light {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.glass-dark {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ============ Light Background ============ */
.aurora-bg {
  background: #ffffff;
  position: relative;
  overflow-x: hidden;
}
.aurora-bg::before {
  display: none;
}
@keyframes auroraShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(1deg); }
  66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* ============ Text Effects ============ */
.gradient-text {
  background: linear-gradient(135deg, #7c3aed, #3b82f6, #7c3aed);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-x 4s ease infinite;
}

/* ============ Subtle Shadow (replaces Neon Glow) ============ */
.neon-glow {
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08),
              0 1px 4px rgba(0,0,0,0.06);
}
.neon-glow:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12),
              0 2px 8px rgba(0,0,0,0.08);
}

/* ============ Link Card Hover ============ */
.link-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.link-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.04), transparent);
  transition: left 0.6s;
}
.link-card:hover::before { left: 100%; }
.link-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.35); }

/* ============ Button Shine ============ */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transition: all 0.6s;
  transform: rotate(45deg) translateX(-100%);
}
.btn-shine:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* ============ Floating Particles ============ */
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 50%;
  animation: floatParticle var(--duration, 10s) linear infinite;
  opacity: var(--opacity, 0.3);
}
@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: var(--opacity, 0.3); }
  90% { opacity: var(--opacity, 0.3); }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ============ Phone Mockup ============ */
.phone-mockup {
  background: #ffffff;
  border-radius: 40px;
  border: 4px solid #e5e7eb;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12),
    0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 28px;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}
.phone-mockup .phone-content {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.phone-mockup .phone-content::-webkit-scrollbar { display: none; }

/* ============ Reveal Animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Tooltip ============ */
.tooltip-trigger:hover .tooltip-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tooltip-content {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* ============ Count-up Number ============ */
.count-up { display: inline-block; }

/* ============ Nav Blur on Scroll ============ */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ============ Feature Card Gradient Border ============ */
.gradient-border {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(59, 130, 246, 0.4), rgba(124, 58, 237, 0.4));
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gradient-border:hover::before { opacity: 1; }
.gradient-border:hover {
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1);
}

/* ============ Marquee ============ */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 30s linear infinite; }

/* ============ Pricing ============ */
.pricing-popular {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(59, 130, 246, 0.03));
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ============ Toast Notifications ============ */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.7s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
}
.toast-success { background: rgba(16, 185, 129, 0.95); }
.toast-error { background: rgba(239, 68, 68, 0.95); }
.toast-info { background: rgba(124, 58, 237, 0.95); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* ============ Modal ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}
.modal-content {
  animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============ Dashboard Tab Content ============ */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ Ripple Effect ============ */
@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* ============ Page Loading ============ */
.page-loading {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
.page-loading.loaded {
  opacity: 0;
  pointer-events: none;
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(124, 58, 237, 0.15);
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ Toggle Knob (for dynamic elements) ============ */
.toggle-knob::after {
  content: '';
}

/* ============ Focus & Accessibility ============ */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ Better Text Selection ============ */
::selection {
  background: rgba(124, 58, 237, 0.2);
  color: #1f2937;
}

/* ============ Card Hover Lift ============ */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ============ Gradient Border Animation ============ */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.animated-border {
  --angle: 0deg;
  border-image: conic-gradient(from var(--angle), #7c3aed, #3b82f6, #ec4899, #7c3aed) 1;
  animation: rotateBorder 4s linear infinite;
}
@keyframes rotateBorder {
  to { --angle: 360deg; }
}

/* ============ Subtle Pulse for CTAs ============ */
.pulse-cta {
  animation: pulseCta 3s ease-in-out infinite;
}
@keyframes pulseCta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
}

/* ============ Skeleton Loading ============ */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmerLoad 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes shimmerLoad {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============ Smooth Page Transitions ============ */
body {
  animation: pageEnter 0.4s ease-out;
}
@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}
