/* ============================================
   CSS Variables for Theme Support
   ============================================ */

:root {
  /* Light Theme Colors */
  --primary: #002db3;
  --primary-dark: #001c75;
  --white: #fff;
  --black: #111827;
  --gray-200: #e5e7eb;
  --body-bg: #f8f9fa;
  --body-color: #1f2937;
  --text-muted: #6b7280;
  --text-green: #28a745;
  --border-color: #d1d5db;
  --jumbotron-bg: #fff;
  --card-bg: #fff;
  --navbar-bg: #fff;
}

/* Dark Theme */
.theme-dark {
  --primary: #2563eb;
  --primary-dark: #93b7fb;
  --white: #111827;
  --black: #f9fafb;
  --gray-200: #1f2937;
  --body-bg: #111827;
  --body-color: #e5e7eb;
  --text-muted: #9ca3af;
  --text-green: #28a745;
  --border-color: rgba(249, 250, 251, 0.125);
  --jumbotron-bg: #111827;
  --card-bg: #111827;
  --navbar-bg: #111827;
}

/* Auto Theme - follows system preference */
@media (prefers-color-scheme: dark) {
  .theme-auto {
    --primary: #2563eb;
    --primary-dark: #93b7fb;
    --white: #111827;
    --black: #f9fafb;
    --gray-200: #1f2937;
    --body-bg: #111827;
    --body-color: #e5e7eb;
    --text-muted: #9ca3af;
    --border-color: rgba(249, 250, 251, 0.125);
    --jumbotron-bg: #111827;
    --card-bg: #111827;
    --navbar-bg: #111827;
  }
}

/* ============================================
   Base Styles
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--body-bg);
  color: var(--body-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom heading styles - override Bootstrap defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  color: var(--black);
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
  background-color: var(--navbar-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 1.25rem;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
}

.navbar-brand:hover {
  color: var(--primary);
  text-decoration: none;
}

.navbar-brand img {
  height: 32px;
  width: 32px;
  margin-right: 0.5rem;
}

.brand-name {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--primary);
  font-weight: 400;
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  transition: background-color 0.15s ease-in-out;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--primary-dark);
  background-color: rgba(0, 45, 179, 0.06);
}

.theme-dark .navbar-light .navbar-nav .nav-link,
.theme-auto .navbar-light .navbar-nav .nav-link {
  color: var(--primary);
}

.theme-dark .navbar-light .navbar-nav .nav-link:hover,
.theme-auto .navbar-light .navbar-nav .nav-link:hover {
  background-color: rgba(37, 99, 235, 0.06);
  color: var(--primary);
}

.navbar-toggler {
  border-color: var(--border-color);
  font-size: 1.25rem;
  padding: 0.25rem 0.75rem;
}

.btn-signup {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.15s ease-in-out;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--primary);
}

.btn-signup:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 45, 179, 0.3);
}

.theme-dark .btn-signup:hover,
.theme-auto .btn-signup:hover {
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Theme Dropdown */
.theme-dropdown .dropdown-toggle {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.theme-dropdown .dropdown-toggle::after {
  display: none;
}

.theme-icon {
  width: 20px;
  height: 20px;
}

.dropdown-menu {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-size: 1rem;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-item {
  color: var(--body-color);
  padding: 0.45rem 1.5rem;
  font-weight: 400;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  display: block;
  width: 100%;
  clear: both;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--gray-200);
  color: var(--body-color);
  text-decoration: none;
}

.dropdown-item.active {
  color: var(--primary);
  background-color: transparent;
  font-weight: 500;
}

.dropdown-header {
  color: var(--text-muted);
  padding: 0.5rem 1.5rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  white-space: nowrap;
  display: block;
}

/* ============================================
   Jumbotron
   ============================================ */

.jumbotron {
  background-color: var(--jumbotron-bg);
  border-radius: 0;
  padding: 2rem 1rem;
  margin-bottom: 0;
  /* overflow: hidden; */
}

@media (min-width: 576px) {
  .jumbotron {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .jumbotron {
    padding: 2rem 2rem;
  }
}

@media (min-width: 992px) {
  .jumbotron {
    padding: 4rem 2rem;
  }
}

.jumbotron h1,
.jumbotron .h1 {
  font-size: calc(1.4rem + 2vw);
  max-width: 100%;
  word-wrap: break-word;
}

@media (min-width: 768px) {
  .jumbotron h1,
  .jumbotron .h1 {
    font-size: calc(1.6rem + 2.2vw);
  }
}

@media (min-width: 992px) {
  .jumbotron h1,
  .jumbotron .h1 {
    font-size: 2.5rem;
  }
}

.jumbotron .lead {
  font-weight: 300;
  font-size: 1.25rem;

  max-width: 100%;
}

.Testimonials .jumbotron .lead {
  font-size: 1.75rem;
}

.Testimonials footer {
  font-size: 1.25rem;
}

/* ============================================
   Home Page Styles
   ============================================ */

.Home {
  background-color: var(--white);
}

.primary-divider {
  margin: 2.5rem auto;
  height: 3px;
  width: 80px;
  background-color: var(--primary);
  border-radius: 3px;
}

/* Hero Section */
.hero-section {
  text-align: center;
}

.btn-primary-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s, transform 0.3s;
  border: 1px solid #002db34d;
  color: var(--primary);
}

.btn-primary-outline:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--primary);
  border: 1px solid #002db34d;
}

.btn-primary-outline .arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.btn-primary-outline:hover .arrow {
  transform: translateX(4px);
}

.btn-primary .arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff !important;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.btn-link {
  color: var(--primary);
  padding: 0;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link:hover .arrow {
  transform: translateX(4px);
}
.btn-link .arrow {
  display: inline-block;
  transition: transform 0.3s;
}

/* Benefits Section */
.Benefits h3 {
  color: var(--primary);
}

/* Security Section */
.Security {
  padding: 3rem 0;
}

.Security .card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  box-shadow: 0px 0px 13px 0px rgba(17, 24, 39, 0.05);
}

.theme-dark .Security .card {
  box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.05);
}

.Security .highlight {
  box-shadow: 0 15px 35px rgba(17, 24, 39, 0.08);
}

.theme-dark .Security .highlight {
  box-shadow: 0 15px 35px rgba(249, 250, 251, 0.08);
}

.Security .card-body {
  padding: 2.5rem;
  color: var(--body-color);
}

.Security h2 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.Security h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.Security .flex-grow-1 {
  color: var(--body-color);
}

.Security .security-icon {
  width: 64px;
  height: 64px;
  fill: var(--text-green);
}

.Security .check-icon {
  width: 16px;
  height: 16px;
  fill: var(--text-green);
  flex-shrink: 0;
}

.text-green {
  color: var(--text-green);
}

/* Testimonials Section */
.Testimonials img.logo {
  max-height: 50px;
}

.Testimonials footer {
  margin-top: 1rem;
}

/* Get Started Section */
.GetStarted {
  padding: 3rem 0;
}

.GetStarted .jumbotron {
  background: var(--primary);
  border-radius: 0.25rem;
}

.GetStarted h2,
.GetStarted .h2 {
  color: var(--white) !important;
}

.GetStarted p,
.GetStarted .lead {
  color: var(--white) !important;
}

.GetStarted .btn-cta {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--black) !important;
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.btn-cta .arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.btn-cta:hover .arrow {
  transform: translateX(4px);
  color: var(--black) !important;
}

.GetStarted .btn-cta:hover {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: var(--black) !important;
  text-decoration: none;
}

.GetStarted .btn-cta.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

.theme-dark .GetStarted h2,
.theme-dark .GetStarted .h2 {
  color: #111827 !important;
}

.theme-dark .GetStarted p,
.theme-dark .GetStarted .lead {
  color: #1f2937 !important;
}

.theme-dark .GetStarted .btn-cta {
  background-color: #111827;
  border-color: #111827;
  color: #ffffff !important;
}

.theme-dark .GetStarted .btn-cta:hover {
  background-color: #1f2937;
  border-color: #1f2937;
  color: #ffffff !important;
}

/* Auto Theme - follows system preference for dark mode */
@media (prefers-color-scheme: dark) {
  .theme-auto .GetStarted .jumbotron {
    background: var(--primary);
  }

  .theme-auto .GetStarted h2,
  .theme-auto .GetStarted .h2 {
    color: #111827 !important;
  }

  .theme-auto .GetStarted p,
  .theme-auto .GetStarted .lead {
    color: #1f2937 !important;
  }

  .theme-auto .GetStarted .btn-cta {
    background-color: #111827;
    border-color: #111827;
    color: #ffffff !important;
  }

  .theme-auto .GetStarted .btn-cta:hover {
    background-color: #1f2937;
    border-color: #1f2937;
    color: #ffffff !important;
  }
}

/* Compliance Section */
.Compliance img {
  max-height: 80px;
  max-width: 60px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background-color: var(--body-bg);
  margin-top: 3rem;
  font-size: 85%;
}

.footer .nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer .nav-item {
  margin: 0;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
  }

  .Security .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-dark {
  color: var(--black) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-white {
  background-color: var(--white) !important;
}

.border-bottom {
  border-bottom: 1px solid var(--border-color) !important;
}

/* ============================================
   Page Content Text Justification
   ============================================ */

.Terms .col-10,
.Terms .col-md-10,
.Terms .col-xl-10,
.Privacy .col-10,
.Privacy .col-md-10,
.Privacy .col-xl-10,
.About .col-10,
.About .col-md-10,
.About .col-xl-10,
.Security .col-10,
.Security .col-md-10,
.Security .col-xl-10 {
  text-align: justify;
  line-height: 1.6;
  text-justify: inter-word;
}

.Terms p,
.Privacy p,
.About p {
  margin-bottom: 1.5rem;
  text-align: justify;
  text-justify: inter-word;
}
