/* liquid-lab.css */
.liquid-lab {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  z-index: 2; 
}

.photo-collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  perspective: 1000px;
  z-index: 3; 
}
.photo-bubble {
  position: relative;
  width: 350px;
  height: 450px; 
  margin: 1rem;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(255,69,0,0.2));
  z-index: 4; 
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

.liquid-membrane {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,
    rgba(255,215,0,0.1) 0%,
    rgba(255,69,0,0.15) 100%);
  backdrop-filter: blur(20px);
  border-radius: 15% 85% 30% 70% / 70% 30% 70% 30%;
  border: 2px solid #ff4500;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 30px rgba(255,69,0,0.1);
  z-index: 2; /* Added */
}
.floating-photo {
  width: 70% !important; 
  height: 70% !important;
  object-fit: cover;
  position: absolute;
  top: 20% !important;
  left: 15% !important;
  border-radius: 10% 90% 15% 85% / 85% 15% 85% 15%;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
  mix-blend-mode:unset;
  z-index: 5;
}

.bubble-tail {
  position: absolute;
  bottom: -15px;
  right: 20%;
  width: 40px;
  height: 60px;
  background: rgba(255,69,0,0.1);
  border-radius: 50%;
  transform: rotate(45deg);
  filter: blur(5px);
  z-index: 1;
}

.photo-bubble:hover .liquid-membrane {
  border-radius: 50% 50% 30% 70% / 60% 60% 40% 40%;
  backdrop-filter: blur(5px);
}

.photo-bubble:hover .floating-photo {
  mix-blend-mode: normal;
  filter: sepia(0.3) contrast(1.2);
}
.lab-title {
  position: relative;
  margin: 0 auto 4rem;
  perspective: 1000px;
  z-index: 4; 
}

.title-core {
  display: inline-block;
  position: relative;
  font-size: 5rem;
  background: linear-gradient(45deg, #FFD700 25%, #FF4500 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255,69,0,0.3);
}

.title-glitch {
  position: relative;
  animation: glitch-swirl 3s infinite;
  
  font-family: "Lobster", serif;
  font-weight: 400;
  font-style: normal;
}

@keyframes glitch-swirl {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(0.5deg); text-shadow: 2px 0 0 #f9f9f9; }
  50% { transform: rotate(-0.5deg); text-shadow: -2px 0 0 limegreen; }
}

.title-drip {
  position: absolute;
  bottom: -1.5rem;
  right: -2rem;
  font-size: 2.5rem;
  color: #FF4500;
  transform: rotate(-15deg);
  background: linear-gradient(to bottom, #FF4500 60%, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: url(#liquid-drip);
}

.photo-caption {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background: rgb(211, 211, 211);
  backdrop-filter: blur(5px);
  border-radius: 30% 70% 50% 50% / 30% 30% 70% 70%;
  color: #01264c;
}

.caption-title {
  font-size: 1.8rem;
  color: #FFD700;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
  mix-blend-mode: luminosity;
}

.caption-glitch {
  position: relative;
  animation: caption-glitch 5s infinite;
}

@keyframes caption-glitch {
  2% { text-shadow: -2px 0 0 #00f7ff; }
  4% { text-shadow: 2px 0 0 #ff00ff; }
  96% { text-shadow: none; }
}

.caption-essence {
  display: block;
  font-size: 1.2rem;
  color: #FF4500;
  position: relative;
}

.caption-essence::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #FF4500 0%, transparent 100%);
  animation: essence-flow 3s infinite;
}

.floating-glyphs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  color: rgba(255,215,0,0.1);
  pointer-events: none;
  animation: glyph-float 20s infinite linear;
}

.liquid-lab .section-decor {
  z-index: 0 !important;
}

@media (max-width:430px) {
  .photo-bubble{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    margin-left: 0 !important;
    margin-right: 200px !important;
    width:99% !important;
  }
}