/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans";
  line-height: 1.6;
  background-color: #ffffff;
  color: #002147;
  min-width: 1060px;
  padding-top: 10rem;
}

a {
  text-decoration: none;
  color: #002147;
}

/* Header */
.header {
  position: fixed; /* Stick to the top */
  top: 0;
  left: 0;
  right: 0;
  min-width: 1060px;

  background: #ffffff;
  height: 10rem;
  border-bottom: 0.1875rem solid #002f6c;
  display: flex;
  align-items: center;
  padding: 0.9375rem 2.8125rem;
  z-index: 1100;
}

.header-logo {
  width: 25rem;
  height: 7.8125rem;
  margin-right: 4rem;
}

.header-container {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.header p {
  font-size: 2.5rem;
  color: #002f6c;
}

.help-link {
  font-size: 1.25rem;
  color: #898d8d;
}

/* Hero Section */
.hero {
  background-color: #f7f9fc;
  padding: 4rem 4rem 0 4rem;
}

.hero-img {
  width: 510px;
  height: 400px;
  object-fit: contain;
  z-index: 1000;
}

.hero-content {
  display: flex;
  flex-direction: row;
  gap: 6.25rem;
  align-items: start;
  justify-content: center;
}

.hero .text-content {
  flex: 1 1 18.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero .button {
  background-color: #003b7a;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: bold;
  display: inline-block;
  width: fit-content;
}

.cta-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
  padding: 1.25rem;
}

.cta-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-text {
  flex: 1;
  min-width: 15.625rem;
  font-size: clamp(1rem, 1.2vw, 1.8rem);
  display: -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-button {
  background-color: #003b7a;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  font-size: clamp(1rem, 1.2vw, 1.8rem);
  text-align: center;
  white-space: nowrap;
}

.cta-separator {
  border: none;
  border-top: 0.125rem solid #003b7a;
  margin: 0;
}

/* DEMO SECTION */
.demo-section {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  color: white;
  background-image: url("bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
}

.demo-heading {
  font-size: clamp(1.625rem, 2vw, 2.625rem);
  margin-bottom: 5rem;
  margin-top: 5rem;
  width: 62.5rem;
  text-align: center;
}

.demo-cards {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 10rem;
  flex-wrap: wrap;
}

.demo-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.demo-card:hover {
  transform: scale(1.03);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  display: block;
  width: clamp(18.75rem, 40vw, 40.625rem); /* 300px–650px */
  height: clamp(10rem, 22vw, 21.875rem); /* 160px–350px */
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  color: #003b7a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
}

.demo-card.mining:hover .overlay,
.demo-card.civil:hover .overlay {
  opacity: 1;
  font-size: clamp(2rem, 2vw, 4rem);
}

.card-title {
  background: white;
  color: #003b7a;
  font-weight: bold;
  font-size: clamp(2rem, 2vw, 4rem);
  padding: 2rem;
}
