* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  50% {
    background-position: 1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes shimmer-overlay {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes subtleScan {
  0% {
    top: -100%;
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  overflow: hidden;
  position: relative;
}

.poster {
  max-width: 90vw;
  max-height: 93.75vh;
  width: auto;
  height: auto;
  object-fit: cover; /* Change to cover to fill the container */
  margin-bottom: 0rem;
  filter: blur(2px) brightness(0.3) saturate(1.5) hue-rotate(-20deg);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.poster-container {
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.poster-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  filter: invert(1);
  animation: subtleScan 8s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.dock {
  list-style-type: none;
  width: max-content;
  display: flex;
  border: none;
  border-radius: 1.5rem;
  padding: 0.15rem;
  z-index: 10;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.helper-text {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 1px;
  z-index: 15;
  font-family: helvetica, sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Transition for the dock's position */
.dock {
  transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dock-icon {
  position: relative;
  width: 3.125rem;
  height: 3.125rem;
  margin: 0.156rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer; 
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), margin 0.8s, box-shadow 0.3s;
  transform-origin: bottom;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  overflow: visible;
}

.dock-icon::before {
  content: attr(data-tip);
  position: absolute;
  bottom: -2.5rem;
  font: 0.65rem helvetica,sans-serif;
  border: none;
  border-radius: 0.2rem;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.3rem 0.5rem;
  display: none;
  white-space: nowrap;
  z-index: 20;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.dock-icon::after {
  content: '';
  position: absolute;
  display: block;
}

.dock-icon:hover::before {
  display: block;
}

/* Individual button colors with shimmer */
.dock-icon:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.4), rgba(255, 165, 0, 0.3)) !important;
  background-size: 200% 200%;
}

.dock-icon:nth-child(1)::after {
  animation-delay: 0s;
}

.dock-icon:nth-child(1) ion-icon {
  color: white;
  position: relative;
  z-index: 1;
}

.dock-icon:nth-child(2) {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.4), rgba(0, 191, 255, 0.3)) !important;
  background-size: 200% 200%;
}
.dock-icon:nth-child(2)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer-overlay 2.2s infinite 0.4s;
  border-radius: 50%;
}

.dock-icon:nth-child(2) ion-icon {
  color: white;
  position: relative;
  z-index: 1;
}

.dock-icon:nth-child(3) {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(102, 255, 102, 0.3)) !important;
  background-size: 200% 200%;
}
.dock-icon:nth-child(3)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer-overlay 2s infinite 0.8s;
  border-radius: 50%;
}

.dock-icon:nth-child(3) ion-icon {
  color: white;
  position: relative;
  z-index: 1;
}

.dock-icon:nth-child(4) {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.4), rgba(233, 30, 99, 0.3)) !important;
  background-size: 200% 200%;
}
.dock-icon:nth-child(4)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer-overlay 2.2s infinite 1.2s;
  border-radius: 50%;
}

.dock-icon:nth-child(4) ion-icon {
  color: white;
  position: relative;
  z-index: 1;
}

.dock-icon:nth-child(5) {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 185, 0, 0.3)) !important;
  background-size: 200% 200%;
}
.dock-icon:nth-child(5)::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer-overlay 2s infinite 1.6s;
  border-radius: 50%;
}

.dock-icon:nth-child(5) ion-icon {
  color: white;
  position: relative;
  z-index: 1;
}

.social-submenu {
  position: absolute;
  left: 100%; /* Position to the right of the parent icon */
  top: 0;
  bottom: 0;
  margin-left: 10px; /* Space between main icon and submenu */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 25;
  visibility: hidden;
}

/* When the dock has the 'social-open' class, move it left */
.dock.social-open {
  left: 45%;
}

/* Show the submenu when the dock is in the 'social-open' state */
.dock.social-open .social-submenu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.social-menu-toggle {
  position: relative;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.07rem;
  height: 2.07rem;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  color: white;
  font-size: 1.15rem;
}

.whatsapp-link {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.6), rgba(34, 177, 76, 0.5));
  border: 2px solid rgba(37, 211, 102, 0.5);
}

.whatsapp-link:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

.instagram-link {
  background: linear-gradient(135deg, rgba(217, 48, 96, 0.6), rgba(252, 176, 64, 0.5));
  border: 2px solid rgba(217, 48, 96, 0.5);
}

.instagram-link:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(217, 48, 96, 0.6);
}

.facebook-link {
  background: linear-gradient(135deg, rgba(59, 89, 152, 0.6), rgba(58, 87, 149, 0.5));
  border: 2px solid rgba(59, 89, 152, 0.5);
}

.facebook-link:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(59, 89, 152, 0.6);
}

.dock-icon:hover {
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
  transform: scale(1.15);
}

.dock-icon:hover::before, .dock-icon:hover::after { display: block; }