/* -------------------------------------- */
/* HERO SECTION                           */
/* -------------------------------------- */
body, html {
  margin-top: 0 !important;
  padding-top: 0 !important;
  scrollbar-width: auto;      /* Firefox base: auto | thin */
  -ms-overflow-style: auto;   /* Old IE/Edge */
}

html {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

/* Firefox colors (thumb | track) and thin width */
html {
  scrollbar-width: auto;
  scrollbar-color: #F16629 #FFEAE0;
}

/* Chrome/Edge/Safari */
html::-webkit-scrollbar {
  width: 10px;                /* adjust 8–12px */
}
html::-webkit-scrollbar-track {
  background: #FFEAE0;        /* track color */
}
html::-webkit-scrollbar-thumb {
  background: #F16629;        /* thumb color */
  border-radius: 8px;         /* subtle rounding */
}
/* Optional hover shade (1 extra rule) */
html::-webkit-scrollbar-thumb:hover {
  background: #D4571F;
}
/* === Compact top-center toasts (non-blocking, responsive) === */
.toast-message-wrap {
  position: fixed;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  pointer-events: none;  /* do not block interactions */
  width: 100%;
}
.toast-message {
  pointer-events: auto;
  max-width: min(92vw, 40rem);
  padding: 0.9rem 1.1rem;
  border-radius: 0.625rem;
  font-size: clamp(1rem, 2.2vw + 0.2rem, 1.125rem);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  border: 1px solid transparent;
  box-shadow: 0 0.5rem 1.25rem rgba(8,16,24,0.08);
  white-space: pre-line; /* preserve \n in error summaries */
  opacity: 0;
  transform: translateY(-0.5rem) scale(0.99);
  animation: toast-in-out 4.6s cubic-bezier(.2,.9,.3,1) forwards;
}
.toast-message.success { background: #eaf7ee; border-color: #bbe3c7; color: #115e33; }
.toast-message.error   { background: #fdecec; border-color: #f6bcbc; color: #7a2222; }
.toast-message.info    { background: #ecf3fe; border-color: #c8dcff; color: #173e83; }

@keyframes toast-in-out {
  0%   { opacity: 0; transform: translateY(-0.5rem) scale(0.99); }
  12%  { opacity: 1; transform: translateY(0)       scale(1);    }
  80%  { opacity: 1; transform: translateY(0)       scale(1);    }
  100% { opacity: 0; transform: translateY(-0.5rem) scale(0.99); }
}
.container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.mobile-features-header,
.faq-list-wrapper {
  display: none;
}

.personal-hero-section {
  min-height: 110vh;
  width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
  background-image: url("../images/personal.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  margin-top: -6vw;
}

.personal-hero-section .container {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

.personal-hero-overlay {
  width: 100%;
  min-height: 120vh;
  background: none !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 11vw;
}

.personal-product-list {
  width: 100%;
  margin: 0 0 2.5vw 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2vw;
}

.product-row {
  display: flex;
  flex-wrap: nowrap;           /* Prevent wrapping, keep all pills in one row */
  justify-content: center;
  width: 100%;
  gap: 1.1em;                  /* Reduce gap between pills */
  padding-left: 1.5em;
  padding-right: 1.5em;
  box-sizing: border-box;
  overflow-x: auto;
}
.personal-product-list .product-row-container:not(:last-child) {
  margin-bottom: -0.5em;
}
.personal-product-list .product-row-container:last-child {
  margin-bottom: 1em;
}

.product-pill {
  background: #fff;
  color: #F16629;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1.05em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-width: 11vw;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 0.45em 1.7em;
  text-align: center;
  gap: 0.5em;                  /* Slightly less space between text and arrow */
  outline: none;
  border: none;
}
.product-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.2em;
  line-height: 1;
}
.product-pill:hover {
  background: #F16629;
  color: #fff;
}
.product-pill:hover .pill-chevron svg {
  stroke: #fff;
}
.pill-chevron {
  display: flex;
  align-items: flex-end;        /* Move arrow down to align with text baseline */
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  margin-left: 0.1em;
  vertical-align: middle;
  position: relative;
  top: 0.12em;                  /* Fine-tune arrow vertical alignment */
}
.pill-chevron svg {
  display: block;
  width: 1.2em;
  height: 1.2em;
  stroke: #888;
  stroke-width: 2;
  fill: none;
}
.product-pill.selected,
.product-pill:focus {
  background: #777;
  color: #fff;
  border-color: #777;
}
.product-pill.selected .pill-chevron svg {
  stroke: #fff;          /* Make arrow white */
}
.hero-flex-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4vw;
  margin-top: 0;
}

/* -------------------------------------- */
/*              FORM OVERLAY              */
/* -------------------------------------- */
.form-overlay {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  width: 90vw;
  max-width: 28rem;
  background: rgba(255,255,255,0.85);
  border-radius: 1rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.15);
  padding: 2em 2em;
  min-height: 20vw;
  z-index: 2;
  margin-top: 0;
  margin-left: 10vw;
}

/* Headings */
.form-heading {
  font-size: 2em;
  font-weight: 600;
  color: #666;
  text-align: center;
  margin-bottom: 0.5em;
}

/* Make the subtitle smaller and center it */
.form-subtitle {
  font-size: 0.95em;
  color: #666;
  text-align: center;
  margin-bottom: 1.2em;
}

/* Inputs */
.form-overlay .form-control {
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  font-size: 1em;
}
.form-overlay .form-control:focus {
  box-shadow: none;
  border-color: #F16629;
}

/* Checkboxes */
.form-overlay .form-check-label {
  color: #666;
  font-size: 1em;
}

/* Terms link */
.form-overlay a {
  color: #F16629;
  text-decoration: underline;
}

/* Submit button */
.form-overlay .btn-quote {
  background-color: #F16629;
  color: #fff;
  font-weight: 500;
  border-radius: 2em;
  width: 50vw;
  max-width: 10rem;
  height: 3em;
  transition: all 0.3s ease;
  font-size: 1.1em;
}

.form-overlay .btn-quote:hover {
  background-color: #d94e2a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* TIGHTEN UP CHECKBOX + LABEL GAP */
.existing-client-check {
  margin-bottom: 1em;
}
.existing-client-check .form-check-input {
  margin-top: 0.2em;
}

/* DISCLAIMER TEXT (smaller & tighter) */
.form-overlay p.small {
  margin-bottom: 0.5em;
  color: #888;
  font-size: 0.75em;
  line-height: 1.2;
}
.form-overlay p.small a {
  color: #F16629;
  text-decoration: underline;
}

/* -------------------------------------- */
/* WINDOW POPUP                           */
/* -------------------------------------- */
.modal-blur-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(0.7vw);
  transition: opacity 0.2s;
  /* Don't blur pills/rows/modal */
}

/* Make sure pills/rows/modal are above the blur */
.personal-product-list,
.product-modal {
  position: relative;
  z-index: 1011;
}

/* Modal window: wide and always in the same spot */
.product-modal {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 1vw); /* was 2vw, now closer to the row */
  width: 90vw;           /* Use 80% of viewport width for large screens */
  max-width: 1600px;     /* Allow up to 1600px on ultra-wide monitors */
  min-width: 400px; 
  background: #fff;
  border-radius: 2vw;
  box-shadow: 0 0.5vw 2vw rgba(0,0,0,0.18);
  z-index: 1012;
  padding: 1vw 1vw 1vw 1.5vw;
  flex-direction: row;
  align-items: flex-start;
  gap: 3vw;
  animation: fadeInModal 0.3s cubic-bezier(.4,0,.2,1);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, visibility 0s linear 0.2s;
}
.product-modal.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.2s;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(4vw);}
  to   { opacity: 1; transform: translateY(0);}
}
.product-modal .modal-close {
  position: absolute;
  top: -0.5vw;      /* Move closer to modal */
  right: -1.5vw;    /* Move closer to modal */
  background: #fff;
  border: none;
  font-size: 2.5vw;      /* Bigger X */
  font-weight: 600;
  color: #F16629;
  cursor: pointer;
  z-index: 1020;
  border-radius: 50%;
  width: 2.5vw;           /* Circle a bit bigger than X */
  height: 2.5vw;
  box-shadow: 0 0.2vw 0.8vw rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  padding: 0;
}
.product-modal .modal-close:hover {
  background: #F16629;
  color: #fff;
}
.product-modal .modal-close span {
  display: inline-block;
  transform: translateY(-10%);
}
.modal-title {
  color: #F16629;
  font-weight: 700;
  font-size: 1.7vw;
  margin-bottom: 0.5vw;
  letter-spacing: -0.5px;
  padding-right: 2vw;      /* Add space between title and image */
  word-break: break-word;  /* Allow long words to wrap */
  max-width: 95%;          /* Prevent overflow in rare cases */
  box-sizing: border-box;
}
/* Main modal: 2 columns space image and content */
.modal-content {
  display: flex;
  flex-direction: row;
  gap: 3vw;
  align-items: flex-start;
  width: 100%;
}

/* Left column: text Space title and columns*/
.modal-info {
  flex: 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Inner split: actions/links left, overview right space between overview and actions */
.modal-info-inner {
  display: flex;
  flex-direction: row;
  gap: 2vw;
}

/* Left inner column: actions and links space between actions buttons*/
.modal-info-actions {
  display: flex;
  flex-direction: column;
  gap: 1vw;
  min-width: 12em;
}

/* Actions row: buttons side by side */
.modal-actions-row {
  display: flex;
  gap: 0.7em;
}

.btn.btn-quote.contact-us,
.btn.btn-outline-secondary.call-me-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.3em 2em;    /* less vertical padding */
  font-size: 1.2em;      /* slightly smaller text */
  min-height: 2.5em;     /* ensures consistent minimum height */
  min-width: 10em;       /* match across both buttons */
  font-weight: 500;
  border-radius: 2em;
  text-align: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* Contact Us button */
.btn.btn-quote.contact-us {
  background-color: #F16629;
  color: #fff;
  border: none;
}
.btn.btn-quote.contact-us:hover {
  background-color: #c44f1f;
  box-shadow: 0 0.4em 0.8em rgba(0,0,0,0.15);
}

/* Call Me Back button */
.btn.btn-outline-secondary.call-me-back {
  background: #fff;
  color: #F16629;
  border: 2px solid #F16629;
}
.btn.btn-outline-secondary.call-me-back:hover {
  background: #F16629;
  color: #fff;
}

/* Vertical links: dark grey, white text, hover inverse */
.modal-links-vertical {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-bottom: 0.5em;
  background: #a2a2a2c5; /* lighter grey */
  border-radius: 1em; /* less rounded, more square */
  overflow: hidden;
  box-shadow: 0 0.1vw 0.3vw rgba(0,0,0,0.04);
}
.modal-link-vertical {
  display: block;
  padding: 1em 1.5em;
  font-size: 1.3em;
  color: #ffffff;
  background: #a2a2a2c5; /* lighter grey */
  text-decoration: none;
  font-weight: 600;
  border: none;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.modal-link-vertical:hover {
  background: #fff;
  color: #a2a2a2c5;
}
.modal-link-divider {
  height: 2px;
  background: #fff;
  width: 100%;         /* Make the line shorter */
  margin: 0 auto;     /* Center the line horizontally */
  border-radius: 2px;
}

/* Right inner column: overview */
.modal-info-overview {
  flex: 1;
  min-width: 10em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.overview-label {
  font-size: 1.3vw;
  font-weight: 500;
  color: #F16629; /* orange */
  margin-bottom: 0.3vw;
  letter-spacing: 0.5px;
  align-self: flex-start;
}
.modal-overview {
  color: #6e6e6e;
  font-size: 0.9vw;
  margin-bottom: 2vw;
  margin-top: 0.5vw;
  font-weight: 400;
  align-self: flex-start;
  width: 100%;
}

/* Right column: image */
.modal-image {
  flex: 0.5; /* increase flex to give more space if needed */
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.modal-image img {
  width: 20vw;        /* increase from 20vw */
  max-width: 350px;   /* increase from 320px */
  height: auto;
  border-radius: 1.2vw;
  box-shadow: 0 0.2vw 1.2vw rgba(0,0,0,0.10);
}

/* Center the Contact Us button in its row */
.modal-info-actions .modal-actions-row:last-child {
  justify-content: center;
  display: flex;
}

/* -------------------------------------- */
/* INFO CARDS SECTION (orange squares)    */
/* -------------------------------------- */
.info-cards-section {
  margin-top: -1rem;     /* Decrease gap above */
  margin-bottom: 1rem;  /* Add gap below */
}
.info-card {
  background-color: #F16629;
  padding: 2rem 1.5rem;
  border-radius: 2rem;
  color: white;
  transition: all 0.3s ease;
  height: 100%;
}

.info-card:hover {
  background-color: #B0B0B0; /* Bootstrap gray */
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  color: white;
}

.info-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.info-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.info-desc {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: white;
}

.btn-outline-quote {
  color: #F16629;
  background: #fff;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-outline-quote:hover {
  background: #F16629;
  color: #fff;
}

/* -------------------------------------- */
/* FEATURE CARDS SECTION                  */
/* -------------------------------------- */
.features-section {
  padding: 2rem 0 1rem 0; /* increased bottom padding */
}
.features-header {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 2.5rem;
}
.personal-cover-orange {
  color: #F16629;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 0.9rem;
  justify-items: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  width: 100%;
  max-width: 400px;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(241,102,41,0.12);
  transform: translateY(-6px) scale(1.03);
}
.feature-card-front,
.feature-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  padding: 2.5rem 1.2rem 1.5rem 1.2rem;
  text-align: center;
  width: 100%;
  height: 100%;
}
.feature-card-front {
  opacity: 1;
  z-index: 2;
}
.feature-card-back {
  opacity: 0;
  z-index: 3;
  background: #fff;
}
.feature-card:hover .feature-card-front {
  opacity: 0;
  pointer-events: none;
}
.feature-card:hover .feature-card-back {
  opacity: 1;
  pointer-events: auto;
}
.feature-img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  border-radius: 4rem;
}
.feature-title {
  font-size: 2rem;
  font-weight: 700;
  color: #666;
  text-align: center;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.feature-sub {
  font-size: 1.05rem;
  color: #aaa;
  text-align: center;
  margin-top: auto;
  letter-spacing: 0.03em;
  font-weight: 400;
  margin-bottom: 0.1rem;
}
.feature-hover-text {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
}
.feature-actions {
  display: flex;
  flex-direction: column;  /* stack vertically */
  align-items: center;     /* center horizontally */
  gap: 0.7em;
  margin-top: 0.5rem;
}

/* “Learn More” button */
.btn-get-quote {
  background-color: #F16629;
  color: #fff;
  border: none;
  border-radius: 2em;
  width: 12rem;
  padding: 0.5em 0.5em;
  text-align: center;
  font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-get-quote:hover {
  background-color: #d94e2a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* “Get Quote” button */
.btn-learn-more {
  background: #fff;
  color: #F16629;
  border: 2px solid #F16629;
  border-radius: 2em;
  width: 12rem;
  padding: 0.5em 0.5em;
  text-align: center;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-learn-more:hover {
  background-color: #F16629;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* -------------------------------------- */
/* FREQUENTLY ASKED QUESTIONS             */
/* -------------------------------------- */
.faq-bg-wide {
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #A9A9A9; /* even darker grey for more contrast */
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 0 0 3rem 0;
  min-height: 600px;
  position: relative;
  overflow-x: visible;
  margin-bottom: 80px; /* Increase this value for more space */
}

.faq-carousel-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.faq-carousel {
  display: flex;
  gap: 2.2rem;
  overflow-x: hidden; /* <-- hide scrollbar and prevent user scroll */
  scroll-behavior: smooth;
  padding: 0 0 1rem 0;
  margin-left: 0;
  cursor: grab;
  width: max-content;
  min-width: 100%;
}

.faq-carousel::-webkit-scrollbar { display: none; }
.faq-carousel { -ms-overflow-style: none; scrollbar-width: none; }

/* Minimalist Video Card: just video and white overlay title */
.faq-card.video-card {
  background: none;
  min-width: 260px;
  max-width: 260px;
  height: 400px;
  border-radius: 18px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  padding: 0;
}

.faq-card .faq-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  margin: 0;
  display: block;
}

.faq-card .faq-video-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: #fff;
  background: none; /* NO background */
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.7rem 1.2rem 0.5rem 1.2rem;
  z-index: 2;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45); /* Optional: helps white text stand out */
}

/* Info Card: slightly smaller */
.faq-card.info-card {
  background: #F16629;
  color: #fff;
  min-width: 320px;
  max-width: 320px;
  height: 300px;
  border-radius: 22px;
  padding: 2rem 1.2rem;
  font-size: 1.08rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.faq-card.info-card h5 {
  font-size: 1.18rem;
}

/* Responsive: show fewer cards on small screens */
@media (max-width: 1200px) {
  .faq-card.video-card { min-width: 270px; max-width: 270px; height: 240px; }
  .faq-card.info-card { min-width: 180px; max-width: 180px; height: 160px; }
}
@media (max-width: 767px) {
  .faq-card.video-card, .faq-card.info-card { min-width: 80vw; max-width: 90vw; }
  .faq-carousel-wrapper { max-width: 100vw; }
}

/* -------------------------------------- */
/* PERSONAL PAGE NAVBAR CUSTOMIZATION     */
/* -------------------------------------- */
.personal-page .navbar {
  color: #fff !important;
  background: rgba(255,255,255,0.9) !important;
  box-shadow: none !important;
}

.personal-page .navbar .nav-link,
.personal-page .navbar .navbar-brand {
  color: #fff !important;
  font-weight: 500;
}

.personal-page .navbar .nav-link:hover,
.personal-page .navbar .nav-link:focus {
  color: #F16629 !important;
  background: #fff !important;
  border-radius: 0.3em;
}

.personal-page .dropdown-menu {
  background: #fff3ea;
  border-radius: 0.5em;
  border: none;
}

.personal-page .dropdown-item {
  color: #F16629 !important;
  font-weight: 500;
}

.personal-page .dropdown-item:hover,
.personal-page .dropdown-item:focus {
  background: #F16629 !important;
  color: #fff !important;
}

/* -------------------------------------- */
/* ENTRANCE ANIMATIONS                    */
/* -------------------------------------- */
@keyframes fadeInLeftForm {
  from {
    opacity: 0;
    transform: translateX(-60px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}
.form-overlay.fade-in {
  opacity: 0;
  animation: fadeInLeftForm 0.7s cubic-bezier(.4,0,.2,1) 0.1s forwards;
}

/* Slide-in from left for both product rows */
@keyframes slideInLeftRow {
  from {
    opacity: 0;
    transform: translateX(-60px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}
.product-row.entrance-left,
.product-row.entrance-right {
  /* Both rows use the same animation now */
  opacity: 0;
  animation: slideInLeftRow 0.7s cubic-bezier(.4,0,.2,1) 0.15s forwards;
}

@keyframes modalEntrance {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(40px) scale(0.98); /* keep -50% for centering! */
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1); /* keep -50% for centering! */
    filter: blur(0);
  }
}

.product-modal.animated {
  animation: modalEntrance 0.45s cubic-bezier(.4,0,.2,1);
}

/* -------------------------------------- */
/* MEDIA QUERIES                          */
/* -------------------------------------- */
@media (max-width: 430px) and (orientation: portrait) {
  body, html {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* Old IE/Edge */
  }
  /* ======= PERSONAL HERO SECTION ======= */
  .personal-hero-section {
    margin-top: -10vh !important;
    min-height: 75vh !important;
    padding-top: 10rem !important;
    border-bottom-left-radius: 1.5em;
    border-bottom-right-radius: 1.5em;
  }
  .personal-hero-overlay {
    padding-top: 2vw !important;
    min-height: 80vh !important;
  }
  .personal-hero-section .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  body.modal-open #scrollTopBtn,
  body.modal-open .scroll-top-btn {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* ======= HIDDEN ELEMENTS ======= */
  .form-overlay,
  .info-cards-section,
  .personal-product-list {
    display: none !important;
  }

  /* ======= FEATURES SECTION ======= */
  .mobile-features-header {
    display: block;
    font-size: 2em;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-top: -0.5em;
    margin-bottom: 0.7em;
    line-height: 1.15;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 10;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-shadow: 0 3px 12px rgba(0,0,0,0.45), 0 1px 0 rgba(0,0,0,0.25); /* Stronger text shadow for contrast */
    opacity: 0;
    transform: translateY(-32px);
    animation: fadeInDownHeader 1.5s cubic-bezier(.4,0,.2,1) 0.1s forwards;
  }
  @keyframes fadeInDownHeader {
    from {
      opacity: 0;
      transform: translateY(-32px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .features-section {
    background: none !important;
    margin-top: 11rem !important;    /* Move grid further down */
    padding-top: 2.5rem !important; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vw;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* allow modal/pills to be clickable above */
  }
  .features-section .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
  }
  .features-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3vw !important;              /* More space between cards */
    width: 95vw;
    height: 140vw;    
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }
  .feature-card {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.9em 0.5em;
    border-radius: 2em !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.97);
  }
  .features-grid .feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(
      120deg,
      transparent 0%,
      rgba(255,255,255,0.4) 50%,
      transparent 100%
    );
    transform: skewX(-25deg);
    animation: shimmer 3.5s infinite;
    pointer-events: none;
    z-index: 10;
  }

  @keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
  }

  .features-grid .feature-card {
    opacity: 0;
    animation: featureFadeIn 0.8s cubic-bezier(.4,0,.2,1) forwards;
  }
  .features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
  .features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
  .features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }
  .features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }
  .features-grid .feature-card:nth-child(5) { animation-delay: 0.5s; }
  .features-grid .feature-card:nth-child(6) { animation-delay: 0.6s; }
  .features-grid .feature-card:nth-child(7) { animation-delay: 0.7s; }
  .features-grid .feature-card:nth-child(8) { animation-delay: 0.8s; }
  .features-grid .feature-card:nth-child(9) { animation-delay: 0.9s; }

  
  @keyframes featureFadeIn {
    from { opacity: 0; transform: scale(0.96);}
    to   { opacity: 1; transform: scale(1);}
  }

  .features-grid .feature-card::after {
    content: "Tap to explore";
    position: absolute;
    top: 1em;
    left: 2em;                /* moved further right to avoid rounded corner */
    background: rgba(241,102,41,0.92);
    color: #fff;
    font-size: 0.44em;           /* even smaller text */
    padding: 0.06em 0.28em;      /* smaller padding */
    border-radius: 0.6em;
    opacity: 0;
    animation: hintOnceThenLoop 6s infinite both;
    pointer-events: none;
    z-index: 11;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    white-space: nowrap;
  }

  @keyframes hintOnceThenLoop {
    0% {
      opacity: 0;
      transform: translate(-16px, -16px) scale(0.5);
    }
    2% {
      opacity: 1;
      transform: translate(0, 0) scale(1);
    }
    72% {
      opacity: 1;
      transform: translate(0, 0) scale(1);
    }
    86% {
      opacity: 0;
    }
    100% {
      opacity: 0;
    }
  }
  
  .feature-card-front {
    opacity: 1 !important;
    z-index: 2;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .feature-img {
    width: 6em !important;            /* Bigger and wider icon */
    height: 5em !important;
    margin: 0 auto 0.7em auto !important;
    border-radius: 1.5em !important;
    object-fit: contain;
    background: none !important;
    box-shadow: none !important;
  }
  .feature-title {
    font-size: 0.8em !important;
    font-weight: 600;
    margin: 0 !important;
    text-align: center;
    line-height: 1.1;
  }
  .feature-sub {
    display: none !important;
  }
  .feature-card-back,
  .feature-hover-text,
  .feature-actions {
    display: none !important;
  }
  .features-section h2 {
    display: none !important;
  }
  /* ======= WINDOW MODAL POPUP ======= */
  .product-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: 100dvh !important;   /* Use dynamic viewport height */
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    z-index: 2000 !important;
    overflow: hidden !important;
    background: #fff !important;
    left: 0 !important; /* ensure no translateX */
    transform: none !important; /* remove translateX(-50%) */
  }
  .product-modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .modal-close {
    position: fixed !important;
    top: -0.7em !important;
    right: -0.7em !important;
    width: 1.9em !important;
    height: 1.9em !important;
    font-size: 2.8em !important;
    z-index: 2100 !important;
    background: #F16629 !important;
    color: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    opacity: 0;
    transform: scale(0.7) rotate(-20deg);
    animation: modalCloseEntrance 0.5s cubic-bezier(.4,0,.2,1) 0.12s forwards;
  }
  @keyframes modalCloseEntrance {
    0% {
      opacity: 0;
      transform: scale(0.7) rotate(-20deg);
    }
    60% {
      opacity: 1;
      transform: scale(1.15) rotate(3deg);
    }
    85% {
      transform: scale(0.95) rotate(-2deg);
    }
    100% {
      opacity: 1;
      transform: scale(1) rotate(0deg);
    }
  }
  .modal-close span {
    display: inline-block;
    transform: translate(-30%, 15%) !important;
  }
  .modal-content {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 2.2em 0.7em 1em 0.7em !important; /* top padding for close btn */
    width: 100vw !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;      /* <-- Enable vertical scrolling */
    max-height: 100vh !important;     /* <-- Prevent overflow off screen */
  }
  .modal-title {
    font-size: 1.3em !important;
    font-weight: 700 !important;
    color: #F16629 !important;
    text-align: center !important;
    margin-bottom: 0.5em !important;
    margin-top: 0 !important;
    padding: 0 !important;
    width: 80% !important;
  }
  .modal-image {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 1em !important;
  }
  .modal-image img {
    width: 60vw !important;
    max-width: 220px !important;
    height: auto !important;
    border-radius: 1em !important;
    margin: 0 auto !important;
    display: block !important;
  }
  .modal-info-overview {
    width: 100% !important;
    margin-bottom: 0.5em !important;
    text-align: left !important;
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .overview-label {
    font-size: 1.18em !important;  /* bigger overview header */
    font-weight: 700 !important;
    color: #F16629 !important;
    margin-bottom: 0.2em !important;
    margin-top: 0.5em !important;
    text-align: left !important;
  }
  .modal-overview {
    font-size: 1em !important;
    margin: 0.2em 0 0.7em 0 !important;
    width: 100% !important;
    color: #444 !important;
    text-align: left !important;
  }
  .modal-info-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.4em !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
  }
  .modal-actions-row,
  .modal-links-vertical {
    flex-direction: column !important;
    gap: 0.5em !important;
    align-items: stretch !important;
    width: 100% !important;
    justify-content: flex-end !important;
  }
  .modal-actions-row a,
  .modal-links-vertical a {
    font-size: 0.95em !important;
    padding: 0.5em 0.5em !important;
    min-width: 7em !important;
    min-height: 2em !important;
  }
  .product-modal.active ~ #scrollTopBtn,
  .product-modal.active ~ .scroll-top-btn {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* ======= ABOUT HIGHLIGHTS SECTION ======= */
  .about-highlight {
    margin: 2em 0 2em 0 !important;
    padding: 0 !important;                /* Remove inner padding */
    border-radius: 0 !important;          /* Remove rounded corners */
    box-shadow: none !important;          /* Remove shadow */
    background: transparent !important;   /* Remove white background */
  }
  .about-highlight .container {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: 100vw !important;
    width: 100vw !important;
  }
  .about-highlight .row {
    flex-direction: column-reverse !important;
    gap: 1.2em !important;
    margin: 0 !important;
  }
  .about-highlight .col-md-6.text-center {
    margin-bottom: 1em !important;
  }
  .about-highlight img {
    width: 110vw !important;        /* Stretch image beyond viewport */
    max-width: 105vw !important;
    min-width: 105vw !important;
    margin-left: -5vw !important;   /* Center the overflow */
    margin-right: -5vw !important;
    border-radius: 2em !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: block !important;
    margin-bottom: -2em !important; 
  }
  .about-highlight h2 {
    font-size: 2em !important;
    font-weight: 800 !important;
    text-align: center !important;
    line-height: 1.18 !important;
    margin-top: 0.2em !important;
    margin-bottom: 1em !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -2vw !important;         /* Shift header start left */
    margin-right: 0 !important;
    letter-spacing: -0.5px;
    padding: 0 0.2em !important;
    box-sizing: border-box;
    white-space: pre-line !important;
    word-break: break-word !important;
    display: block !important;
  }
  .about-highlight p {
    font-size: 1.08em !important;              /* Slightly bigger paragraph */
    margin-top: 0 !important;
    margin-bottom: 1.5em !important;           /* More space below paragraph */
    color: #444 !important;
    text-align: center !important;
    line-height: 1.5 !important;
    width: 85vw !important;
    max-width: 85vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 0.5em !important;
    box-sizing: border-box;
  }
  .about-highlight .btn {
    font-size: 1.1em !important;
    padding: 0.45em 0.8em !important;         /* Smaller buttons */
    border-radius: 2em !important;
    min-width: 8em !important;
    max-width: 12em !important;               /* Even shorter max width */
    width: 100% !important;
    margin-bottom: 0.5em !important;
    box-sizing: border-box;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  .about-highlight .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5em !important;
    margin-top: 0.5em !important;
  }

  /* ======= FREQUENTLY ASKED QUESTIONS ======= */
  .faq-bg-wide {
    width: 100vw;
    max-width: 100vw;
    left: 0;
    transform: none;
    margin: 0;
    border-radius: 2em;
    background: #A9A9A9;
  }
  .faq-carousel-wrapper { display: none; }
  .faq-list-wrapper { display: block; }
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
  }
  .faq-card-mobile {
    background: #F16629;
    color: #fff;
    border-radius: 1.2em;
    padding: 1.2em 1em;
    font-size: 1.1em;
    box-shadow: 0 0.25em 1em rgba(0,0,0,0.10);
    cursor: pointer;
    position: relative;
    margin-bottom: 0.5em;
    transition: box-shadow 0.2s;
    max-width: 85vw;         /* Make orange card narrower */
    margin-left: auto;       /* Center horizontally */
    margin-right: auto;
  }
  .faq-card-mobile .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Arrow always on right */
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
    width: 100%;
  }
  .faq-card-mobile .faq-arrow {
    font-size: 1.5em;
    margin-left: 0.5em;
    transition: transform 0.2s;
    flex-shrink: 0;
  }
  .faq-card-mobile.active .faq-arrow {
    transform: rotate(180deg);
  }
  .faq-card-mobile .faq-avatar {
    width: 2.5em;
    height: 2.5em;
    border-radius: 0.7em;
    object-fit: cover;
    margin-left: 0.7em;
    box-shadow: 0 0.125em 0.5em rgba(0,0,0,0.10);
  }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    background: #F16629;
    color: #ffffff;
    border-radius: 0 0 1.2em 1.2em;
    padding: 0 1em;
    font-size: 1em;
    margin-top: 0.5em;
  }
  .faq-card-mobile.active .faq-answer {
    max-height: 25em;
    padding: 1em;
  }
  .faq-card-mobile.video-card-mobile .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between; /* arrow always on right */
    font-weight: 600;
    font-size: 1.1em;
    width: 100%;
  }
  .faq-video-mobile {
    width: 100%;
    border-radius: 1em;
    margin-top: 0.7em;
    background: #fff;
  }
  .faq-card-mobile.video-card-mobile .faq-arrow {
    display: inline; /* show arrow for video cards */
  }

  .product-modal .modal-content,
  #feature-modal .modal-content {
    -ms-overflow-style: none;     /* IE/old Edge */
    scrollbar-width: none;        /* Firefox */
    -webkit-overflow-scrolling: touch;
  }
  .product-modal .modal-content::-webkit-scrollbar,
  #feature-modal .modal-content::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  /* Prevent scroll chaining to the page while scrolling inside modal */
  .product-modal,
  #feature-modal {
    overscroll-behavior: contain;
  }

  /* Lock the page scroll while a modal is open */
  html.modal-open,
  body.modal-open {
    overflow: hidden !important;
    height: 100%;
  }

  /* Avoid 100vw causing tiny horizontal overflow -> vertical scrollbar */
  .product-modal {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Optional: hide any root scrollbars completely on mobile */
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
}