/* -------------------- GLOBAL RESET & DEFAULTS -------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Roboto", sans-serif;
  color: #333;
}

.nav-logo {
  height: 2rem;
  max-width: 120px;
  width: auto;
  transition: height 0.3s ease;
}

#floatingNav .btn-signin {
  margin-right: 20px;
  background: #038900 !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

#floatingNav .btn-signin:hover {
  background: #027600 !important;
}

/* -------------------- NAVIGATION -------------------- */

.trace-nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.trace-nav-link:hover {
  text-decoration: underline;
  color: #000;
}

/* -------------------- HERO (HOME PAGE) -------------------- */
.hero {
  position: relative;
  background: url("/images/hero-bg.jpg") no-repeat center center/cover;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* CTA button (shared) */
.btn-cta {
  background: #038900;
  color: #fff;
  border-radius: 8px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none; /* Remove border */
}

.btn-cta:hover {
  background: #027600;
}

/* -------------------- FEATURES SECTION (HOME PAGE) -------------------- */
.features {
  padding: 60px 20px;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}

.feature-item h3 {
  margin: 10px 0 8px;
}

.feature-item p {
  font-size: 0.95rem;
  color: #555;
}

/* -------------------- PROMO / CTA SECTION (HOME PAGE) -------------------- */
.promo-section {
  background-color: #f8f8ff;
  padding: 60px 20px;
  text-align: center;
}

.promo-content {
  max-width: 800px;
  margin: 0 auto;
}

.promo-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.promo-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* -------------------- FOOTER -------------------- */
.trace-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0.75;
  color: rgb(36, 99, 235);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 15px;
}

/* -------------------- ABOUT PAGE HERO (example) -------------------- */
.about-hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f0f8ff, #e6e8fa);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5em;
  color: #1D2837;
}

.about-hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #475569;
}

/* -------------------- ABOUT PAGE LAYOUT HELPERS -------------------- */
.main-content {
  margin-top: 40px;
  padding: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-block {
  margin-bottom: 3em;
}

.box-block {
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-title-center {
  margin-bottom: 1em;
  color: #1D2837;
  text-align: center;
}

/* Founders cards */
.founders-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
  padding: 0 20px;
}

.card {
  flex: 1 1 250px;
  max-width: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
}

.card-content {
  padding: 1em;
}

.card-content h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #1D2837;
}

.card-content p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
}

/* Values & Journey lists */
.values-list {
  margin-left: 1.5em;
  color: #475569
}

.values-list li {
  margin-bottom: 0.5em;
}

.journey-highlight {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1em;
  margin-top: 1em;
  
}

.journey-highlight ul {
  list-style-type: disc;
  color: #475569;
}

/* CTA Cards on About page */
.cta-cards {
  margin-bottom: 3em;
  text-align: center;
  width: 100%;
}

.cta-cards h2 {
  font-size: 2rem;
  margin-bottom: 1.5em;
  color: #1D2837;
}

.cta-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; 
  max-width: 1200px;
  margin: 0 auto;
}

.cta-card {
  flex: 1 1 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 2em;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.cta-card-text {
  flex: 1;
}

.cta-card-text h3 {
  margin-top: 0;
  color: #1D2837;
}

.cta-card-text p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}

/* A generic 'blue' button for CTA-cards on about.html */
.btn-blue {
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
  margin-top: auto;
  background: #038900;
  color: #ffffff;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  align-self: center;
}

.btn-blue:hover {
  background: #027600;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* ----------- Carousel Styles ----------- */
/* Outer container: ensures no scrollbars appear when sliding */
/* ----------- Revised Carousel Styles ----------- */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 70vh; /* Adjust based on your needs */
  min-height: 500px; /* Fallback for mobile */
  max-height: 800px; /* Prevent overly tall images */
}

.carousel-container {
  display: flex;
  height: 100%; /* Match carousel height */
  transition: transform 0.5s ease;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Ensure images don't overflow */
}

/* Image styling */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio while filling container */
  object-position: center;
  display: block;
}

/* Overlay adjustments */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
}

.slide-content {
  max-width: 1200px;
  width: 100%;
  color: white;
  text-align: center;
  padding: 20px;
}

/* Responsive text sizing */
.slide-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.slide-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
}

/* Navigation button adjustments */
.carousel-prev,
.carousel-next {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Remove conflicting background-image declarations */
.slide-1,
.slide-2,
.slide-3,
.slide-4 {
  /* Remove background-image properties from here */
  background-image: none !important;
}

/* Navigation arrows */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

/* Example CTA button styling */
.btn-cta {
  background: #038900;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-cta:hover {
  background: #027600;
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 3;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.4);
}

.carousel-dot:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.2);
}

.carousel-dot:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}


/* -------------------- INFO SECTIONS -------------------- */
.info-section {
  background-color: #fff;
  padding: 60px 20px;
  margin: 0;
  text-align: center;
  position: relative;
}

/* Subtle full-width divider between sections */
.info-section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.05); /* Made more subtle */
}

.info-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.info-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1D2837;
}

.info-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 auto;
  max-width: 1500px;
}

/* -------------------- AUTH PAGES -------------------- */
body.page-auth {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6e8fa 100%);
  min-height: 100vh;
}

.auth-hero {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  margin-top: 60px;
}

.auth-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h1 {
  font-size: 2.5rem;
  color: #1D2837;
  margin-bottom: 0.5em;
}

.auth-header p {
  color: #475569;
  font-size: 1.1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #1D2837;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #038900;
  box-shadow: 0 0 0 3px rgba(81, 46, 255, 0.1);
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px; /* Fixed height */
  width: 30px;
}

.password-toggle img {
  width: 20px;
  height: 20px;
  margin-top: 0; /* Remove any top margin */
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-me input {
  width: 16px;
  height: 16px;
}

.forgot-password {
  color: #038900;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-alt {
  text-align: center;
  margin-top: 24px;
  color: #475569;
}

.auth-alt a {
  color: #038900;
  font-weight: 500;
  text-decoration: none;
}

.auth-alt a:hover {
  text-decoration: underline;
}

/* -------------------- AUTH TABS -------------------- */
.auth-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-tabs .auth-tab-button {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  color: #1D2837;
}

.auth-tabs .auth-tab-button.active {
  border-color: #038900;
  font-weight: bold;
}

.auth-tabs .auth-tab-button:hover {
  border-color: #038900;
}

/* -------------------- SIGNUP TYPE TABS -------------------- */
.signup-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.signup-tabs .signup-tab-button {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  color: #1D2837;
}

.signup-tabs .signup-tab-button.active {
  border-color: #038900;
  font-weight: bold;
}

.signup-tabs .signup-tab-button:hover {
  border-color: #038900;
}


/* -------------------- AUTH TABS WITH SLIDING INDICATOR -------------------- */
.auth-tabs,
.signup-tabs {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.auth-tabs .auth-tab-button,
.signup-tabs .signup-tab-button {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #1D2837;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.auth-tabs .auth-tab-button:hover,
.signup-tabs .signup-tab-button:hover {
  color: #038900;
}

.auth-tabs .auth-tab-button.active,
.signup-tabs .signup-tab-button.active {
  font-weight: bold;
}

/* The sliding indicator – appears at the bottom of the tab container */
.auth-tabs .tab-indicator,
.signup-tabs .tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: #038900;
  border-radius: 2px;
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 0;
}

/* -------------------- AUTH CARD ANIMATION -------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
  animation: fadeInUp 0.5s ease-out;
}

/* -------------------- PASSWORD TOGGLE BUTTON -------------------- */
.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 5px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #038900;
}


/* ---------- TOGGLE SLIDER (SEGMENTED CONTROL) ---------- */
.toggle-slider {
  position: relative;
  display: flex;
  background: #f0f0f0;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}

.toggle-slider .toggle-option {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.toggle-slider .slider {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: transparent; /* no fill */
  border: 1px solid rgba(3, 137, 0, 0.3); /* faded outline */
  border-radius: 20px;
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 0;
}

/* ---------- PASSWORD TOGGLE ICON STYLE ---------- */
.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, color 0.3s ease;
  line-height: 0;
}

.password-toggle i {
  font-size: 20px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* For the signup type toggle, show a clear blue text when active */
#signupTypeToggle .toggle-option.active {
  color: #038900;
}

.social-login {
  text-align: center;
  margin-top: 20px;
}

.social-login p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #475569;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-btn {
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.social-btn:hover {
  background: #e0e0e0;
}

#authToggle .toggle-option.active {
  color: #038900; /* Match the signup type toggle style */
}

/* Password Input Wrapper */
.input-wrapper {
  position: relative;
}

/* Toggle Slider Sizing */
#authToggle .toggle-option {
  padding: 8px 0;
  font-size: 0.9rem;
}

#signupTypeToggle .toggle-option {
  padding: 12px 0;
  font-size: 1rem;
}

/* Password Toggle Positioning */
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle img {
  width: 20px;
  height: 20px;
}

/* -------------------- 404 PAGE STYLES -------------------- */
.page-404 {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.error-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  animation: fadeInUp 0.6s ease-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.error-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.error-code {
  font-size: 4rem;
  color: #038900;
  margin: 0;
  line-height: 1;
}

.error-title {
  font-size: 2.5rem;
  color: #1D2837;
  margin-bottom: 1.5rem;
}

.error-message {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-secondary {
  background: #e0e7ff;
  color: #038900;
  border-radius: 8px;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #c7d2fe;
}

.error-qr-help {
  background: #f8f9ff;
  border-radius: 12px;
  padding: 20px;
}

.apology-message {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
}

.text-link {
  color: #038900;
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.error-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-image {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .error-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .error-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .error-actions {
    flex-direction: column;
  }
  
  .error-graphic {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* -------------------- CONTACT PAGE -------------------- */
.page-contact {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6e8fa 100%);
  min-height: 100vh;
}

.contact-hero {
  padding: 100px 20px 40px;
  display: flex;
  justify-content: center;
}

.contact-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 700px;
  min-width: 300px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.conditional-field {
  display: none;
  margin: 20px 0;
  padding: 20px;
  background: #f8f8ff;
  border-radius: 8px;
}

.conditional-field.active {
  display: block;
}

.file-upload {
  position: relative;
}

.file-upload input[type="file"] {
  position: absolute;
  left: -9999px;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.file-upload-label:hover {
  background: #e0e0e0;
}

.file-upload-label i {
  color: #038900;
}

textarea.form-input {
  resize: vertical;
  min-height: 140px;
  width: 100%;
}

.required {
  color: #ff4444;
  margin-left: 3px;
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 80px 15px 30px;
  }
  
  .contact-card {
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .auth-header h1 {
    font-size: 2rem;
  }
  
  .auth-header p {
    font-size: 1rem;
  }
  
  .btn-cta {
    width: 100%;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .contact-card {
    padding: 1rem;
  }
  
  .file-upload-label span {
    display: none;
  }
  
  .file-upload-label {
    justify-content: center;
    padding: 8px;
  }
}

/* -------------------- BLOG PAGE STYLES -------------------- */
.blog-hero {
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, #f8f9ff, #f0f2ff);
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1D2837;
}

.blog-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #475569;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
}

.blog-post {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-date {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 10px;
}

.blog-post h3 {
  font-size: 1.3rem;
  margin: 0 0 15px;
  color: #1D2837;
}

.blog-post p {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  justify-content: center;
  max-width: 600px;
  margin: 20px auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 80px 20px 40px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}

.coming-soon {
  background: linear-gradient(135deg, #038900, #027600);
  color: #fff;
  padding: 50px;
  text-align: center;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 2em;
  font-weight: bold;
  animation: pulse 2s infinite;
}

/* -------------------- SERVICES PAGE -------------------- */
.services-hero {
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, #f0f8ff, #e6e8fa);
}

.services-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1D2837;
}

.services-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #475569;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1D2837;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.service-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #475569;
}

.service-features li:last-child {
  border-bottom: none;
}

/* Enterprise Tier */
.tier-section .box-block {
  max-width: 1200px;
  margin: 0 auto;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.tier-badge {
  background: #038900;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.tier-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.tier-features h3 {
  color: #1D2837;
  margin-bottom: 1rem;
}

.tier-features ul {
  list-style: none;
  padding: 0;
}

.tier-features li {
  padding: 10px 0;
  color: #475569;
}

.tier-cta {
  text-align: center;
  border-left: 2px solid #eee;
  padding-left: 40px;
}

/* Integrations */
.integrations-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.integrations-grid img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.integrations-grid img:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .tier-content {
    grid-template-columns: 1fr;
  }
  
  .tier-cta {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid #eee;
    padding-top: 30px;
  }
  
  .integrations-grid {
    gap: 20px;
  }
}

/* ==================== CONTENT PAGES ==================== */
.content-hero {
  text-align: center;
  padding: 120px 20px 60px;
  background: linear-gradient(135deg, #f8f9ff, #f0f2ff);
}

.content-hero .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.content-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1D2837;
}

.content-hero p {
  font-size: 1.2rem;
  color: #475569;
}

.centered-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content-placeholder {
  text-align: center;
}

.content-placeholder h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1D2837;
}

.content-placeholder p {
  font-size: 1.1rem;
  color: #475569;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.placeholder-grid,
.policy-sections,
.terms-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.placeholder-card,
.policy-card,
.terms-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.placeholder-card:hover,
.policy-card:hover,
.terms-card:hover {
  transform: translateY(-5px);
}

.placeholder-card h3,
.policy-card h3,
.terms-card h3 {
  color: #038900;
  margin-bottom: 0.8rem;
}

.placeholder-card p,
.policy-card p,
.terms-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}

.password-toggle i {
  font-size: 1.2rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.password-toggle:hover i {
  color: #333;
}

/* -------------------- FLOATING NAV -------------------- */

#floatingNav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  padding: 10px 20px;
  width: 90vw;
  border-radius: 16px;
  transition: all 0.3s ease;
}

#floatingNav.nav-locked {
  top: 0;
  width: 100vw;
  border-radius: 0;
}

.nav-logo {
  height: 2rem;
  max-width: 120px;
  width: auto;
  transition: height 0.3s ease;
}

.trace-nav {
  flex: 1;
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
  margin: 0 20px;
}

.btn-signin.desktop-signin {
  margin-left: auto;
}

/* Mobile Styles */
@media (max-width: 768px) {

  .trace-nav {
    margin: 0;
    gap: 0;
  }

  /* Keep existing mobile hamburger styles */
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 10px;
  margin-left: auto;  /* Keeps it to the right when shown */
  z-index: 10000;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  width: 100%;
  height: 2px;
  background-color: #333;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  width: 100%;
  height: 2px;
  background-color: #333;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  top: 8px;
}

/* Active state */
.hamburger.active .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger.active .hamburger-inner::before {
  transform: translateY(8px) rotate(-90deg);
}

.hamburger.active .hamburger-inner::after {
  opacity: 0;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  flex-grow: 1;
  align-items: center;
}

.trace-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: 20px;
}

.btn-signin.desktop-signin {
  margin-left: auto; /* Pushes it to the right */
  margin-right: 20px;
}

.btn-signin.mobile-signin {
  display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 80%; /* Adjust this value to extend the top further up the screen */
    left: 0;
    right: 0;
    background: #fff;
    /* Square top edges, rounded bottom edges */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    /* No padding when collapsed so nothing shows */
    padding: 0;
    max-height: 0;
    overflow: hidden;
    /* transition: max-height 0.5s ease-in-out; */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
  }
  
  .nav-menu.active {
    /* Use a high max-height to approximate auto-height */
    max-height: 999px;

    /* transition: max-height 0.5s ease-in-out; reinforcing transition for the active state */
  }
  
  /* Container for the nav links with horizontal padding */
  .trace-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0rem;
    margin: 0;
    padding: 0 1.5rem;  /* Add horizontal padding for a bit of space */
  }
  
  .trace-nav-link {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }
  
  /* On hover, shade the whole row instead of underlining the text */
  .trace-nav-link:hover {
    background-color: #e0e0e0; /* Slightly darker hover color */
    text-decoration: none;
    padding-left: 1rem; /* Ensure the background color extends to the left edge */
    padding-right: 1rem; /* Ensure the background color extends to the right edge */
    margin-left: -1rem; /* Offset the padding to maintain original layout */
    margin-right: -1rem; /* Offset the padding to maintain original layout */
    width: calc(100% + 2rem); /* Extend the width to cover the right edge */
  }
  
  /* Hide the desktop Sign In button on mobile */
  .btn-signin.desktop-signin {
    display: none;
  }
  
  /* Mobile Sign In button spans 95% width with centred text */
  .btn-signin.mobile-signin {
    display: block;
    width: 92.5%;
    margin: 0.5rem auto 1rem auto !important;
    text-align: center;
  }
  
  .nav-logo {
    height: 1.75rem;
    max-width: 100px;
  }
}

