/* Nexus Software Studios - Modern Styling & Animations */
:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #06b6d4;
  --accent: #10b981;
  --bg-dark: #0a0e17;
  --card-dark: rgba(17, 24, 39, 0.7);
  --border-dark: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
}

/* Base resets & smooth scrolling */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  background-color: #080c14;
  color: #f3f4f6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light mode overrides */
body.light-theme {
  background-color: #f8fafc;
  color: #0f172a;
}

body.light-theme .glass-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

body.light-theme .nav-blur {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(226, 232, 240, 0.8);
}

body.light-theme .text-white-override {
  color: #0f172a !important;
}

body.light-theme .text-slate-300,
body.light-theme .text-slate-400 {
  color: #475569 !important;
}

body.light-theme .bg-slate-900,
body.light-theme .bg-slate-950 {
  background-color: #ffffff !important;
}

body.light-theme .bg-slate-800\/50 {
  background-color: rgba(241, 245, 249, 0.8) !important;
}

body.light-theme .border-slate-800 {
  border-color: #e2e8f0 !important;
}

/* Glassmorphism Classes */
.glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 40px -10px rgba(99, 102, 241, 0.2);
  transform: translateY(-3px);
}

.nav-blur {
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Radiant glow effects */
.radial-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: opacity 0.5s ease;
}

.glow-purple {
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
}

.glow-cyan {
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
}

.glow-emerald {
  background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0) 70%);
}

/* Text Gradients */
.gradient-text-primary {
  background: linear-gradient(135deg, #ffffff 10%, #818cf8 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .gradient-text-primary {
  background: linear-gradient(135deg, #0f172a 10%, #4338ca 60%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-accent {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shimmer Button Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.75s ease-in-out;
}

.btn-shimmer:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080c14;
}
body.light-theme ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #312e81;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4f46e5;
}

/* Pulsing Badge Dot */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}
.pulse-dot {
  animation: pulse-subtle 2s infinite ease-in-out;
}

/* Custom Checkbox Cards in Estimator */
.estimator-option {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.estimator-option.selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

body.light-theme .estimator-option.selected {
  border-color: #4f46e5;
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

/* Animated Grid Background */
.cyber-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

body.light-theme .cyber-grid {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Tech Floating Icon Animation */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
.float-animation {
  animation: float-slow 4s ease-in-out infinite;
}

/* Toast container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
