/* Reset */
html, body {
  margin: 0;
  padding: 0;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-spacing: normal;
  letter-spacing: normal;
}

/* Body Styling */
body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Top Navigation Styles */
.top-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #251339;
  padding: 12px 20px;
  z-index: 999;
  transition: background-color 0.4s ease;
}

.top-header.scrolled {
  background-color: #583b8b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
}

.search-btn,
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #fff;
  margin-left: 10px;
}

.pi-logo {
  height: 32px;
  margin-right: 10px;
}

.nav-icons i {
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* HEADER */
.header {
  background: #251339;
  color: white;
  text-align: left;
  padding: 40px 20px;
  margin-top: 60px; /* accounts for fixed top-header */
}

.heading-title {
  font-size: 35px;
  opacity: 0;
  animation: floatInLeft 1s ease-out forwards;
  animation-delay: 0.2s;
}

.intro-text {
  font-size: 18px;
  opacity: 0;
  animation: floatInBottom 1s ease-out forwards;
  animation-delay: 0.8s;
}

.button-wrapper {
  text-align: center;
  margin: 20px 0;
}

.btn-outline {
  border: 2.5px solid #F1BE24;
  color: #F1BE24;
  background: transparent;
  font-size: 18px;
  font-weight: bold;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  width: 90%;
  height: 10%;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #F1BE24;
  color: #251339;
}

.video {
  margin: 20px auto;
  max-width: 500px;
}

.note {
  background: #783A8D;
  padding: 20px;
  margin-top: 20px;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 17px;
}

/* MINING SECTION */
.mine {
  text-align: center;
}

.mine img {
  width: 90%;
  margin-bottom: 20px;
}

.mining {
  text-align: left;
  padding: 40px 20px;
}

.color {
  color: #8A348D;
  font-size: 35px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.mining-text {
  font-size: 18px;
}

.btn-filled {
  background: #8A348D;
  color: #fff;
  padding: 10px 20px;
  display: inline-block;
  margin: 20px 0;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

/* FEATURES */
.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

.card {
  background: #f8f8f8;
  padding: 20px;
  margin: 10px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  opacity: 0;
  animation: floatInBottom 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* DOWNLOAD SECTION */
.download {
  text-align: center;
  background: linear-gradient(to bottom right, #4b0082, #8a2be2);
  color: #fff;
  padding: 40px 20px;
}

.left {
  text-align: left;
}

.download-heading {
  color: #F0AE51;
  font-size: 30px;
}

.download-text {
  font-size: 18px;
}

.download img {
  width: 200px;
  margin: 20px 0;
}

.google-play img {
  width: 200px;
}

.app-store-badge {
  width: 220px;
  max-width: 80%;
  border-radius: 12px;
}

/* FOOTER */
.footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 30px 20px 50px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
}

.link-group {
  margin-bottom: 20px;
}

.link-group a {
  display: block;
  color: #ccc;
  margin: 6px 0;
  text-decoration: none;
  font-size: 16px;
}

.link-group a:hover {
  color: #fff;
}

.footer-logo img {
  width: 80%;
  margin-top: 20px;
}

/* === ANIMATIONS === */
@keyframes floatInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatInBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
}
  /* === Scroll Animations === */

/* Decentralized cards float in from bottom */
.card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When in view */
.card.animate-bottom {
  opacity: 1;
  transform: translateY(0);
}

/* Download heading float in from left */
.download-heading {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When in view */
.download-heading.animate-left {
  opacity: 1;
  transform: translateX(0);
}
  
  /* === Scroll Animation Base === */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}
  
  /* Scroll Animation Base */
.animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
  
  .download-heading.animate {
  transform: translateX(-50px);
  opacity: 0;
  transition: all 0.8s ease;
}

.download-heading.animate.visible {
  transform: translateX(0);
  opacity: 1;
}
  
  /* Scroll animation */
.animate {
  opacity: 0;
  transition: all 0.8s ease;
}

/* Card animation: float from below */
.card.animate {
  transform: translateY(50px);
}

.card.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Heading animation: float from left */
.download-heading.animate {
  transform: translateX(-60px);
}

.download-headioad-heading.animate.visible {
  opacity: 1;
  transform: translateX(s);
}
