/* Crystal Ocean Theme - Custom Animations & Overrides */

/* Glassmorphism Effect */
.glass-card {
  background: rgba(20, 184, 166, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Floating Bubbles Animation */
.floating-bubble {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.3) 0%, rgba(20, 184, 166, 0.1) 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(20, 184, 166, 0.2);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Parallax Elements */
.parallax-element {
  transform: translateZ(0);
  will-change: transform;
}

/* Tilt Effect */
.tilt-element {
  transition: transform 0.3s ease;
}

.tilt-element:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.02);
}

/* Coral Pattern Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(94, 234, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Underwater Wave Effect */
.wave-pattern {
  background: linear-gradient(45deg, transparent 30%, rgba(20, 184, 166, 0.1) 50%, transparent 70%);
  background-size: 60px 60px;
  animation: wave-move 20s linear infinite;
}

@keyframes wave-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 60px;
  }
}

/* Enhanced Hover Effects */
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.4);
  transform: translateY(-2px);
}

/* Smooth Transitions */
* {
  transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
  background: rgba(20, 184, 166, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(20, 184, 166, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 184, 166, 0.7);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .glass-card {
    backdrop-filter: blur(8px);
    border-radius: 12px;
  }

  .floating-bubble {
    width: 40px;
    height: 40px;
  }
}

/* Parallax Scroll Effect */
@media (prefers-reduced-motion: no-preference) {
  .parallax-element {
    transform: translateY(var(--parallax-offset, 0));
  }
}

/* Loading Animation */
.loading-shimmer {
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

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

.interactive-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.2), transparent);
  transition: left 0.5s;
}

.interactive-glow:hover::before {
  left: 100%;
}
