/* ---------- Global ---------- */
:root {
  --accent-1: #6F7CFF;
  --accent-2: #4C6BFF;
  --bg-dark: #0b0b0b;
}

body {
  background: linear-gradient(180deg, #050506 0%, #0b0b0b 100%);
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* ---------- Navbar ---------- */
.navbar-brand img {
  box-shadow: 0 6px 24px rgba(79, 92, 255, 0.09);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.45), rgba(7, 7, 7, 0.45));
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

@keyframes hero-zoom {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.2), rgba(4, 8, 20, 0.45));
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 5;
  animation: hero-zoom 14s ease-in-out infinite;
}

/* ---------- Icons ---------- */
.small-icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(79, 92, 255, 0.12);
}

.token-icon {
  width: 68px;
  height: 68px;
  object-fit: cover;
}

/* ---------- Floating Buy Button ---------- */
.floating-buy {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 1200;
  box-shadow: 0 12px 40px rgba(76, 107, 255, 0.12);
}

/* ---------- Toast ---------- */
.site-toast {
  position: fixed;
  right: 20px;
  bottom: 86px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: all .26s ease;
  z-index: 1400;
}

.site-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HOW TO BUY (Responsive & Modern) ---------- */
#howToBuy {
  position: relative;
  padding: 80px 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(15, 15, 25, 0.95)),
    url('../img/roadmap2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  overflow: hidden;
}

#howToBuy h2 {
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#howToBuy p.lead {
  color: #a5b0c8;
}

.timeline-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 60px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-2), rgba(111, 124, 255, 0.3));
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-step {
  position: relative;
  width: 45%;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px 20px;
  z-index: 2;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(76, 107, 255, 0.15);
}

.timeline-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: 0 0 30px rgba(76, 107, 255, 0.3);
}

.step-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px auto;
  font-size: 30px;
  color: #fff;
  box-shadow: 0 0 20px rgba(76, 107, 255, 0.7);
}

.contract-box {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.contract-box span#bydcAddress {
  font-family: monospace;
  font-size: 14px;
  word-break: break-word;
  text-align: center;
}

.copy-btn {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(76, 107, 255, 0.7);
}

/* Mobile layout */
@media (max-width: 992px) {
  #howToBuy {
    background-attachment: scroll;
    background-size: cover;
  }

  .timeline-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .timeline-container::before {
    display: none;
  }

  .timeline-step {
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 25px 20px;
  }

  .step-circle {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
}

@media (max-width: 576px) {
  #howToBuy {
    padding: 60px 0;
    background-size: contain;
  }

  .timeline-step {
    padding: 20px;
  }

  .step-circle {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .contract-box span#bydcAddress {
    font-size: 13px;
  }
}

/* ---------- Responsive Roadmap (Final Version) ---------- */
#roadmap {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(10, 10, 20, 0.95)),
    url('../img/roadmap3.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: #fff;
  overflow: hidden;
  padding: 80px 0;
}

#roadmap h2 {
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#roadmap p.text-muted {
  color: #a5b0c8 !important;
}

/* Timeline container */
.roadmap {
  position: relative;
  margin: 60px auto;
  max-width: 900px;
  padding: 0 1rem;
}

.roadmap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(76, 107, 255, 0.8), rgba(111, 124, 255, 0.3));
  transform: translateX(-50%);
  border-radius: 10px;
}

/* Roadmap phase items */
.phase {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.phase:nth-child(odd) {
  left: 0;
  text-align: right;
}

.phase:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* Dots */
.phase-dot {
  position: absolute;
  top: 30px;
  width: 18px;
  height: 18px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(76, 107, 255, 0.8);
  z-index: 2;
}

.phase:nth-child(odd) .phase-dot {
  right: -9px;
}

.phase:nth-child(even) .phase-dot {
  left: -9px;
}

/* Content box */
.phase-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(76, 107, 255, 0.25);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(76, 107, 255, 0.12);
  transition: all 0.3s ease;
}

.phase-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(76, 107, 255, 0.4);
  border-color: var(--accent-2);
}

.phase-content h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
}

.phase-content p {
  color: #ccc;
  margin: 0;
  font-size: 0.95rem;
}

/* Mobile Responsive Styling */
@media (max-width: 992px) {
  #roadmap {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
  }

  .roadmap::before {
    left: 24px;
    width: 3px;
  }

  .phase {
    width: 100%;
    padding: 20px 20px 20px 60px;
    text-align: left !important;
    left: 0 !important;
  }

  .phase-dot {
    left: 20px !important;
    right: auto !important;
  }

  .phase-content {
    width: 100%;
    margin: 10px 0;
  }
}

@media (max-width: 576px) {
  #roadmap {
    background-size: contain;
    background-repeat: repeat;
  }

  .roadmap::before {
    left: 16px;
  }

  .phase {
    padding-left: 55px;
    padding-right: 10px;
  }

  .phase-dot {
    left: 12px !important;
    width: 14px;
    height: 14px;
  }

  .phase-content {
    padding: 16px;
    font-size: 0.9rem;
  }

  .phase-content h5 {
    font-size: 1rem;
  }
}

/* ---------- Public Sale ---------- */
#publicSale {
  background-image: url('../img/roadmap2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/*.sale-card {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3); 
  backdrop-filter: blur(12px);     
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(76, 107, 255, 0.3);
  padding: 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
}*/

.sale-card {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 20px;
  background: transparent;
  /* fully transparent */
  padding: 20px;
  position: relative;
  color: #fff;
  /* text remains visible */
}

.liquid-progress {
  width: 100%;
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  /* very transparent */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.liquid-fill {
  width: 16%;
  /* example filled % */
  height: 100%;
  background: linear-gradient(90deg, rgba(79, 244, 2, 0.5), rgba(79, 244, 2, 0.5));
  /* semi-transparent fill */
  border-radius: 20px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 20px rgba(76, 107, 255, 0.5);
  animation: liquidGlow 2s ease-in-out infinite alternate;
}

.wave-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.08) 10px,
      transparent 10px,
      transparent 20px);
  animation: waveMove 3s linear infinite;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .sale-card {
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    /* slightly more transparent for small screens */
  }

  .liquid-progress {
    height: 20px;
  }
}

@keyframes waveMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes liquidGlow {
  0% {
    box-shadow: 0 0 15px rgba(76, 107, 255, 0.5);
  }

  100% {
    box-shadow: 0 0 35px rgba(111, 124, 255, 0.9);
  }
}

/* ---------- Responsive Backgrounds (Roadmap + Public Sale) ---------- */
@media (max-width: 992px) {

  #roadmap,
  #publicSale {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
  }
}

@media (max-width: 576px) {

  #roadmap,
  #publicSale {
    background-size: contain;
    background-repeat: repeat;
  }
}

/* Frequently Asked Questions section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  /* large enough to fit content */
  padding: 16px 20px;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer p {
  margin: 0;
  color: #ccc;
  font-size: 0.95rem;
}


/* language */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .navbar-nav {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .nav-item {
  text-align: right;
}




.language-signpost .dropdown-toggle {
  border-radius: 8px;
  font-weight: 600;
  background: #0a0a0a;
  color: #fff;
  border: 2px solid #4C6BFF;
}

.language-signpost .dropdown-menu {
  border-radius: 8px;
  background: #1c1c1c;
}

.language-signpost .dropdown-item {
  font-weight: 500;
  padding: 8px 16px;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  color: #fff;
}

.language-signpost .dropdown-item:hover {
  border-left: 4px solid #4C6BFF;
  background: #242424;
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: var(--card-bg, rgba(255, 255, 255, 0.05));
  color: var(--text-color, #fff);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 12px rgba(76, 107, 255, 0.3);
  z-index: 1400;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(76, 107, 255, 0.5);
}

/* ---------- COLOR VARIABLES ---------- */
:root {
  --accent-1: #6F7CFF;
  --accent-2: #4C6BFF;
  --bg-dark: #0b0b0b;
  --bg-light: #ffffff;
  --text-color: #ffffff;
  --text-muted: #a5b0c8;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.12);
}

/* ---------- LIGHT MODE ---------- */
body.light-mode {
  --accent-1: #4C6BFF;
  --accent-2: #6F7CFF;
  --bg-dark: #f8f9fb;
  --text-color: #0b0b0b;
  --text-muted: #555;
  --card-bg: rgba(0, 0, 0, 0.05);
  --border-color: rgba(0, 0, 0, 0.1);

  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  color: var(--text-color);
}

/* Example overrides for key sections */
body.light-mode .hero {
  color: var(--text-color);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(245, 245, 255, 0.95)),
    url('../img/hero.png');
  background-size: cover;
  background-position: center;
}

body.light-mode #roadmap,
body.light-mode .phase-content h5,
body.light-mode .phase-content p {
  color: var(--text-color);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(245, 245, 255, 0.95)),
    url('../img/roadmap3.jpg');
  background-size: cover;
  background-position: center;
}

body.light-mode #howToBuy {
  color: var(--text-color);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(245, 245, 255, 0.95)),
    url('../img/roadmap2.jpg');
  background-size: cover;
  background-position: center;
}



body.light-mode .phase-content,
body.light-mode .timeline-step,
body.light-mode .faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

body.light-mode .phase-content p,
body.light-mode .timeline-step p,
body.light-mode .faq-answer p {
  color: var(--text-muted);
}

body.light-mode .faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- NAVBAR LIGHT MODE OVERRIDES ---------- */
body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .navbar .navbar-brand span {
  color: #0b0b0b;
}

body.light-mode .navbar .navbar-brand small.text-muted {
  color: #555 !important;
}

body.light-mode .navbar .nav-link {
  color: #0b0b0b !important;
  transition: color 0.3s ease;
}

body.light-mode .navbar .nav-link:hover {
  color: var(--accent-2) !important;
}

/* make toggler icon visible on light bg */
body.light-mode .navbar .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.light-mode .floating-buy {
  color: #fff;
}

/* ---------- FOOTER LIGHT MODE OVERRIDES ---------- */
body.light-mode footer {
  background: rgba(255, 255, 255, 0.9);
  color: #0b0b0b;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode footer p {
  color: #0b0b0b;
}

body.light-mode footer a {
  color: #0b0b0b;
  transition: color 0.3s ease;
}

body.light-mode footer a:hover {
  color: var(--accent-2);
}

/* ---------- FOOTER ICON COLOR FIX ---------- */

/* Default (Dark Mode) */
footer a i {
  color: #ffffff;
  /* white icons for dark background */
  transition: color 0.3s ease;
}

/* Light Mode */
body.light-mode footer a i {
  color: #0b0b0b;
  /* dark icons for white background */
}

body.light-mode footer a:hover i {
  color: var(--accent-2);
  /* accent blue on hover */
}

body.light-mode .language-signpost .dropdown-toggle,
body.light-mode .language-signpost .dropdown-menu,
body.light-mode .language-signpost .dropdown-item,
body.light-mode .language-signpost .dropdown-item:hover {
  border-radius: 8px;
  background: #ffffff;
  color: #000000;
}