x-component {
  display: block;
}

/* Reserve footer space before shared/footer/footer.html mounts */
x-component[path*="shared/footer/footer.html"],
x-component[path*="shared/footer/footer.html"] > #site-footer {
  display: block;
  width: 100%;
}

x-component[path*="shared/socials/socials.html"],
.footer-socials {
  display: block;
  min-height: 48px;
}

@media (max-width: 768px) {
  x-component[path*="shared/footer/footer.html"],
  x-component[path*="shared/footer/footer.html"] > #site-footer {
    display: block
  }
}

[x-cloak] { display: none !important; }

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

html {
  scroll-behavior: auto;
}

:root {
  scroll-behavior: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  padding-top: 5rem;
  flex: 1 0 auto;
  /* Reserve space for routed content so footer doesn't jump on first paint */
  min-height: 60vh;
}

@media (min-width: 992px) {
  nav.navbar.navbar-has-secondary + main {
    padding-top: calc(5rem + 44px);
  }
}



/* Main Content */
.container,
.container-xxl {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 2rem !important;
}

@media (max-width: 991px) {
  .container,
  .container-xxl {
    padding: 1.5rem 1.5rem !important;
  }
}

.container .container{
  padding: 0;
}

.modal-content .container{
  padding: 0;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 700;
}


.button {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: normal;
  gap: 0.25rem;
}

.button.primary {
  background-color: var(--accent-light);
  color: white;
  text-wrap: nowrap;
  text-overflow:ellipsis; 
  white-space:nowrap; 
  overflow:hidden;
}

.button.danger {
  background-color: #dc3545;
  color: white;
}

.button.warning {
  background-color: #ffc107;
  color: black !important;
}

.button.secondary {
  background-color: transparent;
  border: 2px solid var(--accent-light);
  color: var(--accent-light);
  text-wrap: nowrap;
  text-overflow:ellipsis; 
  white-space:nowrap; 
  overflow:hidden;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Shared install widget */
.install-bar {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #1e1e2e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.install-bar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #252532;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.install-traffic {
  display: flex;
  align-items: center;
  gap: 6px;
}

.install-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.install-dot-red {
  background: #ff5f56;
}

.install-dot-yellow {
  background: #ffbd2e;
}

.install-dot-green {
  background: #27c93f;
}

.install-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.install-tab {
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.2s, color 0.2s;
}

.install-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.install-bar[data-active-tab="unix"] .install-tab[data-tab-name="unix"],
.install-bar[data-active-tab="windows"] .install-tab[data-tab-name="windows"],
.install-bar[data-active-tab="docker"] .install-tab[data-tab-name="docker"] {
  background: var(--accent);
  color: white;
}

.install-body {
  padding: 14px 16px;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.install-content {
  display: none;
}

.install-bar[data-active-tab="unix"] .install-content[data-tab-content="unix"],
.install-bar[data-active-tab="windows"] .install-content[data-tab-content="windows"],
.install-bar[data-active-tab="docker"] .install-content[data-tab-content="docker"] {
  display: block;
}

.install-comment {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  font-style: italic;
}

.install-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 1.5em;
}

.install-prompt {
  color: #e07d54;
  flex-shrink: 0;
}

.install-cmd {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.95);
  overflow-x: auto;
  white-space: nowrap;
}

.install-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.install-copy:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.install-copy x-icon,
.install-copy .icon {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .install-tab {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .install-body {
    padding: 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 520px) {
  .install-cmd {
    white-space: pre-wrap;
    word-break: break-all;
  }
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card x-icon {
  font-size: 1.5rem;
  background-color: var(--accent);
}

.dark-theme .feature-card p {
  color: var(--text-secondary-dark);
}

.dark-theme .feature-card {
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.39);
}

.light-theme .feature-card {
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.08);
}

.feature-card {
  background: var(--bg-sec);
  border: 1px solid var(--border-pri);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.35rem;
}

.feature-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
  color: var(--text-secondary-light);
}

.feature-card p:last-child {
  margin-bottom: 0;
}

.feature-card ul {
  text-align: justify;
  hyphens: auto;
  padding-left: 1.2rem;
  margin: 0 0 1rem 0;
  list-style-type: disc;
}

.feature-card li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary-light);
  line-height: 1.6;
}

.feature-card li:last-child {
  margin-bottom: 0;
}

.dark-theme .feature-card h3 {
  color: var(--text-primary-dark);
}

.dark-theme .feature-card p {
  color: var(--text-secondary-dark);
}

.dark-theme .feature-card li {
  color: var(--text-secondary-dark);
}

.feature-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dark-theme .feature-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Community Section */
.notification-box {
  background-color: var(--bg-secondary-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-light);
}

.dark-theme .notification-box {
  background-color: var(--bg-secondary-dark);
  border-left-color: var(--accent-dark);
}

.notification-box p {
  margin: 0;
  color: var(--text-secondary-light);
  font-size: 1.1rem;
}

.dark-theme .notification-box p {
  color: var(--text-secondary-dark);
}

/* Token Section */
.token-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Hero section */

#hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  overflow: hidden;
  padding: 0;
}

/* Sections */
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.section > section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Section Headers */
.section-header {
  margin-bottom: 2.5rem;
  width: 100%;
  padding: 2rem 1rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.section-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary-light);
  line-height: 1.6;
}

.dark-theme .section-subtitle {
  color: var(--text-secondary-dark);
}

.features-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem !important; /* space to next heading */
  border-radius: 999px;
  text-wrap: nowrap;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.features-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.1;
  border-radius: inherit;
  z-index: -1;
}

/* Learn more link */
.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  transition: gap 0.2s ease;
  margin-top: 1.5rem !important;
}

.dark-theme .learn-more-link {
  color: var(--accent-dark);
}

.learn-more-link:hover {
  gap: 0.75rem;
}

.learn-more-link x-icon {
  font-size: 1.25rem;
}

.section-header {
  view-timeline-name: --section;
  view-timeline-axis: block;
  animation: fade-in 1.2s ease-out both;
  animation-timeline: view();
  animation-range: entry 15% cover 40%;
}

/* Fallback for browsers that don't support scroll-driven animations */
@supports not (animation-timeline: view()) {
  .section-header {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .section-header {
    padding: 3rem 1rem;
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }
}

/* Update spacing after headers */
.notification-box {
  margin-top: 2rem;
}

/* Footer */
footer {
  flex-shrink: 0;
}

/* Home page footer layout */
#site-footer {
  text-align: left;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid var(--border-color);
}

#site-footer .footer-main {
  display: flex;
  align-items: flex-start;
  padding: 2rem;
  gap: 3rem;
  max-width: 1320px;
  margin: 0 auto;
}

#site-footer .footer-sitemap {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

#site-footer .footer-column {
  min-width: 180px;
}

#site-footer .footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-secondary-light);
}

.dark-theme #site-footer .footer-heading {
  color: var(--text-secondary-dark);
}

#site-footer .footer-sitemap .sitemap-column {
  list-style: none;
  padding: 0;
  margin: 0;
}

#site-footer .footer-sitemap .sitemap-column li {
  margin: 0.25rem 0;
}

#site-footer .footer-follow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#site-footer .footer-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#footer-theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary-light);
  transition: color 0.3s ease, transform 0.2s ease;
}

#footer-theme-toggle:hover {
  color: var(--accent-light);
  transform: translateY(-1px);
}

.dark-theme #footer-theme-toggle {
  color: var(--text-primary-dark);
}

.dark-theme #footer-theme-toggle:hover {
  color: var(--accent-dark);
}

.footer-controls .social-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#site-footer .footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  padding: 0.7rem;
  border-top: 1px solid var(--border-color);
}

#site-footer .footer-legal {
  margin: 0;
}

@media (max-width: 768px) {
  #site-footer .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  #site-footer .footer-follow {
    align-items: flex-start;
  }

  #site-footer .footer-controls {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* Read More Link */
.read-more {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  text-align: right;
  margin-top: 1rem;
}

.dark-theme .read-more {
  color: var(--accent-dark);
}

.read-more:hover {
  text-decoration: none;
}




/* Base styles */
a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dark-theme a {
  color: var(--accent-dark);
  
}

a:hover {
  color: var(--accent-light);
}

.dark-theme a:hover {
  color: var(--accent-dark);
}


/* Video Carousel */
.video-carousel {
  margin-top: 4rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.video-card {
  position: relative;
  width: 256px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  opacity: 0.7;
  aspect-ratio: 16/9;
}

/* Only apply hover effects on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .video-card:hover {
    transform: translateY(-5px);
    opacity: 1;
  }

  .video-card:hover .video-thumbnail {
    filter: grayscale(0%) contrast(100%) brightness(100%);
  }
}

@media (min-width: 520px) {
  .col-12.col-lg-7 {
    margin-top: unset;
  }
}

/* Adjust sizes for smaller screens */
@media (max-width: 992px) {
  .col-12.col-lg-5 {
    text-align: center;
  }

  .features-badge {
      display: flex;
      width: fit-content;
      margin: 0 auto;
  }

  .hero-subtitle {
    margin: 1.5rem auto !important;
  }

  .col-12.col-lg-7 {
    margin-top: 1rem;
  }

  .video-carousel {
    gap: 1.5rem;
  }

  .video-card {
    width: 224px;
  }
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
  filter: grayscale(100%) contrast(80%) brightness(90%);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 38px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.video-card:hover .video-play-button {
  background-color: #ff0000;
}

.video-play-button svg {
  width: 19px;
  height: 19px;
  fill: white;
}

.social-links-project {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0 -2rem;
}

.social-links-project .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--text-secondary-light);
}

.dark-theme .social-links-project .social-icon {
  color: var(--text-secondary-dark);
}

.social-links-project .social-icon:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

.dark-theme .social-links-project .social-icon:hover {
  color: var(--accent-dark);
}

#wallet-connect {
  width: 110px;
  font-size: 0.8rem;
  padding: 8px 12px 8px 6px;
  border: 1px solid var(--accent-light);
  background: transparent;
  color: var(--text-primary-light);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#wallet-connect .button-content {
  display: flex;
  align-items: center;
  gap: 2px;
}

#wallet-connect .wallet-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

#wallet-connect a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

#wallet-connect img {
  height: 30px;
  transition: opacity 0.3s ease;
}

#wallet-connect .logo-dark {
  display: none;
}

.dark-theme #wallet-connect .logo-dark {
  display: block;
}

.dark-theme #wallet-connect .logo-light {
  display: none;
}

.dark-theme #wallet-connect {
  border-color: var(--accent-dark);
  color: var(--text-primary-dark);
}

#wallet-connect:hover {
  background: var(--accent-light);
  color: white;
}

.dark-theme #wallet-connect:hover {
  background: var(--accent-dark);
}

.token-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 0.5rem;
}

.metric-card {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dark-theme .metric-card {
  background: var(--background-dark);
  border-color: var(--border-color-dark);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.metric-label {
  color: var(--text-secondary-light);
  font-size: 0.9rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.dark-theme .metric-label {
  color: var(--text-secondary-dark);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary-light);
  line-height: 1.2;
}

.dark-theme .metric-value {
  color: var(--text-primary-dark);
}

.metric-subtitle {
  color: var(--text-secondary-light);
  font-size: 0.85rem;
  opacity: 0.8;
}

.metric-unit {
  font-size: 0.9rem;
  opacity: 0.7;
}

.dark-theme .metric-subtitle {
  color: var(--text-secondary-dark);
}

.metric-change {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-top: 0.25rem;
}

.metric-change.positive {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
}

.metric-change.negative {
  background: rgba(255, 82, 82, 0.1);
  color: #ff5252;
}

.dark-theme .metric-change.positive {
  background: rgba(0, 200, 83, 0.2);
}

.dark-theme .metric-change.negative {
  background: rgba(255, 82, 82, 0.2);
}

.A0T {
  font-family: "Lucida Console", Monaco, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Rubik", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  font-variant-numeric: slashed-zero !important;
  white-space: pre-wrap !important;
}

.section-button-token-purchase {
  margin-bottom: -3rem;
  margin-top: 2rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.contact-box {
  background-color: var(--card-bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow-light);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dark-theme .contact-box {
  background-color: var(--card-bg-dark);
  box-shadow: var(--card-shadow-dark);
}

.dark-theme .contact-box:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.author-box {
  display: flex;
  flex-direction: column;
}

.author-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.contact-info-row {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
}

.contact-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5em;
  height: 5em;
  border-radius: 50%;
  background: transparent;
  margin: 0 1.2rem 0 0;
  padding: 0;
}

.contact-logo img {
  width: 5em;
  height: 5em;
  border-radius: 50%;
}

.contact-info-text {
  flex: 1;
  text-align: left;
}

@media (max-width: 768px) {
  .contact-info-row {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-logo {
    margin: 0 0 1rem 0;
  }
  
  .contact-info-text {
    text-align: center;
    width: 100%;
  }
}

.author-info {
  flex: 1;
  width: 100%;
}

.author-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary-light);
}

.author-bio {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-secondary-light);
  text-align: justify;
  hyphens: auto;
}

.author-links {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.links-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.author-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.author-links a:hover {
  color: var(--accent-hover);
}

.link-separator {
  color: var(--text-secondary-light);
}

.dark-theme .contact-box {
  background-color: var(--card-bg-dark);
  box-shadow: var(--card-shadow-dark);
}

.dark-theme .contact-box:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.dark-theme .author-info h3 {
  color: var(--text-primary-dark);
}

.dark-theme .author-bio {
  color: var(--text-secondary-dark);
}

.dark-theme .link-separator {
  color: var(--text-secondary-dark);
}

.author-info p {
  text-align: justify;
  hyphens: auto;
  margin-bottom: 1rem;
}

.author-info p:last-child {
  margin-bottom: 1.5rem;
}

/* Contributors Section */
.contributors-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary-light);
  text-align: center;
}

.contributor-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--card-bg-light);
  border-radius: 8px;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.contributor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.contributor-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.contributor-avatar img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.contributor-info {
  flex: 1;
}

.contributor-name {
  display: block;
  color: var(--text-primary-light);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contributor-card:hover .contributor-name {
  color: var(--accent-light);
}

.contribution-count {
  font-size: 0.9rem;
  color: var(--text-secondary-light);
}

.dark-theme .contributor-card {
  background-color: var(--card-bg-dark);
  box-shadow: none;
}

.dark-theme .contributor-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.dark-theme .contribution-count {
  color: var(--text-secondary-dark);
}

.dark-theme .contributor-name {
  color: var(--text-primary-dark);
}

.dark-theme .contributor-card:hover .contributor-name {
  color: var(--accent-dark);
}

.loading-message,
.error-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary-light);
}

.error-message {
  color: var(--error-color, #dc3545);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    margin-bottom: 0;
  }
  
  .learn-more-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
  }

  .heading-description {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  .author-avatar {
    width: 150px;
    height: 150px;
  }
}

.author-avatar {
  width: 10em;
  height: 10em;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  margin-bottom: 1.5rem;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .icon{
  color:var(--accent-light);
  vertical-align: text-bottom;
  margin-bottom: 0.1em;
  font-size:1em !important;
}


.dark-theme .icon{
  color:var(--accent-dark);
} */


x-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;

  /* THIS paints the icon */
  color: inherit;
  background-color: currentColor;

  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

x-icon.icon{
  background-color: var(--accent);
}

.contributors-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary-light);
  text-align: center;
}

.dark-theme .contributors-box h3 {
  color: var(--text-primary-dark);
}

.amount-base {
  font-size:1em;
  /* font-weight: bolder; */
}

.amount-decimal {
  font-size:0.8em;
  /* font-weight: normal; */
}

/* Responsive Design */
.loading {
  width: calc(100% - 4rem);
  max-width: 1200px;
  min-height: 50px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin: 2rem auto;
  /* Start fully visible; avoid fade-in driven CLS */
  opacity: 1;
}

.light-theme .loading {
  background: var(--bg-secondary-light);
}

.dark-theme .loading {
  background: var(--bg-secondary-dark);
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

  .dark-theme .loading::before {
    background: linear-gradient(90deg, 
      var(--bg-primary-dark), 
      var(--bg-secondary-dark),
      var(--bg-primary-dark)
    );
  animation: shimmer 2s infinite;
  animation-delay: 250ms;
  background-size: 200% 100%;
}

  .light-theme .loading::before {
    background: linear-gradient(90deg, 
      var(--bg-primary-light),
      color-mix(in srgb, var(--bg-secondary-light) 95%, black),
      var(--bg-primary-light)
    );
  animation: shimmer 2s infinite;
  animation-delay: 250ms;
  background-size: 200% 100%;
}



  /* Use transform-based shimmer to avoid layout shifts */
  .loading::before {
    will-change: transform;
  }

  @keyframes shimmer {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }


.animation-fade-pulse{
  animation: fade-pulse 2s infinite;
}

@keyframes fade-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

/* Documentation Hero Section - Clean Header */

.docs-content {
  padding-top: 0px !important;
}

.docs-header {
  text-align: left;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.docs-header h1 {
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.docs-header .section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .docs-header {
    text-align: left;
    padding: 1rem 0;
    margin-bottom: 2rem;
  }

  .docs-header h1 {
    flex-direction: column;
  }

  .docs-header .section-subtitle {
    font-size: 1rem;
  }
}

/* ============================================
   GLOBAL HEADING HIERARCHY SYSTEM
   ============================================

   Usage Pattern:
   - When using subtitle/keyword above main title:
     * First section: H1 (keyword) + H2 (title)
     * Subsequent sections: H2 (keyword) + H3 (title)

   - When no subtitle/keyword:
     * Main heading just moves up in hierarchy
   ============================================ */

/* Small Keyword/Subtitle Text */
.heading-keyword {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary-light);
  font-weight: 500;
}

.dark-theme .heading-keyword {
  color: var(--text-secondary-dark);
}

/* Large Gradient Title */
.heading-title {
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 2.5rem; /* Default H2-sized for sections */
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.75rem 0; /* no extra gap above, consistent gap to supporting copy */
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.heading-title span {
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Hero section uses larger H1-sized title */
.docs-header-hero .heading-title {
  font-size: 3.5rem;
}

/* Supporting Description Text */
.heading-description {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text-secondary-light);
  font-weight: 400;
}

.dark-theme .heading-description {
  color: var(--text-secondary-dark);
}

.hero-subtitle {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text-secondary-light);
  font-weight: 400;
  margin: 1rem 2rem 2rem 0;
}

.dark-theme .hero-subtitle {
  color: var(--text-secondary-dark);
}

/* Use Cases Shared Layout */
.use-cases-layout {
  display: flex;
  gap: 4rem;
  margin-top: 3rem;
}

.use-cases-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  font-size: 17px;
  padding-left: 3rem;
  padding-right: 3rem;
}

.use-case-hero {
  padding: 2rem 0 3rem;
  margin-bottom: 2rem;
}

.use-case-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.use-case-title-row img {
    height: 4rem;
    width: auto;
    position: relative;
    top: -5px;
}

.use-case-icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.use-case-heading {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.use-case-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary-light);
  margin: 0;
  font-weight: 400;
}

.dark-theme .use-case-subtitle {
  color: var(--text-secondary-dark);
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--txt-pri);
}

.content-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--txt-pri);
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--txt-sec);
  margin-bottom: 1.25rem;
}

.content-section ul,
.content-section ol {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--txt-sec);
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

.example-box {
  background: var(--bg-sec);
  border-left: 4px solid var(--acc);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.example-box h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--txt-pri);
}

.example-box code {
  background: var(--bg-pri);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .use-cases-layout {
    display: block;
    margin-top: 0;
  }

  .use-cases-content {
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 768px) {
  .use-case-hero {
    padding: 1.5rem 0 2rem;
  }

  .use-case-heading {
    font-size: 2.25rem;
  }

  .use-case-subtitle {
    font-size: 1.1rem;
  }

}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .heading-title {
    font-size: 2rem; /* H2-sized for sections on tablet */
  }

  .docs-header-hero .heading-title {
    font-size: 2.75rem; /* H1-sized for hero on tablet */
  }

  .heading-description {
    font-size: 1.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
  .use-case-title-row img {
    height: 4em;
    width: auto;
    position: relative;
    top: -5px;
  }
}

@media (max-width: 768px) {
  .heading-keyword {
    font-size: 0.95rem;
  }

  .heading-title {
    font-size: 1.75rem; /* H2-sized for sections on mobile */
  }

  .docs-header-hero .heading-title {
    font-size: 2.25rem; /* H1-sized for hero on mobile */
  }

  .heading-description {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

.docs-header-hero {
  padding: 0rem 0 2rem;
}

/* Changelog detail blocks */
.changelog-section {
  margin-bottom: 2rem;
}

.changelog-section h3 {
  color: var(--accent-light);
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(128, 128, 128, 0.2);
  padding-bottom: 0.5rem;
}

.dark-theme .changelog-section h3 {
  color: var(--accent-dark);
}

.changelog-section ul {
  padding-left: 1.5rem;
}

.changelog-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* Badges row (GitHub stars + Trendshift) */
.hero-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

@media (max-width: 991px) {
  .docs-header-hero {
    padding-bottom: 0;
  }

  .cta-buttons {
    justify-content: flex-start;
    min-height: 64px;
  }

  .button {
    width: 100%;
    justify-content: center !important;
    text-wrap: nowrap;
    margin-bottom: 1rem;
  }

  .hero-badges {
    justify-content: center;
  }

  #hero .heading-description {
    margin-bottom: 2rem !important;
  }
}

/* Video Carousel */
.video-carousel {
  margin-top: 4rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.video-card {
  position: relative;
  width: 256px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  opacity: 0.7;
  aspect-ratio: 16/9;
}

/* Only apply hover effects on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .video-card:hover {
    transform: translateY(-5px);
    opacity: 1;
  }

  .video-card:hover .video-thumbnail {
    filter: grayscale(0%) contrast(100%) brightness(100%);
  }
}

/* Adjust sizes for smaller screens */
@media (max-width: 520px) {
  .video-carousel {
    gap: 1.5rem;
  }

  .video-card {
    width: 224px;
  }
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
  filter: grayscale(100%) contrast(80%) brightness(90%);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 38px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.video-card:hover .video-play-button {
  background-color: #ff0000;
}

.video-play-button svg {
  width: 19px;
  height: 19px;
  fill: white;
}
