/* =====================================================================
   QMB Blockchain – Global Styles (clean + de-duped)
   Brand: Green/Blue. Dark gradient navbar. Larger logo. Mobile-ready.
   ===================================================================== */

/* -------- Reset + Base -------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f4f7fc;
  color: #333;
}

/* -------- Layout Helpers -------- */
.container { max-width: 1200px; margin: 0 auto; }
.section-light, .section-white { padding: 80px 20px; text-align: center; }
.section-light { background: #f5f8fa; }
.section-white { background: #ffffff; }

h1, h2, h3 { font-weight: 700; margin: 0 0 20px; color: #333; }
p { font-size: 18px; color: #555; line-height: 1.6; margin: 0 0 16px; }

/* =====================================================================
   Navbar
   - Dark green→blue gradient
   - Bigger bar (70px) for logo presence
   - White logo (PNG) displays without any white badge background
   ===================================================================== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; min-height: 70px;
  background: linear-gradient(135deg, #1e3a8a, #10b981);
}

/* Brand (logo + text). Use .brand in PHP menu; keep .logo for backward compatibility */
.navbar .brand, .navbar .logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}

/* Logo image – NO background box */
.navbar .brand .brand-mark,
.navbar .logo img {
  height: 54px; width: auto; border-radius: 12px;
  display: block;
}

/* Wordmark next to logo */
.navbar .brand-text,
.navbar .logo a { /* legacy .logo a */
  font-weight: 700; font-size: 22px; color: #ffffff; text-decoration: none;
}

/* Desktop nav links */
.navbar .nav-links {
  display: flex; align-items: center; gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.navbar .nav-links li a {
  color: #ffffff; text-decoration: none; font-weight: 500;
  transition: opacity .2s, color .2s;
}
.navbar .nav-links li a:hover,
.navbar .nav-links li a.active { color: #28a745; opacity: 1; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: 0; cursor: pointer; z-index: 1001;
}
.nav-toggle .bar {
  width: 28px; height: 3px; background: #28a745; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile ≤768px */
@media (max-width: 768px) {
  .navbar { padding: 10px 14px; min-height: 60px; }
  .navbar .brand .brand-mark { height: 42px; }
  .navbar .brand-text { font-size: 18px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #ffffff;
    flex-direction: column; align-items: center;
    max-height: 0; overflow: hidden;
    transition: max-height .4s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
  }
  .nav-links.open { max-height: 600px; }
  .nav-links li { margin: .5rem 0; width: 100%; }
  .nav-links li a {
    display: block; padding: .75rem 1rem; text-align: center;
    color: #000; border-bottom: 1px solid #eee;
  }
  .nav-links li a.active { color: #28a745; }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  background: linear-gradient(135deg, #28a745, #007bff);
  color: #fff; text-align: center;
  padding: 120px 20px;
  animation: fadeIn 1.5s ease-out;
}

/* =====================================================================
   Features Grid
   ===================================================================== */
.features {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 30px; margin-top: 50px;
}
.feature-box {
  background: linear-gradient(135deg, #ffffff, #e0f7fa);
  padding: 40px 30px; width: 280px;
  border-radius: 25px 5px 25px 5px;
  border: 2px solid #28a745;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  transition: transform .4s, box-shadow .4s;
  animation: fadeUp 1s ease forwards; opacity: 0;
}
.feature-box:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,.2);
}

/* =====================================================================
   Buttons
   ===================================================================== */
.cta-button {
  background: #ffffff; color: #28a745;
  padding: 15px 35px; border-radius: 10px; font-weight: 700;
  text-decoration: none; display: inline-block; margin-top: 25px;
  transition: background .3s, color .3s, transform .3s;
  animation: pulse 2s infinite;
}
.cta-button:hover { background: #007bff; color: #ffffff; transform: scale(1.08); }

/* =====================================================================
   Custom Lists
   ===================================================================== */
ul.custom-list {
  list-style: none; text-align: left; max-width: 800px;
  margin: 0 auto; padding: 0;
}
ul.custom-list li {
  font-size: 18px; margin: 15px 0; position: relative; padding-left: 30px;
  opacity: 0; animation: fadeInUpList 1s forwards;
}
ul.custom-list li::before {
  content: '✔️'; position: absolute; left: 0; color: #28a745;
}

/* =====================================================================
   Tokenomics (image placeholder)
   ===================================================================== */
.tokenomics-chart { max-width: 600px; margin: 40px auto; }

/* =====================================================================
   Forms (ICO / Contact)
   ===================================================================== */
.form-card-stylish {
  background: linear-gradient(135deg, #f5fff5, #e6f7ff);
  border: 2px solid #28a745; border-radius: 20px;
  padding: 40px; margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.contact-form-stylish .form-group { margin-bottom: 25px; }
.contact-form-stylish input,
.contact-form-stylish select,
.contact-form-stylish textarea {
  width: 100%; padding: 15px; font-size: 17px;
  border-radius: 10px; border: 1px solid #ccc;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.05);
  transition: border-color .3s, box-shadow .3s;
}
.contact-form-stylish input:focus,
.contact-form-stylish select:focus,
.contact-form-stylish textarea:focus {
  border-color: #28a745; box-shadow: 0 0 8px rgba(40,167,69,.5);
}
.form-button { text-align: center; margin-top: 30px; }
.form-button .cta-button { font-size: 18px; padding: 14px 40px; }

/* =====================================================================
   Roadmap
   ===================================================================== */
.roadmap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px; margin-top: 50px; padding: 0 15px;
}
.roadmap-item {
  background: #fff; padding: 30px 20px; border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
}
.roadmap-item:hover { transform: translateY(-10px); box-shadow: 0 12px 24px rgba(0,0,0,.15); }
.roadmap-item h3 { color: #28a745; margin-top: 0; }
.roadmap-item p { color: #555; margin-bottom: 0; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  background: #222; color: #fff; padding: 30px 20px; text-align: center;
}
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-text { font-size: 14px; }
.footer-social a { margin: 0 8px; display: inline-block; transition: transform .3s; color: #fff; font-size: 20px; }
.footer-social a:hover { transform: scale(1.2); color: #1da1f2; }
.footer-social img { width: 32px; height: 32px; filter: brightness(0) invert(1); }

/* =====================================================================
   Animations
   ===================================================================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(40px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes pulse  { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes fadeInUpList { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }



#summary-overlay, #success-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.qmb-summary, .qmb-success {
  background: #1e293b;
  color: #fff;
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  width: 340px;
  animation: fadeIn 0.3s ease-in-out;
}
.qmb-summary h3, .qmb-success h3 { margin-top: 0; color: #38bdf8; }
.summary-actions { display: flex; justify-content: space-between; margin-top: 16px; }
.summary-actions button, .qmb-success button {
  background: #38bdf8; border: none; color: #000;
  padding: 8px 16px; border-radius: 8px; cursor: pointer;
  font-weight: 600;
}
.summary-actions button:hover, .qmb-success button:hover { background: #7dd3fc; }
@keyframes fadeIn { from {opacity:0; transform:scale(0.95);} to {opacity:1; transform:scale(1);} }

