h1,h2,h3,h4,h5,h6 {
  font-family: 'Quicksand', sans-serif;
  color: white;
}
body {
  font-family: 'Quicksand', sans-serif;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scroll during animations */
}

.container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.top-content {
  width: 100%;
}

.bottom-content {
  margin-bottom: 3rem;
}

h1 {
  font-weight: 700;
  letter-spacing: 1px;
}

h2 {
  font-weight: 500;
  line-height: 1.5;
}
/* Parallax and Section Transitions */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Fullscreen backdrop shadow overlay */
.backdrop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 1;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform, opacity;
}

/* Content styling */
.feature-card {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.feature-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Text styling */
h1, h2, h3, p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Make text more visible on all backgrounds */
.section .container {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  max-width: min(1100px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* Hide scrollbar for cleaner look */
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}
.btn {
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: #ffcc00;
  color: #000;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animation enhancements */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Feature cards styling */
.feature-card {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: rgba(25, 25, 25, 0.9);
  border: 1px solid rgba(255, 204, 0, 0.5);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  font-weight: 300;
  opacity: 0.9;
}

/* Add subtle shimmer effect to cards */
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, transparent, rgba(255, 204, 0, 0.1), transparent);
  background-size: 200% 100%;
  border-radius: 10px;
  animation: shimmer 3s infinite;
  pointer-events: none;
}

/* Custom animation for button glow effect */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
  }
}

.bottom-content .btn {
  animation: pulse-glow 2s infinite;
}

/* Add responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.5rem 2rem !important;
  }

  /* Adjust animation timing for mobile */
  [data-aos-delay] {
    transition-delay: 0s !important;
  }
}

/* Value Grid (Sections 5 and 5b) */
.section-5 .value-grid,
.section-5b .value-grid {
  align-items: stretch;
  justify-content: center;
}

.value-card h3 {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.value-card p {
  opacity: 0.95;
}

/* Tighten layout for small screens to help all 7 cards fit comfortably */
@media (max-width: 576px) {
  .section-5 .container {
    padding: 12px;
  }
  .value-grid {
    row-gap: 8px;
  }
  .value-card {
    padding: 10px !important;
  }
  .value-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }
  .value-card p {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/* Equalize value cards and responsive clamping (Section 5) */
.value-grid > [class^="col-"],
.value-grid > [class*=" col-"] {
  display: flex;
  overflow: hidden; /* prevent hovered cards from escaping their column */
}

.section-5 .value-card {
  display: flex;
  flex-direction: column;
}

/* Keep headings compact and consistent */
.section-5 .value-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Default: let the mobile rule (already present) clamp to 3 lines. */
@media (min-width: 576px) {
  .section-5 .value-card p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (min-width: 992px) {
  .section-5 .value-card p {
    -webkit-line-clamp: 5;
  }
}

/* Desktop enhancements for Section 5 value cards: bigger and clearer */
@media (min-width: 992px) {
  .section-5 .value-card {
    padding: 2rem !important; /* larger interior space on desktop */
  }
  .section-5 .value-card h3,
  .section-5 .value-card h3.h6 {
    font-size: 1.3rem; /* override small heading size on desktop */
    line-height: 1.25;
  }
  .section-5 .value-card p,
  .section-5 .value-card p.small {
    font-size: 1rem; /* larger than Bootstrap small */
    line-height: 1.6;
  }
}

@media (min-width: 1200px) {
  .section-5 .value-card {
    padding: 2.25rem !important; /* even roomier on very large screens */
  }
  .section-5 .value-card h3,
  .section-5 .value-card h3.h6 {
    font-size: 1.4rem;
  }
  .section-5 .value-card p,
  .section-5 .value-card p.small {
    font-size: 1.06rem;
  }
}

/* Larger, flashier cards that cover most of the height (Sections 5 and 5b) */
.section-5 .value-card,
.section-5b .value-card {
  background: radial-gradient(900px 900px at -10% -20%, rgba(255, 204, 0, 0.08), transparent 45%), rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 204, 0, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 204, 0, 0.08);
}

.section-5 .value-card:hover,
.section-5b .value-card:hover {
  transform: scale(1.03);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45), 0 0 36px rgba(255, 204, 0, 0.18);
}

/* Animated top accent */
.section-5 .value-card::before,
.section-5b .value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 204, 0, 0), rgba(255, 204, 0, 1), rgba(255, 204, 0, 0));
  background-size: 200% 100%;
  animation: accent-sweep 5s linear infinite;
  opacity: 0.9;
  pointer-events: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

@keyframes accent-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Make them taller on tablet/desktop and ensure the grid covers most of the viewport height */
@media (min-width: 768px) {
  .section-5 .value-card,
  .section-5b .value-card {
    min-height: clamp(130px, 12.5vh, 200px);
    padding: 1.25rem !important;
  }
  .section-5 .value-card h3,
  .section-5b .value-card h3 {
    font-size: 1.15rem;
  }
  .section-5 .value-card p,
  .section-5b .value-card p {
    font-size: 0.95rem;
  }
  .section-5 .value-grid,
  .section-5b .value-grid {
    min-height: 34vh;
  }
}

@media (min-width: 992px) {
  .section-5 .value-card,
  .section-5b .value-card {
    min-height: clamp(140px, 13vh, 200px);
    padding: 1.5rem !important;
  }
  .section-5 .value-card h3,
  .section-5b .value-card h3 {
    font-size: 1.25rem;
  }
  .section-5 .value-card p,
  .section-5b .value-card p {
    font-size: 1rem;
    line-height: 1.55;
  }
  .section-5 .value-grid,
  .section-5b .value-grid {
    min-height: 35vh;
  }
}

@media (min-width: 1200px) {
  .section-5 .value-card,
  .section-5b .value-card {
    min-height: clamp(145px, 13.5vh, 210px);
    padding: 1.75rem !important;
  }
  .section-5 .value-card h3,
  .section-5b .value-card h3 {
    font-size: 1.3rem;
  }
  .section-5 .value-card p,
  .section-5b .value-card p {
    font-size: 1.02rem;
  }
  .section-5 .value-grid,
  .section-5b .value-grid {
    min-height: 36vh;
  }
}

/*** Section 5 & 5b: center content, add in-card divider, and make cards more square ***/
.section-5 .value-card,
.section-5b .value-card {
  /* Center all inner content horizontally */
  align-items: center;
  text-align: center;
  /* Make corners more square */
  border-radius: 6px;
}

/* Ensure decorative overlays inherit the squarer radius */
.section-5 .value-card::after,
.section-5b .value-card::after {
  border-radius: 6px;
}
.section-5 .value-card::before,
.section-5b .value-card::before {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

/* Title-Description visual separation inside the card */
.section-5 .value-card h3,
.section-5b .value-card h3 {
  margin-bottom: 0.25rem; /* keep tight; divider handles spacing */
}
.section-5 .value-card h3 + p::before,
.section-5b .value-card h3 + p::before {
  content: "";
  display: block;
  width: 60%;
  max-width: 200px;
  height: 1px;
  margin: 8px auto 10px;
  background: linear-gradient(90deg, rgba(255, 204, 0, 0), rgba(255, 204, 0, 0.35), rgba(255, 204, 0, 0));
}

/* Slightly tighter divider on very small screens */
@media (max-width: 576px) {
  .section-5 .value-card h3 + p::before,
  .section-5b .value-card h3 + p::before {
    width: 70%;
    margin: 6px auto 8px;
  }
}

/* Core Apps cards */
.app-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 140px;
  padding: 1.25rem;
  background: radial-gradient(900px 900px at -10% -20%, rgba(255, 204, 0, 0.08), transparent 45%), rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 204, 0, 0.08);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: default;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 204, 0, 0), rgba(255, 204, 0, 0.18), rgba(255, 204, 0, 0));
  opacity: 0.25;
  pointer-events: none;
}
.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 204, 0, 0.6);
  box-shadow: 0 22px 40px rgba(0,0,0,0.45), 0 0 36px rgba(255, 204, 0, 0.18);
  outline: none;
}
.app-card[aria-pressed="true"] {
  transform: scale(0.98);
}
.app-card .click-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.7rem;
  color: rgba(255, 204, 0, 0.85);
  opacity: 0.85;
  pointer-events: none;
}
@media (max-width: 576px) {
  .app-card { min-height: 110px; padding: 0.9rem; font-size: 0.95rem; }
}

/* Fullscreen App Modal */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  z-index: 1050; /* above containers/cards */
}
.app-modal-backdrop.open { display: block; }

.app-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1060;
  background-color: transparent;
  background-image: none;
  background-size: cover; /* harmless if no image */
  background-position: center;
  overflow: hidden; /* ensure inner content cannot slip outside modal */
}
.app-modal.open { display: block; }

/* Dark overlay with gold contour */
.app-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.85));
}
.app-modal::after {
  content: '';
  position: absolute;
  inset: clamp(0.5rem, 2vmin, 1.1rem);
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 10px;
  pointer-events: none;
}

/* Modal inner UI */
.app-modal-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Responsive viewport height without forcing fixed height */
  min-height: 100vh; /* fallback */
  min-height: 100dvh; /* dynamic viewport */
  min-height: 100svh; /* small viewport, avoids mobile UI jumps */
  padding: clamp(0.75rem, 2.4vmin, 1.5rem);
}
.app-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-modal-title {
  font-size: 1rem;
  color: rgba(255, 204, 0, 0.95);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255, 204, 0, 0.35);
  padding: 6px 10px;
  border-radius: 6px;
}
.app-modal-close {
  margin-left: auto;
  width: clamp(2.25rem, 4.2vmin, 2.75rem);
  height: clamp(2.25rem, 4.2vmin, 2.75rem);
  border-radius: 50%;
  border: 1px solid rgba(255, 204, 0, 0.6);
  background: rgba(0,0,0,0.55);
  color: #ffcc00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 2.2vmin, 1.25rem);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.app-modal-close:hover, .app-modal-close:focus-visible {
  transform: scale(1.06);
  background: rgba(0,0,0,0.7);
  outline: none;
}
/* Placeholder content container for future per-app content */
.app-modal-content {
  position: relative;
  margin-top: auto;
  margin-bottom: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30vh;
  color: #fff;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .app-modal-inner { padding: clamp(0.5rem, 2.6vmin, 0.9rem); }
  .app-modal-title { font-size: clamp(0.85rem, 2.8vmin, 0.95rem); }
  /* close button sizes are handled by clamp() in the base rule */
  .app-modal::after { inset: clamp(0.4rem, 2.4vmin, 0.6rem); border-radius: 8px; }
}


/* Mobile: make value cards taller to improve presence */
@media (max-width: 576px) {
  .section-5 .value-card,
  .section-5b .value-card {
    min-height: 120px;
  }
}

/* Make 'Also Available' value-cards clickable indicators */
.section-5 .value-card.app-click,
.section-5b .value-card.app-click { cursor: pointer; }

.section-5 .value-card .click-hint,
.section-5b .value-card .click-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.7rem;
  color: rgba(255, 204, 0, 0.85);
  opacity: 0.85;
  pointer-events: none;
}

/* Mobile fit improvements for Why EFRACS and general container */
@media (max-width: 576px) {
  /* Tighter container padding on small screens */
  .section .container { padding: 16px; }

  /* Clamp description text to keep cards compact */
  #why-efracs .value-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Slightly smaller internal padding for value cards on mobile */
  #why-efracs .value-card { padding: 0.9rem !important; }

  /* Show only first 3 cards by default on mobile; reveal others on toggle */
  #why-efracs .value-grid:not(.expanded) > [class^="col-"]:nth-child(n+4) { display: none !important; }

  /* Minimal, on-brand toggle button */
  #why-efracs .show-more-wrap { display: flex; justify-content: center; }
  #why-efracs .show-more-btn {
    background: rgba(0,0,0,0.6);
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.4);
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.2px;
  }
  #why-efracs .show-more-btn:active { transform: scale(0.98); }
}


/* Mobile: expanded 'Show all' layout -> 2 columns and hide descriptions */
@media (max-width: 576px) {
  /* Switch grid to 2 columns when expanded */
  #why-efracs .value-grid.expanded {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Remove Bootstrap column padding inside grid to avoid double gutters */
  #why-efracs .value-grid.expanded > [class^="col-"],
  #why-efracs .value-grid.expanded > [class*=" col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
  }
  /* Hide descriptions upon pressing Show All (expanded) */
  #why-efracs .value-grid.expanded .value-card p {
    display: none !important;
  }

  /* Center the last card when there is an odd number of items */
  #why-efracs .value-grid.expanded > [class^="col-"]:last-child:nth-child(odd),
  #why-efracs .value-grid.expanded > [class*=" col-"]:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }
  #why-efracs .value-grid.expanded > [class^="col-"]:last-child:nth-child(odd) .value-card,
  #why-efracs .value-grid.expanded > [class*=" col-"]:last-child:nth-child(odd) .value-card {
    max-width: 420px;
    width: 100%;
  }
}

/* Drop-down animation for modal when triggered from Why EFRACS */
@keyframes appModalDropIn {
  0% { transform: translateY(-100%); opacity: 0; }
  60% { transform: translateY(3%); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes appBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Only apply animated drop when .drop modifier is present */
.app-modal.drop.open {
  animation: appModalDropIn 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.app-modal-backdrop.open {
  animation: appBackdropFadeIn 400ms ease both;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .app-modal.drop.open,
  .app-modal-backdrop.open { animation: none; }
}

/* Structured App Modal content layout */
.app-modal .app-modal-content {
  display: block; /* override center-flex placeholder */
  margin-top: 12px;
  margin-bottom: 0;
  min-height: auto;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.app-left {
  align-self: start;
  color: #fff;
}
.app-title-large {
  font-size: clamp(1.4rem, 2.2vw + 0.6rem, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 4px 0 8px;
  letter-spacing: 0.2px;
}
.app-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: clamp(0.95rem, 0.4vw + 0.8rem, 1.15rem);
  margin-bottom: 14px;
}
.app-cta {
  margin-top: 6px;
  border: 1px solid rgba(0,0,0,0.1);
}

.app-right {
  position: relative;
  display: grid;
  place-items: center;
  /* padding to avoid images touching the edges */
  padding: clamp(0.5rem, 2vmin, 1.25rem);
  overflow: hidden;
  /* Responsive min-height using viewport units; last supported value wins */
  min-height: 50vh;
  min-height: 50dvh;
  min-height: 60svh;
  min-height: 62vmin;
  border-left: 1px solid rgba(255, 204, 0, 0.25);
}
.app-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center; /* center child image both horizontally and vertically */
}
.app-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto; /* fallback centering */
}
.app-right .app-desc {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: min(25vw, 420px);
  background: rgba(0,0,0,0.62);
  color: #fff;
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  line-height: 1.4;
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}
.app-left .app-desc {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  margin-top: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  line-height: 1.45;
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}

/* Desktop: two-column split with image filling the right side */
@media (min-width: 992px) {
  .app-grid {
    grid-template-columns: 42% 58%;
    /* Fallback then dvh */
    min-height: calc(100vh - 140px); /* leave room for header + padding */
    min-height: calc(100dvh - 140px); /* leave room for header + padding */
  }
}

/* Mobile/tablet: single column, image above description */
@media (max-width: 991.98px) {
  .app-right { border-left: none; order: -1; }
  .app-image {
    border-radius: 8px;
    border: 1px solid rgba(255, 204, 0, 0.25);
  }
  .app-desc {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 10px;
    background: rgba(0,0,0,0.55);
  }
}


/* Title accent for visual hierarchy */
.app-title-large { position: relative; }
.app-title-large::after {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 204, 0, 0.85), rgba(255, 204, 0, 0));
  margin-top: 8px;
  border-radius: 2px;
}

/* Mobile visual refinements: make small-screen layout cleaner and reduce clutter */
@media (max-width: 576px) {
  /* Reduce rigid full-height sections that can cause awkward spacing */
  .section .container.min-vh-100 { min-height: auto !important; padding-top: 22px; padding-bottom: 22px; }

  /* CTA section: center everything and make the button easy to tap */
  #schedule .container { align-items: center !important; text-align: center; }
  #schedule h1, #schedule h2 { text-align: center; }
  #schedule .btn { width: 100%; }

  /* Roadmap: tidy vertical list with consistent spacing */
  #audience .roadmap { display: grid; gap: 12px; }
  #audience .roadmap .step { display: flex; align-items: center; gap: 10px; margin: 0; }
  #audience .roadmap .label { text-align: left; font-size: 0.98rem; }

  /* Headings scale for readability on small screens */
  .section h1 { font-size: clamp(1.35rem, 5.5vw + 0.6rem, 1.9rem); }
  .section h2 { font-size: clamp(1rem, 4.5vw + 0.5rem, 1.35rem); }

  /* Modal CTA: full width for a clean, consistent block */
  .app-modal .app-cta { width: 100%; display: inline-flex; justify-content: center; }
}

/* Ensure full descriptions are visible and cards grow to fit content (override clamps) */
.section-5 .value-card p,
.section-5b .value-card p {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
}

/* ===== Moved from landing.html <style> block ===== */
html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #000;
  /* Scroll snapping controlled via media query (desktop only) */
}

/* Section styling */
.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  /* Scroll snap set in desktop media query */
}

.section {
  background-color: transparent;
  z-index: 1;
}

/* Make sections always visible; avoid fade-out between sections */
.section.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}

.section:not(.active) {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}

/* Parallax effect */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: none; /* disable parallax movement */
  will-change: auto;
}


/* Backdrop blur removed per design */

/* Split feature card */
.split-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
}
.split-card .fw-bold {
  font-weight: 700 !important;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}
.split-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

/* Prepare section content for parallax transforms */
.section .container {
  will-change: transform;
}

/* Roadmap section styles */
.roadmap-title {
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
}

.roadmap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: clamp(560px, 65vh, 900px);
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: repeat(4, 1fr); /* 4 equal-height rows for even spacing */
  align-content: stretch;
  row-gap: 0;
  --bubble: 72px;
  --r: calc(var(--bubble) / 2);
}

.roadmap .step {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.roadmap .bubble {
  width: var(--bubble);
  height: var(--bubble);
  min-width: var(--bubble);
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  backdrop-filter: blur(0.5px);
}

.roadmap .label {
  background: #FFD700;
  color: #222;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  max-width: 360px;
  line-height: 1.25;
}

/* Flip label to the left of the bubble for alternating steps */
.roadmap .align-left { flex-direction: row-reverse; }
.roadmap .align-left .label { text-align: right; }

/* Roadmap section styles */
.roadmap-title {
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
}

.roadmap {
  position: relative;
  width: 100%
  ;
  max-width: 1200px;
  aspect-ratio: 16 / 9; /* keep layout consistent on desktops */
  min-height: 520px;
  margin: 0 auto;
  --bubble: 72px;
  --r: calc(var(--bubble) / 2);
}

.roadmap .step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--bubble) minmax(0, 1fr); /* left | bubble | right */
  grid-auto-flow: column dense; /* prefer filling columns on the same row */
  align-items: center;
  column-gap: 16px; /* tighter gap so caption is right next to the bubble */
  z-index: 2;
  min-height: var(--bubble);
  margin: 0; /* spacing handled by container grid */
}

.roadmap .bubble {
  width: var(--bubble);
  height: var(--bubble);
  min-width: var(--bubble);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  color: #fff;
  background:
    radial-gradient(closest-side, rgba(255,255,255,0.08), rgba(255,255,255,0) 70%),
    rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.1rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4), 0 0 0 0 rgba(255,215,0,0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.roadmap .label {
  background: linear-gradient(180deg, #FFD700 0%, #F2C400 100%);
  color: #222;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  max-width: 380px;
  line-height: 1.25;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

/* Interactive step states */
.roadmap .step:hover .bubble,
.roadmap .step:focus-within .bubble {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 0 0 8px rgba(255,215,0,0.08);
  border-color: #fff;
}
.roadmap .step:hover .label,
.roadmap .step:focus-within .label {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.5);
}

/* Center pillar and centered bubbles */
.roadmap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,215,0,0.9) 20%,
    rgba(255,215,0,0.6) 50%,
    rgba(255,215,0,0.9) 80%,
    rgba(255,255,255,0) 100%
  );
  box-shadow: 0 0 16px rgba(255,215,0,0.35), 0 0 40px rgba(255,215,0,0.2);
  border-radius: 2px;
  pointer-events: none;
}

/* Place bubble in the middle column; labels alternate sides */
.roadmap .step .bubble {
  grid-column: 2;
  justify-self: center; /* centers bubble exactly over pillar */
}
.roadmap .step .bubble {
  grid-column: 2;
  grid-row: 1;          /* keep bubble on the first row */
  justify-self: center;
}
.roadmap .step .label {
  grid-column: 3;
  grid-row: 1;          /* force caption to share the same row as the bubble */
  justify-self: start;  /* sit right next to the bubble on the right side */
  text-align: left;
  width: auto;
  max-width: 520px;
}
.roadmap .step.align-left .label {
  grid-column: 1;       /* left side */
  grid-row: 1;          /* share the same row as the bubble */
  justify-self: end;    /* sit right next to the bubble on the left side */
  text-align: right;
  width: auto;
  max-width: 520px;
}

/* Mobile: hide pillar and left-align everything */
@media (max-width: 575.98px) {
  .roadmap::before {
    display: none !important;
  }
  .roadmap {
    grid-template-rows: repeat(4, max-content);
    row-gap: 12px;
  }
  .roadmap .step {
    grid-template-columns: var(--bubble) 1fr; /* bubble | label */
    column-gap: 12px;
  }
  .roadmap .step .bubble {
    grid-column: 1;
    justify-self: start;
  }
  .roadmap .step .label,
  .roadmap .step.align-left .label {
    grid-column: 2 !important;
    justify-self: stretch;
    text-align: left !important;
  }
}

/* Responsiveness */
@media (max-width: 1199.98px) {
  .roadmap { max-width: 1000px; --bubble: 68px; --r: calc(var(--bubble)/2); }
  .roadmap .label { max-width: 320px; }
}

/* Tablet: single column, pillar shifts left; all labels left-aligned */
@media (max-width: 991.98px) {
  .roadmap {
    position: relative;
    aspect-ratio: auto;
    min-height: unset;
    padding: 12px 14px 0;
    --bubble: 62px;
    --r: calc(var(--bubble)/2);
  }
  .roadmap::before {
    left: calc(14px + var(--r)); /* pillar near the bubbles on the left */
    transform: translateX(-50%);
    width: 3px;
    opacity: 0.9;
  }
  .roadmap .step {
    grid-template-columns: var(--bubble) 1fr; /* bubble | label */
    column-gap: 16px;
    margin: 10px 0;
  }
  .roadmap .step .bubble {
    grid-column: 1;
    justify-self: center;
  }
  .roadmap .step .label,
  .roadmap .step.align-left .label {
    grid-column: 2;
    justify-self: stretch;
    text-align: left;
    max-width: none;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }
}

/* Mobile: tighter spacing and smaller bubbles, pillar thinner */
@media (max-width: 575.98px) {
  .roadmap {
    padding: 10px 10px 0;
    --bubble: 54px;
    --r: calc(var(--bubble)/2);
  }
  .roadmap::before {
    left: calc(10px + var(--r));
    width: 2px;
    opacity: 0.85;
  }
  .roadmap .step {
    column-gap: 12px;
    margin: 8px 0;
  }
  .roadmap .step .label {
    font-size: 0.96rem;
    line-height: 1.35;
    padding: 12px 14px;
  }
}

@media (max-width: 991.98px) {
  .roadmap {
    position: relative;
    aspect-ratio: auto;
    min-height: unset;
    display: grid;
    gap: 18px;
    padding: 8px 12px 0;
    --bubble: 64px;
    --r: calc(var(--bubble)/2);
  }
  .roadmap .step {
    position: relative;
    left: 0 !important;
    top: 0 !important;
  }
  .roadmap .label {
    max-width: none;
    width: 100%;
    text-align: left;
  }
  .roadmap .align-left {
    flex-direction: row;
  }
}

/* Core Apps section */
.core-apps-title {
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}
.app-card {
  background: linear-gradient(180deg, #FFD700 0%, #F2C400 100%);
  color: #1c1c1c;
  border-radius: 14px;
  padding: 18px 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 200ms ease, box-shadow 220ms ease;
}
.app-card:hover, .app-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.55);
}
.h6 {
  font-size: 1rem!important;
}
/* ===== End moved styles ===== */


/* Mobile rebuild: fix overlapping sections and dynamic height issues */
@media (max-width: 767.98px) {
  /* Let the page grow naturally and disable scroll snapping */
  body {
    height: auto !important;
    min-height: 100%;
    display: block;
    scroll-snap-type: none !important;
    overscroll-behavior-y: auto;
  }

  /* Let sections size to their content and avoid clipping */
  .section {
    min-height: auto !important;
    overflow: visible !important;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  /* Ensure section containers fill width and don't enforce viewport height */
  .section .container {
    max-width: 100%;
  }

  /* Fix Bootstrap's min-vh-100 on mobile for containers inside sections */
  .section .container.min-vh-100 {
    min-height: auto !important;
  }
}


/* === Scroll normalization, navbar compensation, and footer detachment === */
@media (min-width: 992px) {
  body { scroll-snap-type: y proximity; }
  .section { scroll-snap-align: start; scroll-snap-stop: normal; }
}
@media (max-width: 991.98px) {
  body { scroll-snap-type: none; }
}

/* Prevent scroll chain issues inside components that capture scroll */
.modal, .offcanvas, .navbar-collapse { overscroll-behavior: contain; }

/* Navbar compensation and styling */
.pt-nav-compensation { padding-top: 72px; }
@media (min-width: 992px) { .pt-nav-compensation { padding-top: 0; } }

#mainNav { backdrop-filter: saturate(120%) blur(6px); background: rgba(11, 12, 16, 0.85) !important; }
#mainNav .nav-link { opacity: 0.9; }
#mainNav .nav-link.active { opacity: 1; color: #ffc107 !important; }

/* Footer detached styling */
.site-footer {
  color: #f1f1f1;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
}
.mt-detached { margin-top: 6rem; }
.site-footer .brand { font-weight: 700; font-size: 1.25rem; }
.site-footer a { color: #e7e7e7; text-decoration: none; }
.site-footer a:hover { color: #ffc107; }

/* Reduce repaint tearing on animated elements */
[data-aos] { contain: paint; will-change: transform, opacity; }


/* Keep card hover growth contained and centered */
.feature-card,
.value-card {
  transform-origin: center center;
}

/* Footer layout fixes inside CTA section */
.section-7 .site-footer {
  /* Ensure full-width inside flex column with align-items-start */
  align-self: stretch;
  width: 100%;
  /* Push footer to the bottom of the CTA section */
  margin-top: auto;
}
.section-7 .site-footer .container {
  /* Tighter vertical rhythm than py-5 without changing HTML classes */
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}
.section-7 .site-footer hr {
  border-color: rgba(255,255,255,0.12) !important;
}
.section-7 .site-footer .text-muted {
  color: rgba(255,255,255,0.65) !important;
}
.section-7 .site-footer .brand {
  font-size: 1.125rem;
}
.section-7 .site-footer .newsletter-form .form-control {
  border-color: rgba(255,255,255,0.14);
  color: #f1f1f1;
}
.section-7 .site-footer .newsletter-form .form-control::placeholder {
  color: rgba(255,255,255,0.55);
}
.section-7 .site-footer .newsletter-form .btn {
  padding: 0.5rem 1rem;
}

/* Navbar polish */
#mainNav {
  background: linear-gradient(90deg, rgba(11,12,16,0.92), rgba(11,12,16,0.82)) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#mainNav .navbar-brand {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff !important;
}
#mainNav .nav-link {
  position: relative;
  color: #e7e7e7 !important;
  transition: color .2s ease;
}
#mainNav .nav-link::after {
  content: "";
  position: absolute;
  left: .6rem;
  right: .6rem;
  bottom: 6px;
  height: 2px;
  background: transparent;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease, background-color .22s ease;
}
#mainNav .nav-link:hover::after { background: #ffd54d; transform: scaleX(1); }
#mainNav .nav-link.active { color: #ffc107 !important; }
#mainNav .nav-link.active::after { background: #ffc107; transform: scaleX(1); }

@media (min-width: 992px) {
  #mainNav .navbar-brand { font-size: 1.125rem; }
}

/* Footer polish */
.site-footer {
  position: relative;
}
.site-footer .brand-block .brand {
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: 1.35rem;
}
.site-footer h6 { color: #eaeaea; letter-spacing: .5px; }
.site-footer a { color: #e7e7e7; text-decoration: none; }
.site-footer a:hover { color: #ffc107; }
.site-footer hr { border-color: rgba(255,255,255,0.12) !important; }

.site-footer .newsletter-form .form-control {
  border-color: rgba(255,255,255,0.14);
  color: #f1f1f1;
  border-radius: 9999px;
}
.site-footer .newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.55); }
.site-footer .newsletter-form .btn {
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(255,193,7,0.35);
}

.site-footer .social a {
  display: inline-block;
  padding: .25rem .6rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9999px;
}
.site-footer .social a:hover {
  background: rgba(255,193,7,0.12);
  border-color: rgba(255,193,7,0.45);
}

/* Section 7 layout to anchor footer at bottom */
.section-7 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Add breathing room so footer is clearly inside the section, not the page edge */
  padding-bottom: clamp(16px, 3vh, 48px);
}

/* Brand logo sizing */
.navbar-brand .brand-logo {
  height: 24px !important;
  width: auto !important;
  display: block;
}
@media (min-width: 992px) {
  .navbar-brand .brand-logo { height: 40px; filter: drop-shadow(0 4px 12px rgba(255,193,7,0.45)); transition: transform .18s ease; }
  #mainNav .navbar-brand:hover .brand-logo { transform: translateY(-1px) scale(1.03); }
  /* Hide top navbar logo on desktop */
  #mainNav .navbar-brand .brand-logo { display: none !important; }
}
.site-footer .brand-logo {
  height: 30px;
  width: auto;
  display: block;
}
.site-footer .brand-block .brand-logo { margin-bottom: .3rem; }

/* Mobile safety: ensure CTA footer participates in normal flow */
@media (max-width: 767.98px) {
  .section-7 .site-footer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }
}

/* Mobile: stack Stay updated newsletter input and button */
@media (max-width: 767.98px) {
  .site-footer .newsletter-form .input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .site-footer .newsletter-form .input-group > .form-control {
    width: 100%;
  }
  .site-footer .newsletter-form .input-group > .btn {
    width: 100%;
  }
}

/* Desktop-only quick sidebar */
@media (min-width: 992px) {
  .quick-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: max(0px, env(safe-area-inset-right));
    z-index: 1030; /* above content, below navbar dropdowns */
  }
  .quick-sidebar .qs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .quick-sidebar .qs-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 12px;
    border-radius: 9999px;
    color: #eaeaea;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  }
  .quick-sidebar .qs-link i {
    color: #ffc107;
    font-size: 1.1rem;
  }
  .quick-sidebar .qs-link:hover {
    background: rgba(255, 193, 7, 0.12);
    color: #fff;
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateX(-2px);
  }
}


/* Desktop: hide top navbar entirely (keep mobile unchanged) */
@media (min-width: 992px) {
  #mainNav { display: none !important; }
}


/* Ensure footer images are responsive and never overflow their containers */
.site-footer img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
