/* Font Imports */
@font-face {
  font-family: 'DAYDREAM';
  src: url('fonts/Daydream.ttf') format('truetype');
}

@font-face {
  font-family: 'MINECRAFT';
  src: url('fonts/Minecraft.ttf') format('truetype');
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  background-image: url('images/BNG.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  font-family: 'DAYDREAM', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
}

/* Layout Containers */
.content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Animations */
@keyframes buildIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.build-in {
  opacity: 0;
  animation: buildIn 0.8s ease forwards;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Headings */
h1 {
  font-family: 'DAYDREAM';
  font-size: 48px;
  letter-spacing: 1px;
  text-align: center;
}

.wave-title {
  position: relative;
  display: inline-block;
}

.wave-outline {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.wave-container {
  position: relative;
  z-index: 1;
}

.wave-outline span {
  display: inline-block;
  animation: wave 1.5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  color: transparent;
  font-size: 2em;
  font-family: 'DAYDREAM';
  -webkit-text-stroke: 2px #ffe066;
  letter-spacing: 1px;
}

.wave-container span {
  display: inline-block;
  animation: wave 1.5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  color: white;
  font-size: 3rem;
  font-family: 'DAYDREAM';
  text-shadow:
    2px 2px 0 #000,
    -2px 2px 0 #000,
    2px -2px 0 #000,
    -2px -2px 0 #000;
  letter-spacing: 1px;
}

.wave-container .space {
  display: inline-block;
  width: 20px;
}

/* Paragraphs */
p, .subtitle, .about-text, .quote {
  font-family: 'MINECRAFT', sans-serif;
  color: white;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Call-to-action */
.cta {
  margin-top: 2rem;
  padding: 0.75em 2em;
  font-size: 1.2rem;
  background: #ffd700;
  color: #222;
  border: none;
  border-radius: 30px;
  font-family: 'DAYDREAM';
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.cta:hover {
  background: #ffec80;
}

/* Bottom Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  gap: 40px;
  z-index: 10;
}

.bottom-bar a {
  text-decoration: none;
  color: inherit;
}

.circle {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #222;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.circle:hover {
  background: #ffd700;
  transform: scale(1.1);
}

/* Help Button */
.help-wrapper {
  position: absolute;
  right: 20px;
  bottom: 15px;
}

.help-button {
  width: 40px;
  height: 40px;
  background-color: #ffd700;
  color: #222;
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-family: 'DAYDREAM';
  z-index: 20;
}

.help-button:hover {
  background-color: #ffec80;
}

.help-cloud {
  display: none;
  position: absolute;
  bottom: 60px;
  right: -10px;
  background: #fff;
  color: #222;
  padding: 12px 16px;
  border-radius: 20px;
  font-family: 'MINECRAFT';
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  width: 220px;
  text-align: center;
  z-index: 10;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.help-cloud::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 20px;
  border: 10px solid transparent;
  border-top-color: #fff;
}

/* About Section */
.about-section {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 100px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-section h2 {
  font-family: 'DAYDREAM';
  font-size: 2.8rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.quote {
  font-size: 1rem;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #ffd700;
  padding: 1rem 1.5rem;
  margin: 1.5rem auto;
  width: 80%;
  color: #fff;
}

.about-text {
  max-width: 900px;
  font-size: 1rem;
  margin: 1rem auto;
  line-height: 1.6;
  text-align: justify;
  color: #f0f0f0;
}

/* Arrow */
.arrow-on-button {
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 70px;
  image-rendering: pixelated;
  transform: rotate(-45deg);
  animation: bounceArrow 1s infinite;
  filter: drop-shadow(2px 2px 0 #000);
  z-index: 5;
  pointer-events: none;
}

@keyframes bounceArrow {
  0%, 100% { transform: translate(0, 0) rotate(45deg); }
  50% { transform: translate(6px, -6px) rotate(45deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .wave-container span, .wave-outline span {
    font-size: 2.2rem;
  }
  .bottom-bar {
    height: 60px;
    gap: 20px;
  }
  .circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .about-section h2 {
    font-size: 2rem;
  }
}
