/*
Theme Name: NexCSSv5
Description: A modern WordPress theme using Bootstrap and Inter font
Version: 1.0
Author: Next Phase Solutions and Services
*/

@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Inter:wght@300;400;500;600;700;800&family=Source+Sans+Pro:wght@300;400;700&display=swap");

:root {
  --primary-color: #072b59;
  --primary-color2: #33d9ff;
  --secondary-color: #53caf1;
  --light-color: #fff;
  /*--success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545; 
  --dark-color: #343a40;*/
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px !important;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.6;
  background-color: #11164e;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  overflow-x: hidden;
  padding-top: 0; /* Add padding equal to the navbar's height */
}

/* Set the header font family */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
}

/* Sticky Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 5px 0;
  background-color: transparent; 
  transition: background-color 0.5s ease; 
}

/* Navbar style for all other pages (solid) */
.navbar-solid {
  background-color: #11164e !important;
}

.navbar-brand img {
  max-height: 50px;
  width: auto;
}

.navbar .container {
  margin-left: 0;
  padding-left: 5vw;
}

/* Top Section with Earth Background */
.hero-section {
  background-image: url("images/earthreplacement.png");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  background-attachment: fixed; 
  position: relative;
  overflow: hidden;
}

/*.gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* To keep it below the text */
/*  background: linear-gradient(90deg, #11164e 0%, rgba(17, 22, 78, 0) 100%);
} */

.hero-content {
  text-align: left;
  margin-left: 5vw;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  z-index: 2;
}

.main-title {
  font-size: 2.5rem; 
  margin-bottom: 2rem;
  max-width: 40rem;
}

.main-title .line-one {
  color: var(--light-color);
}

.main-title .line-two-three {
  color: var(--secondary-color);
}

.intro-box {
  margin-bottom: 2rem;
  color: var(--light-color);
  max-width: 35rem;
  font-style: italic;
}

.description-text {
  color: var(--light-color);
  font-size: 1.25rem;
  max-width: 35rem;
  line-height: 1.8rem;
  word-break: break-word; 
  overflow-wrap: anywhere;
}

/* Molecule Section with White Background */
.molecule-section {
  background-color: var(--light-color);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  /*perspective: 1000px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;  */
}

.molecule-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 75vh;
/*  transform-style: preserve-3d; */
  position: relative;
  margin: 0;
  padding: 5vw;
}

.molecule-image {
  position: absolute;
  /* Centers the image within the .molecule container */
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%); /* translateZ(-100px); /* translateZ for parallax */;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: fill;
  z-index: 5;
}

.molecule-text {
  max-width: 35%; /* Control the width of the text blocks */
  color: var(--primary-color);
  z-index: 10;
  padding: 10px;
  transform: translateZ(0); /* Parallax */
}

.molecule-text h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.molecule-text p {
  font-size: 1rem;
}

.top-left-text {
  align-self: flex-start;
  text-align: left;
  margin-top: -50px;
}

.bottom-right-text {
  align-self: flex-end;
  text-align: right;
  margin-bottom: -70px;
}

/* NeXCss Advantages Section */
.NexCss-adv-section {
  background-color: #11164e;
  padding: 3rem 0;
}

.adv-box {
  width: 90%; /* Use responsive width instead of a fixed pixel value */
  min-height: auto; /* Use min-height to ensure the box grows with content */
  margin: auto; /* Centers the box horizontally */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-radius: 12px;
  border: 2px #33d9ff solid;
  backdrop-filter: blur(2px);
}

.adv-box .container {
  padding: 3rem;
}

.NexCss-adv-section h2 {
  color: var(--light-color);
}

.NexCss-adv-section p {
  color: var(--light-color);
}

.NexCss-adv-section strong {
  color: #33d9ff;
}

.adv-description {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  line-height: 1.8rem;
  word-wrap: break-word;
}

.card-grid-container { /* Card Grid Layout */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  padding: 2rem 3rem;
}

.feature-card {
    position: relative; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 160px;
    background: transparent; 
    border-radius: 12px 12px 0 0; /* Rounded Top Corners, Square Bottom Corners */
    padding-top: 30px; 
    padding-bottom: 0;
    z-index: 10;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px 12px 0 0; /* Inherit the border-radius so the line curves correctly */
    background: linear-gradient(
      to bottom, 
      #33D9FF 0%,                       
      #33D9FF 1px,                      
      rgba(51, 217, 255, 0.7) 10%,      
      rgba(51, 217, 255, 0) 70%         
      );
    mask: 
      linear-gradient(#fff, #fff) content-box, /* The inner part to cut out */
      linear-gradient(#fff, #fff);            /* The base to apply the border */      
    -webkit-mask-composite: exclude; /* For WebKit browsers (Chrome/Safari) */
    mask-composite: exclude;         /* Standard property */
    padding: 1px; /* thickness */
    z-index: 5;
    pointer-events: none; /* Allows mouse interactions with content below the pseudo-element */
}

/*Parallax*/
/* Staggered delay for each card to create a sequential effect */
.feature-card:nth-child(1) {
  transition-delay: 0.1s;
}
.feature-card:nth-child(2) {
  transition-delay: 0.2s;
}
.feature-card:nth-child(3) {
  transition-delay: 0.3s;
}
.feature-card:nth-child(4) {
  transition-delay: 0.4s;
}

/*Parallax*/
/* Class to be added by JavaScript when the element is in view */
.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-icon {
  position: absolute; /* Positions the icon above the background */
  top: -20px; /* Moves the icon up by 30 pixels */
  left: 50%; /* Centers the icon horizontally */
  transform: translateX(-50%); /* Precisely centers the icon */
  z-index: 15;
 /* background-image: url("images/tickmark.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat; */
  width: 40px; /* Adjust size as needed */
  height: 40px;
  /* blue circle */
  background-color: var(--primary-color2); /* The blue color for the circle */
  border-radius: 50%; /* Makes it a circle */
  display: flex; /* Use flexbox to center the tick */
  align-items: center; /* Vertically center the tick */
  justify-content: center; /* Horizontally center the tick */
}

.card-icon.custom-tick::before {
    content: '✓'; /* Unicode tickmark character */
    font-family: 'Arial Black', Arial, sans-serif; /* A font that renders a clear tick */
    font-size: 1.5rem; /* Adjust size of the tickmark */
    color: var(--primary-color); /* Color of the tickmark */
    font-weight: bold; /* Make the tick thicker if desired */
}

.card-text {
  position: relative;
  z-index: 1;
  padding: 0 1rem 1rem;
  flex-grow: 1;
}

.card-text p {
  margin-top: 0;
  line-height: 1.5;
  font-size: 1rem;
  color: var(--light-color);
  max-width: 13rem;
  margin-left: auto;
  margin-right: auto;
}

/* Key Capabilities Section with White Background */
.capabilities-section-container {
  background-color: var(--light-color);
  padding: 3rem 0;
}

.capabilities-section-title {
  color: #072b59;
  font-weight: bold;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.capability-card-wrapper {
  margin-bottom: 30px;
}

.capability-card {
  background: linear-gradient(
    180deg,
    rgba(17, 22, 78, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 12px 12px 0 0;
  position: relative; 
  padding: 2rem;
  height: 100%; /* Ensures all cards have the same height */
  display: flex; /* Use flexbox to align content */
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
}

.capability-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px 12px 0 0; /* To make the border curve with the card */
    background: linear-gradient(
        to bottom, 
        rgba(51, 217, 255, 0.6) 0%,  /* Strongest blue at the top */
        rgba(51, 217, 255, 0.2) 60%, /* Fading down the sides */
        rgba(51, 217, 255, 0) 100%   /* Fully transparent at the bottom */
    );
    mask: /* MASK: This creates the line by cutting out the center (1px smaller) */
        linear-gradient(#fff, #fff) content-box, /* Inner cut-out area */
        linear-gradient(#fff, #fff);            /* Outer area (the border itself) */
    -webkit-mask-composite: exclude; /* For WebKit browsers */
    mask-composite: exclude;         /* Standard property (important!) */
    padding: 1px; /* Border Thickness */
    pointer-events: none; /* Allows mouse interactions with card content */
}

.capability-icon-box {
    height: 15rem; 
    display: flex; 
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.capability-card img {
  margin-bottom: 0; 
}

/* Parallax */
/* Staggered transition delays for individual capability cards */
/* For the first row of capability cards */
.capabilities-section-container
  .row:nth-of-type(2)
  .capability-card-wrapper:nth-child(1)
  .capability-card {
  transition-delay: 0.1s;
}
.capabilities-section-container
  .row:nth-of-type(2)
  .capability-card-wrapper:nth-child(2)
  .capability-card {
  transition-delay: 0.2s;
}
.capabilities-section-container
  .row:nth-of-type(2)
  .capability-card-wrapper:nth-child(3)
  .capability-card {
  transition-delay: 0.3s;
}

/* Parallax */
/* For the second row of capability cards */
.capabilities-section-container
  .row:nth-of-type(3)
  .capability-card-wrapper:nth-child(1)
  .capability-card {
  transition-delay: 0.1s;
}
.capabilities-section-container
  .row:nth-of-type(3)
  .capability-card-wrapper:nth-child(2)
  .capability-card {
  transition-delay: 0.2s;
}

/* Parallax */
/* Class to be added by JavaScript when the element is in view */
.capability-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.capability-card h3 {
  color: #072b59;
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 15px; /* Space between icon and title */
  text-align: center;
  word-wrap: break-word;
}

.capability-card p {
  color: #072b59;
  text-align: center;
  word-wrap: break-word;
}

.capabilities-section-container .row.mt-4 .capability-card img {
  margin-top: 0; 
}

/* Quote Section with Blue Background */
.quote-section-container {
  color: white;
  padding: 0;
  text-align: center;
  z-index: 10;
  position: relative;
  overflow: hidden; /* To contain the absolute-positioned bg-shape */
}

/* Custom background shape styles */
.bg-shape {
  /* Set fixed position relative to the molecule-section */
  position: absolute;
  width: 150vw;
  height: 50vh; 
  top: -20vh; 
  left: -25vw; 
  background: radial-gradient(
        circle closest-side,
        rgba(68, 137, 174, 0.30) 0%, /* Transparent Light Blue center */
         #072b59 30%  /* Fade out to transparent dark blue by 50% */
     
      );
  border-radius: 50%; /* Use 50% for a perfect circle/oval */
  filter: blur(150px);
  z-index: 0 !important;
}

/* Base styles for the white case study boxes */
.case-study-card {
  border-radius: 12px;
/*  border: 1px #33d9ff solid; */
  backdrop-filter: blur(2px);
  color: var(--primary-color2);
  padding: 1.5rem;
  height: 100%; /* Ensures height consistency */
  /* Border matching the image (thin blue line) */
  /*  border: 1px solid var(--secondary-color); */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.case-study-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Inherit the radius to make the border curve with the card */
    border-radius: 12px;
    
    /* The gradient defines the line color and the opacity fade (Top to Bottom) */
    background: linear-gradient(
        to bottom, 
        #33D9FF 0%,                       /* Solid Blue at the top */
        #33D9FF 40%,                      /* Maintains opacity through most of the height */
        rgba(51, 217, 255, 0.1) 100%      /* Fades to low opacity at the bottom */
    );

    /* MASK: This creates the 1px line by cutting out the center */
    mask: 
        linear-gradient(#fff, #fff) content-box,
        linear-gradient(#fff, #fff);
    
    -webkit-mask-composite: exclude; /* For Chrome/Safari */
    mask-composite: exclude;         /* For Firefox */
    
    /* Defines the border thickness (1px) */
    padding: 0.75px; 
    
    pointer-events: none;
}

.case-study-card h3 {
  color: var(--primary-color2); /* Dark blue */
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.case-study-card p {
  color: var(--light-color);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 400;
}

/* Remove or update conflicting previous styles */
/* Base styles for quote groups (Now handled by .case-study-card) */
.section-quote .quote-group {
  /* Removed: This HTML structure is replaced by d-flex utility classes */
  width: auto;
  margin: 0;
}
.quote-group:first-child {
  margin-bottom: 0; /* Remove vertical space */
}

.quote-section-container h2 {
  font-size: clamp(2rem, 8vw, 3rem);
  word-wrap: break-word;
}

.quote-section-container p {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  word-wrap: break-word;
  font-weight: lighter;
}

/* Base styles for quote groups */
.section-quote .quote-group {
  width: 100%;
  margin: 0;
}

/* Style for quote text and attributions */
.section-quote .quote-group p,
.section-quote .quote-group h3 {
  text-align: center;
}

/* Attributions */
.quote-group h3 {
  font-size: 1.25rem; /* Base font size for mobile attribution */
}

/* Add vertical space between stacked quotes on mobile */
.quote-group:first-child {
  margin-bottom: 3rem;
}

/* CTA Section with White Background */
.cta-section {
  background-color: var(--light-color);
  color: var(--primary-color);
  padding: 3rem 0;
  text-align: center;
  border-radius: 12px !important;
  border: 2px solid #fff;
  width: 90%;
  margin: 6rem auto 2rem;
  position: relative;
  z-index: 10;
}

.schedule-demo-btn {
  background: var(--primary-color2);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
  border-radius: 32.5px;
  border: none;
  color: #072b59;
  font-family: Inter;
  font-weight: 600;
  font-size: 20px;
  line-height: 40px;
  word-wrap: break-word;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 12px 15px;
}

/* Hover effect for the button */
.schedule-demo-btn:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* two column at the end before footer logo */

/* --- Global Styles to Match the Background and Font --- */
.contract-vehicles-section {
    /* Set the dark blue background color seen in the image */
    padding: 3rem 1rem;
}

/* Assume the text color is a light blue/cyan for the entire section */
.contract-vehicles-section h3,
.contract-vehicles-section li {
    color:#fff; /* Light blue/cyan color */
    font-family: 'Orbitron'; /* Use a clean, modern, slightly futuristic font */
    font-weight: 700;
}

.contract-vehicles-section li {
    color: #fff; /* Light blue/cyan color */
    font-family: 'source sans pro'; /* Use a clean, modern, slightly futuristic font */
    font-weight: 400;
}

/* --- Heading Styling --- */
.section-title {
    font-size: 1.5rem; /* Large, capitalized headings */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white; /* Headings appear white/slightly brighter */
    letter-spacing: 0.1em;
    text-align: left;
}

/* --- List Styling (Contract Vehicles and Certs) --- */
.vehicle-list,
.certs-list {
    list-style: none; /* Remove default bullet points */
    padding-left: 0; 
    margin-left: 0;
}

/* Style for individual list items */
.vehicle-list li,
.certs-list li {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.3rem; /* Space between lines */
    text-align: left;
    /* Simulate the "→" arrow using the content property */
    position: relative;
    padding-left: 25px;
}

/* Create the arrow using a pseudo-element */
.vehicle-list li::before,
.certs-list li::before {
    content: "→"; /* The actual arrow character */
    position: absolute;
    left: 0;
    /*top: 0;*/
    top: -2px;
    color: #33D9FF; /* Ensure the arrow is the same light blue color */
    font-size: 1.2rem;
    line-height: 1.3;
}

.joint-venture {
 text-align: left;
 padding-left: 0px;
 margin-top: 5px;
}

.vehicle-list li.website-link::before {
   /* Globe with Meridians Unicode Character: 🌐 */
  content: "\1F310"; 
  position: absolute;
  top: 0;
  color: #33D9FF;
  left: 18px; 
  font-size: 1.1rem; 
}

.website-link a {
    color: var(--light-color); /* Light blue link color */
    text-decoration: none; /* Optional: remove underline */
    font-family: "Source Sans Pro";
    padding-left: 18px; 
}

/* ------------------------------- */
/* Below styles are from f360 website, can be used if download button or pdf is added */

.download-btn {
  border: 3px #072b59 solid;
  border-radius: 32.5px;
  background: transparent;
  padding: 12px 15px; /* Add padding to control the button's size */
  display: inline-block; /* Makes the button's width fit its content */
  cursor: pointer;
  box-sizing: border-box; /* Ensures padding doesn't add to the total width */
}

.download-text {
  color: #072b59;
  font-size: 18px;
  font-family: Inter;
  font-weight: 550;
  line-height: 40px;
  word-wrap: break-word;
  text-decoration: none; /* Removes the default underline from the link */
}
/* --------------------------------------------------- */

/* Footer Styles */
.site-footer {
  padding: 2rem 0;
  color: white;
  text-align: center;
}

.site-footer img {
  /* Apply the styles directly to the image */
  width: auto;
  height: 50px; /* Provides a base height for the logo on mobile */
  max-height: 50px;
}

/* --- DISCLAIMER TEXT STYLING --- */
.footer-disclaimer {
    /* Set the color for the text, which is usually lighter/gray in footers */
    color: #fff; 
    
    /* Ensure the text is centered */
    text-align: center;
    
    /* Control the font size and margins */
    font-size: 12px;
    font-family: "Source Sans Pro";
    font-weight: 200;
    font-style: italic;
    line-height: 23px;
    
    /* Remove default paragraph margin */
    margin-top: 0; 
    margin-bottom: 0;
    
    /* Constrain the width of the text block to prevent it from stretching too wide */
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Related CSS */
/* Initially hide the modal container by its ID */
.foresite-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* This class will be added by JavaScript to show the modal */
.foresite-modal.is-visible {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  position: relative;
  max-width: 1336px;
  width: 90%;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-sizing: border-box;
  padding: 2rem;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 30px;
  line-height: 1;
  color: #072b59;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.close-btn::before {
  content: "\00D7";
}

.form-body {
  display: flex;
  flex-direction: column; /* Stack vertically for mobile-first */
  justify-content: space-between; /* Creates space between the two columns */
  width: 100%; /* Important: Make sure it fills the parent width */
  margin-top: 1.5rem; /* Adjust spacing from the subheader */
  gap: 1rem; /* Optional: Adds a gap between the two halves */
}

.form-left-half,
.form-right-half {
  flex: 1; /* This is the key: makes both halves take up equal space */
  display: flex;
  flex-direction: column; /* Stacks the labels and inputs vertically */
}

.contact-form__header {
  width: auto;
  text-align: center;
  color: #072b59;
  font-size: clamp(1.5rem, 8vw, 3rem);
  font-family: Inter;
  font-weight: 700;
  line-height: 1.2;
  word-wrap: break-word;
  margin: 0 auto;
}

.contact-form__subheader {
  width: auto;
  text-align: center;
  color: #072b59;
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-family: Inter;
  font-weight: 400;
  line-height: 1.2;
  word-wrap: break-word;
  margin: 0 auto;
}

.contact-form label {
  width: 100%;
  color: #072b59;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-family: Inter;
  font-weight: 400;
  line-height: 1.5;
  word-wrap: break-word;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: white;
  border-radius: 5.55px;
  border: 1.39px #072b59 solid;
  padding: 10px;
}

.contact-form input {
  height: 60px;
}

.contact-form textarea {
  height: 300px;
}
.contact-form input[type="submit"] {
  width: 169px;
  height: 52px;
  background: #ff9900;
  border-radius: 26px;
  text-align: center;
  color: #072b59;
  font-size: 1.5rem;
  font-family: Inter;
  font-weight: 400;
  line-height: 1.5;
  word-wrap: break-word;
  display: block;
  margin: 40px auto 0;
  border: none; /* Add a border: none to avoid issues */
  cursor: pointer;
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: -10px;
  margin-bottom: 10px;
  display: none; /* Initially hide all error messages */
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }
  
  .navbar .container {
    padding-left: 20px; /* Adjust padding to be less than 5vw on small screens */
  }

  /* Earth Section */
  .hero-section {
    align-items: flex-start; /* Align content to the top to prevent text from being hidden */
    padding-top: 10vh; /* padding-top to push the content down below the fixed navbar */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-content {
    margin-left: 0;
    padding: 0 5vw;
    width: 80vw;
    max-width: 80vw;
  }

  .main-title {
    font-size: clamp(2rem, 8vw, 2rem); 
    margin-bottom: 1rem;
  }

  .intro-box {
    margin-bottom: 1.5rem;
    max-width: 100%;
    padding-right: 0;
  }

  .description-text {
    font-size: clamp(1rem, 3vw, 1.25rem); 
    max-width: 100%;
    padding-right: 0;
    word-break: break-word; 
    overflow-wrap: anywhere !important;
    line-height: 1.5; 
  }

  /* Molecule Section */
  .molecule-section {
    padding: 3rem 1rem;
    perspective: none; 
    transform-style: flat;
  }
  
  .molecule-section .container {
    margin-left: 0; 
    padding: 0 5vw; 
    width: 100%;
  }

  .molecule-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    min-height: 70vh; 
    padding: 5vw;
  }

  .molecule-image {
    position: absolute; 
    top: 50%;
    left: 50%;
    max-width: 100%; 
    margin: 0; 
    order: 2; /* Put the image between the two text blocks */
    z-index: 1; 
  }

  .molecule-text {
    max-width: 100%; 
    padding: 0;
    transform: none;
    z-index: 2;
  }
  
  .top-left-text {
    align-self: center; 
    text-align: center;
    margin-top: 0;
    order: 1;
  }

  .bottom-right-text {
    align-self: center; 
    text-align: center;
    margin-bottom: 0;
    order: 3;
  }

  /* Adv Section */
  .NexCss-adv-section {
      padding: 3rem 0; 
    }

  .card-grid-container {
    grid-template-columns: 1fr; /* Single Column */
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .feature-card {
    padding: 3rem 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .card-text p {
    font-size: 1.1rem; 
  }

  .capabilities-section-container {
    padding: 5rem 0;
  }
  
  /* --- Quote Section Mobile Stacking Fix --- */
  .quote-section-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .case-studies-grid .col-lg-5,
  .case-studies-grid .col-md-6 {
    flex-basis: 100%; 
    max-width: 100%;
    margin-bottom: 1.5rem !important; /* Standardize spacing */
  }

  .case-studies-grid .col-lg-5:last-child {
      margin-bottom: 0 !important;
  }
  
  .cta-section .cta-link-row {
    margin-top: 1.5rem;
    display: flex; /* Enable flexbox for the button container */
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Add space between stacked buttons */
    align-items: center; /* Center the buttons */
  }

  .schedule-demo-btn,
  .download-btn {
    /* Use 100% width, constrained by a max-width, and centered */
    width: 90%; 
    max-width: 350px; /* Prevents buttons from getting too wide on tablets */
    min-width: auto; /* Remove fixed desktop min-width */
    padding: 15px 20px;
    font-size: 18px;
    line-height: 24px;
    display: block;
    margin: 0 auto;
  }

  
  .contact-form {
    width: 95%; /* Make it slightly bigger on small screens */
    max-height: 95vh;
    padding: 1rem;
  }

  .form-body {
    /* Force form to stack vertically on mobile */
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  /* Reduce textarea height on mobile */
  .contact-form textarea {
    height: 150px; 
  }
  
  .contact-form input[type="submit"] {
    width: 100%;
    max-width: 200px; /* Control max width */
    margin: 30px auto 0;
  }
  
  .contact-form__header {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }

  .contact-form__subheader {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
}

/*
@media (max-width: 768px) {

  .resolution-section {
    flex-direction: row;
  }

  .cta-section .cta-link-row {
    margin-top: 1rem;
  }

  .section-quote {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligns quotes at the top */
  /*}

  /* Style for individual quote blocks on desktop */
 /* .section-quote .quote-group {
    flex: 1; /* Allows quotes to grow and fill available space equally */
   /* max-width: 50%; /* Ensures they don't get too wide */
   /* padding: 0;
    margin: 0 15px; /* Adds space between the side-by-side quotes */
  /*}

  /* Override mobile spacing to ensure they are side-by-side */
/*  .quote-group:first-child {
    margin-bottom: 0;
  }

  /* Add horizontal space between the two quotes on desktop */
  /*.quote-group:first-child {
    padding-right: 2rem; /* Adds space to the right of the first quote */
  /*}

  .quote-group:last-child {
    padding-left: 2rem; /* Adds space to the left of the second quote */
/*  }

  /* Optional: Adjust font size for a larger screen if needed */
  /*.quote-group h3 {
    font-size: 1.25rem; /* Example: make the attribution slightly larger on desktop */
/*  }

  .schedule-demo-btn {
    font-size: 20px;
    line-height: 30px;
    min-width: 300px;
    padding: 15px 25px;
    border-radius: 25px;
    white-space: nowrap;
  }

  .download-btn {
    font-size: 20px;
    line-height: 24px;
    min-width: 400px;
    padding: 15px 20px;
    border-radius: 25px;
  }

  .site-footer img {
    height: 50px;
  }

  .contact-form {
    max-width: 1336px;
    padding: 3rem;
  }

  .form-body {
    flex-direction: row;
    gap: 50px;
  }

  .contact-form textarea {
    height: 650px;
  }
}
