html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #f9fafd !important;
  font-family: "Poppins", sans-serif !important;
}

/* ---------------- Hero Section ---------------- */
.hero-section {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background: url("/static/background_principale.jpg") no-repeat center;
  background-size: auto 100%;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  flex-direction: column;
  padding-top: 70px;
  text-align: center;
}

/* ---------------- Navbar ---------------- */
.navbar {
  background: #f9fafd;
  border-bottom: 1px solid #ddd;
  padding: 5px 15px !important;
  min-height: 55px;
  display: flex;
  align-items: center;
  position: fixed;
}

.navbar-brand img {
  height: 50px; /* smaller logo */
}
/* ---------------- Company Detail ---------------- */
.company-detail {
  text-align: center;
  padding: 30px;
  max-width: 800px;
  width: 100%;
}

.company-detail h1 {
  font-size: 42px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
  color: #111;
  letter-spacing: 1px;
}

.company-detail p {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 45px;
  color: #474747;
  line-height: 1.6;
}

/* ---------------- Buttons with Bubble Hover ---------------- */

.explore-button,
.partner-btn {
  position: relative;
  padding: 15px 40px;
  border: 2px solid #000;
  color: #000;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  overflow: hidden;
  z-index: 1;
  border-radius: 10px;
  margin: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.explore-button:active,
.partner-btn:active {
  transform: scale(0.96);
}

.explore-button::before,
.explore-button::after,
.partner-btn::before,
.partner-btn::after {
  position: absolute;
  content: "";
  width: 150%;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1;
  background-repeat: no-repeat;
}

/* Top bubble animation */
.explore-button:hover::before,
.partner-btn:hover::before {
  top: -70%;
  background-image: radial-gradient(circle, #000 20%, transparent 20%),
    radial-gradient(circle, transparent 20%, #000 20%, transparent 30%),
    radial-gradient(circle, #000 20%, transparent 20%),
    radial-gradient(circle, #000 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #000 15%, transparent 20%),
    radial-gradient(circle, #000 20%, transparent 20%),
    radial-gradient(circle, #000 20%, transparent 20%),
    radial-gradient(circle, #000 20%, transparent 20%),
    radial-gradient(circle, #000 20%, transparent 20%);
  background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%,
    10% 10%, 18% 18%;
  background-position: 50% 120%;
  animation: bubbleTop 0.6s ease forwards;
}

/* Bottom bubble animation */
.explore-button:hover::after,
.partner-btn:hover::after {
  bottom: -70%;
  background-image: radial-gradient(circle, #000 20%, transparent 20%),
    radial-gradient(circle, #000 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #000 15%, transparent 20%),
    radial-gradient(circle, #000 20%, transparent 20%),
    radial-gradient(circle, #000 20%, transparent 20%),
    radial-gradient(circle, #000 20%, transparent 20%),
    radial-gradient(circle, #000 20%, transparent 20%);
  background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
  background-position: 50% 0%;
  animation: bubbleBottom 0.6s ease forwards;
}

/* Keyframes for bubble animation */
@keyframes bubbleTop {
  0% {
    background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%,
      40% 90%, 55% 90%, 70% 90%;
  }
  50% {
    background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%,
      50% 50%, 65% 20%, 90% 30%;
  }
  100% {
    background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%,
      50% 40%, 65% 10%, 90% 20%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

@keyframes bubbleBottom {
  0% {
    background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%,
      70% -10%, 70% 0%;
  }
  50% {
    background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%,
      105% 0%;
  }
  100% {
    background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%,
      110% 10%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}

/* Text color change */
.explore-button:hover,
.partner-btn:hover {
  color: #fff;
  background-color: #000;
}

/* ---------------- Partner Link ---------------- */
.become-partner-link {
  padding: 8px 20px;
  border: 1px solid #000;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.become-partner-link:hover {
  background: #000;
  color: #fff;
}

/* ---------------- Responsive Tweaks ---------------- */

@media (max-width: 1024px) {
  .hero-section {
    background-size: auto 100%;
  }
}

@media (max-width: 768px) {
  .company-detail h1 {
    font-size: 28px;
  }
  .company-detail p {
    font-size: 16px;
  }
  .hero-section {
    background-size: auto 70%;
  }
}

@media (max-width: 580px) {
  .hero-section {
    padding-top: 70px;
  }
  .company-detail h1 {
    font-size: 22px;
  }
  .company-detail p {
    font-size: 14px;
  }
  .hero-section {
    background-size: auto 50%;
  }
}
