/* =====================================
   THEME VARIABLES
===================================== */
:root {
  --bg-color: #1c1c1c;

  /* NAVBAR (dark blue) */
  --navbar-color-top: #1e1e1e;
  --navbar-color-bottom: #141414;

  /* FOOTER (dark blue) */
  --footer-color-top: #0c142b;
  --footer-color-bottom: #080f20;

  --text-color: #ffffff;
  --text-muted: #d0d0d0;
  --accent-color: #ffc107;
  --accent-hover: #ffda47;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);

  /* Fallbacks for measured chrome (updated by JS if you do that) */
  --nav-h: 56px;
  --footer-h: 56px;
}

/* ================================
   GLOBAL STYLES
================================= */
html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
  scrollbar-gutter: auto;
}

@media (max-width: 767px) {
  html { scroll-padding-top: 200px; }
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  margin: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;

  /* Sticky footer layout */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ================================
   NAVBAR (FORCED DARK BLUE)
================================= */
.navbar.navbar-dark.sticky-top {
  background: linear-gradient(
    180deg,
    var(--navbar-color-top) 0%,
    var(--navbar-color-bottom) 100%
  ) !important;

  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow .3s ease;
}

/* Full-bleed navbar container */
.navbar .container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar .nav-link { color: rgba(255,255,255,0.75); }
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active { color: rgba(255,255,255,0.95); }

/* Navbar logo */
.navbar-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.navbar-logo:hover { opacity: 0.85; }
@media (max-width: 992px) {
  .navbar-logo { height: 36px; }
}

/* ================================
   MAIN / LAYOUT
================================= */
main {
  flex: 1 0 auto; /* IMPORTANT for sticky footer */
}

/* Your "main content box" class */
.main {
  background-color: transparent;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 800px;
}

.main p,
.main li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.2px;
  margin-bottom: 1rem;
}

.main h2,
.main h3 {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-color);
}

/* ================================
   FOOTER (slightly taller)
================================= */
footer {
  flex: 0 0 auto;
  background: linear-gradient(
    180deg,
    var(--footer-color-top) 0%,
    var(--footer-color-bottom) 100%
  );
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-color);
}

.footer-tech {
  text-align: center;
  padding: 18px 0;      /* taller footer */
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
}

footer p, footer span, footer div {
  margin: 0 !important; /* prevent extra footer height */
}

/* ================================
   BUTTONS
================================= */
.button,
.btn {
  background-color: var(--accent-color);
  color: #111;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
}
.button:hover,
.btn:hover { background-color: var(--accent-hover); color: #000; }

/* CTA variants */
.purchase--btn { animation: goldPulse 1s infinite; transition: all .3s ease; }
.purchase--btn:hover {
  background-color: #ff4d4d;
  color: #fff;
  animation: redGlow 1s infinite;
  transform: scale(1.05);
}
.cta-button {
  font-weight: bold;
  background-color: var(--accent-color);
  color: #111;
  animation: goldPulse 1s infinite;
  transition: all .3s;
}
.cta-button:hover {
  background-color: #ff4d4d;
  color: #fff;
  animation: redGlow 1s infinite;
  transform: scale(1.05);
}

/* ================================
   CONTACT FORM
================================= */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-radius: 6px;
  border: none;
}

/* ================================
   PROFILE SECTION
================================= */
.profile-link a {
  color: var(--accent-color);
  text-decoration: none;
  margin: 0 5px;
  font-size: 1.2rem;
}
.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 1rem;
}
.about-person { text-align: center; margin-bottom: 2rem; }

/* ================================
   IMAGE STYLING
================================= */
img.img-fluid {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
}

.screenshot {
  width: 100%;
  border-radius: 10px;
  margin: 1rem 0;
}

/* ================================
   PRICING SECTION
================================= */
.card {
  border-radius: 12px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card .btn { margin-top: auto; }
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(255, 193, 7, 0.3), 0 0 8px rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.5);
}

/* ================================
   GLASS BOX
================================= */
.glass-box {
  background: var(--glass-bg);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--shadow-color);
}

/* ================================
   CHECKOUT
================================= */
.checkout-wrapper {
  background: var(--glass-bg);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--shadow-color);
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
}

.input_container { margin-bottom: 1rem; }
.input_label { font-weight: 500; display: block; margin-bottom: 0.25rem; }
.input_field {
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  background-color: #fff;
  color: #000;
}

.payment--options {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.payment--options button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  background-color: var(--accent-color);
  color: #111;
  font-weight: 500;
  cursor: pointer;
}
.payment--options button:hover { background-color: var(--accent-hover); }

.separator { text-align: center; margin: 1rem 0; font-size: 0.9rem; opacity: 0.7; }
.purchase--btn {
  width: 100%;
  background-color: var(--accent-color);
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: bold;
  color: #111;
}

/* ================================
   BACK BUTTON
================================= */
.back-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #ff4d4d;
  font-size: 2rem;
  text-decoration: none;
  font-weight: bold;
  z-index: 10;
}
.back-button:hover { color: #ff6b6b; }

/* ================================
   ANIMATIONS
================================= */
@keyframes goldPulse {
  0% { box-shadow: 0 0 8px rgba(255, 193, 7, 0.4); }
  50% { box-shadow: 0 0 16px rgba(255, 193, 7, 0.7); }
  100% { box-shadow: 0 0 8px rgba(255, 193, 7, 0.4); }
}
@keyframes redGlow {
  0% { box-shadow: 0 0 8px rgba(255, 77, 77, 0.4); }
  50% { box-shadow: 0 0 18px rgba(255, 77, 77, 0.7); }
  100% { box-shadow: 0 0 8px rgba(255, 77, 77, 0.4); }
}
.glow-gold {
  color: var(--accent-color);
  text-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
  animation: textGoldPulse 1s ease-in-out infinite;
}
@keyframes textGoldPulse {
  0% { text-shadow: 0 0 6px rgba(255, 193, 7, 0.4); }
  50% { text-shadow: 0 0 14px rgba(255, 193, 7, 0.8); }
  100% { text-shadow: 0 0 6px rgba(255, 193, 7, 0.4); }
}


/* ==== Image modal (keep only this) ==== */
/* ==== Image modal (final) ==== */
.image-modal .modal-dialog {
  margin: 1rem auto;
  max-width: calc(100vw - 2rem);
  width: calc(100% - 2rem);          /* important for centering */
}

.image-modal .modal-dialog.modal-dialog-centered {
  justify-content: center;           /* important for centering */
}

.image-modal .modal-content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: auto;                        /* shrink-wrap */
  display: inline-flex;               /* shrink-wrap */
}

.image-modal .modal-body {
  padding: 0 !important;
}

.image-modal img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
}

.image-modal .btn-close {
  z-index: 3000;
}

.modal-content.custom-success-modal {
  background-color: var(--accent-color) !important;
  color: #212529 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  opacity: 1 !important;
}
.custom-success-modal .modal-header { border-bottom: 0 !important; background: transparent !important; }
.custom-success-modal .modal-body   { background: transparent !important; }

.modal-backdrop.show { opacity: 0.7; }

.modal-open { padding-right: 0 !important; }
.modal-open .navbar,
.modal-open .sticky-top,
.modal-open .fixed-top,
.modal-open .fixed-bottom { padding-right: 0 !important; }

.modal { overflow-y: auto; }

/* ================================
   PAGE-FIT PAGES (Software / Report / Demo)
================================= */
.page-fit { overflow: hidden; }

.page-fit main {
  height: calc(100dvh - var(--nav-h) - var(--footer-h));
  min-height: calc(100dvh - var(--nav-h) - var(--footer-h));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1rem;
}

.page-fit .glass-box {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.page-fit h2 { font-size: clamp(1.25rem, 1.1rem + 1vw, 2rem); }
.page-fit p,
.page-fit li { font-size: clamp(0.9rem, 0.85rem + 0.35vw, 1rem); }

.page-fit .screenshot,
.page-fit img.img-fluid {
  max-height: calc(100dvh - var(--nav-h) - var(--footer-h) - 180px);
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.page-fit .row { row-gap: 1rem; }



/* ================================
   HERO SECTION
================================ */

.hero-section {
  min-height: 90vh;                 /* vertical centering */
  display: flex;
  align-items: center;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.4rem, 3vw + 1rem, 4rem);
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.hero-subtext {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  max-width: 650px;
  line-height: 1.6;
}

.hero-section .badge {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}



/* Horizontal centering fix for Bootstrap's modal-dialog-centered */
.image-modal .modal-dialog.modal-dialog-centered {
  justify-content: center;
}

/* Make sure the flex container spans the width so centering can happen */
.image-modal .modal-dialog {
  width: calc(100% - 2rem);
}


/* ===== Minimal yellow X close button ===== */

/* ===== Minimal gold X close button (no circle) ===== */
.image-modal .modal-content{
  position: relative;
  overflow: visible; /* allow the X to sit outside the modal */
}

.image-modal .image-close{
  position: absolute;
  top: -34px;
  right: -34px;
  z-index: 5000;

  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  opacity: 1;

  /* remove default look */
  background: var(--accent-color);
  border-radius: 0; /* no circle */

  /* use the default Bootstrap close icon as a mask, so we can color it */
  -webkit-mask: var(--bs-btn-close-bg) center/1em auto no-repeat;
          mask: var(--bs-btn-close-bg) center/1em auto no-repeat;

  /* make it clickable and nice */
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.image-modal .image-close:hover{
  transform: scale(1.15);
  opacity: .85;
}


/* ===== Yellow X for Request Demo modal ===== */
#demoRequestModal .btn-close {
  opacity: 1;
  filter: invert(79%) sepia(74%) saturate(748%) hue-rotate(359deg) brightness(102%) contrast(101%);
}

#demoRequestModal .btn-close:hover {
  opacity: 0.8;
  transform: scale(1.1);
  transition: all 0.2s ease;
}


/* ===== Page gold close button ===== */

.page-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;

  opacity: 1;

  /* make it gold */
  filter: invert(79%) sepia(74%) saturate(748%)
          hue-rotate(359deg) brightness(102%) contrast(101%);

  transition: transform .2s ease, opacity .2s ease;
}

.page-close:hover {
  transform: scale(1.15);
  opacity: .8;
}