/* === GLOBAL FRONT PAGE STABILITY LAYER === */
section.FrontpageBox {
  position: relative;
  display: inline-block;
  width: auto;
  margin: 6% auto;
  padding: 40px 60px;
  border-radius: 25px;
  text-align: left;
  overflow: hidden;
  z-index: 1;
  background: rgba(0, 0, 0, 0.9);
  border: 5px solid rgb(255, 77, 0);
  transition: background 2.4s ease-in-out, filter 2.4s ease-in-out;
}

/* glowing background layer */
section.FrontpageBox::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: radial-gradient(
    circle at center,
    rgba(255, 77, 0, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 2.8s ease-in-out, filter 2.8s ease-in-out;
  will-change: opacity, filter;
}

/* subtle halo edges */
section.FrontpageBox::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  z-index: -2;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 200, 0, 0.18),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 3.1s ease-in-out;
}

/* on hover */
section.FrontpageBox:hover {
  background: rgba(30, 0, 0, 0.95);
  filter: brightness(1.1);
}
section.FrontpageBox:hover::before {
  opacity: 1;
  filter: blur(18px);
}
section.FrontpageBox:hover::after {
  opacity: 0.4;
}

/* === SECTION 1 (Dezentralized App) === */
.FrontpageBox-1 {
  color: red;
  background-color: rgb(0, 0, 0);
  padding: 18px 75px 25px 30px;
  margin-left: 5%;
}
.FrontpageBox-1:hover {
  color: yellow;
  background-color: red;
}

/* === SECTION 2 (Blockchain) === */
.FrontpageBox-2 {
  float: right;
  color: white;
  background-color: red;
  padding: 30px 30px 30px 160px;
  margin: 12% 5% 12% 45%;
  background-image: url('/static/img/Blockchain_Background.jpg');
}
.FrontpageBox-2:hover {
  background-color: #383D63;
  color: yellow;
}

/* === SECTION 3 (McCC Coin) === */
.FrontpageBox-3 {
  float: left;
  color: white;
  background-color: red;
  padding: 18px 75px 25px 30px;
  margin: 10% 15% 10% 5%;
}
.FrontpageBox-3:hover {
  background-color: #000;
  color: rgb(255, 0, 0);
}

/* === SECTION 4 (Community) === */
.FrontpageBox-4 {
  float: right;
  color: white;
  background-color: #383D63;
  padding: 25px 30px 25px 160px;
  margin: 12% 5% 12% 50%;
}
.FrontpageBox-4:hover {
  color: yellow;
  background-color: red;
}

/* === SECTION 5 (Free Gifts) === */
.FrontpageBox-5 {
  float: left;
  color: white;
  background-color: red;
  padding: 18px 75px 25px 30px;
  margin: 10% 15% 10% 5%;
  background-image: url('/static/img/Blockchain_Background2.jpg');
}
.FrontpageBox-5:hover {
  color: yellow;
}

/* === SECTION 6 (Cash Cycle) === */
.FrontpageBox-6 {
  float: right;
  color: white;
  background-color: red;
  padding: 25px 30px 25px 160px;
  margin: 12% 5% 12% 50%;
}
.FrontpageBox-6:hover {
  background-color: #383D63;
  color: yellow;
}

/* === SECTION 7 (Equiva) === */
#Seven {
  background: linear-gradient(180deg, #0a0a12 0%, #0b1820 100%);
  color: white;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.15);
  margin-bottom: 80px;
}
#Seven h2 {
  text-shadow: 0 0 6px #00c3ff66;
}

/* === IMAGE STYLE === */
section.FrontpageBox img {
  display: block;
  margin: 20px auto;
  border-radius: 20px;
  border: 5px solid black;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: all 0.8s ease-in-out;
}
section.FrontpageBox img:hover {
  transform: scale(1.02);
  background-color: #111;
  border-color: #ff4d00;
}

/* === BUTTON === */
.Button-FP {
  background: #ff4d00;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: background 0.4s ease-in-out, transform 0.3s ease-in-out;
}
.Button-FP:hover {
  background: #ff7700;
  transform: translateY(-2px);
}

/* === FOOTER === */
footer {
  position: relative;
  bottom: 0;
  width: 100%;
  background: #000;
  color: #bbb;
  text-align: center;
  padding: 20px 0;
  border-top: 10px solid #ff0000;
  margin-top: 80px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  section.FrontpageBox {
    width: 95%;
    float: none;
    margin: 60px auto;
    padding: 25px 20px;
  }
  section.FrontpageBox img {
    margin-top: 10px;
  }
}
