/* --- Global Styles & Variables --- */
:root {
  --primary-color: #ffd700; /* Gold/Yellow Accent */
  --secondary-color: #ffa500; /* Lighter Orange/Yellow for highlights */
  --dark-bg: #0a0a1a; /* Very dark blue/black */
  --dark-bg-alt: #101025; /* Slightly lighter dark blue */
  --text-color: #e0e0e0; /* Light grey/off-white */
  --text-color-darker: #a0a0a0; /* Grey for less emphasis */
  --header-height: 70px;
  --glow-effect: 0 0 15px rgba(255, 215, 0, 0.5); /* Subtle yellow glow */

  /* Fonts */
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll issues */
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px; /* Default padding */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); /* Subtle white text glow */
}

h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-color-darker);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
  padding-left: 20px; /* Indent list items slightly */
}

ul li::before {
  content: "▹"; /* Use a futuristic bullet */
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

ul li {
  margin-bottom: 0.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevent potential inline spacing issues */
}

.highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.alt-bg {
  background-color: var(--dark-bg-alt);
}

.content-section {
  padding: 60px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  box-shadow: var(--glow-effect);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

.btn-header-cta {
  margin-left: 1rem;
}

.btn-small {
  /* Optional smaller button size */
  padding: 8px 15px;
  font-size: 0.8rem;
}

/* --- Header --- */
#main-header {
  background-color: rgba(10, 10, 26, 0.8); /* Semi-transparent dark */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding: 0; /* Remove direct padding, height handles spacing */
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
}

#main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Vertical alignment */
  height: 100%;
  position: relative; /* For mobile nav positioning */
}

#main-header .logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  font-weight: bold;
  flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo-img {
  height: 40px; /* Adjust as needed */
  margin-right: 10px;
}
.logo-img-footer {
  height: 30px;
  margin-bottom: 10px;
}

#main-header nav {
  display: flex; /* Use flex for desktop nav layout */
  align-items: center;
}

#main-header nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0; /* Reset margin */
}

#main-header nav ul li {
  margin-left: 25px; /* Space between desktop links */
}
#main-header nav ul li::before {
  content: none; /* Remove default list style */
}

#main-header nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  padding-bottom: 5px;
  position: relative;
  white-space: nowrap; /* Prevent wrapping */
}

#main-header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

#main-header nav ul li a:hover,
#main-header nav ul li a.active {
  /* Add .active class via JS if needed */
  color: #fff;
}
#main-header nav ul li a:hover::after {
  width: 100%;
}

/* Hide mobile-specific elements on desktop */
.mobile-cta {
  display: none;
}

/* --- Hamburger Menu Button Styles --- */
#menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100; /* Ensure it's above nav */
  margin-left: auto; /* Push to the right */
  flex-shrink: 0; /* Prevent shrinking */
}

#menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  border-radius: 1px;
  transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
#hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  /* Placeholder: Add a cool background image */
  background: url("placeholder-hero-bg.jpg") no-repeat center center/cover;
  color: #fff;
  padding: 40px 0; /* Add padding for content spacing */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 26, 0.7); /* Dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

#hero h1 {
  font-size: 3.5rem; /* Larger for hero */
  margin-bottom: 1rem;
  text-shadow: var(--glow-effect);
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.hero-buttons .btn {
  margin: 10px 10px; /* Add vertical margin too */
}

/* --- Hero Section Animation Styles --- */
.hero-content.animate-trigger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Define animation delays for staggered effect */
.hero-content.animate-trigger h1 {
  transition-delay: 0.2s;
}
.hero-content.animate-trigger p {
  transition-delay: 0.4s;
}
.hero-content.animate-trigger .hero-buttons {
  transition-delay: 0.6s;
}

/* State when animation is active */
.hero-content.animate-in > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.feature-item {
  background-color: var(--dark-bg); /* Slightly different from alt-bg */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  /* Replace text with actual icons using <img> or icon font */
}

.feature-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* --- Staking Details Section --- */
.staking-details {
  background-color: var(--dark-bg-alt);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}

.staking-param {
  padding: 15px;
}

.staking-param .label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-color-darker);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.staking-param .value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-heading);
}

/* --- Business Plan / Tables --- */
.business-plan-section {
  margin-bottom: 3rem;
}
.business-plan-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.table-container {
  overflow-x: auto; /* Make table scrollable on small screens */
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.2); /* Add border around container */
  border-radius: 4px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: var(--dark-bg);
  /* border: 1px solid rgba(255, 215, 0, 0.2); */ /* Border moved to container */
}
th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  white-space: nowrap; /* Prevent wrapping in cells */
}
th {
  background-color: rgba(255, 215, 0, 0.1); /* Subtle yellow header */
  color: var(--primary-color);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  position: sticky; /* Make header sticky during scroll */
  top: 0;
  z-index: 10;
}
tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03); /* Slightly lighter rows */
}
tbody tr:hover {
  background-color: rgba(255, 215, 0, 0.08); /* Highlight on hover */
}
.note {
  font-size: 0.9rem;
  color: var(--text-color-darker);
  margin-top: 1rem;
  font-style: italic;
}

/* --- Withdrawal Options Section --- */
#withdrawals ul li::before {
  /* Style list items specifically if needed */
  content: "✓"; /* Example checkmark */
}

/* --- Tokenomics Section --- */
.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  background-color: var(--dark-bg);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  margin-bottom: 2rem;
}

.tokenomics-grid div {
  padding: 10px 0;
  word-wrap: break-word; /* Allow long strings like address to wrap */
}

.tokenomics-grid strong {
  color: var(--primary-color);
  margin-right: 10px;
}

.contract-address {
  grid-column: 1 / -1; /* Span full width */
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Allow wrap on small screens */
  gap: 10px; /* Space between input and button */
}

.contract-address input[type="text"] {
  flex-grow: 1;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--text-color);
  border-radius: 4px;
  font-family: monospace; /* Good for addresses */
  min-width: 250px; /* Prevent excessive shrinking */
  /* Remove margin, use gap in parent */
}
.btn-copy {
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
  flex-shrink: 0; /* Prevent button shrinking */
  /* Remove margin, use gap in parent */
}
.btn-copy:hover {
  background-color: var(--secondary-color);
}

/* --- Get Started Section --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 3rem;
  margin-bottom: 2rem; /* Space before button */
  text-align: center;
}

.step-item {
  position: relative;
  padding-top: 40px; /* Space for the number */
}

.step-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-heading);
  box-shadow: var(--glow-effect);
  border: 2px solid var(--dark-bg);
}

.step-item h3 {
  margin-bottom: 0.5rem;
  color: #fff; /* White headings for steps */
}

/* --- Contact Section --- */
#contact {
  text-align: center;
}
.contact-email {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  word-wrap: break-word; /* Wrap long email */
}
.contact-email a {
  font-weight: bold;
}
.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px; /* Center text vertically */
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 10px;
  color: var(--primary-color);
  font-family: var(--font-heading); /* Use heading font for icons */
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}

/* --- Footer --- */
footer {
  background-color: var(--dark-bg-alt);
  color: var(--text-color-darker);
  padding: 30px 0;
  margin-top: 60px; /* Space above footer */
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-links a {
  margin: 0 10px;
  color: var(--text-color-darker);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  /* Adjust breakpoint if needed */
  #main-header nav ul li {
    margin-left: 15px; /* Reduce spacing for medium screens */
  }
  .btn-header-cta {
    margin-left: 0.5rem; /* Reduce spacing */
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  #hero h1 {
    font-size: 2.5rem;
  } /* Adjusted hero h1 */
  h2 {
    font-size: 1.8rem;
  }
  #hero p {
    font-size: 1.1rem;
  } /* Adjusted hero p */

  .container {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  /* Header adjustments for mobile */
  #main-header .container {
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: space-between; /* Keep logo left, icons right */
  }

  #menu-toggle {
    display: block; /* Show hamburger on mobile */
  }

  .desktop-cta {
    display: none; /* Hide original desktop CTA */
  }

  #main-header nav {
    /* display: none; */ /* Let JS handle display */
    position: absolute;
    top: var(--header-height); /* Position below header */
    left: 0;
    width: 100%;
    background-color: var(--dark-bg); /* Solid background */
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 20px 0;
    flex-direction: column;
    align-items: stretch; /* Stretch items full width */
    opacity: 0; /* Start hidden for transition */
    visibility: hidden;
    transform: translateY(-10px); /* Slight slide effect */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    max-height: calc(100vh - var(--header-height)); /* Limit height */
    overflow-y: auto; /* Allow scrolling if content exceeds height */
  }

  /* Styles when mobile menu is active */
  #main-header nav.active {
    /* display: flex; */ /* Let JS handle display */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #main-header nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  #main-header nav ul li {
    margin: 0; /* Remove left margin */
    width: 100%;
    text-align: center;
  }

  #main-header nav ul li a {
    padding: 15px 20px; /* Larger click area */
    display: block; /* Make links take full width */
    width: 100%;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1); /* Separator lines */
    transition: background-color 0.2s ease;
  }
  #main-header nav ul li:last-child a {
    border-bottom: none; /* No border on last item */
  }
  #main-header nav ul li a:hover {
    background-color: rgba(255, 215, 0, 0.1); /* Subtle hover background */
  }

  #main-header nav ul li a::after {
    display: none; /* Hide underline effect on mobile nav */
  }

  .mobile-cta {
    display: block; /* Show mobile CTA button in the menu */
    margin-top: 15px;
    padding: 15px 20px; /* Add padding consistent with links */
    width: 100%;
    text-align: center;
  }
  .mobile-cta .btn {
    width: auto; /* Don't force button full width */
    display: inline-block;
  }

  /* Hamburger Icon Active State (X) */
  #menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px); /* Minor adjustments might be needed */
  }

  /* Adjust other sections if needed */
  .features-grid,
  .staking-details,
  .tokenomics-grid,
  .steps-grid {
    grid-template-columns: 1fr; /* Stack columns */
  }

  .contract-address {
    flex-direction: column;
    align-items: stretch;
  }
  .contract-address input[type="text"] {
    margin-right: 0;
    margin-bottom: 10px; /* Space between input and button when stacked */
  }

  th,
  td {
    white-space: normal; /* Allow wrapping in table cells */
  }

  .footer-content {
    gap: 10px;
  }
}
