.liquid-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    inset 0 1px 20px rgba(255, 255, 255, 0.1),
    inset 0 -1px 10px rgba(0, 0, 0, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.liquid-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(
      800px circle at 20% 20%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      600px circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  z-index: -1;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.hydrophobic-effect {
  position: relative;
}

.hydrophobic-effect::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='waterDrops'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23waterDrops)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.hydrophobic-effect:hover::after {
  opacity: 1;
}

.mechanical-flex {
  transition: 
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.mechanical-flex:hover {
  transform: scale(1.02) perspective(1000px) rotateX(1deg) rotateY(1deg);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 60px rgba(255, 255, 255, 0.05);
}

.social-icons .liquid-glass {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons .liquid-glass:hover {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 0 50px rgba(255, 255, 255, 0.1),
    inset 0 1px 20px rgba(255, 255, 255, 0.2);
}

@keyframes waterDropAdvanced {
  0% {
    transform: translateY(-30px) scale(0.8);
    opacity: 0;
    filter: blur(5px);
  }
  20% {
    transform: translateY(-10px) scale(1);
    opacity: 1;
    filter: blur(0);
  }
  40% {
    transform: translateY(0) scale(1.05);
    opacity: 0.8;
  }
  60% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.icon.water-drop {
  animation: waterDropAdvanced 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes shineFlow {
  0% {
    background-position: -100% 50%;
  }
  50% {
    background-position: 200% 50%;
  }
  100% {
    background-position: -100% 50%;
  }
}

.shine-effect {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shineFlow 3s ease-in-out infinite;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.liquid-glass:hover .shine-effect {
  opacity: 0.5;
}