body {
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.floating-gallery {
  padding: 2rem;
  text-align: center;
  position: relative;
}

.floating-gallery-title {
  font-size: 3rem;
  font-weight: 300;
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.floating-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.float-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  height: 200px;
}

.float-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.float-demo {
  height: 120px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.float-label {
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(100, 150, 255, 0.4));
  animation: bubble-float 6s ease-in-out infinite;
}

.bubble-1 {
  width: 20px;
  height: 20px;
  left: 10%;
  animation-delay: 0s;
}

.bubble-2 {
  width: 15px;
  height: 15px;
  left: 30%;
  animation-delay: 1s;
}

.bubble-3 {
  width: 25px;
  height: 25px;
  left: 50%;
  animation-delay: 2s;
}

.bubble-4 {
  width: 18px;
  height: 18px;
  left: 70%;
  animation-delay: 3s;
}

.bubble-5 {
  width: 12px;
  height: 12px;
  left: 85%;
  animation-delay: 4s;
}

@keyframes bubble-float {
  0% {
    transform: translateY(100px) translateX(0px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) translateX(20px);
    opacity: 0;
  }
}
.particle {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: particle-float 8s linear infinite;
}

.particle-1 {
  width: 3px;
  height: 3px;
  left: 15%;
  animation-delay: 0s;
}

.particle-2 {
  width: 2px;
  height: 2px;
  left: 35%;
  animation-delay: 1.5s;
}

.particle-3 {
  width: 4px;
  height: 4px;
  left: 55%;
  animation-delay: 3s;
}

.particle-4 {
  width: 3px;
  height: 3px;
  left: 75%;
  animation-delay: 4.5s;
}

.particle-5 {
  width: 2px;
  height: 2px;
  left: 25%;
  animation-delay: 6s;
}

.particle-6 {
  width: 3px;
  height: 3px;
  left: 85%;
  animation-delay: 7.5s;
}

@keyframes particle-float {
  0% {
    transform: translateY(120px) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) translateX(-30px) rotate(360deg);
    opacity: 0;
  }
}
.leaf {
  position: absolute;
  font-size: 1.5rem;
  animation: leaf-fall 5s ease-in-out infinite;
}

.leaf-1 {
  left: 20%;
  animation-delay: 0s;
}

.leaf-2 {
  left: 40%;
  animation-delay: 1.2s;
}

.leaf-3 {
  left: 60%;
  animation-delay: 2.4s;
}

.leaf-4 {
  left: 80%;
  animation-delay: 3.6s;
}

@keyframes leaf-fall {
  0% {
    transform: translateY(-20px) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(140px) translateX(40px) rotate(180deg);
    opacity: 0;
  }
}
.cloud {
  position: absolute;
  font-size: 2rem;
  animation: cloud-drift 10s linear infinite;
  opacity: 0.7;
}

.cloud-1 {
  top: 20%;
  animation-delay: 0s;
}

.cloud-2 {
  top: 50%;
  animation-delay: 3s;
}

.cloud-3 {
  top: 80%;
  animation-delay: 6s;
}

@keyframes cloud-drift {
  0% {
    transform: translateX(-50px);
  }
  100% {
    transform: translateX(300px);
  }
}
.star {
  position: absolute;
  font-size: 1.2rem;
  animation: star-twinkle 3s ease-in-out infinite;
}

.star-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.star-2 {
  top: 40%;
  left: 60%;
  animation-delay: 0.6s;
}

.star-3 {
  top: 60%;
  left: 30%;
  animation-delay: 1.2s;
}

.star-4 {
  top: 80%;
  left: 80%;
  animation-delay: 1.8s;
}

.star-5 {
  top: 30%;
  left: 85%;
  animation-delay: 2.4s;
}

@keyframes star-twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}
.geometric-shape {
  position: absolute;
  animation: geometric-float 6s ease-in-out infinite;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 26px solid #ff6b6b;
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #4ecdc4;
  top: 40%;
  left: 60%;
  animation-delay: 1.5s;
}

.square {
  width: 25px;
  height: 25px;
  background: #45b7d1;
  top: 70%;
  left: 30%;
  animation-delay: 3s;
}

.hexagon {
  width: 30px;
  height: 26px;
  background: #96ceb4;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  top: 50%;
  left: 80%;
  animation-delay: 4.5s;
}

@keyframes geometric-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}
.float-text {
  position: absolute;
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: text-float 4s ease-in-out infinite;
}

.text-1 {
  top: 30%;
  left: 20%;
  animation-delay: 0s;
  color: #ff6b6b;
}

.text-2 {
  top: 50%;
  left: 50%;
  animation-delay: 1.3s;
  color: #4ecdc4;
}

.text-3 {
  top: 70%;
  left: 15%;
  animation-delay: 2.6s;
  color: #45b7d1;
}

@keyframes text-float {
  0%, 100% {
    transform: translateY(0px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px);
    opacity: 1;
  }
}
.orb {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #4ecdc4);
  box-shadow: 0 0 20px #4ecdc4;
  animation: orb-float 5s ease-in-out infinite;
}

.orb-trail {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent, rgba(78, 205, 196, 0.3));
  transform: scale(2);
  animation: trail-fade 5s ease-in-out infinite;
}

.orb-1 {
  top: 25%;
  left: 25%;
  animation-delay: 0s;
}

.orb-2 {
  top: 55%;
  left: 65%;
  animation-delay: 1.7s;
}

.orb-3 {
  top: 75%;
  left: 35%;
  animation-delay: 3.4s;
}

@keyframes orb-float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-15px) translateX(10px);
  }
  50% {
    transform: translateY(-10px) translateX(-5px);
  }
  75% {
    transform: translateY(-20px) translateX(15px);
  }
}
@keyframes trail-fade {
  0%, 100% {
    opacity: 0.3;
    transform: scale(2);
  }
  50% {
    opacity: 0.8;
    transform: scale(3);
  }
}
.back-link {
  margin-top: 3rem;
}

.back-link a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}

.back-link a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .floating-gallery-title {
    font-size: 2rem;
  }
  .floating-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .float-item {
    height: 180px;
  }
  .float-demo {
    height: 100px;
  }
}