/* === Global Styles === */
:root {
  /* Refreshed blue tech palette */
  --primary: #1a56db; /* Rich blue - slightly deeper for better contrast */
  --primary-dark: #1e429f; /* Darker blue for depth */
  --primary-light: #60a5fa; /* Light blue for highlights */
  
  /* New electric blue accent */
  --accent: #0284c7; /* Vibrant electric blue accent */
  --accent-light: #38bdf8; /* Lighter electric blue */
  --accent-dark: #0369a1; /* Darker electric blue */
  
  /* Base colors */
  --dark: #111827; /* Near black with blue undertone */
  --light: #f8fafc; /* Off-white with cool tone */
  --white: #ffffff; /* Pure white for card backgrounds */
  --grey: #64748b; /* Medium grey */
  --grey-light: #f1f5f9; /* Very light grey for alternating sections */
  --grey-lighter: #f8f9fa; /* Almost white grey for subtle contrast */
  
  /* Status colors */
  --success: #059669; /* Green */
  --error: #dc2626; /* Red */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-dark));
  --gradient-dark: linear-gradient(135deg, var(--dark), #1e293b);
  --gradient-light: linear-gradient(135deg, #f8fafc, #edf2f7);
  
  /* Typography scale */
  --font-size-xs: 0.6875rem;  /* 11px */
  --font-size-sm: 0.75rem;    /* 12px */
  --font-size-base: 0.875rem; /* 14px */
  --font-size-lg: 1rem;      /* 16px */
  --font-size-xl: 1.125rem;  /* 18px */
  --font-size-2xl: 1.375rem; /* 22px */
  --font-size-3xl: 1.625rem; /* 26px */
  --font-size-4xl: 2rem;     /* 32px */
  --font-size-5xl: 2.25rem;  /* 36px */
  
  /* Font weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

html, body {
  height: 100%; /* Use 100% instead of min-height to avoid overflow */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  font-family: 'Roboto', 'Montserrat', 'Segoe UI', Arial, sans-serif;
  background-color: var(--light);
  color: #333;
  font-size: var(--font-size-base);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  font-weight: var(--font-weight-normal);
  padding-top: 80px; /* Increase slightly to avoid content being under header */
  padding-bottom: 60px; /* Increase to account for footer */
  overflow-y: auto; /* Ensure body allows vertical scrolling */
  overflow-x: hidden; /* Prevent horizontal scroll */
  box-sizing: border-box; /* Make sure padding is included in height calculation */
}

header {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  background: var(--gradient-dark); /* Base gradient */
  color: #fff;
  padding: 0 60px;
  position: fixed; /* Change from sticky to fixed for consistent sizing */
  top: 10px; /* Add top spacing */
  left: 10px; /* Add left spacing */
  z-index: 1000;
  width: calc(100% - 20px); /* Adjust width to account for left and right spacing */
  box-sizing: border-box;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px; /* Explicit fixed height */
  opacity: 0.95;
  backdrop-filter: blur(5px); /* Add blur effect for background elements */
  -webkit-backdrop-filter: blur(5px); /* Safari support */
  border-radius: 8px; /* Add rounded corners */
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important; /* Force consistent font */
}

/* Set fixed width for page content across all pages */
.page-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Change from center to flex-start to align content to top */
  box-sizing: border-box;
  width: 1000px;
  max-width: none;
  margin: 0 auto;
  overflow: visible; /* Change from auto to visible to prevent unnecessary scrollbars */
  /* overflow-x: hidden; */ /* Prevent horizontal scroll */
  padding-top: 0; /* Ensure no top padding is pushing content down */
  padding-bottom: 60px; /* Add bottom padding to prevent content from being hidden behind the footer */
  text-align: center; /* Center the text content */
}

/* Ensure lists remain left-aligned for readability */
.page-content ul {
  text-align: left;
}

.chatbot-iframe {
  position: fixed;
  top: 100px;  /* Offset from the top */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  width: 90%;
  height: calc(100vh - 200px); /* Adjust height dynamically */
  border: none;
  overflow: auto; /* Ensure scrollability inside the iframe */
}

/* Font consistency enforcement */
body, button, input, textarea, select {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

/* Make sure headings use the same font */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-bold);
}

/* Ensure form elements match the site font */
input, textarea, select, button {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-size: var(--font-size-base);
}

/* Consistent fonts for navigation */
.site-title,
nav ul li a,
.mobile-nav a {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

/* Standard text styles */
p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #222; /* Darker text for better contrast (changed from #333) */
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium); /* Increased from 400 to 500 for bolder text */
}

.intro {
  font-size: var(--font-size-lg);
  color: #444; /* Darker than before for better contrast (changed from var(--grey)) */
  margin-bottom: 2rem;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.site-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
  flex: 0 0 auto;
  margin-right: 20px;
  letter-spacing: 0.5px;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important; /* Force consistent font */
  color: white !important; /* Force consistent color */
}

header .site-title {
  font-size: var(--font-size-base) !important;
  font-weight: var(--font-weight-bold) !important;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
  color: white !important;
  letter-spacing: 0.5px !important;
  margin-right: 20px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important; /* Add subtle text shadow for consistency */
  display: block !important;
  line-height: 1.4 !important;
}

/* Ensure nav links are consistently styled */
header nav ul li a {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: var(--font-size-base) !important;
  color: white !important;
  text-decoration: none !important;
  letter-spacing: 0.2px !important;
  line-height: normal !important;
}

/* Ensure mobile navigation has consistent text styling */
.mobile-nav a {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: 1.1rem !important;
  color: white !important;
}

/* Desktop Navigation */
nav {
  display: flex;
  justify-content: center;
  flex: 1;
}

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

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 20px 5px;
  transition: all 0.3s;
  position: relative;
  font-weight: 500;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important; /* Force consistent font */
  font-weight: var(--font-weight-medium) !important; /* Force consistent weight */
  font-size: var(--font-size-base) !important; /* Force consistent size */
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 15px;
  left: 0;
  background-color: var(--accent-light); /* Electric blue underline for nav links */
  transition: width 0.3s;
}

/* Ensure consistent navigation hover effects across all pages */
header nav ul li a:after {
  content: '' !important;
  position: absolute !important;
  width: 0 !important;
  height: 2px !important;
  bottom: 15px !important;
  left: 0 !important;
  background-color: var(--accent-light) !important;
  transition: width 0.3s !important;
  display: block !important; /* Ensure it's always displayed */
  z-index: 1 !important; /* Ensure proper stacking */
}

header nav ul li a:hover:after {
  width: 100% !important;
}

nav ul li a:hover:after {
  width: 100%;
}

/* Mobile Menu Styles */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  cursor: pointer;
  background: none;
  border: none;
  padding: 0; /* Remove padding that might affect centering */
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%); /* This centers it vertically */
  z-index: 1001;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  transition: background-color 0.3s;
  
  /* Flex properties will only apply when display is flex (on mobile) */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hamburger-menu:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0; /* Adjusted from 5px for better spacing */
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 3px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav-container {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background: var(--gradient-dark); /* Updated dark gradient */
  z-index: 1050;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.mobile-nav-container.active {
  right: 0;
}

.mobile-nav {
  padding: 80px 20px 20px;
}

/* Fixed vertical stacking and right alignment */
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: right;
}

.mobile-nav li {
  display: block;
  width: 100%;
  border-bottom: 1px solid #444;
  padding-right: 20px;
}

.mobile-nav a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 15px 20px 15px 0;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.mobile-nav a:hover {
  background-color: #444;
  padding-right: 25px;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1049;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  header {
    padding: 0 20px;
    height: 60px; /* Maintain same height on mobile */
  }

  .hamburger-menu {
    display: flex; /* Show on mobile with flex layout */
    visibility: visible;
    opacity: 1;
    right: 20px;
  }

  header nav {
    display: none !important;
  }

  .site-title {
    max-width: calc(100% - 80px);
  }

  .mobile-nav-container {
    width: 75%;
    max-width: 300px;
  }

  .mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav a {
    padding: 15px 20px;
    font-weight: 500;
  }

  .page-content {
    padding: 30px 15px;
    overflow: visible; /* Ensure consistent visible overflow even on mobile */
  }

    /* Force remove flex inheritance */
    .mobile-nav ul {
      flex-direction: column !important;
      display: block !important;
    }
}

/* Additional safeguard to ensure hamburger is hidden on desktop */
@media (min-width: 1025px) {
  .hamburger-menu {
    display: none !important;
  }
  
  .mobile-nav-container,
  .menu-overlay {
    display: none !important;
  }
}

/* Landing Page Styles */
.landing {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: white;
  padding: 20px 0; /* Standardize padding */
  margin-top: auto;
  flex-shrink: 0;
  height: 60px; /* Set fixed height */
  box-sizing: border-box; /* Include padding in height */
  display: flex;
  align-items: center;
}

.compact-footer {
  position: fixed; /* Change from relative to fixed */
  bottom: 10px; /* Add bottom spacing */
  left: 10px; /* Set explicit left spacing */
  right: 10px; /* Set explicit right spacing */
  background: var(--gradient-dark); /* Updated dark gradient */
  color: #fff;
  text-align: center;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto; /* Let width be determined by left/right positioning */
  max-width: 100%;
  z-index: 999; /* High z-index but below mobile menu */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Add shadow for visual separation */
  opacity: 0.95; /* Add slight translucency to the footer */
  backdrop-filter: blur(5px); /* Add blur effect for background elements */
  -webkit-backdrop-filter: blur(5px); /* Safari support */
  border-radius: 8px; /* Add rounded corners */
}

.compact-footer p {
  margin: 0;
  padding: 0;
  color: #fff; /* Explicitly set paragraph color to white */
}

h1, 
h2, 
h3 {
  color: var(--primary);
  text-align: center;
}

h1 {
  font-size: var(--font-size-5xl); /* 48px */
  margin-bottom: 40px;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 0; /* Ensure no top margin */
}

h2 {
  font-size: var(--font-size-4xl); /* 36px */
  margin-bottom: 35px;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 0; /* Ensure no top margin */
}

h3 {
  font-size: var(--font-size-3xl); /* 30px */
  margin-bottom: 30px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

h4 {
  font-size: var(--font-size-2xl); /* 24px */
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--font-size-xl); /* 20px */
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
  h1, h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  h3 {
    font-size: 1.75rem;
    margin-bottom: 25px;
  }
  h1 {
    font-size: var(--font-size-4xl); /* 36px on mobile */
    margin-bottom: 30px;
  }
  
  h2 {
    font-size: var(--font-size-3xl); /* 30px on mobile */
    margin-bottom: 25px;
  }
  
  h3 {
    font-size: var(--font-size-2xl); /* 24px on mobile */
    margin-bottom: 20px;
  }
  
  p {
    font-weight: var(--font-weight-medium); /* Slightly bolder on mobile for better readability */
  }
}

/* Unified section sizing for all pages */
section {
  /* Remove the fixed min-height that's causing the gap */
  /* min-height: calc(100vh - 85px); - This was causing the problem */
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

/* Responsive header sizes */
@media (max-width: 768px) {
  section h1,
  section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
}

/* Additional top spacing for specific pages */
.extra-top-space {
  margin-top: 40px; /* This controls the space between header and content */
  padding-top: 0; /* No padding at the top */
}

/* Remove top margin from first elements in content area */
.page-content > h1:first-child,
.page-content > h2:first-child,
.page-content > h3:first-child {
  margin-top: 0; /* Remove top margin from headings when they're first element */
}

/* Button Container for multiple buttons */
.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin: 20px 0;
}

/* Unified Button/Link Styles */
.cta-button,
.primary-button,
a[href].cta-button {
  background: var(--gradient-primary); /* Primary blue gradient */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.cta-button:hover,
.primary-button:hover,
a[href].cta-button:hover {
  background: var(--gradient-accent); /* Electric blue gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: white;
  text-decoration: none;
}

.cta-button:active,
.primary-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.benefit-card {
  background: var(--white); /* Pure white background */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid var(--accent); /* Electric blue accent border */
  text-align: center; /* Center all content in the card */
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.benefit-card h3 {
  font-size: var(--font-size-xl); /* Reduced from 1.5rem */
  margin-bottom: 15px;
  text-align: center; /* Change from left to center */
  line-height: 1.4;
  color: var(--primary); /* Keep consistent with headers */
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  font-weight: var(--font-weight-semibold);
}

.benefit-card p {
  color: #444; /* Darker text for better contrast (changed from #666) */
  line-height: 1.7;
  margin: 0;
  text-align: center; /* Change from left to center */
  font-weight: var(--font-weight-medium); /* Making sure benefit card text is also bold */
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  
  .benefit-card {
    padding: 20px;
  }
  
  .benefit-card h3 {
    font-size: 1.1rem; /* Slightly smaller on mobile */
  }
}

/* Make all hover effects not apply on touch devices to prevent sticky hover states */
@media (hover: none) {
  .cta-button:hover,
  .primary-button:hover,
  a[href].cta-button:hover,
  .benefit-card:hover,
  nav ul li a:hover:after {
    transform: none;
    box-shadow: none;
    background: initial;
    width: 0;
  }
}

@media (max-width: 768px) {
  p {
    font-weight: var(--font-weight-medium); /* Slightly bolder on mobile for better readability */
  }
  
  /* Center buttons on mobile */
  .button-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }
  
  /* Make buttons full width on mobile */
  .cta-button,
  .primary-button,
  a[href].cta-button {
    width: 100%;
    max-width: 300px; /* Prevent buttons from getting too wide */
    margin: 5px auto;
    box-sizing: border-box;
    text-align: center;
  }
  
  /* Ensure any single buttons are centered too */
  .page-content a.cta-button,
  .page-content button.primary-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* About page specific styling */
.about-content {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center; /* Center all text instead of left alignment */
}

.about-content p {
  margin-bottom: 20px;
  text-align: center; /* Center paragraphs instead of justify */
  hyphens: auto; /* Keep hyphenation for better text appearance */
}

/* Focus area styling for About page */
.focus-area {
  margin-bottom: 30px;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
}

.focus-area h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: var(--font-size-xl);
}

/* Alternating section styles */
.section-light {
  background-color: var(--white);
  padding: 40px 0; /* Reduced from 60px */
}

.section-dark {
  background-color: var(--grey-light);
  padding: 40px 0; /* Reduced from 60px */
}

/* Hero section with gradient overlay */
.hero-section {
  position: relative;
  color: var(--white);
  padding: 80px 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
  opacity: 0.9;
  z-index: -1;
}

/* Adjust for mobile */
@media (max-width: 768px) {
  /* Ensure header and footer spacing is maintained on small screens */
  header, .compact-footer {
    width: calc(100% - 20px);
  }
}

/* Utility classes for positioning adjustments */
.v-adjust {
  /* Vertical position adjustment - use inline style to set --v-offset value */
  /* Example: <div class="v-adjust" style="--v-offset: 20px"> */
  margin-top: var(--v-offset, 0);
}

/* For negative adjustments (moving content upward) */
.v-adjust-neg {
  /* Example: <div class="v-adjust-neg" style="--v-offset: 20px"> */
  margin-top: calc(var(--v-offset, 0) * -1);
}

/* Background patterns and images for PTEK Website */

.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.05; /* Default opacity */
  pointer-events: none;
  margin-top: 0; /* Don't offset the background */
}

/* Set opacity based on data attribute if specified */
.page-background[data-opacity] {
  opacity: attr(data-opacity);
}

/* AI pattern background - abstract tech pattern */
.ai-pattern-bg {
  background-color: #f8f9fa;
  background-image: 
    radial-gradient(#0066cc 1px, transparent 1px),
    radial-gradient(#0066cc 1px, transparent 1px);
  background-position: 0 0, 25px 25px;
  background-size: 50px 50px;
}

/* Dots grid pattern */
.dots-pattern-bg {
  background-color: #f8f9fa;
  background-image: 
    radial-gradient(#333 1px, transparent 1px);
  background-size: 25px 25px;
}

/* Circuit board pattern */
.circuit-pattern-bg {
  background-color: #f8f9fa;
  background-image: 
    linear-gradient(rgba(0, 102, 204, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(0, 102, 204, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

/* AI response page specific background */
.ai-response-bg {
  background-color: #f8f9fa;
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(0, 102, 204, 0.15) 2px, transparent 0),
    radial-gradient(circle at 75px 75px, rgba(94, 23, 235, 0.15) 2px, transparent 0);
  background-size: 100px 100px;
}

/* For dark themes */
.dark-pattern-bg {
  background-color: #222;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Custom Background Image - for the 1152 x 896 px, 24bit images */
.custom-bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.18; /* Slightly increased from 0.15 to let more of the pinkish hue show through */
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Different positioning options */
.custom-bg-image.bg-top {
  background-position: top center;
}

.custom-bg-image.bg-bottom {
  background-position: bottom center;
}

/* Overlay options for better readability */
.custom-bg-image.with-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Dark overlay */
  z-index: 1;
}

.custom-bg-image.with-light-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3); /* Light overlay */
  z-index: 1;
}

/* Green-themed growth pattern background options */

/* Abstract leaf-like pattern */
.leaf-pattern-bg {
  background-color: var(--light);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(5, 150, 105, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(5, 150, 105, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(14, 116, 144, 0.07) 0%, transparent 40%);
  background-size: 60px 60px, 100px 100px, 80px 80px;
  background-position: 0 0, 30px 30px, -20px 20px;
}

/* Geometric growth pattern */
.growth-pattern-bg {
  background-color: var(--light);
  background-image: 
    linear-gradient(45deg, rgba(5, 150, 105, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(5, 150, 105, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(5, 150, 105, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(5, 150, 105, 0.04) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* Tech-branch pattern - updated blue version */
.branch-pattern-bg {
  background-color: var(--light);
  background-image: 
    linear-gradient(90deg, rgba(26, 86, 219, 0.25) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 86, 219, 0.25) 1px, transparent 1px),
    linear-gradient(rgba(2, 132, 199, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.18) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

/* Growth nodes pattern - updated blue version */
.nodes-pattern-bg {
  background-color: var(--light);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(26, 86, 219, 0.07) 2px, transparent 0),
    radial-gradient(circle at 75% 75%, rgba(2, 132, 199, 0.07) 2px, transparent 0),
    radial-gradient(circle at 25% 75%, rgba(26, 86, 219, 0.07) 2px, transparent 0),
    radial-gradient(circle at 75% 25%, rgba(2, 132, 199, 0.07) 2px, transparent 0),
    radial-gradient(circle at 50% 50%, rgba(26, 86, 219, 0.05) 2px, transparent 0);
  background-size: 50px 50px;
}

/* Neural network pattern - updated blue version */
.neural-pattern-bg {
  background-color: var(--light);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(26, 86, 219, 0.1) 0, rgba(26, 86, 219, 0) 20px),
    radial-gradient(circle at 25% 25%, rgba(2, 132, 199, 0.1) 0, rgba(2, 132, 199, 0) 20px),
    radial-gradient(circle at 75% 75%, rgba(26, 86, 219, 0.1) 0, rgba(26, 86, 219, 0) 20px),
    radial-gradient(circle at 25% 75%, rgba(2, 132, 199, 0.1) 0, rgba(2, 132, 199, 0) 20px),
    radial-gradient(circle at 75% 25%, rgba(26, 86, 219, 0.1) 0, rgba(26, 86, 219, 0) 20px);
  background-size: 100px 100px;
  background-position: 0 0, 25px 25px, 50px 50px, 25px 75px, 75px 25px;
}

/* Gradient background for hero sections */
.gradient-bg {
  background: var(--gradient-primary);
  opacity: 0.95;
}

/* Dark gradient background */
.dark-gradient-bg {
  background: var(--gradient-dark);
  opacity: 0.95;
}

/* Light gradient background */
.light-gradient-bg {
  background: var(--gradient-light);
  opacity: 0.8;
}

@media (max-width: 768px) {
  /* Simplify patterns on mobile for better performance */
  .page-background {
    background-size: 40px 40px;
    opacity: 0.04;
  }
  
  /* Adjust custom background images on mobile */
  .custom-bg-image {
    opacity: 0.1; /* Slightly reduced opacity on mobile by default */
    background-attachment: scroll; /* Ensure better scrolling performance on mobile */
  }
}

/* === Utility Classes === */
.section-light { background-color: var(--white); padding: 40px 0; }
.section-dark { background-color: var(--grey-light); padding: 40px 0; }
.v-adjust { margin-top: var(--v-offset, 0); }
.v-adjust-neg { margin-top: calc(var(--v-offset, 0) * -1); }

/* Content wrapper for consistent widths across pages */
.content-wrapper {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0px;
  box-sizing: border-box;
}

/* Adjust for mobile views */
@media (max-width: 768px) {
  body {
    padding-top: 80px; /* Consistent padding on mobile */
  }
  
  .page-content {
    padding: 20px 15px 60px; /* Adjust padding for mobile */
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
    padding-bottom: 50px;
  }
  
  .page-content {
    padding: 15px 15px 50px; /* Reduce padding on mobile to prevent overflow */
    overflow: visible;
  }
  
  /* Adjust the extra top space on mobile */
  .extra-top-space {
    margin-top: 20px; /* Reduce top margin on mobile */
  }
  
  /* Prevent content from creating horizontal overflow */
  .benefits-grid, 
  .about-content,
  .button-container {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Highlight Box Styles */
.highlight-box {
  background-color: rgba(26, 86, 219, 0.05);
  border-left: 4px solid #1a56db;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0.25rem;
}

.highlight-box h3 {
  margin-top: 0;
  color: #1a56db;
}

/* Beta Notice Styles */
.beta-notice {
  background-color: rgba(246, 246, 246, 0.8);
  border: 1px solid #ddd;
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 0.25rem;
  font-style: italic;
}

/* Center content sections */
.bottom-line {
  text-align: center;
}

/* Ensure CTA sections are centered */
.cta-section {
  text-align: center;
  width: 100%;
}