/* Theme-specific Overrides and Dark Mode Control */

body {
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow effects under dark vs light theme */
.glowing-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.4;
  animation: pulseGlow 8s ease-in-out infinite;
}

body.light-theme .glowing-orb {
  opacity: 0.15;
  filter: blur(100px);
}

.orb-purple {
  background: var(--accent-purple);
  top: 10%;
  left: 5%;
}

.orb-blue {
  background: var(--accent-blue);
  bottom: 20%;
  right: 5%;
  animation-delay: -4s;
}

/* Specific component overrides for light theme */
body.light-theme .card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .card:hover {
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08), 0 0 15px rgba(6, 182, 212, 0.05);
}

body.light-theme .badge-grok {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

/* Glassmorphism adjustment for light theme */
body.light-theme .hero-section {
  background: radial-gradient(100% 100% at 50% 0%, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Button overrides for light theme */
body.light-theme .btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(124, 58, 237, 0.2);
}

body.light-theme .btn-secondary:hover {
  background: rgba(124, 58, 237, 0.05);
  border-color: var(--accent-purple);
  box-shadow: var(--primary-glow);
}

/* Form controls in light theme */
body.light-theme .input-field {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.light-theme .input-field:focus {
  border-color: var(--accent-purple);
  box-shadow: var(--primary-glow);
}

/* Highlight elements */
.glowing-text {
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

body.light-theme .glowing-text {
  text-shadow: none;
}
