/*
Theme Name: Foresite360 - Current
Description: A modern WordPress theme using Bootstrap and Inter font
Version: 1.0.1
Author: Next Phase Solutions and Services
*/

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px !important;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent; /* transparent so thumb floats above content */
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4); /* Light color for contrast against blue */
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.6); /* Brighter on hover */
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent; /* Light thumb, transparent track */
}

/* Remove scrollbar buttons */
.no-scrollbar-buttons::-webkit-scrollbar-button:single-button {
  display: none;
  width: 0;
  height: 0;
}

.no-scrollbar-buttons::-webkit-scrollbar-button:double-button {
  display: none;
  width: 0;
  height: 0;
}

.no-scrollbar-buttons::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* NAVBAR LAYOUT & BACKGROUND */


.wrap-auto {
  text-wrap: auto !important;
}

/* Default State */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  background-color: transparent;
  transition: background-color 0.4s ease;
}

/* SOLID STATE (Scroll or Open) */
.navbar-solid,
.navbar.menu-open {
  background-color: #061932 !important;
}

/* Note: We target both .container and .container-fluid just in case */
.navbar .container,
.navbar .container-fluid {
  align-items: flex-start !important;
  flex-wrap: nowrap; /* CRITICAL: Forces them to stay on one line */

  /* Mobile Side Padding: Keep it tight (15px) so there is room for the logo */
  padding-left: 15px;
  padding-right: 15px;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
}

/* Hamburger Button */
.menu-controls {
  position: relative;
  z-index: 1000;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px; /* Click area */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hamburger-btn .bar {
  width: 30px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Optional: Transform hamburger into X when open */
/* Bar 1: Rotates 45 degrees and moves down */
.navbar.menu-open .hamburger-btn .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
/* Bar 2: Becomes invisible (opacity: 0) */
.navbar.menu-open .hamburger-btn .bar:nth-child(2) {
  opacity: 0;
}
/* Bar 3: Rotates -45 degrees and moves up */
.navbar.menu-open .hamburger-btn .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* DROPDOWN MENU (The Box) */

.custom-dropdown {
  background-color: #daeef3; /* Light Blue Card */
  width: auto;
  min-width: 180px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.25);
  padding: 5px 0;
  z-index: 1000;

  /* Default Hidden State (Absolute) */
  position: absolute;
  top: 50px;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Menu Links */
.dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.dropdown-list li a {
  display: block;
  min-width: 180px;
  text-align: center;
  padding: 8px 15px;
  color: #072b59; /* Dark Text */
  font-weight: 700;
  text-decoration: none;
  font-family: Inter;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.dropdown-list li a:hover {
  background-color: rgba(6, 25, 50, 0.1);
}

/* OPEN STATE LOGIC*/

.custom-dropdown.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Keep dropdown absolutely positioned even when open on mobile */
.navbar.menu-open .custom-dropdown {
  position: absolute;
  top: 100%; /* Position below the navbar */
  right: 10px; /* Align closer to hamburger (accounting for hamburger padding) */
  margin-top: 10px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Adjust logo to sit nicely at the top */
.navbar.menu-open .navbar-brand img {
  margin-top: 5px;
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: none; /* Hidden by default on mobile */
}

.desktop-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
  align-items: center;
}

.desktop-nav-list li a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  font-family: Inter;
  font-size: 1.1rem;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.desktop-nav-list li a:hover {
  opacity: 0.8;
}

/* Responsive: Hide hamburger menu on desktop screens */
@media (min-width: 1024px) {
  .menu-controls {
    display: none !important;
  }
  
  .desktop-nav {
    display: flex;
    align-items: center;
  }
  
  /* Center items vertically in the navbar */
  .navbar .container-fluid {
    align-items: center !important;
  }
}

/* Mobile: Center hamburger with logo */
@media (max-width: 1023px) {
  .navbar .container-fluid {
    align-items: center !important;
    min-height: 60px; /* Fixed minimum height to prevent shifting */
  }
  
  .navbar-brand {
    flex-shrink: 0; /* Prevent logo from shrinking */
  }
  
  .menu-controls {
    flex-shrink: 0; /* Prevent hamburger from shrinking */
  }
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-image: none;
  background-color: #061932; /* Blue background for bounce scroll */
  font-size: 1rem;
  overflow-x: hidden;
  padding-top: 0;
  min-height: 100vh;
  margin: 0;
  width: 100%;
}

/* Hero section - contains the eye background */
.slide1-eyebackground {
  position: relative;
  height: 100vh;
  color: white;
  display: flex;
  align-items: center;
  z-index: 0;
}

/* Eye background wrapper - clips the fixed background to hero section */
.eye-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

/* Eye Background Layer - fixed position for parallax, clipped by wrapper */
.fixed-eye-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url("images/macro_eye1.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

/* Mobile positioning and sizing for eye */
@media (max-width: 767px) {
  .fixed-eye-background {
    background-position: calc(60% - 350px) center;
  }
}

/* Desktop positioning for eye */
@media (min-width: 768px) {
  .fixed-eye-background {
    background-position: 70% center;
  }
}


.slide1-eyebackground-overlay {
  background: linear-gradient(90deg, #061932 0%, rgba(6, 25, 50, 0) 100%);
  width: 100%;
  height: 100vh;
  position: relative;
}

/* Darker gradient on mobile for better text contrast */
@media (max-width: 767px) {
  .slide1-eyebackground-overlay {
    background: linear-gradient(90deg, rgba(6, 25, 50, 0.85) 0%, rgba(6, 25, 50, 0.85) 70%, rgba(6, 25, 50, 0.6) 100%);
  }
}

.slide1-eyebackground .container {
  height: 100%;
  padding-top: 5rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column; /* Stacks children vertically */
  justify-content: space-between;
  /*margin-left: 6.25rem; */
}

.slide1-eyebackground .container .row:first-child {
  flex-grow: 1; /* This pushes the second row to the bottom */
  display: flex;
  align-items: center;
}

.top-section h1 {
  font-size: clamp(1.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

.top-section h2 {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
}

.top-section p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.5;
  width: 90%; /* Use percentage to keep the width fluid */
  max-width: 711px; /* Set a max-width to prevent it from getting too wide on large screens */
}

.request-demo-btn-text {
  background: #ff9900;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
  border-radius: 26px;
  border: none;
  color: #072b59;
  font-family: Inter;
  font-weight: 600;
  line-height: 36px;
  font-size: 24px; /* Adjust font size as needed */
  padding: 15px 30px; /* Ample padding for a good button size */
  cursor: pointer;
  transition: all 0.3s ease; /* Smooth transition for hover effects */
  width: 80%;
}

.request-demo-btn-text:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
  transform: translateY(-2px); /* Slight lift on hover */
}

/* Learn More section */
.learn-more-section {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  margin-top: auto;
  text-align: center;
}

.learn-more-section img {
  max-height: 50px;
}

/* Observability Section with Beige Background */
.observability-section-container {
  background-color: #f3f1ec;
  padding: 3rem 1rem;
  position: relative;
  z-index: 1; /* Ensure it's above the fixed eye background */
  /* Parallax */
  overflow: hidden;
  perspective: 1px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.puzzle-container {
  display: flex;
  flex-direction: column; /* Stacks children vertically for mobile-first layout */
  align-items: center; /* Centers items horizontally */
  justify-content: center;
  gap: 2rem; /* Adds space between text blocks and image */
  min-height: 500px;
  /* Parallax */
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.puzzle-text {
  max-width: 90%; /* Control the width of the text blocks */
  color: #072b59;
  transform: translateZ(0); /* Parallax */
}

.puzzle-text h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: bold;
}

.puzzle-text p {
  font-size: 1rem;
}

.top-left-text {
  text-align: left;
}

.bottom-right-text {
  text-align: right;
}

.puzzle-image {
  max-width: 80%;
  height: auto;
  /*transform: translateZ(-1px) scale(1.5); /* Parallax */
  transform: translateY(0) scale(1);
  transition: transform 0.1s ease-out;
}

/* Observability Features Section with Blue Background */
.observability-features-section-container {
  background-color: #061932;
  color: white;
  padding: 5rem 0;
  position: relative;
  z-index: 1; /* Ensure it's above the fixed eye background */
}

.observability-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 #ff9900 solid;
  backdrop-filter: blur(2px);
}

.observability-features-section-container h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: bold;
}

.observability-features-section-container strong {
  color: #ff9900;
}

/* Card Grid Layout (Mobile-first) */
.card-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1rem;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 200px;
  background-image: url("images/obs_feature_card.png"); /* The key change is here */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding-top: 50px; /* Space for the icon */
  padding-bottom: 20px;
  /*parallax*/
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/*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: -30px; /* Moves the icon up by 30 pixels */
  left: 50%; /* Centers the icon horizontally */
  transform: translateX(-50%); /* Precisely centers the icon */
  background-image: url("images/tickmark.png"); /* You'll need a separate image for the tick mark */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 60px; /* Adjust size as needed */
  height: 60px;
}

.card-text {
  position: relative;
  z-index: 1;
  padding: 0 1rem 1rem;
  flex-grow: 1;
}

.card-text p {
  margin-top: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Key Capabilities Section with Beige Background */
.capabilities-section-container {
  background-color: #f3f1ec;
  padding: 3rem 0;
  position: relative;
  z-index: 1; /* Ensure it's above the fixed eye background */
}

.capabilities-section-title {
  color: #072b59;
  font-weight: bold;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.capability-card-wrapper {
  margin-bottom: 30px;
}

.capability-card {
  /* Use the new gradient and border from your request */
  background: linear-gradient(
    180deg,
    rgba(7, 43, 89, 0.3) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 12px;
  backdrop-filter: blur(2px);
  padding: 2rem;
  height: 100%; /* Ensures all cards have the same height */
  display: flex; /* Use flexbox to align content */
  flex-direction: column;
  /*justify-content: center; */
  justify-content: flex-start;
  align-items: center;
  /* Parallax */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
  /* */
  position: relative;
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0; /* Stretches to fill the card */
  border-radius: 12px; /* Must match the parent radius */
  padding: 1px; /* This controls the BORDER THICKNESS */

  /* The Gradient: Orange at top (0%) -> Transparent at bottom (100%) */
  background: linear-gradient(180deg, #ff9900 0%, transparent 100%);

  /* The Mask: This cuts out the center, leaving only the border */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  /* Ensure this overlay doesn't block clicks on the card */
  pointer-events: none;
}

/*
.capability-card img {
  margin-bottom: 15px; /* Adjust this value as needed */
/* }

*/
.capability-card img {
  /* FORCE a specific height for the image area (adjust 160px if needed) */
  height: 160px;

  /* Ensure the image scales nicely inside that box without stretching */
  object-fit: contain;
  width: 100%;

  /* Reset margins to ensure consistent spacing below the image */
  margin-bottom: 20px;
  margin-top: 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; /* Adjust this value as needed */
}

/* Quote Section with Blue Background */
.quote-section-container {
  background-color: #061932;
  color: white;
  padding: 2rem 0 2rem; /* Vertical padding only */
  text-align: center;
  margin: 0; /* Ensure no margin */
  width: 100%; /* Full width */
  display: block; /* Ensure block display */
  position: relative;
  z-index: 1; /* Ensure it's above the fixed eye background */
}

.quote-section-container .container {
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
  max-width: 100%;
}

.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;
}

/* --- PLACE THIS IN YOUR MAIN CSS (NOT INSIDE @MEDIA) --- */

/* The Container Box */
.section-quote {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;

  /* Adjusted padding for mobile (less side padding) */
  padding: 3rem 1rem;

  position: relative;
  background: transparent;
  border-radius: 12px;
}

/* The Fading Border Mask */
.section-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px; /* Border thickness */

  /* Gradient: Orange to Transparent */
  background: linear-gradient(180deg, #ff9900 0%, rgba(255, 153, 0, 0) 100%);

  /* The Mask */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

/* Text Adjustments */
.section-quote .quote-group {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 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;
}

/* Resolution Image */
.resolution-img {
  max-width: 90%;
  height: auto;
  display: block;
  margin: 2rem auto;
}

/* CTA Section with Orange Background */
.cta-section {
  background-color: #ff9900;
  color: #072b59;
  padding: 3rem 1.5rem; /* Add horizontal padding for mobile */
  text-align: center;
  border-radius: 12px !important;
  border: 2px solid #ff9900;
  width: 90%;
  margin: 2rem auto 0; /* Remove bottom margin to prevent gap */
  margin-bottom: 0 !important; /* Force no bottom margin */
}

/* Desktop padding adjustment */
@media (min-width: 768px) {
  .cta-section {
    padding: 3rem 2rem;
  }
}

.cta-section h2 {
  font-weight: 700;
}

.schedule-demo-btn {
  background: white;
  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);
}

.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 {
  background-color: #061932;
  padding: 2rem 0;
  color: white;
  text-align: center;
  position: relative;
  z-index: 10; /* Ensure footer is above any background gradients */
  margin: 0; /* No margin */
  width: 100%; /* Full width */
  margin-top: -1px; /* Overlap by 1px to eliminate gap */
}

.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;
}

.footer-contact {
  margin-top: 1rem;
  font-size: 1rem;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-contact a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* 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 */
}

/* -- Larger Screen Styles -- */
@media (min-width: 768px) {
  .navbar {
    padding: 15px 20px; /* Taller bar on desktop */
  }

  .navbar .container,
  .navbar .container-fluid {
    /* Override the mobile padding with your 5vw look */
    padding-left: 5vw;
    padding-right: 30px; /* Keep button on right edge */
  }

  .navbar-brand img {
    max-height: 50px; /* Allow bigger logo on desktop */
  }

  /* Top Section - Desktop adjustments */
  .slide1-eyebackground {
    background-position: 70% center; /* Adjust background position for desktop */
    background-size: cover; /* Use cover on desktop for better fill */
  }

  .slide1-eyebackground .container {
    max-width: 100%;
    padding-left: 6.25rem;
    padding-right: 6.25rem;
  }

  .slide1-eyebackground-overlay {
    background: linear-gradient(90deg, #061932 0%, rgba(6, 25, 50, 0) 100%);
    width: 100%;
    height: 100%;
  }

  .slide1-eyebackground .container {
    justify-content: center; /* Center content on desktop */
  }

  .top-section h1 {
    font-size: 3rem; /* Specific font size for desktop */
    white-space: nowrap;
  }

  .top-section h2 {
    font-size: 1.25rem;
  }

  .top-section p {
    font-size: 1rem;
  }

  .request-demo-btn-text {
    width: 80%;
    max-width: 300px;
  }

  .learn-more-section {
    margin-top: 5rem;
  }

  /* Obs Section */
  .observability-section-container {
    padding: 100px 0; /* Revert to a fixed padding on desktop */
  }

  .observability-section-container .container {
    max-width: 100%;
    padding-left: 6.25rem;
    padding-right: 6.25rem;
  }

  .puzzle-container {
    flex-direction: row; /* Side-by-side on larger screens */
    align-items: center;
    justify-content: space-between;
  }

  .puzzle-image {
    max-width: 45%; /* Adjusts the size of the image for desktop view */
    height: auto;
  }

  .puzzle-text {
    max-width: 30%;
    padding: 0;
  }

  .top-left-text {
    align-self: flex-start;
    text-align: left; /* Aligns text to the left */
  }

  .bottom-right-text {
    align-self: flex-end;
    text-align: right;
  }

  /* Obv Features Section */
  .card-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    padding: 2rem 3rem;
  }

  .feature-card {
    padding: 3rem 2rem;
  }

  .card-text p {
    font-size: 1.25rem;
  }

  .capabilities-section-container {
    padding: 5rem 0;
  }

  .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 */
  /*} */

  /* Quote Box Styling */
  .section-quote {
    display: block;
    width: 100%;
    max-width: 100%; /* Controls width of the box */
    margin: 0 auto; /* Centers the box */

    /* Add padding so text doesn't touch the border */
    padding: 4rem 3rem;

    /* Essential for the border positioning */
    position: relative;
    background: transparent; /* Ensures it blends in */
    border-radius: 12px;
  }

  /* THE FADING ORANGE BORDER */
  .section-quote::before {
    content: "";
    position: absolute;
    inset: 0; /* Stretches to fill the box */
    border-radius: 12px; /* Match parent radius */
    padding: 1px; /* Border Thickness (Thin line) */

    /* Gradient: Solid Orange at top, fading to transparent at bottom */
    background: linear-gradient(180deg, #ff9900 0%, rgba(255, 153, 0, 0) 100%);

    /* Masking Magic to create the border */
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
  }

  /* Quote Text Adjustments */
  .section-quote .quote-group {
    width: 100%;
    max-width: 800px; /* Keeps text readable even inside the wide box */
    margin: 0 auto;
    padding: 0 1rem;
  }

  /* Override the old side-by-side spacing */
  .quote-group:first-child {
    padding-right: 0;
    margin-bottom: 4rem; /* Adds vertical space between the two quotes */
  }

  .quote-group:last-child {
    padding-left: 0;
  }

  /* 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;
  }
}

@media (min-width: 1720px) {
  .fading-box {
    width: 1720px;
    height: 443px;
  }
}

/* Who's this for? */
/* Page 2 Styles */
.benefits-section {
  position: relative; /* Creates a container for the absolute pseudo-element */
  z-index: 1; /* Ensures the section itself is handled correctly */
  padding-top: 100px; /* Add space for fixed header */
  padding-bottom: 3rem; /* Add space above footer */
  margin-bottom: 2rem; /* Additional margin for separation from footer */
  /* Do not put blur or background here, or it affects the text */
}

.benefits-section::before {
  content: "";
  position: absolute;

  /* Positioning: Adjust these to place the blob where you want it */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the blob */

  /* Size of the blob */
  width: 100%;
  height: 100%;

  /* Your original decorative styles moved here */
  background: #072b59;
  box-shadow: 455px 455px 455px; /* simplified for brevity */
  border-radius: 9999px;
  filter: blur(227.54px);

  /* This sends the glow behind the text */
  z-index: -1;
}

/* PERFORMANCE FIX: Disable expensive blur on mobile Safari */
@media (max-width: 768px) {
  .benefits-section::before {
    filter: none !important;
    box-shadow: none !important;
    /* Use gradient instead of blur for better mobile performance */
    background: radial-gradient(
      ellipse at center,
      rgba(7, 43, 89, 0.9) 0%,
      rgba(6, 25, 50, 0.7) 50%,
      rgba(6, 25, 50, 0.4) 100%
    );
  }
}

/* Header Typography */
.section-title {
  color: white !important;
  text-align: center;
  font-style: normal;
  font-family: Inter;
  font-size: 3rem;
  font-weight: 700;
}

.section-subtitle {
  color: white;
  text-align: center;
  font-style: normal;
  font-family: Inter;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 auto;
}

/* Feature Rows Typography */
.benefits-section h2 {
  color: white;
  font-style: normal;
  font-family: Inter;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.5;
}

/* Mobile: Smaller h2 for readability */
@media (max-width: 767px) {
  .benefits-section h2 {
    font-size: 1.75rem;
  }
}

.benefits-section p {
  color: white;
  font-style: normal;
  font-family: Inter;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
  word-wrap: break-word;
}

.flex-md-row-reverse .text-content {
  text-align: right !important;
}

/* Images */
.benefit-img {
  border-radius: 8px; /* Rounded corners */
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Case study images on desktop - fill height */
@media (min-width: 768px) {
  .case-study-img {
    height: 100%;
    object-fit: cover;
  }
}

/* YouTube iframes in benefit rows */
.benefits-section iframe {
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin: unset !important; /* Remove any default margins */
}

/* YouTube Facade (click-to-load) */
.youtube-facade {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.youtube-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.youtube-facade:hover img {
  opacity: 0.8;
}

.youtube-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(255, 0, 0, 0.9);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.youtube-play-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

.youtube-play-btn:hover {
  background: rgba(255, 0, 0, 1);
}

/* Left-aligned video in reversed row (Food Operations - 2nd video) */
.flex-md-row-reverse .col-md-6 iframe,
.flex-md-row-reverse .col-md-6 .youtube-facade {
  float: left !important;
  display: block;
}

/* Right-aligned videos in normal rows (1st and 3rd videos) */
.benefit-row:not(.flex-md-row-reverse) .col-md-6 iframe,
.benefit-row:not(.flex-md-row-reverse) .col-md-6 .youtube-facade {
  float: right !important;
  display: block;
}

/* The Orange Button */
.benefit-btn {
  background-color: #ff9900;
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.25);
  border-radius: 26px;
  color: #072b59;
  display: inline-block;
  text-align: center;
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  padding: 15px 30px;
  text-transform: capitalize;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 3rem;
}

.benefit-btn:hover {
  background-color: #ff9900 !important; /* Lighter orange on hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px); /* Slight lift effect */
}

/* End of Page2 Styles */

/* Target only the case study specific paragraph to protect other styles */
.benefit-row .case-study-desc {
  text-align: left !important;
  font-size: 1.15rem !important;
  max-width: 800px !important;
  margin-left: 0 !important;
  margin-bottom: 2rem !important;
  line-height: 1.4 !important;
}

/* Handle the reversed row for future case studies */
.flex-md-row-reverse .case-study-desc {
  text-align: right !important;
}

/* Mobile Adjustment */
@media (max-width: 767px) {
  .benefit-img {
    margin-bottom: 25px !important;
  }

  /* Ensures the paragraph doesn't hit the screen edges on mobile */
  .case-study-desc {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px !important;
  }

  /* Center button if it shifted */
  .benefit-btn {
    margin-top: 10px !important;
  }

  /* Left justify all text on mobile */
  .benefits-section .text-content,
  .benefits-section .text-content h2,
  .benefits-section .text-content p,
  .flex-md-row-reverse .text-content {
    text-align: left !important;
  }

  /* Reset padding on reversed rows to match normal rows */
  .flex-md-row-reverse .text-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Ensure all text-content has consistent padding on mobile */
  .benefits-section .text-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Case study title spacing on mobile */
  .case-study-title {
    margin-bottom: 1rem !important;
  }
}
