:root {
  --bg-color: #1a1a1a;
  --text-color: #88aa88;
  --text-shadow: #00ff0040;
  --shadow: #00ff0040;
  --bg-hover: #004000;
  --visited-color: #88aa88;
  --hover-color: #00ff00;
  --btn-color: #004000;
  --border-color: #00ff0080;
  --nav-color: #00ff00;
}

h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase; /* Make headers all caps */
}

h1 {
  font-weight: 900; /* Use 900 weight for h1 */
  font-size: 64pt; /* Set font size to 64pt */
  margin-top: 0; /* Remove top margin */
  margin-bottom: 2px; /* Reduce spacing between lines */
  width: 100%;
  line-height: 1; /* Tighten vertical spacing more */
}

h2 {
  font-weight: 700; /* Use 700 weight for h2 */
  font-size: 36pt; /* Set font size to 36pt */
  margin-top: 0; /* Remove top margin */
  margin-bottom: 2px; /* Reduce spacing between lines */
  width: 100%;
  line-height: 1; /* Tighten vertical spacing more */
}

h3 {
  font-weight: 500; /* Use 500 weight for h3 */
  font-size: 28pt; /* Set font size to 32pt */
  margin-top: 0; /* Remove top margin */
  margin-bottom: 2px; /* Reduce spacing between lines */
  width: 100%;
  line-height: 1; /* Tighten vertical spacing more */
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
}

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

.container {
  max-width: 1200px; /* Adjust the maximum width as needed */
  margin: 0 auto;
  padding: 0 5px;
}

/**************************************************************************************************************/
/** Header ****************************************************************************************************/
/**************************************************************************************************************/
header {
  top: 0;
  width: 100%;
  background-color: var(--bg-color);
  z-index: 1000; /* Ensure it stays above other content */
  display: flex;
  justify-content: center; /* Center the header content */
  padding: 5px 0; /* Add some space at the top and bottom */
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; /* Set the same max width as the main container */
  width: 100%;
  padding: 0 20px; /* Optional padding for small spacing on the sides */
}

.header-left {
  display: flex;
  align-items: center;
}

.company-name {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase; /* Make headers all caps */
  font-weight: bold;
  margin-right: 10px;
  color: var(--text-color); /* Ensure company name is visible */
}

.logo {
  height: 20px;
}

/**************************************************************************************************************/
/** Nav bar ***************************************************************************************************/
/**************************************************************************************************************/
nav {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase; /* Make headers all caps */
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

nav ul li {
  position: relative;
}

nav ul li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 20px;
  background-color: var(--border-color);
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

nav ul li a:hover {
  text-shadow: 0 0 5px var(--hover-color);
}

@media (max-width: 768px) {
  nav ul {
    display: none; /* Hide the navigation links */
  }
  nav ul li {
    margin-left: 0; /* Reset the left margin */
  }
  .menu-toggle {
    display: block; /* Show the menu toggle button */
  }
}

/**************************************************************************************************************/
/** Intro text ************************************************************************************************/
/**************************************************************************************************************/
.intro-text {
  text-align: center;
  padding: 0px;
  background-color: var(--bg-color);
  color: var(--text-color);
  max-width: 100%;
  border-bottom: 2px solid var(--border-color); /* Add border at the bottom */
  border-top: 2px solid var(--border-color); /* Add border at the bottom */
}

.intro-text h1, .intro-text h2, .intro-text h3 {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase; /* Make headers all caps */
}

.intro-text h1 {
  font-weight: 900; /* Use 900 weight for h1 */
  font-size: clamp(.1vw, 7.1vw, 70pt); /* Set font size to scale with viewport */
  margin-top: 0; /* Remove top margin */
  margin-bottom: 2px; /* Reduce spacing between lines */
  width: 100%;
  line-height: 1; /* Tighten vertical spacing more */
}

.intro-text h2 {
  font-weight: 700; /* Use 700 weight for h2 */
  font-size: clamp(.1vw, 5vw, 45pt); /* Set font size to scale with viewport */
  margin-top: 0; /* Remove top margin */
  margin-bottom: 2px; /* Reduce spacing between lines */
  width: 100%;
  line-height: 1; /* Tighten vertical spacing more */
}

.intro-text h3 {
  font-weight: 500; /* Use 500 weight for h3 */
  font-size: clamp(.1vw, 2.9vw, 25pt); /* Set font size to scale with viewport */
  margin-top: 0; /* Remove top margin */
  margin-bottom: 2px; /* Reduce spacing between lines */
  width: 100%;
  line-height: 1; /* Tighten vertical spacing more */
}


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

.hero-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-text {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-shadow: 0 0 20px var(--text-shadow), 0 0 30px var(--text-shadow);
}

.subheadline {
  font-size: 1.5em;
  margin-bottom: 40px;
  text-shadow: 0 0 10px var(--text-shadow);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px;
  background-color: var(--btn-color);
  color: var(--text-color);
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  background-color: var(--bg-hover);
  color: var(--hover-color);
  text-shadow: 0 0 5px var(--text-shadow);
  box-shadow: 0 0 5px var(--shadow);
}

/**************************************************************************************************************/
/** Feature section *******************************************************************************************/
/**************************************************************************************************************/
.features {
  background-color: var(--bg-color);
}

.feature-items {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap */
  justify-content: space-around; /* Distribute items evenly */
  transition: all 0.3s ease-in-out;
  align-items: stretch; /* Stretch items to fill the container */
}

.feature-item {
  display: flex;
  flex-basis: 100%; /* Ensure each item takes up 100% of the width */
  flex-direction: column; /* Arrange items in a column */
  align-items: center; /* Center items horizontally */
  justify-content: center; /* Center items vertically */
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 20px 20px 0 20px;
  flex: 0 1 33%; /* Ensure each item takes up 33% of the width */
  box-sizing: border-box;
  position: relative; /* Make position relative for pseudo-element */
  justify-content: space-between; /* Distribute items evenly */
}

.feature-item img {
  width: 100%;
  height: auto;
  margin-bottom: 5px;
}

.feature-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 2px;
  height: 80%;
  background-color: var(--border-color);
}

.feature-item:last-child::after {
  display: none; /* Remove the line for the last item */
}

.feature-item h3 {
  color: var(--text-color);
  text-shadow: 0 0 2px var(--text-shadow);
}

.features h2 {
  color: var(--text-color);
  text-shadow: 0 0 4px var(--text-shadow);
}

.feature-item p {
  color: var(--text-color);
}

@media (max-width: 768px) {
  .feature-item {
    flex: 1 1 100%; /* Set full width for smaller screens */
    min-width: unset; /* Remove the minimum width */
    font-size: 1.2em; /* Increase font size for smaller screens */
  }

  .feature-item::after {
    display: none; /* Remove vertical divider on small screens */
  }
  .feature-item img {
    width: 80%;
    height: auto;
    margin-bottom: 5px;
  }
}

/**************************************************************************************************************/
/** Call to action ********************************************************************************************/
/**************************************************************************************************************/
.call-to-action {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 0 20px 0 20px;
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.call-to-action p.first {
  order: 1; /* First text element order for larger screens */
  text-align: left;
  flex: 1;
}

.call-to-action p.last {
  order: 3; /* Second text element order for larger screens */
  text-align: right;
  flex: 1;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.call-to-action .demo-btn {
  display: inline-block;
  position: relative;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border: none;
  order: 2; /* Button order for larger screens */
  box-shadow: none;
}

.call-to-action .demo-btn img {
  display: block;
  width: 150px;
  padding: 20px;
  height: auto;
}

.call-to-action .demo-button-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1000; /* Overlay on top of the default image */
  transition: opacity 0.5s ease-in-out;
}

.call-to-action .demo-btn .demo-button {
  z-index: 1;
}

.call-to-action .demo-btn .demo-button-hover {
  z-index: 2;
  animation: pulse 2s infinite;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .cta-content {
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
  }
  .call-to-action p.first,
  .call-to-action p.last {
    order: 2; /* Text order for smaller screens */
    text-align: left;
    font-size: 1.5em;
  }
  
  .call-to-action .demo-btn {
    order: 1; /* Button order for smaller screens */
  }
}

/**************************************************************************************************************/
/** Contact form **********************************************************************************************/
/**************************************************************************************************************/
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  width: 100%;
  margin: 40px auto;
  padding: 20px;
  background-color: rgba(34, 34, 34, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.input-group {
  flex: 1;
  min-width: 45%;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: #2a2a2a;
  color: var(--text-color);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  color: var(--text-color);
  opacity: 0.7;
}

button {
  padding: 10px 20px;
  background-color: var(--btn-color);
  color: var(--text-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s, color 0.3s;
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  font-weight: bold;
}

button:hover {
  background-color: var(--bg-hover);
  color: var(--hover-color);
}

/**************************************************************************************************************/
/** Careers ****************************************************************************************************/
/**************************************************************************************************************/
/* Careers Page CSS */
.career {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.career h1, .career h2, .career h3 {
  font-family: 'Roboto', sans-serif;
}

.career h1 {
  font-size: 3em;
  font-weight: 900;
  margin-bottom: 20px;
}

.career h2 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 15px;
}

.career h3 {
  font-size: 1.5em;
  font-weight: 500;
  margin-bottom: 10px;
}

.career p {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 15px;
}

.career .job-listing {
  margin-bottom: 30px;
}

.career .job-title {
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.career .job-description {
  font-size: 1em;
  line-height: 1.5;
  color: #555;
  margin-bottom: 10px;
}

.career .apply-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--btn-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.career .apply-button:hover {
  background-color: var(--bg-hover);
  color: var(--hover-color);
}

/**************************************************************************************************************/
/** Weblog ****************************************************************************************************/
/**************************************************************************************************************/
.weblog {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 40px 20px;
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
}

.weblog h1 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--text-shadow);
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-in-out;
}

.post h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
  text-shadow: 0 0 5px var(--text-shadow);
}

.post a {
  color: var(--hover-color);
  text-decoration: none;
}

.post-meta {
  font-size: 0.9em;
  margin-bottom: 15px;
  color: #ccc;
}

.post-excerpt {
  font-size: 1em;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  background-color: var(--btn-color);
  color: var(--text-color);
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

/**************************************************************************************************************/
/** Weblog posts **********************************************************************************************/
/**************************************************************************************************************/
.post-content {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
}

.post-header h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 48pt;
  text-transform: uppercase;
  color: var(--text-color);
}

.post-meta {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 12pt;
  color: var(--hover-color);
}

.post-body {
  font-family: 'Roboto Slab', serif;
  font-size: 16pt;
  line-height: 1.6;
  color: var(--text-color);
}

.post-body img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

/**************************************************************************************************************/
/** Footer ****************************************************************************************************/
/**************************************************************************************************************/
footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 5px 0;
  text-align: center;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; /* Set the same max width as the main container */
  padding: 0 20px; /* Optional padding for small spacing on the sides */
}

.social-media {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.social-media a img {
  width: 24px;
  height: 24px;
}

.social-media i {
  color: var(--text-color);
}

@media (max-width: 768px) {
  .hero-text {
    font-size: 1.8em;
  }

  .subheadline {
    font-size: 1.2em;
  }

  .feature-item h3 {
    font-size: 1.5em;
  }

  .feature-item p {
    font-size: 1em;
  }

  form {
    padding: 15px;
  }
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  padding: 2%; /* Location of the box */
  left: 0;
  top: 0;
  width: 98%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #1a1a1a;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 85%;
  height: 90%;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-top: -20px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}