/* styles.css : CSS Styles for Sparkwynn Landing Page */

/* Import or define fonts */
@font-face {
  font-family: 'Minecraft Ten';
  src: url('MinecraftTen.ttf') format('truetype');
  /* The .ttf font file should be in the same directory */
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  /* Smooth gradient background: deep purple -> dark blue -> gold */
  background: black;
  background-repeat: no-repeat;
  background-attachment: fixed;  /* parallax effect for taller content */
  color: #000;  /* default text color (on light panels) */
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero img {
  width: auto;
  height: 300px;
  display: block;
  margin: 0 auto;
  animation: floatY 3s ease-in-out infinite, breatheScale 4s ease-in-out infinite;
  /* Softer yellow glow */
  filter: drop-shadow(0 0 12px #917b00) drop-shadow(0 0 20px #292701);
  position: relative;
  z-index: 2;
}

@keyframes breatheScale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

/* Massive faded background image using the same .hero img */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  transform: translate(-50%, -50%);
  background: url('images/sparkwynn.png') no-repeat center center;
  background-size: contain;
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
}

.hero p {
  padding-top: 2rem;
  color: white;
  font-family: 'Minecraft Ten', 'Inter', sans-serif;
  font-size: 1.8rem;
}

/* Flicker animation for last 2 characters */
.hero p {
  display: inline-block;
}

.hero p .flicker {
  display: inline-block;
  animation: flickerWave 1.2s infinite linear;
  animation-delay: calc(var(--flicker-index, 0) * 0.12s);
}

@keyframes flickerWave {
  0%, 100% { opacity: 1; filter: brightness(1); }
  10% { opacity: 0.7; filter: brightness(1.5); }
  20% { opacity: 0.3; filter: brightness(2); }
  30% { opacity: 0.8; filter: brightness(1.2); }
  40% { opacity: 0.5; filter: brightness(1.7); }
  50% { opacity: 1; filter: brightness(1); }
  60% { opacity: 0.6; filter: brightness(1.4); }
  70% { opacity: 0.2; filter: brightness(2.2); }
  80% { opacity: 0.9; filter: brightness(1.1); }
  90% { opacity: 0.4; filter: brightness(1.8); }
}


/* Scroll-triggered animation (fade-in) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    align-items: center;
  }
  .feature-item {
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero .tagline {
    font-size: 1.1rem;
  }
}
