/* ==================================================
   ROOT THEME VARIABLES
================================================== */
:root {
  /* Brand Colors */
  --bs-primary: #1e3961;
  --bs-danger: #96172a;

  /* Backgrounds */
  --primary-bg-color-light: #9ca3af;
  --primary-bg-color-dark: #212121;

  /* Text */
  --primary-text-color-light: #000;
  --primary-text-color-dark: #000;

  /* Navbar */
  --navbar-bg-light: #f2f2f2;
  --navbar-bg-dark: #c6c7c8;

  /* Links */
  --link-color-light: #000;
  --link-color-dark: #ddd;

  --active-link-color-light: #75b798;
  --active-link-color-dark: #ffcc00;
}

.border-primary {
  --bs-border-opacity: 1;       /* keep opacity logic intact */
  border-color: #1e3961 !important;  /* your custom color */
}

.text-primary {
  color: #1e3961 !important;
}

.skinny-stroke {
  text-shadow: 
    -0.5px 0 0 rgba(255, 255, 255, 0.4),
     0.5px 0 0 rgba(255, 255, 255, 0.12);
}
/* ==================================================
   BOOTSTRAP 5 THEME INTEGRATION
================================================== */
[data-bs-theme="light"] {
  background-color: var(--primary-bg-color-light);
  color: black;
  --bs-body-bg: #dee2e6;
  --bs-body-color: #000;
  --bs-tertiary-bg: #e6e6e6;
}

[data-bs-theme="dark"] {
  --bs-tertiary-bg: #2a2a2a;
  --bs-body-bg: var(--bs-tertiary-bg);
  background-color: var(--bs-tertiary-bg);
  color: white;
  --bs-body-color: #fff;
}

/* ==================================================
   GLOBAL LAYOUT
================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;  /* prevent horizontal scrollbar */
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
  padding-top: 150px;   /* height of fixed navbar */
  padding-bottom: 70px; /* height of fixed footer */
}

.page-wrapper {
  position: relative;
  z-index: 3;
}

main {
  position: relative;
  z-index: 3;
}

header {
  position: relative;
  z-index: 3;
}
.container {
    max-width: 100%; /* prevents content wider than viewport */
    padding-left: 1rem;
    padding-right: 1rem;
}

.contact-card {
  margin-top: 4rem;
  margin-bottom: 4rem;
  width: 100%;
}

.me-20 {
	margin-right: 21rem !important;
}
/* ================================
   NAVBAR BASE
================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: sans-serif;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #96172a;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.4) inset;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;

  background: linear-gradient(to right, transparent, #96172a,transparent);
}

.navbar .container {
  align-items: center;
}


/* Nav links */
.navbar .nav-link,
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link:active,
ul.navbar-nav > li.nav-item > a.nav-link {
  text-decoration: none !important;
  font-size: x-large;
}

.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 10px rgba(150, 23, 42, 1);
}

/* ================================
   MOBILE NAVBAR
================================ */

@media (max-width: 991px) {

	  .navbar-logo {
	    height: 55px;
	  }
	
	  /* Collapsed menu container */
	  .navbar-collapse {
	
	    margin-top: 45px;
	    padding: 1rem 1.25rem;
	    border-radius: 18px;
	    background: rgba(0,0,0,0.90);
	    backdrop-filter: blur(14px);
	    -webkit-backdrop-filter: blur(14px);
	    border: 1px solid rgba(150, 23, 42, 1);
	    box-shadow: 0 18px 40px rgba(0,0,0,.35);
	  }
	
	  /* Better spacing for mobile links */
	  .navbar-nav {
	    align-items: stretch;
	    gap: .35rem;
	  }
	
	  .navbar-nav .nav-link {
	    display: block;
	    padding: .85rem 1rem;
	    margin: .1rem 0;
	    border-radius: 10px;
	    font-size: 1.15rem;
	    color: rgba(255,255,255,1) !important;
	    transition: background .25s ease;
	  }
	
	  /* Hover / tap highlight */
	  .navbar-nav .nav-link:hover {
	    background: rgba(255,255,255,0.08);
	  }
	  


}

a {
  color: #96172a;
  text-decoration: none;
}

/* Navbar color modes */
[data-bs-theme="light"] .navbar {
  background-color: var(--navbar-bg-light);
}

[data-bs-theme="dark"] .navbar {
  background-color: var(--navbar-bg-dark);
  color: #96172a;
}

/* ==================================================
   FOOTER
================================================== */

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  font-family: sans-serif;
  font-size: .85rem !important;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  
  border-top: 1px solid #96172a;

  box-shadow:
    0 -8px 25px rgba(0,0,0,0.25),
    0 -1px 0 rgba(255,255,255,0.4) inset;

  position: fixed; /* keep your working fixed footer */
}

footer::before {
  content: "";
  position: absolute;
  top: 0;             /* line will be at the top of footer */
  left: 0;
  width: 100%;
  height: 2px;        /* same height as navbar glow */
  background: linear-gradient(to right, transparent, #96172a, transparent);
}

/* Footer color modes */
[data-bs-theme="light"] footer {
  background-color: var(--navbar-bg-light);
  color: var(--primary-text-color-light);
}

[data-bs-theme="dark"] footer {
  background-color: var(--navbar-bg-dark);
  color: #dc3545; /* text-danger-emphasis in dark mode */
}

[data-bs-theme="dark"] footer a {
  color: #dc3545;
}

/* ==================================================
   PARALLAX BACKGROUND
================================================== */
.parallax-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
  transition: background-image 0.4s ease-in-out;
}

.parallax-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 1;
  transition: background 0.3s ease;
}

.parallax-bg, .parallax-overlay {
    overflow-x: hidden; /* extra safety */
}

[data-bs-theme="light"] .parallax-bg {
  filter: brightness(.75);
}

[data-bs-theme="dark"] .parallax-bg {
  filter: brightness(1.05);
}

/* ==================================================
   BADGE
================================================== */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #167e53;
  color: white;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
}

/* ==================================================
   STROKE UTILITIES
================================================== */
.stroke-light,
[data-bs-theme="light"] .stroke-toggle {
  color: black;
  text-shadow:
    0.3px 0.3px 0 white,
    -0.3px -0.3px 0 white,
    0.3px -0.3px 0 white,
    -0.3px 0.3px 0 white,
    0 0 0.5px white;
}

.stroke-dark,
[data-bs-theme="dark"] .stroke-toggle {
  color: white;
  text-shadow:
    0.3px 0.3px 0 black,
    -0.3px -0.3px 0 black,
    0.3px -0.3px 0 black,
    -0.3px 0.3px 0 black,
    0 0 0.5px black;
}

.stroke-toggle {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* ==================================================
   FLOATING GLASS CARDS
================================================== */

.themed-card  {
  position: relative;
  z-index: 3;
  overflow: hidden;

  background: linear-gradient(145deg,rgba(255,255,255,0.08),rgba(0,0,0,0.45));
  color: rgba(255,255,255,0.95);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
      0 10px 30px rgba(0,0,0,0.25),
      inset 0 1px 0 rgba(255,255,255,0.05);

  transition: all .35s cubic-bezier(.25,.8,.25,1);
}



[data-bs-theme="dark"] #centerModal table th,
[data-bs-theme="dark"] #centerModal table td {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08),
        rgba(0, 0, 0, 0.45)
    );
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px; /* subtle rounding for table cells */
}


.themed-card:hover {
  transform: translateY(-10px) scale(1.01);

  box-shadow:
      0 25px 60px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.1);
}

.page-card {
  position: relative;
  z-index: 3;
  margin: 2rem auto;
  max-width: 1400px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.5rem;
  box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2rem;
  overflow: hidden;
}

/* ==================================================
   THEME TOGGLE BUTTON
================================================== */
.bd-mode-toggle {
    position: fixed !important;
    right: 20px;
    bottom: calc(70px + 40px); /* footer height + desired gap */
    z-index: 5000;
    pointer-events: auto;
    margin-bottom: 0 !important; /* override mb-3 */
    transition: bottom 0.3s ease, right 0.3s ease;
}

.bd-mode-toggle .btn {
  padding: 0.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #96172a;
}

.bd-mode-toggle .bi {
  width: 1rem;
  height: 1rem;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: .255em;
  vertical-align: .255em;
  content: "";
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
  color: black;
}

.dropdown-menu {
  z-index: 6000 !important;
}

/* Light theme: black icons */
[data-bs-theme="light"] .bd-mode-toggle .stroke-toggle {
	color: white;
    fill: white;
}

/* Dark theme: white icons */
[data-bs-theme="dark"] .bd-mode-toggle .stroke-toggle {
    color: black;
    fill: black;
}

/* Chevron color for theme toggle */
.bd-mode-toggle .dropdown-toggle::after {
    border-top-color: black; /* default light theme */
}

/* Dark mode: make chevron white */
[data-bs-theme="dark"] .bd-mode-toggle .dropdown-toggle::after {
    border-top-color: white;
}

[data-bs-theme="light"] .bd-mode-toggle .dropdown-toggle::after {
    border-top-color: white;
}

.fade-row .col-md-6 {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-row .col-md-6.left-col {
  transform: translateX(-40px);
}

.fade-row .col-md-6.right-col {
  transform: translateX(40px);
}

.fade-row .col-md-6.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.fade-row .col-md-6 ul li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-row .col-md-6.visible ul li {
  opacity: 1;
  transform: translateY(0);
}

/* remove fixed nth-child delays — we’ll do this via JS */

hr { border-color: #ffffff; }


/* ==================================================
   MODAL DARK MODE STYLING
================================================== */
[data-bs-theme="dark"] #centerModal .modal-content {
  background: linear-gradient(145deg, rgba(0,0,0,0.6), rgba(0,0,0,0.85));
  color: rgba(255,255,255,0.95);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
      0 10px 30px rgba(0,0,0,0.25),
      inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all .35s cubic-bezier(.25,.8,.25,1);
}

[data-bs-theme="dark"] #centerModal .modal-header,
[data-bs-theme="dark"] #centerModal .modal-footer {
  background: rgba(255,255,255,0.05); /* subtle differentiation */
  color: rgba(255,255,255,0.95);
  border-bottom: 1px solid;
}

[data-bs-theme="dark"] #centerModal .modal-body {
  color: rgba(255,255,255,0.95);
}

[data-bs-theme="dark"] #centerModal .btn-close {
  filter: invert(1); /* make the close button visible */
}

/* ==================================================
   DARK MODE MODAL TABLE MATCH THEMED-CARD
================================================== */
[data-bs-theme="dark"] #centerModal .modal-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

[data-bs-theme="dark"] #centerModal table th,
[data-bs-theme="dark"] #centerModal table td {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08),
        rgba(0, 0, 0, 0.45)
    );
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px; /* subtle rounding for table cells */
}

[data-bs-theme="dark"] #centerModal table th {
    font-weight: 600; /* keep table header emphasis */
}


/* -------------------------------
   Modal Tables Dark Mode Fix
--------------------------------- */
[data-bs-theme="dark"] #centerModal table th,
[data-bs-theme="dark"] #centerModal table td {
    background-color: rgba(255, 255, 255, 0.05); /* same as td in dark mode */
    color: #fff; /* ensures text is readable */
    border-color: rgba(255, 255, 255, 0.15);
}

/* Optional: keep hover/striped consistency */
[data-bs-theme="dark"] #centerModal table tbody tr:hover td,
[data-bs-theme="dark"] #centerModal table tbody tr:hover th {
    background-color: rgba(255, 255, 255, 0.1);
}

/* -------------------------------
   Dark Mode: Modal Table Fix
--------------------------------- */
[data-bs-theme="dark"] #centerModal table th,
[data-bs-theme="dark"] #centerModal table td {
    background-color: rgba(255, 255, 255, 0.05) !important; /* match td */
    color: #fff !important; /* readable text */
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Override any bg-light class inside modal table */
[data-bs-theme="dark"] #centerModal table th.bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
}


/* ==================================================
   Modal Table Styling - Flat Card Look
================================================== */
#centerModal table {
    width: 100%;
    border-collapse: collapse; /* remove double borders */
    border-spacing: 0;
    background: transparent;   /* no separate table background */
}

#centerModal table th,
#centerModal table td {
    border-radius: 0 !important;  /* remove rounding */
    border: 1px solid rgba(255,255,255,0.15); /* match themed-card subtle border */
    padding: 0.75rem 0.5rem;      /* consistent padding with themed cards */
    background-color: rgba(255,255,255,0.08); /* mimic themed-card glass for light bg */
    color: inherit;                /* use current text color */
}

/* Dark mode adjustments */
[data-bs-theme="dark"] #centerModal table th,
[data-bs-theme="dark"] #centerModal table td {
    background-color: rgba(0,0,0,0.45);  /* match dark-themed card glass */
    color: #fff;                         /* ensure readability */
    border: 1px solid rgba(255,255,255,0.1); /* subtle border in dark */
}

/* Optional: hover highlight for rows, similar to cards */
#centerModal table tbody tr:hover {
    background-color: rgba(255,255,255,0.12);
}

[data-bs-theme="dark"] #centerModal table tbody tr:hover {
    background-color: rgba(255,255,255,0.08);
}
/* ==================================================
   BUTTON OVERRIDES
================================================== */
.btn-primary {
  --bs-btn-bg: #1e3961;
  --bs-btn-border-color: #1e3961;
  --bs-btn-hover-bg: #192f51;
  --bs-btn-hover-border-color: #192f51;
  --bs-btn-active-bg: #142742;
  --bs-btn-active-border-color: #142742;
}

.btn-danger {
  --bs-btn-bg: #96172a;
  --bs-btn-border-color: #96172a;
  --bs-btn-hover-bg: #7d1323;
  --bs-btn-hover-border-color: #7d1323;
  --bs-btn-active-bg: #6a101e;
  --bs-btn-active-border-color: #6a101e;
}


/* ==================================================
   RESPONSIVE MEDIA QUERIES
================================================== */

/* Small screens */
@media (max-width: 767.98px) {
    /* Page layout adjustments */
    .gif-wrapper {
        margin-top: 12rem;
    }

    .page-card {
        margin: 1rem;
        padding: 1rem;
        border-radius: 1rem;
    }

    /* Floating toggle tweaks */
    .bd-mode-toggle {
        right: 15px;
        bottom: calc(70px + 15px);
    }
}

/* Short viewports */
@media (max-height: 700px) {
    .bd-mode-toggle {
        bottom: calc(70px + 15px); /* slightly smaller spacing for short viewports */
    }
}

.row-equal .col {
  display: flex;
  flex-direction: column;
}

.row-equal .col .themed-card {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* stretch to fill parent column */
}

.themed-card .btn-view-specs {
  margin-top: auto; /* pushes the button to the bottom */
}

