/* === BASE STYLES === */
html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 1px;
  padding: 1px;
  min-height: 100vh;
  font-family: 'Playfair Display', serif;
  color: #fff;
  background: url('Images/nfmainbg.png') no-repeat center top fixed;
  background-size: cover;
  text-shadow: 1px 1px 2px black;
  animation: bgFadeIn 3s ease-in-out;
}

.container.main-layout {
  min-height: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 1px;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 1em;
  flex-wrap: wrap;
}

.top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em;
  z-index: 999;
}

.left-box, .right-box {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5em 1em;
  border-radius: 1em;
  color: #fff;
  text-align: center;
  width: 18em;
  height: auto;
  font-size: x-large;
  animation: floatIn 1.2s ease forwards;
}

.left-box {
  animation-delay: 0.2s;
}

.right-box {
  animation-delay: 0.4s;
}

/* === SECTION BOXES === */
.section-box {
  background: rgba(0, 0, 0, 0.65);
  padding: 1.5em;
  border-radius: 1em;
  backdrop-filter: blur(4px);
  width: 90%;
  margin: 10em 0;
  text-align: center;
  font-size: x-large;
  animation: riseUp 2s ease-out;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease-out;
}

.section-box.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === BUTTONS === */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5em;
  padding: 1em 2em;
  background: rgba(40, 0, 60, 0.8);
  color: #eee;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.8s ease;
  border: 3px solid transparent;
  box-shadow: 0 0 5px #a022cc33;
  animation: pulseBtn 2s infinite;
}

.btn:hover {
  background: rgba(80, 0, 100, 0.95);
  border: 3px solid #d06bff;
  box-shadow: 0 0 10px #d06bff;
}

.highlight {
  background: rgba(120, 0, 150, 0.85);
}

/* === FOOTER === */
footer {
  text-align: center;
  font-size: 0.9em;
  padding: 1em;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0.5em;
  width: 75em;
  animation: fadeInFooter 2s ease-in;
}

a {
  color: #d9a3ff;
}

a:hover {
  color: #ffffff;
}

/* === KEYFRAMES === */
@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bgFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInFooter {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseBtn {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px #a022cc33;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px #d06bff;
  }
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 769px) {
  .top-bar-container {
    flex-direction: column;
    align-items: center;
  }

  .left-box, .right-box {
    width: 90%;
    margin: 1em 0;
  }

  .section-box {
    font-size: large;
    padding: 1em;
  }

  .btn {
    padding: 1em;
  }

  footer {
    width: 100%;
  }
}

/* === ULTRAWIDE SCREENS === */
@media (min-aspect-ratio: 21/9) {
  body {
    background-position: center 10%;
    background-size: contain;
  }
}
