﻿
/*-----------------------------------------------
  Color Palette (Approximation from Logo)
-----------------------------------------------*/
:root {
  --background-dark-blue: #141C24; /* Very dark blue for backgrounds */
  --primary-blue: #4AB8E8; /* Lighter blue for primary elements */
  --accent-blue: #2E86C1; /* Medium-blue accent (hover, visited) */
  --active-blue: #1F77D0; /* Deeper blue for active states */
  --text-color: #EBEBEB; /* Light text on dark background */
  --textwhite-color: #FFFFFF;
  --red-color: #FF0000;
}
/* site.css ---------------------------------------------------- */
.service-name {
  color: var(--primary-blue); /* uses the colour token you already defined */
}

button:disabled {
  outline: 2px solid var(--accent-blue);
  cursor: not-allowed;
  opacity: 0.6; /* Optional: reduce opacity for a disabled look */
}
/*-----------------------------------------------
  Base and Global Styles
-----------------------------------------------*/
/* 1) Make html/body full-height and reset margins 
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  position: relative;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* 2) Turn body into a vertical flex container 
body {
  display: flex;
  flex-direction: column;
  background-color: var(--background-dark-blue);
  color: var(--text-color);
  line-height: 1.6;
}

.page-wrapper {
  flex: 1 0 auto;
  overflow-y: auto;
  padding-bottom: 60px;
}

footer {
  flex-shrink: 0;
  background-color: var(--background-dark-blue);
  color: var(--text-color);
  padding: 15px 0;
  text-align: center;
}

header {
  background-color: var(--background-dark-blue);
  color: var(--text-color);
  padding: 15px 0;
  text-align: center;
}
*/


/* Body uses the dark blue background 
body {
  background-color: var(--background-dark-blue);
  color: var(--text-color);
  margin-bottom: 60px;
  line-height: 1.6;
}
*/





/*@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}*/

@media (max-width: 767.98px) {
  .navbar-expand-lg .navbar-toggler {
    display: block !important;
  }

  .navbar-expand-lg .navbar-collapse {
    display: none !important;
  }
  html {
    font-size: 16px;
  }

}


/*-----------------------------------------------
  Links
-----------------------------------------------*/
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

  a:visited {
    color: var(--accent-blue);
  }

  a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: var(--accent-blue);
  }

  a:active {
    color: var(--active-blue);
  }

/*-----------------------------------------------
  Buttons
-----------------------------------------------*/
button, .btn {
  background-color: var(--primary-blue);
  color: var(--background-dark-blue);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

  button:hover, .btn:hover {
    background-color: var(--accent-blue);
  }

  button:active, .btn:active {
    background-color: var(--active-blue);
    transform: scale(0.98);
  }

    /*-----------------------------------------------
  Existing Focus Styles (Merged)
-----------------------------------------------*/
    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
      box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-blue);
    }

/*-----------------------------------------------
  Form Elements
-----------------------------------------------*/
input,
textarea,
select {
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(74, 184, 232, 0.5);
  }

/*-----------------------------------------------
  Form Floating Adjustments (Merged)
-----------------------------------------------*/
.form-floating > .form-control-plaintext::placeholder,form-floating > .form-control::placeholder {
  /* If you want to keep your original placeholder color,
     you can define a custom variable or use a neutral color */
  color: #8FA9BC;
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/*-----------------------------------------------
  Utility Classes and Layout
-----------------------------------------------*/
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  overflow: auto;
}

/*-----------------------------------------------
  Header, Footer, and Navigation
-----------------------------------------------*/

nav a {
  margin: 0 10px;
  color: var(--accent-blue);
  font-weight: bold;
}

  nav a:hover {
    color: var(--primary-blue);
  }

.navbar-custom {
  background-color: var(--background-dark-blue) !important;
  border: 2px solid var(--primary-blue); /* Light blue outline */
  box-shadow: 0 0 10px rgba(74, 184, 232, 0.5); /* Optional shadow to highlight the outline */
}


.navbar-dark .navbar-nav .nav-link.dropdown-toggle,
.navbar-dark .navbar-nav .nav-link.dropdown-toggle:hover,
.navbar-dark .navbar-nav .nav-link.dropdown-toggle:focus,
.navbar-dark .navbar-nav .nav-link.dropdown-toggle:active {
  color: var(--accent-blue);
  font-weight: bold;
}

.navbar-dark .navbar-nav .nav-link.dropdown-toggle {
  color: var(--accent-blue) !important;
}

  .navbar-dark .navbar-nav .nav-link.dropdown-toggle:hover,
  .navbar-dark .navbar-nav .nav-link.dropdown-toggle:focus {
    color: var(--accent-blue) !important;
  }

/* Set the dropdown menu background to primary blue */
.dropdown-menu {
  background-color: var(--primary-blue) !important; /* #4AB8E8 */
  border: none;
  border-radius: 0.25rem;
}

/* Style the dropdown items */
.dropdown-item {
  color: black; /* Text color set to black */
  background-color: transparent;
  transition: text-decoration 0.3s; /* Smooth transition for underline */
}

  /* Hover and focus styles for dropdown items */
  .dropdown-item:visited,
  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: transparent; /* No background change */
    color: black; /* Keep text black */
    text-decoration: underline; /* Add underline on hover/focus */
  }

/* Set the dropdown menu background to primary blue 
.dropdown-menu {
  background-color: var(--primary-blue) !important;
  border: none;
  border-radius: 0.25rem;
  color: var(--accent-blue);
}

/* Style the dropdown items 
.dropdown-item {
  color: var(--textwhite-color);  Use your light text color 
  color: black;
  background-color: transparent;
  border: none;
  transition: color 0.3s, text-decoration 0.3s;
}

  /* Remove the default rectangle hover and instead underline text with dark blue 
  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: transparent;
    color: var(--background-dark-blue);
    text-decoration: underline;
  }
*/

#generateBtn:disabled {
  background-color: gray;
  border: 2px solid lightblue;
  cursor: not-allowed;
}

#checkoutModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

  #checkoutModal .modal-content {
    background: white;
    width: 50%;
    max-height: 80vh;
    margin: 10% auto;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  #checkoutModal .close-btn {
    float: right;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
  }

/* CSS for the spinner */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ── RESET PAGE SCROLL ───────────────────────────────────────── */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* turn off scrolling on the page itself */
}

/* ── MAKE BODY A COLUMN FLEXBOX ─────────────────────────────── */
body {
  display: flex;
  flex-direction: column;
  background-color: var(--background-dark-blue);
  color: var(--text-color);
  line-height: 1.6;
}

/* ── HEADER & FOOTER STAY AT NATURAL HEIGHTS ───────────────── */
header,
footer {
  flex: 0 0 auto; /* don’t grow or shrink */
  background-color: var(--background-dark-blue);
  color: var(--text-color);
  padding: 15px 0;
  text-align: center;
}

/* ── ONLY THIS SCROLLS ──────────────────────────────────────── */
.page-wrapper {
  flex: 1 1 auto; /* fill the gap between header & footer */
  overflow-y: auto; /* vertical scrollbar when needed */
  overflow-x: hidden; /* prevent horizontal scroll */
  padding-bottom: 1.5rem; /* give your final border some breathing room */
  background-color: var(--background-dark-blue);
  color: #FFFFFF; /* White text for readability on dark background */
}


/* 1) Reset body margins & make it a column flex container 
html {
  font-size: 14px;
  position: relative;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}


body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  background-color: var(--background-dark-blue);
  color: var(--text-color);
  line-height: 1.6;
}

header,
footer {
  flex: 0 0 auto;
  background-color: var(--background-dark-blue);
  color: var(--text-color);
  padding: 15px 0;
  text-align: center;
}

.page-wrapper {
  flex: 1 1 auto;
  overflow-y: auto;
}*/



/* ----- Custom nested dropdown CSS ----- */
/* Ensure all dropdowns are position: relative so we can absolutely position submenus */
.navbar-custom .dropdown,
.navbar-custom .dropdown-submenu {
  position: relative;
}

  /* Hide all nested menus by default */
  .navbar-custom .dropdown-menu,
  .navbar-custom .dropdown-submenu .dropdown-menu {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    background-color: #343a40; /* match your .navbar-dark bg */
    min-width: 12rem;
    z-index: 1000;
  }

/* First-level dropdown shows on hover */
.navbar-custom .dropdown:hover > .dropdown-menu {
  display: block;
}

/* Position first-level submenu directly below its parent */
.navbar-custom .dropdown-menu {
  top: 100%;
  left: 0;
}

/* Nested submenu container */
.navbar-custom .dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Position second-tier menus to the right of their parent */
.navbar-custom .dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
}

/* Style links */
.navbar-custom .dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #f8f9fa; /* light text */
  text-decoration: none;
}

  .navbar-custom .dropdown-menu li a:hover {
    background-color: #495057; /* slightly lighter hover */
  }
/* enforce Bootstrap’s font on all dropdown links */
.navbar-custom .dropdown-menu li a {
  font-family: var(--bs-body-font-family);
}

.navbar-custom .dropdown-submenu li a {
  font-family: var(--bs-body-font-family);
}

.navbar-custom .nav-item > a:hover,
.navbar-custom .dropdown-item:hover {
  background-color: transparent !important;
  text-decoration: underline;
  text-decoration-color: #2E86C1;
  text-decoration-thickness: 3px;
  text-underline-offset: 2px;
}





h1.service-title {
  display: inline-block;
  border: 4px solid var(--accent-blue);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  color: var(--textwhite-color);
  background-color: var(--background-dark-blue);
}

/* Place this in your site CSS file, after the :root vars */
ul.security-topics > li {
  display: block; /* make sure the box wraps the full width */
  border: 4px solid var(--accent-blue);
  padding: 2rem; /* space inside the box */
  border-radius: 0.25rem;
  margin-bottom: 1rem; /* gap between items */
  background-color: var(--background-dark-blue);
}



/* More specific than Bootstrap’s .table-striped */
.table.table-accent-striped tbody tr:nth-of-type(odd) > td {
  background-color: var(--accent-blue) !important;
  color: var(--textwhite-color) !important; /* if you want white text on blue */
}

.table.table-accent-striped tbody tr:nth-of-type(even) > td {
  background-color: #e9ecef !important;
}

/* Optional: keep a hover state */
.table.table-accent-striped tbody tr:hover > td {
  background-color: rgba(46, 134, 193, 0.75) !important;
}

/* 3 columns, 2 rows */
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px; /* or whatever fits your layout */
  margin: 0 auto;
}

.service-card {
  /* make it a square */
  aspect-ratio: 1 / 1;
  border: 4px solid var(--accent-blue);
  border-radius: 0; /* square corners */
  background-color: transparent;
  color: #fff; /* force white text */
  box-sizing: border-box;
  padding: 20px;
  /* center your title + list */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

  /* nix the old overlay */
  .service-card .card-overlay {
    display: none !important;
  }

  /* always show content */
  .service-card .card-content {
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 10px;
  }

  /* white‐out all text & links */
  .service-card h3,
  .service-card li {
    color: #fff !important;
  }

  .service-card ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
  }

  .service-card a {
    /* always underlined in accent-blue */
    color: #fff !important;
    text-decoration-color: var(--accent-blue) !important;
    /* only animate the text color—no animate on underline */
    transition: color 0.3s !important;
  }

    .service-card a:hover {
      /* keep text white, underline in accent-blue */
      color: #fff !important;
      text-decoration-color: var(--accent-blue) !important;
    }
/*NavBar fade in
.services-container {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 2rem;
}

.service-card {
  position: relative;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .3s ease;
}

  .service-card:hover {
    transform: translateY(-8px);
  }

#card-legal .card-overlay {
  background: url('/images/legal-bg.png') center/cover no-repeat;
}

#card-security .card-overlay {
  background: url('/images/security-bg.png') center/cover no-repeat;
}

#card-author .card-overlay {
  background: url('/images/author-bg.png') center/cover no-repeat;
}

#card-ai .card-overlay {
  background: url('/images/ai-bg.png') center/cover no-repeat;
}

#card-demos .card-overlay {
  background: url('/images/demo-bg.png') center/cover no-repeat;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: brightness(0.6);
  transition: filter .3s ease;
}

.service-card:hover .card-overlay {
  filter: brightness(0.3);
}


.card-title {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3; 
  margin: 0;
  color: #fff;
  font-size: 1.25rem; 
  pointer-events: auto;
  text-decoration: underline; 
  color: inherit; 
}

.card-content {
  position: absolute;
  top: 2.5rem; 
  left: 0;
  right: 0;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}

.service-card:hover .card-content {
  opacity: 1;
  transform: translateY(0);
}
.locked {
  color: #ffdddd;
  font-style: italic;
}
*/

/*Global Spinner*/
/* full‐screen semi‐opaque backdrop */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* the box with the spinning icon + text */
.spinner-container {
  background: rgba(255,255,255,0.9);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
}

  .spinner-container i.fa-spinner {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: #007bff;
  }

/* spin animation (if you’re not already loading Font Awesome’s fa-spin) */
@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#legalDisclaimerModal .modal-content,
#legalDisclaimerModal .modal-body,
#legalDisclaimerModal .btn {
  opacity: 1 !important;
  pointer-events: auto !important;
  color: inherit !important;
}

/* “Accept” button: green background, dark‐green outline */
.btn-disclaimer-accept {
  background-color: #28a745; /* Bootstrap’s “green” */
  color: white;
  border: 1px solid #1e7e34; /* darker green outline */
}

  .btn-disclaimer-accept:hover {
    background-color: #1e7e34; /* on hover, darken a bit */
    color: white;
  }

/* “Close/Cancel” button: red background, dark‐red outline */
.btn-disclaimer-close {
  background-color: #dc3545; /* Bootstrap’s “red” */
  color: white;
  border: 1px solid #c82333; /* darker red outline */
}

  .btn-disclaimer-close:hover {
    background-color: #c82333; /* on hover, darken a bit */
    color: white;
  }

/* If you only want this specific list to be bullet-free,
   give it a class (e.g. “no-bullets”) and target that: */

ul.no-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* site.css */
/* --------------------------------------------------
   Draw a 2px solid border using the --accent-blue variable
   around any container that has the .section-border class.
---------------------------------------------------- */
.section-border {
  border: 2px solid var(--accent-blue);
  padding: 1rem; /* give some breathing room inside the border */
  margin-bottom: 1.5rem; /* space between consecutive sections */
  border-radius: 4px; /* optional—softens the corners */
}
