/* 🌌 Base Layout */
body {
  margin: 0;
  background-color: #050505;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 🧱 Page Wrapper */
.page-wrapper {
  width: 100%;
  /* width: 100vw; */
  max-width: 960px;
  padding-top: 0px; /* 👈 Nada de espacio extra arriba */
  padding: 0 20px;
  margin: auto;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
}

/* 🔠 FXFORGE Title */
#main-title {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin: 30px 0 0px;
  margin-bottom: 0px;
  animation: titleFade 1s ease forwards;
  align-self: flex-start;
}

/* 📎 Services Label */
#service-trigger {
  font-size: 1.2rem;
  font-weight: bold;
  color: whyte;
  cursor: pointer;
  /*text-decoration: underline;*/
  margin-top: 0px;
  margin-bottom: 10px;
  margin-left: 2px;
  display: inline-block;
}

/* ✨ Fade Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes titleFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🎬 Video Grid */
.video-container { 
  display: flex;
  flex-wrap: wrap;
  /* display: grid;
  grid-template-columns: repeat(4, 1fr); */
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px; /*space between rows */
  /* margin: 0 auto; */
}

.video {
  flex: 1 1 160px;
  max-width: 160px;
  /* height: 280px; */
  position: relative;
  background-color: #222;
  border: 2px solid #888;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.6s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
  aspect-ratio: 9 / 16;
}

.video.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.video:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: white;
  box-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* 🏷️ Hover Labels */
.label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.video:hover .label {
  opacity: 1;
  transform: translateY(0);
}

/* 📬 Contact Button */
.contact-button-row {
  margin-top: 20px;
  margin-right: 30px;
  display: flex;
  justify-content: flex-end;
}

#contact-trigger {
  padding: 12px 18px;
  background: white;
  color: #050505;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 12px rgba(255,0,255,0.5);
}

#contact-trigger:hover {
  background: #FF5733;
  transform: scale(1.05);
}

/* 🧠 Responsive Layout */
@media (max-width: 768px) {
  .page-wrapper {
    margin: unset;
  }

  #main-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-align: center;
    align-self: center;
  }

  #service-trigger {
    margin-left: 2rem;
  }

  .video {
    flex: 1 1 95%;
    /* max-width: 45%; */
    /* height: 200px; */
    aspect-ratio: 16/10;
  }

  /* .video-container { */
    /* display: grid; */
    /* grid-template-columns: auto auto; */
    /* place-content: center; */
    /* justify-content: center; */
  /* } */

  .contact-button-row {
    justify-content: center;
  }

  #contact-trigger {
    margin-top: 10px;
  }
}

@keyframes burstIn {
  0% {
    opacity: 0;
    transform: translate(
      calc(-50px + 100px * random()),
      calc(-50px + 100px * random())
    ) scale(0.2);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}
