:root {
  /* Core Colors */
  --bg-color: #050505;
  --bg-color-alt: #0a0a0e;
  --text-color: #f9fafb;
  --text-color-muted: #9ca3af;

  /* Primary Neon Colors */
  --neon-cyan: #00f0ff;
  --neon-violet: #8a2be2;
  --neon-emerald: #00ffa3;
  --neon-pink: #ff007f;

  /* Background gradients */
  --gradient-bg: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
  --glow-bg: radial-gradient(circle at center, rgba(138, 43, 226, 0.15) 0%, rgba(0, 0, 0, 0) 70%);

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 8rem;

  /* Fonts */
  --font-display: 'Space Grotesk', 'Clash Display', 'Syne', sans-serif;
  --font-body: 'Geist Sans', 'Inter', 'Manrope', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.7, 0, 0.84, 0);

  /* New Theme Variables */
  --primary-color: #FFD700;
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Dynamic Radial Glow for Bento Cards */
/* These properties are updated via JS */
.bento-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  /* border thickness */
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.1),
      transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  pointer-events: none;
  z-index: 10;
}

.bento-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.04),
      transparent 40%);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.bento-card:hover::after {
  opacity: 1;
}

/* Text Gradients */
.text-gradient-primary {
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, rgba(0, 240, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-violet {
  background: linear-gradient(135deg, var(--neon-violet) 0%, rgba(138, 43, 226, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom Buttons */
.btn-primary {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left var(--transition-normal);
  z-index: -1;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary-glow {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-primary-glow:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.1);
}

/* Wire/Line animations for logical flow section */
.logical-wire {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
  position: absolute;
  /* Use JS or keyframes to animate height/background position to simulate flowing data */
}

/* Spline container */
.spline-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  /* Let clicks pass through if it's purely background */
}

.spline-container.interactive {
  pointer-events: auto;
}

/* Typography animations */
.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.reveal-text .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

/* Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 3rem;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
  filter: grayscale(100%) brightness(200%);
}

.marquee-item:hover {
  opacity: 1;
}

/* Utility for section spacing */
.section-padding {
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

/* Animations */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-normal), transform 0.8s var(--transition-normal);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Menu Classes */
#mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

/* Solutions Dropdown Active State */
#solutions-dropdown.active-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Theme Toggle Styles */
.light-mode {
  --bg-color: #f9fafb;
  --bg-color-alt: #f3f4f6;
  --text-color: #111827;
  --text-color-muted: #4b5563;
}

.light-mode .glass-panel {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .text-gradient-primary {
  background: linear-gradient(135deg, #111827 0%, #4b5563 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
/* Logo Enhancements */
.logo-container {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  background: #000;
  /* Pure black to perfectly match logo background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.logo-container:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(123, 17, 19, 0.2);
}

.logo {
  width: 75% !important;
  height: auto !important;
  max-width: none !important;
  filter: brightness(1.2);
  mix-blend-mode: screen;
  /* Blends the black background away */
  transition: transform 0.3s ease;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .logo-container {
    width: 60px !important;
    height: 60px !important;
  }
}
