/* ===== GENERAL STYLES ===== */
:root {
  --primary-color: #9945ff;
  --secondary-color: #14f195;
  --dark-color: #121212;
  --light-color: #ffffff;
  --gray-color: #f5f5f5;
  --text-color: #333333;
  --gradient-primary: linear-gradient(45deg, #9945ff, #14f195);
  --gradient-secondary: linear-gradient(45deg, #14f195, #9945ff);
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--light-color);
  box-shadow: 0 4px 15px rgba(153, 69, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(153, 69, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--light-color);
}

.btn-primary-outline {
  background: transparent;
  color: var(--light-color);
  border: 2px solid var(--primary-color);
  padding: 8px 20px;
  border-radius: 50px;
}

.btn-primary-outline:hover {
  background: var(--primary-color);
  color: var(--light-color);
}

.section-header {
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
  position: relative;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  position: relative;
}

.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1s;
  background-color: var(--secondary-color);
}

@keyframes sk-bounce {
  0%,
  100% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
}

/* ===== NAVBAR ===== */
.navbar {
  padding: 20px 0;
  transition: var(--transition);
  background-color: rgba(18, 18, 18, 0.9);

  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.navbar.scrolled {
  background-color: rgba(18, 18, 18, 0.9);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--light-color);
}

.logo-text {
  margin-right: 10px;
}

.logo-icon {
  color: var(--secondary-color);
}

.navbar-nav {
  margin-left: auto;
}

.nav-link {
  color: var(--light-color) !important;
  margin: 0 15px;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.hero-image-container {
  position: relative;
  z-index: 1;
}

.hero-image {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.hero-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 60%;
}

.img-container {
  max-height: fit-content;
  position: relative;
  z-index: 1;
}

.glow-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  filter: blur(80px);
  opacity: 0.3;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: 50%;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.floating-element {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* animation: float 6s infinite ease-in-out; */
}

.fe-1 {
  top: 5%;
  left: 1%;
  animation-delay: 0s;
  background: var(--primary-color);
}
.fe-2 {
  top: 100%;
  left: 25%;
  animation-delay: 1s;
}
.fe-3 {
  top: -200%;
  right: 30%;
  animation-delay: 2s;
}
.fe-4 {
  top: 75%;
  right: 5%;
  animation-delay: 3s;
  background: var(--secondary-color);
}
/* 
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
} */

.contract-address {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-block;
}

.tba {
  color: var(--secondary-color);
  font-weight: 600;
}

.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 2;
}

/* --- HERO ANIMATED BG --- */
.hero-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Make sure hero-image is above the SVG */
.hero-image {
  position: relative;
  z-index: 1;
}

/* Fix logo image in navbar */
.logo {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 10px;
  background: #fff;
  border: 2px solid #9945ff;
}

/* Contract address spacing and wrapping */
.contract-address {
  margin-top: 20px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.13);
  padding: 10px 24px;
  border-radius: 50px;
  display: inline-block;
  font-size: 16px;
  word-break: break-all;
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive tweaks for hero section and logo */
@media (max-width: 991px) {
  .hero-image-container {
    margin-top: 40px;
  }
  .contract-address {
    font-size: 15px;
    padding: 8px 14px;
  }
  .logo {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 767px) {
  .hero-section {
    padding: 100px 0 40px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: block;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .contract-address {
    font-size: 14px;
    padding: 7px 10px;
    word-break: break-all;
    max-width: 100%;
  }
  .hero-animated-bg {
    min-height: 220px;
  }
  .logo {
    width: 32px;
    height: 32px;
  }
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background-color: var(--light-color);
  position: relative;
}

.feature-card {
  background: var(--light-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--light-color);
  font-size: 28px;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background-color: var(--gray-color);
  position: relative;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: 30px;
  background: var(--gradient-primary);
  color: var(--light-color);
  padding: 20px;
  border-radius: 10px;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(153, 69, 255, 0.3);
  text-align: center;
}

.experience-badge span {
  font-size: 14px;
  opacity: 0.8;
}

.experience-badge h3 {
  font-size: 24px;
  margin: 5px 0 0;
}

.about-content {
  padding-left: 30px;
}

.about-text {
  margin-bottom: 30px;
  font-size: 18px;
}

.about-features {
  margin-bottom: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.about-feature i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 18px;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: var(--gradient-primary);
  color: var(--light-color);
  padding: 80px 0;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 40px;
  margin-bottom: 10px;
}

.counter {
  font-weight: 700;
}

/* ===== COMMUNITY SECTION ===== */
.community-section {
  background-color: var(--light-color);
}

.community-card {
  background: var(--light-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.community-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.community-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--light-color);
  font-size: 28px;
}

.community-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.community-card p {
  margin-bottom: 20px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  background-color: var(--gray-color);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  background: var(--light-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  margin: 20px 10px;
}

.testimonial-content p {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content p::before {
  content: '"';
  font-size: 60px;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -15px;
}

.testimonial-author h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: -50px;
}

.carousel-control-next {
  right: -50px;
}

.carousel-control-prev i,
.carousel-control-next i {
  color: var(--light-color);
}

/* ===== JOIN SECTION ===== */
.join-section {
  background-color: var(--light-color);
}

.join-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  height: 50px;
  border-radius: 50px;
  padding: 10px 20px;
  border: 1px solid #ddd;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(153, 69, 255, 0.25);
}

.btn-block {
  width: 100%;
}

.join-note {
  font-size: 14px;
  opacity: 0.8;
}

.join-image {
  position: relative;
}

.join-image img {
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

.floating-coins {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.coin {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  animation: floatCoin 5s infinite ease-in-out;
}

.coin-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.coin-2 {
  top: 50%;
  right: 10%;
  animation-delay: 1s;
}

.coin-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 2s;
}

@keyframes floatCoin {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(90deg);
  }
  50% {
    transform: translateY(0) rotate(180deg);
  }
  75% {
    transform: translateY(15px) rotate(270deg);
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 80px 0 0;
}

.footer-about {
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.footer-links h4 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  bottom: 0;
  left: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-newsletter h4 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-newsletter h4::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  bottom: 0;
  left: 0;
}

.footer-newsletter p {
  margin-bottom: 20px;
}

.footer-newsletter form {
  position: relative;
}

.footer-newsletter input {
  height: 50px;
  border-radius: 50px;
  padding: 10px 20px;
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
}

.footer-newsletter button {
  position: absolute;
  right: 5px;
  top: 5px;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-primary);
  color: var(--light-color);
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-top: 50px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .about-content {
    padding-left: 0;
    margin-top: 50px;
  }

  .experience-badge {
    right: 20px;
  }

  .carousel-control-prev {
    left: -20px;
  }

  .carousel-control-next {
    right: -20px;
  }
}

@media (max-width: 767px) {
  section {
    padding: 70px 0;
  }

  .hero-section {
    padding: 150px 0 70px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-image-container {
    margin-top: 50px;
  }

  .feature-card,
  .community-card {
    margin-bottom: 20px;
  }

  .stat-item {
    margin-bottom: 30px;
  }

  .join-image {
    margin-top: 50px;
  }

  .footer-bottom-links {
    justify-content: flex-start;
    margin-top: 10px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 1s ease forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 1s ease forwards;
}
