/* Custom cursor styles */
.custom-cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 153, 0, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor.cursor-hover {
  width: 50px;
  height: 50px;
  border-color: rgba(0, 102, 255, 0.5);
  mix-blend-mode: normal;
}

.cursor-dot.cursor-hover {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
}

/* WebGL background container */
#webgl-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Data visualization styles */
.data-visualization {
  width: 100%;
  height: 200px;
  position: relative;
  margin: var(--space-xl) 0;
}

.data-point {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  transform: translate(-50%, -50%);
  transition: all 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.data-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  transform-origin: left;
  opacity: 0.5;
}

/* Text scramble effect */
.text-scramble {
  display: inline-block;
  position: relative;
}

/* Animated highlight effect */
.highlight-text {
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: rgba(255, 153, 0, 0.2);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.highlight-text.visible::after {
  transform: scaleX(1);
}

/* Animated background gradient */
.gradient-animation {
  background: linear-gradient(-45deg, #ff9900, #ff5500, #0066ff, #00ccff);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

/* Interactive cards with hover states */
.interactive-card {
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.interactive-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Animated icons */
.animated-icon {
  transition: transform 0.3s;
}

.animated-icon:hover {
  transform: scale(1.2) rotate(10deg);
}

/* Responsive media queries for modern effects */
@media (max-width: 768px) {
  .custom-cursor,
  .cursor-dot {
    display: none;
  }
  
  #webgl-background canvas {
    opacity: 0.5;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .custom-cursor,
  .cursor-dot {
    transition: none;
  }
  
  .gradient-bg,
  .gradient-animation {
    animation: none;
    background-position: center;
  }
  
  .float-animation,
  .animated-border {
    animation: none;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .neon-text {
    text-shadow: none !important;
  }
}

/* Light mode adjustments */
@media (prefers-color-scheme: light) {
  .neon-text {
    text-shadow: none;
    color: var(--text-primary);
  }
  
  .custom-cursor {
    border-color: rgba(0, 0, 0, 0.3);
  }
  
  .cursor-dot {
    background-color: var(--accent-primary);
  }
}