/* Enhanced Visual Styles */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FFD700, #ffffff);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FF8800, #ffffff);
}

/* Glassmorphism Effects */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 102, 0, 0.2);
}

/* Interactive Elements */
.feature-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.1), transparent);
  transition: left 0.6s;
}

.feature-card:hover::before {
  left: 100%;
}

/* Floating Shapes */
.floating-shape {
  filter: blur(1px);
  animation-duration: 6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Particle System */
.particle {
  position: absolute;
  background: #FFD700;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  animation: particle-float 10s infinite linear;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* 3D Text Effects */
.text-3d {
  text-shadow: 
    1px 1px 0 #FFD700,
    2px 2px 0 #FFD700,
    3px 3px 0 #FFD700,
    4px 4px 0 rgba(255, 102, 0, 0.8),
    5px 5px 0 rgba(255, 102, 0, 0.6),
    6px 6px 0 rgba(255, 102, 0, 0.4),
    7px 7px 0 rgba(255, 102, 0, 0.2);
}

/* Holographic Effects */
.holographic {
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(0, 0, 0, 0.1) 50%, 
    transparent 70%);
  background-size: 250% 250%;
  animation: holographic-shift 3s ease-in-out infinite;
}

@keyframes holographic-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Interactive Buttons */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
  transition: left 0.6s;
}

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

.btn-enhanced:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 10px 25px rgba(255, 102, 0, 0.3);
}

/* Additional Enhanced Visual Effects */

/* Gradient Animations */
@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes gradient-y {
  0%, 100% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
}

@keyframes gradient-xy {
  0%, 100% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

/* Animated Gradients */
.animate-gradient-x {
  background-size: 400% 400%;
  animation: gradient-x 15s ease infinite;
}

.animate-gradient-y {
  background-size: 400% 400%;
  animation: gradient-y 15s ease infinite;
}

.animate-gradient-xy {
  background-size: 400% 400%;
  animation: gradient-xy 15s ease infinite;
}

/* Text Effects */
.text-shimmer {
  background: linear-gradient(90deg, #ffffff 0%, #FFD700 50%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Card Hover Effects */
.card-hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(255, 102, 0, 0.15);
}

/* Neon Border Animation */
.neon-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg, #000000, #111111) padding-box,
              linear-gradient(45deg, #FFD700, #ffffff, #FFD700) border-box;
}

.neon-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #FFD700, #ffffff, #FFD700, #FFD700);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.neon-border:hover::before {
  opacity: 1;
  animation: neon-pulse 1.5s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}



/* Morphing Shapes */
.morph-circle-square {
  border-radius: 50%;
  transition: border-radius 0.5s ease;
}

.morph-circle-square:hover {
  border-radius: 20%;
}

/* Interactive Glow Effects */
.interactive-glow {
  position: relative;
  overflow: hidden;
}

.interactive-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  pointer-events: none;
}

.interactive-glow:hover::before {
  width: 300px;
  height: 300px;
}

/* Perspective Cards */
.perspective-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.perspective-card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.perspective-card:hover .perspective-card-inner {
  transform: rotateY(10deg) rotateX(5deg);
}

/* Cyberpunk Grid */
.cyber-grid {
  background-image: 
    linear-gradient(rgba(255, 102, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 102, 0, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: cyber-grid-move 20s linear infinite;
}

@keyframes cyber-grid-move {
  0% { background-position: 0 0; }
  100% { background-position: 20px 20px; }
}

/* Quantum Dots */
.quantum-dots {
  position: relative;
}

.quantum-dots::before,
.quantum-dots::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #FFD700;
  border-radius: 50%;
  opacity: 0.7;
}

.quantum-dots::before {
  top: 10%;
  left: 10%;
  animation: quantum-float 3s ease-in-out infinite;
}

.quantum-dots::after {
  bottom: 10%;
  right: 10%;
  animation: quantum-float 3s ease-in-out infinite reverse;
}

@keyframes quantum-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(10px, -5px) scale(1.2); }
  50% { transform: translate(-5px, 10px) scale(0.8); }
  75% { transform: translate(-10px, -10px) scale(1.1); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .text-3d {
    text-shadow: 
      1px 1px 0 #FFD700,
      2px 2px 0 #FFD700,
      3px 3px 0 rgba(255, 102, 0, 0.8);
  }
  
  .feature-card {
    transform: none;
    perspective: none;
    margin-bottom: 1.5rem;
  }
  
  .card-hover-lift:hover {
    transform: translateY(-4px);
  }
  
  .perspective-card:hover .perspective-card-inner {
    transform: rotateY(5deg) rotateX(2deg);
  }
  
  .interactive-glow:hover::before {
    width: 200px;
    height: 200px;
  }
  
  /* Mobile-specific improvements */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  h1 {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 2rem !important;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.5rem !important;
    line-height: 1.4;
  }
  
  /* Touch targets */
  button, a, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improved spacing */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Better form elements */
  input, textarea, select {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.75rem;
  }
  
  /* Improved button styling */
  .btn, button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .feature-card {
    padding: 1rem !important;
  }
}

/* Dark Theme Enhancements */
.dark-gradient {
  background: radial-gradient(circle at center, 
    rgba(255, 102, 0, 0.1) 0%, 
    rgba(0, 0, 0, 0.9) 70%, 
    #000000 100%);
}

/* Spline Integration Styles */
spline-viewer {
  border-radius: 12px;
  filter: brightness(0.8) contrast(1.2);
}

/* Three.js Canvas Enhancements */
#bg-canvas {
  filter: blur(0.5px);
  opacity: 0.8;
}

/* Navigation Enhancements */
nav {
  transition: all 0.3s ease;
}

nav:hover {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

/* Form Enhancements */
.form-enhanced input,
.form-enhanced textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 102, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.form-enhanced input:focus,
.form-enhanced textarea:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .glass,
  .glass-dark {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #FFD700;
  }
  
  .neon-border {
    border: 3px solid #FFD700;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
