/* BetaForge final targeted fixes — original purple UI preserved. */

/* Keep every social icon on the same rhythm and clickable area. */
.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.social-links > a {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  align-items: center;
  justify-content: center;
  padding-left: 0 !important;
}
.social-links > a > i {
  line-height: 1;
}

/* The selected Kasun Tharaka profile image always stays circular and centred. */
.hero-profile-photo {
  width: 12rem;
  height: 12rem;
  display: block;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 640px) {
  .hero-profile-photo {
    width: 14rem;
    height: 14rem;
  }
}

/* Make the full navigation reliable on desktop without changing its visual style. */
#desktop-primary-menu {
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  #desktop-primary-menu {
    display: block !important;
  }
  #desktop-primary-menu ul {
    gap: 0.75rem !important;
  }
  #desktop-primary-menu button,
  #desktop-primary-menu a {
    white-space: nowrap;
    font-size: 0.76rem;
  }
  #menu-open {
    display: none !important;
  }
}
@media (min-width: 1280px) {
  #desktop-primary-menu ul {
    gap: 1.25rem !important;
  }
  #desktop-primary-menu button,
  #desktop-primary-menu a {
    font-size: 0.875rem;
  }
}
@media (max-width: 1023px) {
  #desktop-primary-menu {
    display: none !important;
  }
  #menu-open {
    display: flex !important;
  }
}


/* Keep icon-only page-nav buttons perfectly centered inside their boxes. */
.page-nav-action {
  justify-content: center;
}
.page-nav-action > i {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}
@media (max-width: 639px) {
  .page-nav-action {
    width: 3.5rem;
    height: 2.875rem;
    padding: 0 !important;
  }
  .page-nav-action > i {
    margin-right: 0 !important;
  }
}


/* Wide, logo-free work experience cards for desktop and mobile. */
.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
.experience-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(91, 62, 177, 0.18);
  border-radius: 1rem;
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 14px 35px rgba(36, 24, 79, 0.08);
  text-align: left;
}
.experience-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.3rem;
  background: #5b3eb1;
}
.experience-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.experience-company {
  color: #111;
  font-family: Oswald, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}
.experience-status {
  flex: 0 0 auto;
  border-radius: 9999px;
  background: rgba(91, 62, 177, 0.1);
  padding: 0.35rem 0.75rem;
  color: #5b3eb1;
  font-family: Raleway, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.experience-date {
  display: block;
  padding-top: 0.75rem;
  color: #777;
  font-family: Raleway, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}
.experience-role {
  padding-top: 0.65rem;
  color: #5b3eb1;
  font-family: Oswald, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}
.experience-description {
  max-width: 46rem;
  padding-top: 0.75rem;
  color: #111;
  font-family: Raleway, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  .experience-card {
    min-height: 20rem;
    padding: 2.25rem 2.4rem;
  }
  .experience-company {
    font-size: 1.7rem;
  }
  .experience-role {
    font-size: 1.55rem;
  }
  .experience-description {
    font-size: 1.05rem;
  }
}
@media (max-width: 479px) {
  .experience-card {
    padding: 1.4rem 1.25rem 1.4rem 1.5rem;
  }
  .experience-card__topline {
    flex-direction: column;
    gap: 0.65rem;
  }
  .experience-company {
    font-size: 1.3rem;
  }
}


/* Responsive Google Maps location section — original purple palette retained. */
.location-address-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}
.location-address-link:hover,
.location-address-link:focus-visible {
  color: #2f2077;
}
.location-address-link i {
  flex: 0 0 auto;
  font-size: 1.15rem;
}
.location-map-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-top: 3px solid #5b3eb1;
  border-bottom: 3px solid #5b3eb1;
  background: #eeeaf9;
}
.location-map-frame {
  display: block;
  width: 100%;
  height: 25rem;
  border: 0;
}
.location-map-panel {
  position: absolute;
  left: max(1.25rem, calc((100% - 1200px) / 2));
  right: auto;
  bottom: 1.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(46rem, calc(100% - 2.5rem));
  border: 1px solid rgba(91, 62, 177, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 1rem 1.1rem;
  box-shadow: 0 16px 40px rgba(35, 25, 79, 0.18);
  backdrop-filter: blur(10px);
}
.location-map-panel__icon {
  display: inline-flex;
  width: 3.25rem;
  height: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(91, 62, 177, 0.1);
  color: #5b3eb1;
  font-size: 1.75rem;
}
.location-map-panel__content {
  min-width: 0;
}
.location-map-panel__eyebrow {
  color: #777;
  font-family: Raleway, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.location-map-panel__title {
  margin-top: 0.15rem;
  color: #111;
  font-family: Raleway, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}
.location-map-panel__text {
  margin-top: 0.2rem;
  color: #666;
  font-family: Open Sans, sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
}
.location-map-button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 0.65rem;
  background: #5b3eb1;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: Raleway, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.location-map-button:hover,
.location-map-button:focus-visible {
  background: #44308e;
  box-shadow: 0 8px 20px rgba(91, 62, 177, 0.28);
  transform: translateY(-1px);
}
.location-map-button i {
  font-size: 1.15rem;
}
@media (max-width: 767px) {
  .location-map-frame {
    height: 20rem;
  }
  .location-map-panel {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    border-width: 1px 0 0;
    border-radius: 0;
    padding: 1.1rem 1.25rem 1.25rem;
    box-shadow: none;
    backdrop-filter: none;
  }
  .location-map-button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0.15rem;
  }
}
@media (max-width: 399px) {
  .location-map-frame {
    height: 17.5rem;
  }
  .location-map-panel {
    gap: 0.8rem;
    padding-inline: 1rem;
  }
  .location-map-panel__icon {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.5rem;
  }
  .location-map-panel__title {
    font-size: 1rem;
  }
}


/* BetaForge newsletter CTA — responsive purple tech background with clear live text. */
.newsletter-cta {
  isolation: isolate;
  overflow: hidden;
  background-color: #2f2077;
  background-image:
    linear-gradient(90deg, rgba(25, 13, 69, 0.72), rgba(54, 33, 132, 0.52), rgba(25, 13, 69, 0.74)),
    url("/assets/img/bg-hero.jpg");
  background-position: center 54%;
  background-size: cover;
}
.newsletter-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(91, 62, 177, 0.08), rgba(18, 8, 52, 0.42) 72%),
    linear-gradient(180deg, rgba(6, 3, 22, 0.08), rgba(6, 3, 22, 0.3));
  pointer-events: none;
}
.newsletter-cta__text {
  max-width: 42rem;
  margin: 0.85rem auto 0;
  padding: 0 1rem;
  color: rgba(255, 255, 255, 0.84);
  font-family: Raleway, sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: center;
}
.newsletter-cta #newsletter-email {
  min-height: 3.75rem;
}
.newsletter-cta button[type="submit"] {
  min-height: 3.75rem;
}
@media (max-width: 639px) {
  .newsletter-cta {
    background-position: 58% 55%;
  }
  .newsletter-cta__text {
    max-width: 22rem;
    margin-top: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }
  .newsletter-cta #newsletter-form {
    max-width: 30rem;
    margin-right: auto;
    margin-left: auto;
  }
  .newsletter-cta #newsletter-email,
  .newsletter-cta button[type="submit"] {
    min-height: 3.35rem;
  }
}


/* BetaForge official company contact details. */
.contact-detail-link {
  display: block;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 160ms ease;
}
.contact-detail-link:hover,
.location-address-link:hover {
  color: #f4d40d;
}

/* Floating WhatsApp website-enquiry form. */
.whatsapp-inquiry {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9998;
  font-family: "Open Sans", sans-serif;
}
.whatsapp-inquiry__trigger {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  background: #25d366;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.25);
  color: #fff;
  cursor: pointer;
  font-family: Raleway, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.whatsapp-inquiry__trigger:hover {
  transform: translateY(-2px);
  background: #1fbd5a;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.32);
}
.whatsapp-inquiry__trigger:focus-visible,
.whatsapp-inquiry__close:focus-visible,
.whatsapp-inquiry__submit:focus-visible {
  outline: 3px solid rgba(244, 212, 13, 0.95);
  outline-offset: 3px;
}
.whatsapp-inquiry__trigger i {
  font-size: 1.7rem;
  line-height: 1;
}
.whatsapp-inquiry__modal[hidden] {
  display: none !important;
}
.whatsapp-inquiry__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.whatsapp-inquiry__modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.whatsapp-inquiry__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(12, 7, 34, 0.62);
  cursor: default;
  backdrop-filter: blur(3px);
}
.whatsapp-inquiry__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 27rem);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 1.15rem;
  padding: 1.35rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 7, 34, 0.42);
  color: #171129;
  transform: translateY(1rem) scale(0.985);
  transition: transform 180ms ease;
}
.whatsapp-inquiry__modal.is-open .whatsapp-inquiry__panel {
  transform: translateY(0) scale(1);
}
.whatsapp-inquiry__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.whatsapp-inquiry__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.3rem;
  color: #25a956;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.whatsapp-inquiry__eyebrow i {
  font-size: 1.05rem;
}
.whatsapp-inquiry__header h2 {
  margin: 0;
  color: #5540af;
  font-family: Raleway, sans-serif;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.22;
}
.whatsapp-inquiry__close {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f2effb;
  color: #5540af;
  cursor: pointer;
}
.whatsapp-inquiry__close i {
  font-size: 1.55rem;
  line-height: 1;
}
.whatsapp-inquiry__intro {
  margin: 1rem 0 0;
  color: #5f5a6d;
  font-size: 0.9rem;
  line-height: 1.65;
}
.whatsapp-inquiry__notice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.9rem 0 0;
  border-left: 3px solid #5540af;
  border-radius: 0.45rem;
  padding: 0.7rem 0.8rem;
  background: #f5f2ff;
  color: #4f4864;
  font-size: 0.79rem;
  line-height: 1.5;
}
.whatsapp-inquiry__notice i {
  margin-top: 0.08rem;
  color: #5540af;
  font-size: 1.1rem;
}
.whatsapp-inquiry__form {
  display: grid;
  gap: 0.58rem;
  margin-top: 1rem;
}
.whatsapp-inquiry__form label {
  margin-top: 0.2rem;
  color: #30294a;
  font-size: 0.78rem;
  font-weight: 700;
}
.whatsapp-inquiry__form label span {
  color: #817b90;
  font-weight: 400;
}
.whatsapp-inquiry__form input,
.whatsapp-inquiry__form select,
.whatsapp-inquiry__form textarea {
  width: 100%;
  border: 1px solid #ddd8ea;
  border-radius: 0.65rem;
  padding: 0.78rem 0.85rem;
  background: #fff;
  color: #171129;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.whatsapp-inquiry__form textarea {
  min-height: 5.7rem;
  resize: vertical;
}
.whatsapp-inquiry__form input:focus,
.whatsapp-inquiry__form select:focus,
.whatsapp-inquiry__form textarea:focus {
  border-color: #705bc1;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(85, 64, 175, 0.14);
}
.whatsapp-inquiry__submit {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.75rem 1rem;
  background: #5540af;
  color: #fff;
  cursor: pointer;
  font-family: Raleway, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}
.whatsapp-inquiry__submit:hover {
  transform: translateY(-1px);
  background: #44328f;
}
.whatsapp-inquiry__submit i {
  font-size: 1.35rem;
}
body.whatsapp-inquiry-open {
  overflow: hidden;
}
@media (max-width: 639px) {
  .contact-detail-link--email {
    font-size: 0.92rem;
  }
  .whatsapp-inquiry {
    right: 0.9rem;
    bottom: 0.9rem;
  }
  .whatsapp-inquiry__trigger {
    width: 3.55rem;
    height: 3.55rem;
    min-height: 0;
    padding: 0;
  }
  .whatsapp-inquiry__trigger span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .whatsapp-inquiry__modal {
    padding: 0;
  }
  .whatsapp-inquiry__panel {
    width: 100%;
    max-height: min(92vh, 46rem);
    border-radius: 1.2rem 1.2rem 0 0;
    padding: 1.15rem 1rem calc(1rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .whatsapp-inquiry__modal.is-open .whatsapp-inquiry__panel {
    transform: translateY(0);
  }
  .whatsapp-inquiry__header h2 {
    font-size: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-inquiry__trigger,
  .whatsapp-inquiry__modal,
  .whatsapp-inquiry__panel,
  .whatsapp-inquiry__submit {
    transition: none !important;
  }
}


/* Floating BetaForge Support form — positioned above WhatsApp. */
.support-inquiry {
  position: fixed;
  right: 1.25rem;
  bottom: 5.35rem;
  z-index: 9997;
  font-family: "Open Sans", sans-serif;
}
.support-inquiry__trigger {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  background: #5540af;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.25);
  color: #fff;
  cursor: pointer;
  font-family: Raleway, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.support-inquiry__trigger:hover {
  transform: translateY(-2px);
  background: #44328f;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.32);
}
.support-inquiry__trigger i {
  font-size: 1.55rem;
  line-height: 1;
}
.support-inquiry__trigger:focus-visible,
.support-inquiry__close:focus-visible,
.support-inquiry__submit:focus-visible {
  outline: 3px solid rgba(244, 212, 13, 0.95);
  outline-offset: 3px;
}
.support-inquiry__modal[hidden] { display: none !important; }
.support-inquiry__modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.support-inquiry__modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.support-inquiry__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(12, 7, 34, 0.64);
  cursor: default;
  backdrop-filter: blur(3px);
}
.support-inquiry__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 1.15rem;
  padding: 1.35rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 7, 34, 0.42);
  color: #171129;
  transform: translateY(1rem) scale(0.985);
  transition: transform 180ms ease;
}
.support-inquiry__modal.is-open .support-inquiry__panel { transform: translateY(0) scale(1); }
.support-inquiry__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.support-inquiry__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.3rem;
  color: #5540af;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.support-inquiry__eyebrow i { font-size: 1.05rem; }
.support-inquiry__header h2 {
  margin: 0;
  color: #5540af;
  font-family: Raleway, sans-serif;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.22;
}
.support-inquiry__close {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f2effb;
  color: #5540af;
  cursor: pointer;
}
.support-inquiry__close i { font-size: 1.55rem; line-height: 1; }
.support-inquiry__intro {
  margin: 1rem 0 0;
  color: #5f5a6d;
  font-size: 0.9rem;
  line-height: 1.65;
}
.support-inquiry__form {
  display: grid;
  gap: 0.58rem;
  margin-top: 1rem;
}
.support-inquiry__form label {
  margin-top: 0.2rem;
  color: #30294a;
  font-size: 0.78rem;
  font-weight: 700;
}
.support-inquiry__form input,
.support-inquiry__form select,
.support-inquiry__form textarea {
  width: 100%;
  border: 1px solid #ddd8ea;
  border-radius: 0.65rem;
  padding: 0.78rem 0.85rem;
  background: #fff;
  color: #171129;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.support-inquiry__form textarea { min-height: 6.2rem; resize: vertical; }
.support-inquiry__form input:focus,
.support-inquiry__form select:focus,
.support-inquiry__form textarea:focus {
  border-color: #705bc1;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(85, 64, 175, 0.14);
}
.support-inquiry__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.support-inquiry__submit {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.75rem 1rem;
  background: #5540af;
  color: #fff;
  cursor: pointer;
  font-family: Raleway, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}
.support-inquiry__submit:hover { transform: translateY(-1px); background: #44328f; }
.support-inquiry__submit:disabled { cursor: wait; opacity: 0.72; transform: none; }
.support-inquiry__submit i { font-size: 1.25rem; }
.support-inquiry__status {
  margin: 0.3rem 0 0;
  border-radius: 0.6rem;
  padding: 0.75rem 0.8rem;
  background: #e8f7ee;
  color: #17613b;
  font-size: 0.8rem;
  line-height: 1.5;
}
.support-inquiry__status--error { background: #fff0f0; color: #a12b2b; }
body.support-inquiry-open { overflow: hidden; }
@media (max-width: 639px) {
  .support-inquiry {
    right: 0.9rem;
    bottom: 5.05rem;
  }
  .support-inquiry__trigger {
    width: 3.55rem;
    height: 3.55rem;
    min-height: 0;
    padding: 0;
  }
  .support-inquiry__trigger span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .support-inquiry__modal { padding: 0; }
  .support-inquiry__panel {
    width: 100%;
    max-height: min(92vh, 48rem);
    border-radius: 1.2rem 1.2rem 0 0;
    padding: 1.15rem 1rem calc(1rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .support-inquiry__modal.is-open .support-inquiry__panel { transform: translateY(0); }
  .support-inquiry__header h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .support-inquiry__trigger,
  .support-inquiry__modal,
  .support-inquiry__panel,
  .support-inquiry__submit { transition: none !important; }
}


/* BetaForge website guide cards and Sinhala articles */
.bf-sinhala,
.bf-sinhala * {
  font-family: "Noto Sans Sinhala", "Open Sans", sans-serif;
}
.bf-guide-kicker {
  margin: 0 0 0.7rem;
  color: #8f7bd8;
  font-family: Raleway, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
}
.bf-guide-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(85, 64, 175, 0.12);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.bf-guide-card:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 64, 175, 0.34);
  box-shadow: 0 22px 45px rgba(45, 31, 95, 0.16);
}
.bf-guide-card__visual {
  position: relative;
  display: flex;
  height: 14rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.bf-guide-card__visual::before,
.bf-guide-card__visual::after {
  position: absolute;
  border-radius: 999px;
  content: "";
  opacity: 0.26;
  z-index: -1;
}
.bf-guide-card__visual::before {
  width: 14rem;
  height: 14rem;
  right: -4rem;
  top: -6rem;
  border: 2rem solid rgba(255, 255, 255, 0.28);
}
.bf-guide-card__visual::after {
  width: 9rem;
  height: 9rem;
  left: -3rem;
  bottom: -4rem;
  background: rgba(255, 255, 255, 0.2);
}
.bf-guide-card__visual--frontend { background: linear-gradient(135deg, #37227e, #7056d4); }
.bf-guide-card__visual--backend { background: linear-gradient(135deg, #21194f, #5540af 58%, #8d72e8); }
.bf-guide-card__visual--types { background: linear-gradient(135deg, #4b329b, #7459c8 55%, #38216f); }
.bf-guide-card__visual > i {
  font-size: 5.5rem;
  line-height: 1;
  text-shadow: 0 10px 24px rgba(15, 8, 42, 0.28);
}
.bf-guide-card__visual > span:last-child {
  font-family: Raleway, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.bf-guide-card__price {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgba(20, 12, 55, 0.42);
  font-family: Raleway, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.bf-guide-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.45rem;
}
.bf-guide-card__summary {
  margin-top: 0.65rem;
  color: #686274;
  font-size: 0.92rem;
  line-height: 1.75;
}
.bf-guide-card__points {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  color: #3e3850;
  font-size: 0.84rem;
  line-height: 1.55;
  list-style: none;
}
.bf-guide-card__points li {
  position: relative;
  padding-left: 1.25rem;
}
.bf-guide-card__points li::before {
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #5540af;
  content: "";
}
.bf-guide-card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1.2rem;
  color: #5540af;
  font-size: 0.82rem;
  font-weight: 700;
}
.bf-guide-card__read i { font-size: 1.25rem; transition: transform 160ms ease; }
.bf-guide-card:hover .bf-guide-card__read i { transform: translateX(4px); }

.bf-article { background: linear-gradient(180deg, #f7f5fc 0, #fff 20rem); }
.bf-article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: #5540af;
  font-size: 0.85rem;
  font-weight: 700;
}
.bf-article__back i { font-size: 1.35rem; }
.bf-article-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(85, 64, 175, 0.14);
  border-radius: 1.15rem;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 22px 55px rgba(54, 38, 111, 0.11);
}
.bf-article-hero::after {
  position: absolute;
  width: 15rem;
  height: 15rem;
  right: -7rem;
  top: -8rem;
  border-radius: 50%;
  background: rgba(85, 64, 175, 0.06);
  content: "";
}
.bf-article-hero__icon {
  display: flex;
  width: 5.5rem;
  height: 5.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #5540af, #8169d7);
  color: #fff;
  box-shadow: 0 14px 30px rgba(85, 64, 175, 0.24);
}
.bf-article-hero__icon i { font-size: 3.2rem; }
.bf-article-hero__content { min-width: 0; }
.bf-article-hero__eyebrow {
  margin: 0 0 0.5rem;
  color: #7a66c5;
  font-family: Raleway, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.bf-article-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #33236f;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.35;
}
.bf-article-hero__intro {
  position: relative;
  z-index: 1;
  max-width: 54rem;
  margin: 1rem 0 0;
  color: #575164;
  font-size: 1rem;
  line-height: 1.9;
}
.bf-article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.2rem;
  color: #696276;
  font-size: 0.78rem;
}
.bf-article-hero__meta > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.bf-article-hero__badge {
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  background: #5540af;
  color: #fff;
  font-family: Raleway, sans-serif;
  font-weight: 700;
}
.bf-article-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.bf-article-chips span,
.bf-article-tags span {
  border: 1px solid #dfdaf0;
  border-radius: 999px;
  padding: 0.4rem 0.68rem;
  background: #f7f5fc;
  color: #5540af;
  font-family: Raleway, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}
.bf-article-content {
  max-width: 55rem;
  margin: 2rem auto 0;
  color: #403a4c;
  font-size: 1rem;
  line-height: 1.95;
}
.bf-article-section {
  margin-top: 1.5rem;
  border-bottom: 1px solid #ebe7f4;
  padding: 0.4rem 0 1.7rem;
}
.bf-article-section h2 {
  margin: 0 0 0.75rem;
  color: #44318f;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.5;
}
.bf-article-section h3 { color: #32265d; font-size: 1rem; font-weight: 700; }
.bf-article-section p { margin: 0.7rem 0; }
.bf-article-section ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
.bf-article-section li {
  position: relative;
  padding-left: 1.55rem;
}
.bf-article-section li::before {
  position: absolute;
  top: 0.72rem;
  left: 0.1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #6e57bf;
  box-shadow: 0 0 0 4px rgba(85, 64, 175, 0.1);
  content: "";
}
.bf-info-grid,
.bf-timeline-grid,
.bf-budget-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
.bf-info-card,
.bf-timeline-grid > div,
.bf-budget-list > div {
  border: 1px solid #e6e1f1;
  border-radius: 0.8rem;
  padding: 1rem;
  background: #faf9fd;
}
.bf-info-card p { font-size: 0.9rem; line-height: 1.75; }
.bf-timeline-grid > div,
.bf-budget-list > div { display: flex; flex-direction: column; gap: 0.35rem; }
.bf-timeline-grid strong,
.bf-budget-list strong { color: #5540af; font-family: Raleway, sans-serif; font-size: 1rem; }
.bf-timeline-grid span,
.bf-budget-list span { color: #666071; font-size: 0.82rem; line-height: 1.65; }
.bf-note {
  margin-top: 1rem !important;
  border-left: 4px solid #7059c2;
  border-radius: 0 0.65rem 0.65rem 0;
  padding: 0.9rem 1rem;
  background: #f5f2fc;
  color: #51476a;
}
.bf-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 1rem; }
.bf-compare-grid > div { border-radius: 0.8rem; padding: 1.1rem; background: #f7f5fc; }
.bf-compare-grid span { color: #5540af; font-family: Raleway, sans-serif; font-weight: 700; }
.bf-compare-grid p { font-size: 0.9rem; line-height: 1.75; }
.bf-type-list { display: grid; gap: 0.75rem; margin-top: 1rem; }
.bf-type-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  border: 1px solid #e7e2f1;
  border-radius: 0.8rem;
  padding: 1rem;
  background: #fff;
}
.bf-type-list article > i {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: #f0ecfa;
  color: #5540af;
  font-size: 1.6rem;
}
.bf-type-list h3 { margin: 0; }
.bf-type-list p { margin: 0.35rem 0 0; font-size: 0.9rem; line-height: 1.75; }
.bf-article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2rem;
  border-radius: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #44318f, #6e56c3);
  color: #fff;
}
.bf-article-cta span { font-family: Raleway, sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; opacity: 0.75; }
.bf-article-cta h2 { margin: 0.35rem 0 0; color: #fff; font-size: 1.4rem; font-weight: 700; }
.bf-article-cta p { margin: 0.5rem 0 0; font-size: 0.86rem; line-height: 1.7; opacity: 0.88; }
.bf-article-cta__actions { display: flex; flex-direction: column; gap: 0.55rem; }
.bf-article-cta__actions a,
.bf-article-cta__actions button {
  display: inline-flex;
  min-width: 10.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  color: #44318f;
  cursor: pointer;
  font-family: Raleway, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}
.bf-article-cta__actions button { background: transparent; color: #fff; }
.bf-article-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; max-width: 55rem; margin: 1.4rem auto 0; }
.bf-article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  max-width: 55rem;
  margin: 1.5rem auto 0;
  border-top: 1px solid #e8e3f1;
  border-bottom: 1px solid #e8e3f1;
  padding: 1rem 0;
}
.bf-article-nav a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
  color: #5540af;
}
.bf-article-nav a:last-child { grid-template-columns: 1fr auto; text-align: right; }
.bf-article-nav i { grid-row: span 2; font-size: 1.6rem; }
.bf-article-nav small { color: #8a8295; font-family: Raleway, sans-serif; font-size: 0.65rem; text-transform: uppercase; }
.bf-article-nav strong { font-family: Raleway, sans-serif; font-size: 0.82rem; }
.bf-author-card {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.2rem;
  align-items: center;
  max-width: 55rem;
  margin: 1.5rem auto 2rem;
  border: 1px solid #e6e1f1;
  border-radius: 1rem;
  padding: 1.2rem;
  background: #fff;
}
.bf-author-card img { width: 7rem; height: 7rem; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 22px rgba(37, 25, 82, 0.15); }
.bf-author-card__eyebrow { margin: 0; color: #8275ae; font-family: Raleway, sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; }
.bf-author-card h2 { margin: 0.2rem 0 0; color: #44318f; font-family: Raleway, sans-serif; font-size: 1.35rem; font-weight: 700; }
.bf-author-card div > p:last-child { margin: 0.5rem 0 0; color: #625b6c; font-size: 0.86rem; line-height: 1.75; }
@media (max-width: 767px) {
  .bf-guide-card__visual { height: 12.5rem; }
  .bf-article-hero { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .bf-article-hero__icon { width: 4.3rem; height: 4.3rem; }
  .bf-article-hero__icon i { font-size: 2.5rem; }
  .bf-info-grid,
  .bf-timeline-grid,
  .bf-budget-list,
  .bf-compare-grid { grid-template-columns: 1fr; }
  .bf-article-cta { grid-template-columns: 1fr; }
  .bf-article-cta__actions { flex-direction: row; flex-wrap: wrap; }
  .bf-article-cta__actions a,
  .bf-article-cta__actions button { flex: 1 1 10rem; }
  .bf-author-card { grid-template-columns: 5rem 1fr; }
  .bf-author-card img { width: 5rem; height: 5rem; }
}
@media (max-width: 479px) {
  .bf-article-content { font-size: 0.92rem; }
  .bf-article-hero__meta { align-items: flex-start; flex-direction: column; }
  .bf-type-list article { grid-template-columns: 1fr; }
  .bf-article-nav { grid-template-columns: 1fr; }
  .bf-article-nav a:last-child { border-top: 1px solid #ece7f4; padding-top: 0.8rem; }
  .bf-author-card { grid-template-columns: 1fr; text-align: center; }
  .bf-author-card img { margin: 0 auto; }
}


/* Final hero artwork: wide desktop crop and dedicated portrait mobile crop. */
.home-hero {
  background-color: #302170;
  background-image: url("/assets/img/bg-hero-betaforge.jpg");
  background-position: center 50%;
  background-size: cover;
}
@media (max-width: 639px) {
  .home-hero {
    background-image: url("/assets/img/bg-hero-betaforge-mobile.jpg");
    background-position: center 46%;
  }
}

/* Page action labels stay on desktop; mobile keeps clean centered icons only. */
@media (max-width: 639px) {
  .page-nav-action {
    min-width: 3.5rem;
    width: 3.5rem;
  }
}
