/* Modern Web Effects and Animations */

/* Glassmorphism effect for cards and navigation */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--shadow-color);
}

/* Apply glassmorphism to specific elements */
.main-nav,
.bitcoin-card,
.project-card,
.post,
.terminal,
.social-link {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--shadow-color);
}

/* Remove all neon effects */
.neon-text, 
h1, h2, .btn-primary, 
.section-line,
.neon-border {
  text-shadow: none !important;
  box-shadow: none !important;
}

/* Gradient animations */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-bg {
  background: linear-gradient(-45deg, var(--accent-primary), var(--accent-secondary));
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

/* Clean borders instead of glowing ones */
.animated-border {
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

/* Apply clean hover effects to cards */
.bitcoin-card:hover,
.project-card:hover,
.post:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

/* Floating animation for cards */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Apply floating animation to specific elements */
.code-snippet {
  animation: float 6s ease-in-out infinite;
}

/* Text reveal animation */
@keyframes text-reveal {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.reveal-text {
  animation: text-reveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Staggered reveal for multiple elements */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.stagger-reveal > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-reveal > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-reveal > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-reveal > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-reveal > *:nth-child(5) { transition-delay: 0.5s; }

.stagger-reveal.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Modern scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 10px;
}

/* Tilt effect with vanilla JS */
.tilt-effect {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.1s;
}

/* Minimal grid background */
.cyber-grid {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
}

/* Data visualization styling */
.data-bar {
  height: 4px;
  background: var(--accent-primary);
  border-radius: 2px;
  margin-bottom: 4px;
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* Modern tooltip */
.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  animation: fade-in 0.3s forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

/* Animated progress bars */
.progress-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-primary);
  animation: progress-animation 2s ease-out forwards;
}

@keyframes progress-animation {
  to { width: var(--progress, 100%); }
}

/* Modern button hover effect */
.btn-futuristic {
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.btn-futuristic::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: all 0.6s;
}

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

/* Particle connection lines effect (to be used with JS) */
.particle-connection {
  position: absolute;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  height: 1px;
  transform-origin: left;
  opacity: 0.3;
  z-index: -1;
}

/* Responsive design for modern effects */
@media (max-width: 768px) {
  .glassmorphism,
  .main-nav,
  .bitcoin-card,
  .project-card,
  .post,
  .terminal,
  .social-link {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}