@font-face {
  font-family: 'UbuntuLocal';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./fonts/Ubuntu-Light-300.ttf') format('truetype');
}
@font-face {
  font-family: 'UbuntuLocal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/4iCs6KVjbNBYlgo6eA.ttf') format('truetype');
}
@font-face {
  font-family: 'UbuntuLocal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/4iCv6KVjbNBYlgoCjC3Ttw.ttf') format('truetype');
}
@font-face {
  font-family: 'UbuntuLocal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/4iCv6KVjbNBYlgoCxCvTtw.ttf') format('truetype');
}

:root {
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-surface-transparent: rgba(10, 10, 10, 0.7);
  --color-primary: #00f3ff;
  --color-secondary: #00ff9d;
  --color-text: #ffffff;
  --color-text-muted: #f0f0f0;
  --font-main: 'Inter', sans-serif;
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --shadow-glow: 0 0 20px rgba(0, 243, 255, 0.2);
  --border-glow: 1px solid rgba(0, 243, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: #000000;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.rich-bg {
  background: radial-gradient(circle at 50% 0%, #004d57 0%, #001a24 45%, #000000 100%);
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'UbuntuLocal', sans-serif !important;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  text-wrap: wrap; /* Changed from balance to prevent layout jumping during typing animations */
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Ensure gradient applies correctly to the text box */
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 1440px) {
  h2 {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  }

  .hero-content p {
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  }

  .hero-narrative h1 {
    font-size: clamp(1.9rem, 3.5vw, 3rem) !important;
  }

  .hero-narrative .hero-lead {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  }
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 200px;
  text-align: center;
  align-self: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00E5D4 0%, #A3FF00 100%);
  color: #1A365D;
  box-shadow: 0 4px 15px rgba(0, 229, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 212, 0.5);
}

/* Standard Outline Button - Gradient Text & Border */
.btn-outline {
  position: relative;
  background: none !important;
  background-image: linear-gradient(135deg, #00E5D4 0%, #A3FF00 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  border: 2px solid transparent;
  border-radius: 50px;
  display: inline-block;
  font-weight: 800;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-outline::after {
  content: "";
  position: absolute;
  inset: -2px; 
  border-radius: 50px;
  padding: 2px; 
  background: linear-gradient(135deg, #00E5D4 0%, #A3FF00 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-image: none !important;
  background: linear-gradient(135deg, #00E5D4 0%, #A3FF00 100%) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #1A365D !important;
  color: #1A365D !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 229, 212, 0.2);
}

.btn-outline:hover::after {
  opacity: 0;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(90deg, #000000, #007a80);
  border-bottom: var(--border-glow);
}

nav.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 80px;
}

.site-nav .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--nav-text, #fff);
  letter-spacing: -1px;
  display: flex;
  align-items: center;
}

.site-nav .logo span {
  color: var(--color-primary);
}

.site-nav .nav-links {
  display: flex;
  gap: 0;
  align-items: stretch;
  height: 100%;
  font-family: 'UbuntuLocal', sans-serif !important;
  font-weight: 400 !important;
}

.site-nav .nav-links li {
  display: flex;
  align-items: stretch;
}

.site-nav .nav-links a:not(.btn) {
  font-family: inherit;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
  height: 100%;
  font-weight: 400 !important;
  font-family: 'UbuntuLocal', sans-serif !important;
  font-synthesis: none;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-transform: none;
  font-size: 1rem;
  color: var(--nav-text, #fff);
}

.site-nav .nav-links a:not(.btn):hover,
.site-nav .nav-links li.dropdown:hover>a {
  background: rgba(0, 243, 255, 0.1);
  color: var(--color-primary);
  box-shadow: none;
  transform: none;
  border-bottom: 3px solid var(--color-primary);
}

/* Dropdown Menu */
.site-nav .dropdown {
  position: relative;
}

.site-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-dropdown-bg, #001a1f);
  border: 1px solid var(--nav-dropdown-border, rgba(0, 243, 255, 0.2));
  border-radius: 8px;
  min-width: 0;
  width: max-content;
  padding: 0;
  margin-top: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow: hidden;
}

.site-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.site-nav .dropdown-menu li {
  list-style: none;
  width: 100%;
}

.site-nav .dropdown-menu a {
  display: block;
  padding: 1.35rem 1.5rem !important;
  line-height: 1.3;
  color: var(--nav-text, #fff);
  transition: all 0.3s ease;
  border-radius: 0;
  font-weight: 400 !important;
  font-family: 'UbuntuLocal', sans-serif !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 0.9rem;
  text-transform: none;
  border-bottom: none;
}

.site-nav .dropdown-menu a:hover {
  background: rgba(0, 243, 255, 0.15);
  color: var(--color-primary);
  transform: none;
}


.site-nav .mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--nav-text, #fff);
}

/* Hero Section */
.hero {
  height: auto;
  min-height: clamp(620px, 78vh, 880px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 110px; /* keep hero content clear of fixed nav */
  padding-bottom: clamp(2.5rem, 7vh, 4.5rem);
}

.hero.hero-vertical-center {
  align-items: center;
  padding-top: 120px;
}

.hero.hero-vertical-center .hero-content {
  padding-top: 1rem;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 20, 0.7);
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  /* Increased from 600px */
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto;
  padding-top: clamp(3.5rem, 7vh, 6rem);
  padding-bottom: 2.5rem;
  /* Push content down from menu bar */
}

.hero-content h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  /* Responsive font size */
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.hero .hero-content .hero-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  max-width: 650px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  border-top: var(--border-glow);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--color-secondary);
  margin-bottom: 0.2rem;
}

/* Features / Software */
.section {
  padding: 3rem 0;
  position: relative;
  /* Ensure z-index works if needed */
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 16px;
  border: var(--border-glow);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
}

.card-icon {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card-icon svg {
  width: 4rem;
  height: 4rem;
  stroke-width: 1.5;
}

/* Testimonials carousel */
.testimonial-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  padding: 0.5rem 0;
  scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 clamp(280px, 42vw, 440px);
  scroll-snap-align: start;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
}

.testimonial-logo-wrap {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.testimonial-logo {
  height: auto;
  width: auto;
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.9);
}

.testimonial-logo-xl {
  max-height: 128px;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 0.75rem;
}

.testimonial-name {
  margin-top: auto;
  font-weight: 700;
}

.testimonial-role {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.35rem;
}

/* Light HubSpot form container */
.hs-form-light {
  background: #ffffff !important;
  color: #0b1220;
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.hs-form-light .hs-form,
.hs-form-light label,
.hs-form-light .hs-form label,
.hs-form-light .hs-form-field label,
.hs-form-light .hs-input,
.hs-form-light input,
.hs-form-light textarea,
.hs-form-light select,
.hs-form-light .hs-error-msgs,
.hs-form-light .hs-error-msg,
.hs-form-light .hs-form-required {
  color: #0b1220;
}

.hs-form-light .hs-input,
.hs-form-light input,
.hs-form-light textarea,
.hs-form-light select {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.hs-form-light .hs-form-frame,
.hs-form-light .hs-form-frame iframe {
  background: #ffffff !important;
}

.carousel-btn {
  border: none;
  background: transparent;
  color: #ffffff;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 10px; /* Add some padding for clickable area */
}

.carousel-btn:hover {
  color: var(--hp-teal);
  transform: scale(1.1); /* Add a slight scale effect instead of border color change */
}

@media (max-width: 768px) {
  .testimonial-carousel {
    padding: 0 0.5rem;
  }

  .carousel-btn {
    display: none;
  }
}

/* Footer */
footer {
  background: var(--color-surface);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: var(--border-glow);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(4, minmax(160px, 1fr));
  }
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: #fff;

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Software Page Styles */
.software-block {
  display: flex;
  align-items: stretch; /* Stretch to match text height */
  gap: 4rem;
  margin-bottom: 6rem;
  padding: 3rem; /* Slightly more padding for balance */
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.software-block.reverse {
  flex-direction: row-reverse;
}

.software-content {
  flex: 0 0 60%; /* Adjusted to 60% as requested */
}

.software-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center; /* Center the smaller image vertically */
}

.visual-placeholder {
  width: 100%;
  height: 80%; /* Reduced height by 20% relative to text content */
  background: var(--color-surface);
  border-radius: 16px;
  border: var(--border-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  position: relative;
}

.software-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.feature-list li svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--color-secondary);
}

@media (max-width: 768px) {
  .software-block,
  .software-block.reverse {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .software-content {
    flex: none;
    width: 100%;
  }

  .software-visual {
    flex: none;
    width: 100%;
    height: 300px; /* Give it a fixed height on mobile where columns stack */
    position: relative;
  }
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem !important;
  }

  .section {
    padding: 3rem 0;
    overflow: hidden; /* Prevent horizontal scroll */
  }

  .software-block {
    padding: 1.5rem !important;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    width: auto !important;
  }

  .hero {
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 120px !important; /* Increased from 80px to give more space below fixed header */
    padding-bottom: 60px !important;
    height: auto !important;
  }

  .hero-content {
    margin: auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-content h1 {
    font-size: 2.2rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-content p {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    margin-bottom: 2rem !important;
  }

  .hero-content div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 1.2rem !important;
    align-items: center !important;
  }

  .hero-content .btn {
    width: 100% !important;
    max-width: 280px !important;
  }

  h1 {
    font-size: 2.5rem;
  }

  .site-nav .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--nav-dropdown-bg, #ffffff);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-bottom: none;
    gap: 1.5rem;
    overflow-y: auto;
    z-index: 999;
  }

  .site-nav .nav-links li {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-nav .nav-links a:not(.btn) {
    width: 100%;
    justify-content: center;
    height: auto;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 400 !important;
    font-family: 'UbuntuLocal', sans-serif !important;
    color: #ffffff !important;
  }

  .site-nav .nav-links a:not(.btn):hover {
    background: transparent;
    color: var(--color-primary);
  }

  /* Mobile Dropdown */
  .site-nav .dropdown-menu {
    position: static;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
  }

  .site-nav .dropdown.open .dropdown-menu {
    display: block;
  }

  .site-nav .dropdown-menu a {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
    font-weight: 400 !important;
    font-family: 'UbuntuLocal', sans-serif !important;
  }

  .site-nav .dropdown-menu a:hover {
    background: rgba(0, 229, 212, 0.05);
    color: var(--hp-teal);
    padding-left: 1rem;
  }

  .site-nav .nav-links.active {
    transform: translateX(0);
  }

  .site-nav .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--nav-text, #006064);
    font-size: 2.2rem;
    height: 100%;
    padding: 0 1rem;
  }

  .mobile-toggle svg {
    width: 32px;
    height: 32px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .section {
    padding: 3rem 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .software-block {
    padding: 1.5rem !important;
    margin: 0 0 2rem 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }

  .software-content h2 {
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
  }

  .feature-list li {
    gap: 0.8rem !important;
  }
}

/* Markdown Content Styles */
.markdown-content {
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.markdown-content h1 {
  font-size: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.markdown-content h2 {
  font-size: 2rem;
}

.markdown-content h3 {
  font-size: 1.5rem;
}

.markdown-content p {
  margin-bottom: 1.5rem;
}

.markdown-content ul,
.markdown-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style: disc;
}

.markdown-content ol {
  list-style: decimal;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.markdown-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.markdown-content blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

.markdown-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.markdown-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

.markdown-content pre {
  background: #0d1117;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.markdown-content pre code {
  background: transparent;
  padding: 0;
}

/* Blog Search and Filtering */
.blog-controls {
  margin-bottom: 3rem;
  text-align: center;
}

.search-wrapper {
  margin: 0 auto 1.5rem;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  width: 100%;
  max-width: 400px;
  transition: all 0.3s ease;
}

.search-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.search-wrapper input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  outline: none;
  font-size: 1rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.category-pill {
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.category-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #000;
  font-weight: 600;
}

.post-category-label {
  font-size: 0.8rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.post-meta .category {
  background: rgba(0, 243, 255, 0.1);
  color: var(--color-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  border: 1px solid rgba(0, 243, 255, 0.2);
}

.post-meta .author {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.post-meta .author strong {
  color: #fff;
}

/* Mission & Vision & Values */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.mission-block h2,
.vision-block h2 {
  margin-bottom: 1.5rem;
}

.mission-block {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 24px;
  border: var(--border-glow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cyan-heading {
  color: var(--color-primary);
}

.premium-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #fff;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 2rem;
}

.mission-details {
  display: grid;
  gap: 1rem;
}

.detail-item {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.detail-item strong {
  color: var(--color-primary);
}

.vision-block {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 24px;
  border: var(--border-glow);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vision-highlight {
  margin-bottom: 2rem;
}

.gw-number {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.vision-highlight p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 24px;
  border: var(--border-glow);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-secondary);
  box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1);
}


.value-icon {
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.value-icon svg {
  width: 3rem;
  height: 3rem;
}


.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.value-card ul {
  list-style: none;
  padding: 0;
}

.value-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.value-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

@media (max-width: 992px) {
  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   HOME PAGE PALETTE - Fresh Brand Colours
   ======================================== */

.home-palette {
  --hp-teal: #00E5D4;
  --hp-teal-light: #33FFE8;
  --hp-teal-dark: #00BFA8;
  --hp-vivid-green: #A3FF00;
  --hp-green-light: #C4FF33;
  --hp-green-dark: #8AC700;
  --hp-navy: #1A365D;
  --hp-navy-light: #2A4A7A;
  --hp-white: #FFFFFF;
  --hp-off-white: #F8FAFB;
  --hp-text: #2D3748;
  --hp-text-muted: #4A5568;
  --hp-gradient: linear-gradient(135deg, var(--hp-teal) 0%, var(--hp-vivid-green) 100%);
  --hp-gradient-subtle: linear-gradient(135deg, rgba(0, 229, 212, 0.1) 0%, rgba(163, 255, 0, 0.1) 100%);

  background-color: var(--hp-off-white);
}

/* Navigation */
.home-palette header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.home-palette .logo img {
  /* Restored original colors */
}


/* Hero Section */
.home-palette .hero .overlay {
  background: linear-gradient(180deg,
      rgba(26, 54, 93, 0.85) 0%,
      rgba(26, 54, 93, 0.7) 50%,
      rgba(26, 54, 93, 0.9) 100%);
}

.home-palette h1 {
  background: var(--hp-gradient) !important;
  background-image: var(--hp-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  display: block;
}

.home-palette h2, 
.home-palette h3 {
  color: var(--hp-navy);
}

.home-palette .markdown-content h2,
.home-palette .markdown-content h3 {
  background: var(--hp-gradient) !important;
  background-image: var(--hp-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
  width: fit-content; /* Ensure gradient only spans text */
  color: transparent !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.home-palette .hero-content p {
  color: #fff !important;
}

.home-palette .stat-item h3 {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.44rem, 2.8vw, 2rem); /* Increased 20% from previous sizes */
}

.home-palette .stat-item p {
  color: #fff !important;
}

.home-palette .hero-stats {
  border-top: 1px solid rgba(78, 205, 196, 0.25);
}

.home-palette .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-palette .section-tag i,
.home-palette .section-tag svg {
  -webkit-text-fill-color: initial;
  color: var(--hp-teal); /* Solid teal icon to complement the gradient text */
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.home-palette .feature-list li svg {
  color: var(--hp-teal);
  width: 28px; /* Increased 20% from ~24px */
  height: 28px;
  stroke-width: 3;
}

/* Main Content Sections */
.home-palette .section {
  background: transparent;
}

.home-palette .section h2 {
  color: var(--hp-navy);
}

.home-palette .section>.container>p {
  color: var(--hp-text-muted);
}

/* Cards */
.home-palette .card {
  background: #ffffff;
  backdrop-filter: none;
  border: 1px solid rgba(0, 96, 100, 0.1) !important;
  box-shadow: 0 10px 30px rgba(26, 54, 93, 0.05) !important;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.home-palette .card:hover {
  border-color: var(--hp-teal) !important;
  box-shadow: 0 15px 40px rgba(0, 229, 212, 0.15) !important;
  transform: translateY(-5px);
}

/* Removed shaded corner per user request */
.home-palette .card::after {
  content: none;
}

.home-palette .card:hover {
  border-color: var(--hp-teal);
  box-shadow: 0 8px 30px rgba(78, 205, 196, 0.2);
}

.home-palette .card-icon {
  color: var(--hp-teal);
}

.home-palette .card h3 {
  color: var(--hp-navy);
}

.home-palette .card p {
  color: var(--hp-text-muted);
}

.home-palette .card a {
  color: var(--hp-teal-dark);
}

.home-palette .card a:hover {
  color: var(--hp-teal);
}

/* Services Section with subtle gradient */
.home-palette .section[style*="background: rgba(255,255,255,0.02)"] {
  background: var(--hp-gradient-subtle) !important;
}

/* CTA Section */
.home-palette .section>.container>div[style*="gradient-primary"] {
  background: var(--hp-gradient) !important;
}

.home-palette .section>.container>div[style*="gradient-primary"] h2,
.home-palette .section>.container>div[style*="gradient-primary"] p {
  color: var(--hp-navy) !important;
}

.home-palette .section>.container>div[style*="gradient-primary"] .btn {
  background: var(--hp-navy) !important;
  color: var(--hp-white) !important;
}

.home-palette .section>.container>div[style*="gradient-primary"] .btn:hover {
  background: var(--hp-navy-light) !important;
  transform: translateY(-2px);
}

/* Footer */
.home-palette footer {
  background: var(--hp-navy);
  border-top: 1px solid rgba(78, 205, 196, 0.2);
  color: #ffffff;
}

.home-palette footer p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.home-palette footer a,
.home-palette footer ul li a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
}

.home-palette footer a:hover,
.home-palette footer ul li a:hover {
  color: var(--hp-teal) !important;
}

.home-palette .footer-col h4 {
  color: #ffffff !important;
}

.home-palette .copyright {
  border-top: 1px solid rgba(78, 205, 196, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .home-palette header {
    background: #ffffff !important;
  }

  .home-palette .nav-links {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .home-palette .nav-links a:not(.btn) {
    color: #006064 !important;
    font-weight: 700;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  .home-palette .nav-links a:not(.btn):hover {
    background: rgba(0, 229, 212, 0.05);
    color: #006064 !important;
  }

  .home-palette .dropdown-menu {
    background: #f8fafb;
    margin: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 212, 0.1);
  }

  .home-palette .dropdown-menu li {
    border: none;
  }

  .home-palette .dropdown-menu a {
    color: #006064 !important;
    text-align: center;
    border: none;
    padding: 1.35rem 1rem !important;
    font-weight: 300 !important;
    font-synthesis: none;
  }

  .home-palette .dropdown-menu a:hover {
    background: rgba(0, 229, 212, 0.1);
    color: var(--hp-teal) !important;
    -webkit-text-fill-color: var(--hp-teal);
  }
}

/* Software Page Specific Styles */
.home-palette .software-block {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 212, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.home-palette .software-block:hover {
  border-color: var(--hp-teal);
  box-shadow: 0 8px 32px rgba(0, 229, 212, 0.15);
}

.home-palette .software-content h2 {
  color: var(--hp-navy);
}

.home-palette .software-content p,
.home-palette .software-content .lead {
  color: var(--hp-text-muted);
}

.home-palette .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--hp-text);
  line-height: 1.5;
}

.home-palette .feature-list li .feature-text {
  width: 100%;
}

/* Two-column layout ONLY for items with both a title and a description */
.home-palette .feature-list li .feature-text:has(strong) {
  display: grid;
  grid-template-columns: 130px 1fr; /* Fixed width to force 2-word labels to wrap */
  gap: 2.5rem;
}

.home-palette .feature-list li strong {
  color: var(--hp-navy);
  font-size: 1.1rem;
  line-height: 1.2;
  display: block; /* Ensure it respects width for wrapping */
}

.home-palette .feature-list li span {
  color: var(--hp-text-muted);
}

.home-palette .feature-list li svg {
  color: #006064;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

@media (max-width: 992px) {
  .home-palette .feature-list li .feature-text,
  .home-palette .feature-list li .feature-text:has(strong) {
    display: block !important; /* Force vertical stacking */
    grid-template-columns: 1fr !important;
    gap: 0.2rem !important;
  }
}

.home-palette .visual-placeholder {
  background: linear-gradient(135deg, var(--hp-navy) 0%, var(--hp-navy-light) 100%);
  border: 1px solid rgba(0, 229, 212, 0.3);
  box-shadow: 0 0 30px rgba(0, 229, 212, 0.15);
}

/* Quote Section */
.home-palette .section[style*="background: var(--color-surface)"] {
  background: var(--hp-navy) !important;
}

.home-palette .section[style*="background: var(--color-surface)"] h3 {
  color: var(--hp-white) !important;
}

.home-palette .section[style*="background: var(--color-surface)"] i {
  color: var(--hp-vivid-green) !important;
}

/* About Us Page Specific Styles */
.home-palette .mission-block,
.home-palette .vision-block {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 212, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.home-palette .mission-block h2,
.home-palette .vision-block h2 {
  color: var(--hp-navy);
}

.home-palette .cyan-heading {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Required for background-clip on some elements */
}

.home-palette .premium-text {
  color: var(--hp-text) !important;
}

.home-palette .gw-number {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-palette .detail-item {
  color: var(--hp-text-muted);
}

.home-palette .detail-item strong {
  color: var(--hp-teal);
}

/* Value Cards */
.home-palette .value-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 212, 0.2);
  box-shadow: 0 4px 24px rgba(26, 54, 93, 0.08);
}

.home-palette .value-card:hover {
  border-color: var(--hp-teal);
  box-shadow: 0 8px 32px rgba(0, 229, 212, 0.15);
}

.home-palette .value-card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.home-palette .value-icon {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-palette .value-icon i,
.home-palette .value-icon svg {
  -webkit-text-fill-color: initial;
  color: var(--hp-teal);
  width: 32px;
  height: 32px;
}

.home-palette .value-card h3 {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.2;
}

.home-palette .value-card li {
  color: var(--hp-text-muted);
}

.home-palette .value-card li::before {
  color: var(--hp-teal);
}

/* Team Cards */
.home-palette .team-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 212, 0.2);
  box-shadow: 0 4px 24px rgba(26, 54, 93, 0.08);
}

.home-palette .team-card:hover {
  border-color: var(--hp-teal);
  box-shadow: 0 8px 32px rgba(0, 229, 212, 0.15);
}

.home-palette #blog-grid .card h3 {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-wrap: balance;
}

.home-palette .team-card p {
  color: var(--hp-text-muted) !important;
}

.home-palette .team-photo {
  border-color: rgba(0, 229, 212, 0.3);
}

/* LinkedIn Icons */
.home-palette .team-linkedin-icon img {
  filter: brightness(0) saturate(100%) invert(25%) sepia(50%) saturate(500%) hue-rotate(170deg);
}

.home-palette .team-linkedin-icon:hover img {
  filter: brightness(0) saturate(100%) invert(70%) sepia(50%) saturate(500%) hue-rotate(130deg);
}

/* Section Headers and Paragraphs */
.home-palette .section-header p,
.home-palette .section>.container>div[style*="text-align: center"] p {
  color: var(--hp-text-muted) !important;
}

.home-palette .mission-vision p,
.home-palette .brand-values p {
  color: var(--hp-text-muted) !important;
}

/* Generic text fixes */
.home-palette p {
  color: var(--hp-text-muted);
}

.home-palette .section p {
  color: var(--hp-text-muted);
}

/* Vision highlight text */
.home-palette .vision-highlight p {
  color: var(--hp-text) !important;
}

/* Blog Page - Search and Categories */
.home-palette .search-wrapper {
  background: var(--hp-white);
  border: 2px solid rgba(255, 213, 0, 0.4);
  box-shadow: 0 2px 10px rgba(26, 54, 93, 0.08);
}

.home-palette .search-wrapper:focus-within {
  border-color: var(--hp-vivid-green);
  box-shadow: 0 0 15px rgba(255, 213, 0, 0.3);
}

.home-palette .search-wrapper input {
  color: var(--hp-text);
}

.home-palette .search-wrapper input::placeholder {
  color: var(--hp-text-muted);
}

.home-palette .category-pill {
  background: var(--hp-white);
  border: 1px solid rgba(255, 213, 0, 0.4);
  color: var(--hp-text);
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06);
}

.home-palette .category-pill:hover {
  background: rgba(255, 213, 0, 0.15);
  border-color: var(--hp-vivid-green);
  color: var(--hp-navy);
}

.home-palette .category-pill.active {
  background: var(--hp-vivid-green);
  border-color: var(--hp-vivid-green);
  color: var(--hp-navy);
}

/* Blog Cards */
.home-palette .post-category-label {
  color: #006064; /* Dark Teal */
  font-weight: 800;
  font-size: 0.75rem;
  background: rgba(0, 96, 100, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-palette .blog-date {
  color: var(--hp-navy) !important;
  font-weight: 600;
  opacity: 0.7;
}

.home-palette .post-meta .category {
  background: rgba(0, 96, 100, 0.1);
  color: #006064;
  border-color: rgba(0, 96, 100, 0.2);
}

.home-palette .post-meta .author {
  color: var(--hp-text-muted);
}

/* Blog Post Styling for Home Palette */
.home-palette .markdown-content {
  color: var(--hp-text);
}

.home-palette .markdown-content h1,
.home-palette .markdown-content h2,
.home-palette .markdown-content h3,
.home-palette .markdown-content h4,
.home-palette .markdown-content h5,
.home-palette .markdown-content h6 {
  color: var(--hp-navy);
}

.home-palette .markdown-content h1 {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 1px solid rgba(0, 96, 100, 0.1);
  display: inline-block;
  text-wrap: balance;
  font-size: 2.5rem;
}

.home-palette .markdown-content h2,
.home-palette .markdown-content h3 {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  color: transparent;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.home-palette .markdown-content h2 { font-size: 2rem; }
.home-palette .markdown-content h3 { font-size: 1.5rem; }

.home-palette .markdown-content a {
  color: #006064;
  font-weight: 700;
}

.home-palette .markdown-content blockquote {
  background: rgba(0, 96, 100, 0.05);
  border-left-color: var(--hp-teal);
  color: var(--hp-text-muted);
}

.home-palette .markdown-content code {
  background: rgba(0, 96, 100, 0.08);
  color: #006064;
}

.home-palette .markdown-content pre {
  background: #1a202c;
  border: 1px solid rgba(0, 229, 212, 0.2);
}

.home-palette .markdown-content img {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 96, 100, 0.1);
}

.home-palette .markdown-content ul,
.home-palette .markdown-content ol {
  color: var(--hp-text);
}

/* Custom Form Styling */
.custom-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--hp-navy);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(0, 96, 100, 0.1);
  border-radius: 12px;
  color: var(--hp-navy);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--hp-teal);
  box-shadow: 0 0 0 4px rgba(0, 229, 212, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-status {
  padding: 1rem;
  border-radius: 8px;
  display: none;
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(0, 229, 212, 0.1);
  color: #008a7d;
  border: 1px solid rgba(0, 229, 212, 0.2);
}

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .home-palette .card {
    padding: 2rem !important; /* Reduce card padding on mobile */
  }
}

.home-palette #post-header a {
  color: #006064 !important;
  font-weight: 700;
}

.home-palette #post-header #loading {
  color: var(--hp-navy);
}

.home-palette .post-meta {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.home-palette .post-meta .author strong {
  color: var(--hp-navy);
}
/* Process Section Side-by-Side */
.process-grid {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.process-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 1.5rem !important;
  text-align: left !important;
  padding: 2rem !important;
  height: 100%;
}

.process-icon {
  flex-shrink: 0;
  width: fit-content; /* Only necessary space for the icon/symbol */
  max-width: 100px;
}

.process-icon img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.process-text {
  flex: 1;
}

.process-text h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.process-text p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 500px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .process-card {
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
  }
  
  .process-icon {
    width: 100px;
    margin-bottom: 1rem;
  }
}

/* Rolling Banner */
.logo-slider {
  padding: 1.9rem 0; /* Reduced 20% from 2.4rem */
  background: #1A365D;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-slider-track {
  display: flex;
  width: calc(260px * 34); /* Tighter spacing between logos */
  animation: scroll 60s linear infinite;
  align-items: center;
  height: 64px; /* Reduced 20% from 80px */
}

.logo-slide {
  width: 260px;
  height: 64px; /* Reduced 20% from 80px */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.logo-slide img {
  /* Normalized "Visual Weight" dimensions */
  max-width: 224px; /* Reduced 20% from 280px */
  max-height: 52px; /* Reduced 20% from 65px */
  filter: brightness(0) invert(1); 
  opacity: 0.8;
  transition: all 0.4s ease;
  object-fit: contain;
}

/* Compensate for landscape logos that look smaller due to low height */
.logo-slide img.logo-landscape {
  max-height: 68px; /* Reduced 20% from 85px */
  max-width: 256px; /* Reduced 20% from 320px */
  transform: scale(1.0); /* Reduced 20% from 1.25 baseline */
}

/* Constrain bulky or naturally large logos */
.logo-slide img.logo-compact {
  max-height: 40px; /* Reduced 20% from 50px */
  max-width: 192px; /* Reduced 20% from 240px */
  transform: scale(0.68); /* Reduced 20% from 0.85 baseline */
}

.logo-slide img.logo-schneider {
  transform: scale(0.48) !important; /* Reduced further by 20% */
}

.logo-slide img.logo-acciona {
  transform: scale(0.7) !important; /* Reduced further by 20% */
}

.logo-slide img.logo-azimut {
  transform: scale(0.64) !important; /* Reduced further by 20% */
}

.logo-slide img.logo-eth {
  transform: scale(0.54) !important; /* Reduced further by 20% */
}

.logo-slide img.logo-hyosung {
  transform: scale(0.64) !important; /* Reduced further by 20% */
}

.logo-slide img.logo-tta {
  transform: scale(0.48) !important; /* Reduced further by 20% */
  margin-right: 20px; /* Extra separation for the tagline */
}

.logo-slide img.logo-boost.logo-landscape {
  transform: scale(1.56) !important; /* Reduced further by 20% */
}

.logo-slide img.logo-boost.logo-compact {
  transform: scale(1.06) !important; /* Reduced further by 20% */
}

.logo-slide img.logo-boost:not(.logo-landscape):not(.logo-compact) {
  transform: scale(0.96) !important; /* Reduced further by 20% */
}

/* Fix for circular/badge logos (white text on solid color background) */
.logo-slide img.logo-badge-filter {
  filter: grayscale(1) invert(1) brightness(0.6) invert(1) !important;
  max-height: 60px; /* Reduced 20% from 75px */
  transform: scale(0.88); /* Reduced 20% from 1.1 baseline */
  opacity: 0.9;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-260px * 17)); }
}

/* Home Section Layouts */
.home-palette .narrative-section {
  padding: 4rem 0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.home-palette .narrative-section h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--hp-navy);
}

.home-palette .narrative-section p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--hp-text-muted);
}

.home-palette .solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.home-palette .solution-card {
  background: white;
  padding: 3rem 1.5rem; /* Reduced horizontal padding for mobile */
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 768px) {
  .home-palette .solution-card {
    padding: 2.5rem 1.2rem;
  }
}

.home-palette .solution-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 229, 212, 0.1);
  border-color: var(--hp-teal);
}

.home-palette .solution-icon {
  width: 252px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  overflow: hidden;
  position: relative;
}

.home-palette .solution-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-palette .solution-card h3 {
  color: var(--hp-navy);
  margin-bottom: 1rem;
}

.home-palette .solution-card p {
  flex-grow: 1;
  margin-bottom: 2rem;
}

/* Feature Showcase */
.showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 4rem;
}

.showcase-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(26, 54, 93, 0.15);
}

@media (max-width: 992px) {
  .home-palette .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .showcase-block {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .showcase-block:nth-child(even) {
    direction: ltr;
  }
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: 600px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 212, 0.2);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.cookie-consent.visible {
  visibility: visible;
  opacity: 1;
  bottom: 3rem;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--hp-navy);
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.cookie-actions .btn {
  min-width: 120px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    text-align: center;
    bottom: 1rem;
    padding: 1.5rem;
  }
  
  .cookie-consent.visible {
    bottom: 1rem;
  }
  
  .cookie-actions {
    width: 100%;
  }
  
  .cookie-actions .btn {
    flex: 1;
  }
}

/* ========================================
   MAP BETA BANNER
   ======================================== */
.map-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--hp-sky-blue) 0%, var(--hp-teal) 50%, var(--hp-sky-blue) 100%);
  color: #1A365D; /* Navy text for better contrast on light background */
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 9999;
  border-top: 2px solid rgba(26, 54, 93, 0.1);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.map-banner.visible {
  transform: translateY(0);
}

.map-banner .banner-text {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 600;
  font-size: 1.15rem; /* Increased size */
}

.map-banner .banner-text i,
.map-banner .banner-text svg {
  color: #1A365D;
  width: 24px;
  height: 24px;
}

.map-banner .btn-map {
  background: #1A365D;
  color: #ffffff;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}

.map-banner .btn-map:hover {
  background: #ffffff;
  color: #1A365D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

.map-banner .close-banner {
  cursor: pointer;
  opacity: 0.7;
  padding: 0.5rem;
  transition: all 0.3s ease;
  color: #1A365D;
}

.map-banner .close-banner:hover {
  opacity: 1;
  color: #00E5D4;
}

@media (max-width: 768px) {
  .map-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    text-align: center;
  }
  
  .map-banner .banner-text {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ========================================
   GLOBAL TECH-GRID BACKGROUND
   ======================================== */
.grid-background {
  background-color: #f4f7f9 !important; /* Clean tech-white/grey */
  background-image: 
    /* Main Accent Dots (Techy Teal) */
    radial-gradient(circle, rgba(0, 229, 212, 0.25) 1.5px, transparent 1.5px),
    /* Primary Large Grid Lines */
    linear-gradient(to right, rgba(0, 229, 212, 0.08) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(0, 229, 212, 0.08) 1.5px, transparent 1.5px),
    /* Secondary Fine Grid Lines */
    linear-gradient(to right, rgba(0, 229, 212, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 212, 0.03) 1px, transparent 1px),
    /* Depth Vignette */
    radial-gradient(circle at center, transparent 0%, rgba(244, 247, 249, 0.4) 100%) !important;
  background-size: 160px 160px, 160px 160px, 160px 160px, 40px 40px, 40px 40px, cover !important;
  background-attachment: fixed !important;
  background-position: center center !important;
}

/* ========================================
   HOME PAGE DARK THEME
   ======================================== */

.home-palette-dark {
  --hp-teal: #00E5D4;
  --hp-vivid-green: #A3FF00;
  --hp-navy: #0A192F; /* Deep Dark Navy */
  --hp-navy-light: #112240;
  --hp-white: #FFFFFF;
  --hp-text: #E2E8F0;
  --hp-text-muted: #94A3B8;
  --hp-gradient: linear-gradient(135deg, var(--hp-teal) 0%, var(--hp-vivid-green) 100%);
  
  background-color: var(--hp-navy);
  color: var(--hp-text);
}

.home-palette-dark header {
  background: rgba(10, 25, 47, 0.9) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 229, 212, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


.home-palette-dark h1,
.home-palette-dark h2,
.home-palette-dark h3,
.home-palette-dark .cyan-heading,
.home-palette-dark .value-icon,
.home-palette-dark .value-card h3 {
  background: var(--hp-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.home-palette-dark .section h2 {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

.home-palette-dark .section-tag {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-palette-dark .section-tag i,
.home-palette-dark .section-tag svg {
  color: var(--hp-teal);
}

.home-palette-dark .card {
  background: rgba(17, 34, 64, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 212, 0.1);
  color: var(--hp-text);
}

.home-palette-dark .card h3 {
  background: var(--hp-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.home-palette-dark .card p,
.home-palette-dark .feature-list li span,
.home-palette-dark .section p {
  color: var(--hp-text-muted) !important;
}

.home-palette-dark .feature-list li strong {
  color: var(--hp-white);
}

.home-palette-dark .feature-list li svg {
  color: var(--hp-teal);
}

.home-palette-dark .btn-outline {
  color: var(--hp-teal) !important;
}

.home-palette-dark .btn-outline:hover {
  -webkit-text-fill-color: var(--hp-navy) !important;
  color: var(--hp-navy) !important;
}

.home-palette-dark .footer-col h4 {
  color: var(--hp-white) !important;
}

.home-palette-dark footer p,
.home-palette-dark footer a {
  color: var(--hp-text-muted) !important;
}

.home-palette-dark footer a:hover {
  color: var(--hp-teal) !important;
}

/* Dark Grid Background */
.grid-background-dark {
  background-color: #0A192F !important;
  background-image:
    radial-gradient(circle, rgba(0, 229, 212, 0.15) 1.5px, transparent 1.5px),
    linear-gradient(to right, rgba(0, 229, 212, 0.05) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(0, 229, 212, 0.05) 1.5px, transparent 1.5px),
    linear-gradient(to right, rgba(0, 229, 212, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 212, 0.02) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 0%, rgba(10, 25, 47, 0.4) 100%) !important;
  background-size: 160px 160px, 160px 160px, 160px 160px, 40px 40px, 40px 40px, cover !important;
  background-attachment: fixed !important;
  background-position: center center !important;
}

.home-palette-dark .software-block,
.home-palette-dark .mission-block,
.home-palette-dark .vision-block {
  background: rgba(17, 34, 64, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 212, 0.1);
}

.home-palette-dark .solution-icon {
  background: transparent !important;
  border: none !important;
  background-image: none !important;
}


.home-palette-dark .logo-slider {
  background: #071224; /* Even darker than body for depth */
  border-color: rgba(0, 229, 212, 0.1);
}

/* Intense 3D Cyan Grid for Sections */
.section-grid-cyan {
  position: relative;
  background-color: #020617 !important;
  overflow: hidden;
  padding: 10rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-grid-cyan::before {
  content: "";
  position: absolute;
  top: -10%; /* Move up slightly to start from a sharper area */
  left: -25%;
  width: 150%;
  height: 120%;
  background-image: 
    linear-gradient(to right, rgba(0, 229, 212, 0.3) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(0, 229, 212, 0.3) 2px, transparent 2px);
  background-size: 60px 60px;
  /* Increase perspective for less extreme distortion and sharper lines */
  transform: perspective(1200px) rotateX(60deg);
  transform-origin: center top;
  /* Anti-blurring properties */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  opacity: 0.6;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 90%);
  pointer-events: none;
  z-index: 1;
}

.section-grid-cyan .container {
  position: relative;
  z-index: 2;
}

/* Desktop dropdown styles for home-palette-dark */
.home-palette-dark .site-nav .dropdown-menu,
.home-palette-dark .dropdown-menu {
  background: #112240 !important;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 212, 0.3) !important;
  margin-top: 0;
  overflow: hidden;
  padding: 0 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.home-palette-dark .site-nav .dropdown-menu li,
.home-palette-dark .dropdown-menu li {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.home-palette-dark .site-nav .dropdown-menu a,
.home-palette-dark .dropdown-menu a {
  color: #ffffff !important;
  border: none !important;
  margin: 0 !important;
  padding: 1rem 1.5rem !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

.home-palette-dark .site-nav .dropdown-menu a:hover,
.home-palette-dark .dropdown-menu a:hover {
  background: rgba(0, 229, 212, 0.2) !important;
  color: var(--color-primary) !important;
}

@media (max-width: 768px) {
  .home-palette-dark header {
    background: #0A192F !important;
  }
  
  .home-palette-dark .nav-links {
    background: #0A192F !important;
    border-top: 1px solid rgba(0, 229, 212, 0.1);
  }
  
  .home-palette-dark .nav-links a:not(.btn) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    font-family: 'UbuntuLocal', sans-serif !important;
    font-weight: 400 !important;
  }
  
  .home-palette-dark .dropdown-menu {
    background: #112240 !important;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 212, 0.3) !important;
  }

  .home-palette-dark .dropdown-menu li {
    border: none !important;
    width: 100% !important;
  }

  .home-palette-dark .dropdown-menu a {
    color: #ffffff !important;
    font-family: 'UbuntuLocal', sans-serif !important;
    font-weight: 400 !important;
    border: none !important;
    padding: 1.35rem 1.5rem !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }

  .home-palette-dark .dropdown-menu a:hover {
    background: rgba(0, 229, 212, 0.2) !important;
    color: var(--color-primary) !important;
  }
}

.home-palette-dark .solution-card {
  background: rgba(17, 34, 64, 0.6);
  border: 1px solid rgba(0, 229, 212, 0.1);
}

.home-palette-dark .solution-card:hover {
  border-color: var(--hp-teal);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 229, 212, 0.1);
}

.home-palette-dark .showcase-block img {
  filter: drop-shadow(0 0 20px rgba(0, 229, 212, 0.2));
}


.home-palette-dark .hero .overlay {
  background: linear-gradient(180deg,
      rgba(10, 25, 47, 0.85) 0%,
      rgba(10, 25, 47, 0.7) 50%,
      rgba(10, 25, 47, 0.9) 100%);
}


/* ========================================
   SCROLL REVEAL & TYPING EFFECTS
   ======================================== */

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(60px); /* Increased from 30px for more noticeable movement */
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.2s; } /* Increased delay */
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

/* Typing Effect */
.typing-container {
  display: inline-flex;
  align-items: baseline; /* Align cursor to the bottom of the text characters */
  min-height: 1.2em;
  vertical-align: bottom;
  white-space: nowrap; /* Prevent title splitting into two lines during animation */
}

.typed-text {
  color: var(--hp-teal);
}

.cursor {
  display: inline-block;
  width: 0.8em; /* Underscore width */
  height: 6px; /* Slightly thicker for better visibility at the bottom */
  background-color: #4DF991; /* Flash Green */
  margin-left: 8px;
  animation: blink 1s step-end infinite;
  vertical-align: baseline; /* Ensure it sits exactly on the text baseline */
  box-shadow: 0 0 15px rgba(77, 249, 145, 0.9); /* Strong glow in Flash Green */
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Narrative section refinements to match hypergraph style */
.hero-narrative {
  height: auto;
  min-height: clamp(620px, 82vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center; /* Center the container itself */
  text-align: left;
  position: relative;
  z-index: 10;
  padding-top: 120px; /* keep hero content clear of fixed nav */
  padding-bottom: clamp(2.5rem, 7vh, 4.5rem);
  box-sizing: border-box;
}

.hero-narrative .container {
  position: relative;
  z-index: 5;
  margin: 0 auto; /* Center within the viewport */
  width: 100%;
  max-width: 1200px; /* Match global container width */
  padding: 0 2rem; /* Match global container padding */
  padding-top: clamp(1.5rem, 5vh, 3rem);
}

.hero-narrative .hero-subtitle {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--hp-teal);
  margin-bottom: 1.5rem;
  font-weight: 700;
  opacity: 1;
  padding-left: 0;
}

.hero-narrative h1,
.hero-narrative .hero-lead {
  margin-left: 0;
}

.hero-narrative h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem) !important;
  line-height: 1.1;
  margin-bottom: 2rem;
  max-width: 900px; /* Keep title from stretching too wide */
  color: #ffffff !important;
}

.hero-narrative .hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: #ffffff !important;
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-narrative.hero-vertical-center {
  justify-content: center;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .hero-narrative {
    align-items: flex-start;
    text-align: left;
    padding: 0 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start; /* Align buttons to left on mobile too */
    gap: 1rem;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: left; /* Optional, but keep text left */
    padding-left: 1.5rem;
  }

  .hero-narrative h1 {
    font-size: 2.2rem !important;
    line-height: 1.2;
  }
}


.home-palette-dark .solution-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-palette-dark .showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 8rem;
}

@media (max-width: 992px) {
  .home-palette-dark .showcase-block {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    margin-bottom: 4rem;
  }
}

.home-palette-dark .showcase-visual img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(0, 229, 212, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}


.home-palette-dark .software-block {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 3rem;
  border-radius: 24px;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .home-palette-dark .software-block {
    flex-direction: column;
    padding: 1.5rem;
  }
}


/* ========================================

/* ========================================
   REFINED DARK THEME - Midnight Navy & Cyan
   ======================================== */

.home-palette-dark {
  --hp-teal: #00E5D4;
  --hp-sky-blue: #00A3FF;
  --hp-navy: #020617; 
  --hp-navy-light: #0f172a; 
  --hp-white: #ffffff;
  --hp-text: #ffffff; /* Bright white text */
  --hp-text-muted: rgba(255, 255, 255, 0.85); /* Bright muted text */
  --hp-gradient: linear-gradient(135deg, #33FFE8 0%, #00A3FF 100%); 
  
  background-color: var(--hp-navy) !important;
  color: var(--hp-text) !important;
}

.home-palette-dark header {
  background: rgba(2, 6, 23, 0.9) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 229, 212, 0.1);
}


.home-palette-dark h1,
.home-palette-dark h2,
.home-palette-dark h3,
.home-palette-dark .cyan-heading {
  background: var(--hp-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.home-palette-dark .section-tag {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-palette-dark .section-tag i,
.home-palette-dark .section-tag svg {
  color: var(--hp-teal);
}

/* Structural Styles duplication for Dark Theme to preserve layout */
/* Home Page Showcase Blocks */
.home-palette-dark .showcase-block {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr !important; /* 60% Text, 40% Image */
  gap: 4rem !important;
  align-items: center !important;
  margin-bottom: 8rem !important;
}

.home-palette-dark .showcase-visual {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  border: 1px solid rgba(0, 229, 212, 0.2) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important; /* Force rectangular shape */
}

.home-palette-dark .showcase-visual img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 992px) {
  .home-palette-dark .showcase-block {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    text-align: center !important;
  }

  .home-palette-dark .showcase-visual {
    width: 100% !important;
  }
}

/* The specific zoom for images (Home & Software) */
.home-palette-dark .showcase-visual img.software-img-zoom-tl,
.home-palette-dark .visual-placeholder img.software-img-zoom-tl {
  width: 110% !important; 
  height: 110% !important;
  object-position: left top !important; 
  object-fit: cover !important; 
}

/* Extra zoom out for specific cases */
.home-palette-dark .visual-placeholder img.software-img-zoom-out-extra {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: left top !important;
}

/* Reverting software-block to standard to fix Software page */
.home-palette-dark .software-block {
  display: flex !important;
  flex-direction: row !important;
  gap: 4rem !important;
  align-items: center !important; /* Changed from stretch to center */
  background: #0f172a !important;
  border: 1px solid rgba(0, 229, 212, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  padding: 3rem !important;
  border-radius: 24px !important;
  margin-bottom: 4rem !important;
  min-height: 450px !important; 
}

.home-palette-dark .software-block.reverse {
  flex-direction: row-reverse !important;
}

@media (max-width: 992px) {
  .home-palette-dark .software-block,
  .home-palette-dark .software-block.reverse {
    flex-direction: column !important;
    padding: 2rem 1.5rem !important;
    min-height: auto !important;
    gap: 2rem !important;
    align-items: stretch !important; /* Back to stretch for mobile stacking */
  }

  .home-palette-dark .software-visual {
    width: 100% !important;
    flex: none !important;
    min-height: 250px !important;
  }
  
  .home-palette-dark .software-content {
    width: 100% !important;
    flex: none !important;
    text-align: left !important;
    order: -1 !important; /* Ensure text always comes first on mobile */
  }
}

.home-palette-dark .software-content {
  flex: 6 !important; /* 60% distribution */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* Center text vertically */
}

.home-palette-dark .software-visual {
  flex: 4 !important; /* 40% distribution */
  display: flex !important;
  align-items: center !important; /* Center placeholder vertically within visual column */
}

.home-palette-dark .visual-placeholder {
  width: 100% !important;
  min-height: 350px !important; /* Ensure a minimum visibility */
  background: rgba(15, 23, 42, 0.8) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(0, 229, 212, 0.2) !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  /* flex: 1 !important; REMOVED to allow auto-height centering */
}

.home-palette-dark .software-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important; 
  height: 100% !important; 
  object-fit: cover !important;
  display: block !important;
}

.home-palette-dark .feature-list li span,
.home-palette-dark .card p,
.home-palette-dark .section p {
  color: #cbd5e1 !important;
}

.home-palette-dark .btn-primary {
  background: var(--hp-gradient) !important;
  color: #020617 !important;
}

.home-palette-dark .btn-primary:hover {
  background: var(--hp-white) !important;
  color: var(--hp-navy) !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.home-palette-dark .btn-outline {
  background-image: var(--hp-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  border: 2px solid transparent !important;
}

.home-palette-dark .btn-outline:hover {
  background: var(--hp-gradient) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--hp-navy) !important;
  color: var(--hp-navy) !important;
}

.home-palette-dark .btn-outline::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  padding: 2px;
  background: var(--hp-gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.home-palette-dark .cta-gradient-block {
  background: var(--hp-gradient) !important;
  padding: 5rem 3rem;
  border-radius: 32px;
  text-align: center;
}

.home-palette-dark .cta-gradient-block h2 {
  -webkit-text-fill-color: var(--hp-navy) !important;
  color: var(--hp-navy) !important;
  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  font-size: clamp(2.2rem, 5vw, 3rem) !important;
  font-weight: 800 !important;
  margin-bottom: 1.5rem !important;
}

.home-palette-dark .cta-gradient-block p {
  -webkit-text-fill-color: var(--hp-navy) !important;
  color: var(--hp-navy) !important;
  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  font-size: 1.35rem !important;
  font-weight: 500 !important;
  max-width: 700px !important;
  margin: 0 auto 2.5rem !important;
  opacity: 0.9 !important;
}

.home-palette-dark .cta-gradient-block .btn-primary {
  background: var(--hp-navy) !important;
  color: var(--hp-white) !important;
  font-weight: 900 !important;
}

.home-palette-dark .cta-gradient-block .btn-primary:hover {
  background: #1e293b !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.home-palette-dark .logo-slider {
  background: #071224;
  border-color: rgba(0, 229, 212, 0.1);
}

.grid-background-dark {
  background-color: #020617 !important;
  background-image:
    radial-gradient(circle, rgba(0, 229, 212, 0.12) 1.5px, transparent 1.5px),
    linear-gradient(to right, rgba(0, 229, 212, 0.04) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(0, 229, 212, 0.04) 1.5px, transparent 1.5px),
    radial-gradient(circle at center, transparent 0%, rgba(2, 6, 23, 0.5) 100%) !important;
}

/* Blog & Other Section Overrides */
.home-palette-dark .blog-controls {
  background: transparent !important;
  border: none !important;
}

.home-palette-dark .search-wrapper {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(0, 229, 212, 0.2) !important;
  backdrop-filter: blur(8px);
}

.home-palette-dark .search-wrapper input {
  color: #ffffff !important;
}

.home-palette-dark .search-wrapper i,
.home-palette-dark .search-wrapper svg {
  color: var(--hp-teal) !important;
}

.home-palette-dark .category-pill {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(0, 229, 212, 0.1) !important;
  color: #cbd5e1 !important;
  backdrop-filter: blur(8px);
}

.home-palette-dark .category-pill:hover {
  border-color: var(--hp-teal) !important;
  color: #ffffff !important;
}

.home-palette-dark .category-pill.active {
  background: var(--hp-gradient) !important;
  color: var(--hp-navy) !important;
  border-color: transparent !important;
  font-weight: 700 !important;
}

.home-palette-dark .custom-form .form-control,
.home-palette-dark .job-card,
.home-palette-dark .profile-bio {
  background: #0f172a !important;
  border: 1px solid rgba(0, 229, 212, 0.2) !important;
}


/* Team Cards Dark Theme Override */
.home-palette-dark .team-card {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(0, 229, 212, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.home-palette-dark .team-card:hover {
  border-color: var(--hp-teal) !important;
  transform: translateY(-5px);
}

.home-palette-dark .team-card h3 {
  background: var(--hp-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-weight: 800;
}

.home-palette-dark .team-card p {
  color: #cbd5e1 !important;
  opacity: 0.9;
}

.home-palette-dark .team-photo {
  border: 3px solid rgba(0, 229, 212, 0.2) !important;
}

.home-palette-dark .team-linkedin-icon img {
  filter: brightness(0) invert(1) opacity(0.7) !important;
}

.home-palette-dark .team-linkedin-icon:hover img {
  filter: brightness(0) invert(1) opacity(1) !important;
}


/* Value Cards Dark Theme Override */
.home-palette-dark .value-card {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(0, 229, 212, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.home-palette-dark .value-card:hover {
  border-color: var(--hp-teal) !important;
}

.home-palette-dark .value-card h3 {
  background: var(--hp-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.home-palette-dark .value-card li {
  color: #cbd5e1 !important;
}

.home-palette-dark .value-card li::before {
  color: var(--hp-teal) !important;
}

.home-palette-dark .value-icon i,
.home-palette-dark .value-icon svg {
  color: var(--hp-teal) !important;
}


/* Team Member Profile Page Dark Theme Overrides */
.home-palette-dark .profile-container {
  color: var(--hp-text) !important;
}

.home-palette-dark .profile-name {
  background: var(--hp-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.home-palette-dark .profile-role {
  color: var(--hp-teal) !important;
}

.home-palette-dark .profile-bio {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(0, 229, 212, 0.1) !important;
  color: #cbd5e1 !important; /* Brighter slate for contrast */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.home-palette-dark .back-link {
  color: var(--hp-teal) !important;
}

.home-palette-dark .back-link:hover {
  color: var(--hp-white) !important;
  background: var(--hp-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}



/* Base Form Styling */
#application-section .card {
  background: #0b1220 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
}

.contact-section .card {
  background: #ffffff !important;
  color: #1A365D !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

#application-section h2,
#application-section h4 {
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.contact-section h2,
.contact-section h4 {
  color: #1A365D !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

#application-section .cyan-heading,
.contact-section .cyan-heading {
  background: var(--hp-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}


/* Guaranteed HubSpot Form Target Width */
#hs-form-target, 
#hs-form-target > div,
.hs-form-iframe,
iframe[id^="hs-form-iframe"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  display: block !important;
  border: none !important;
}


/* Fix value-card-header alignment in dark theme */
.home-palette-dark .value-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
}


/* Blog Post Dark Theme Fixes */
.home-palette-dark .post-meta {
  color: var(--hp-text-muted) !important;
}

.home-palette-dark .post-meta .category {
  background: rgba(0, 229, 212, 0.1) !important;
  color: var(--hp-teal) !important;
  border: 1px solid rgba(0, 229, 212, 0.3) !important;
}

.home-palette-dark .post-meta .author strong {
  color: var(--hp-white) !important;
}

.home-palette-dark .post-meta a {
  color: var(--hp-teal) !important;
}

.home-palette-dark .blog-date {
  color: var(--hp-text-muted) !important;
}


/* CONTACT PAGE REDESIGN - DARK THEME ELEGANCE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-refined {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-method {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-method .method-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 229, 212, 0.1);
  border: 1px solid rgba(0, 229, 212, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-teal);
  flex-shrink: 0;
}

.contact-method h4 {
  color: var(--hp-white);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-method p, 
.contact-method a {
  color: var(--hp-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-method a:hover {
  color: var(--hp-teal);
}

.contact-card-dark {
  background: #0b1220 !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 3.5rem !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4) !important;
}

.contact-card-dark .form-label {
  color: var(--hp-white) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 0.8rem !important;
  display: block !important;
}

.contact-card-dark .form-input {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.2) !important;
  color: #0b1220 !important;
  padding: 1rem 1.2rem !important;
  border-radius: 12px !important;
  width: 100% !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

.contact-card-dark .form-input:focus {
  border-color: var(--hp-teal) !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(0, 229, 212, 0.1) !important;
}

.contact-card-dark .form-input::placeholder {
  color: rgba(15, 23, 42, 0.45) !important;
}

.contact-card-dark #submit-btn {
  width: auto !important;
  min-width: 140px !important;
  align-self: flex-end !important;
  display: inline-flex !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #00f3ff 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: none !important;
  padding: 12px 26px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 15px !important;
  margin-top: 12px !important;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25) !important;
}

.contact-card-dark #submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(59, 130, 246, 0.35) !important;
}

.contact-card-dark .form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-card-dark .form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .contact-card-dark {
    padding: 2rem !important;
  }
}


/* Fix for Contact Form Layout - Force Vertical Stacking */
.contact-card-dark {
  display: block !important;
}

.contact-card-dark .form-input,
.contact-card-dark .form-group,
.contact-card-dark form {
  width: 100% !important;
  display: block !important;
}

.contact-card-dark .form-row {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
}

/* Ensure the header takes full width and doesn't float left */
.contact-card-dark .cyan-heading {
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 3rem !important;
}


/* ================================
   Simplified Site Navigation
   ================================ */
body.home-palette {
  --nav-bg: #ffffff;
  --nav-text: #006064;
  --nav-border: rgba(0, 0, 0, 0.05);
  --nav-dropdown-bg: #ffffff;
  --nav-dropdown-border: rgba(0, 229, 212, 0.2);
  --nav-hover-accent: var(--hp-teal);
}

body.home-palette-dark {
  --nav-bg: rgba(2, 6, 23, 0.9);
  --nav-text: #f8fafc;
  --nav-border: rgba(0, 229, 212, 0.1);
  --nav-dropdown-bg: #0f172a;
  --nav-dropdown-border: rgba(0, 229, 212, 0.2);
  --nav-hover-accent: var(--hp-teal);
}

/* Hard heading override: Ubuntu bold everywhere */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .hero h1,
body .hero-narrative h1,
body .section h2,
body .section h3,
body .cta-gradient-block h2 {
  font-family: 'UbuntuLocal', sans-serif !important;
  font-weight: 700 !important;
  font-synthesis: none !important;
}


/* ========================================
   GLOSSARY PAGE - Modern Clean Design
   ======================================== */

/* Hero Section */
.glossary-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, 
    rgba(2, 6, 23, 0.95) 0%, 
    rgba(15, 23, 42, 0.9) 50%,
    rgba(2, 6, 23, 0.98) 100%);
  position: relative;
  overflow: hidden;
}

.glossary-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 229, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.glossary-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.glossary-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.glossary-hero h1.gradient-text {
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glossary-hero-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Search Container */
.glossary-search-container {
  max-width: 560px;
  margin: 0 auto;
}

.glossary-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 229, 212, 0.2);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.glossary-search-box:focus-within {
  border-color: var(--hp-teal);
  box-shadow: 0 0 0 4px rgba(0, 229, 212, 0.1);
  background: rgba(15, 23, 42, 0.95);
}

.glossary-search-box i {
  color: #64748b;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.glossary-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.glossary-search-box input::placeholder {
  color: #64748b;
}

.search-shortcut {
  background: rgba(100, 116, 139, 0.3);
  color: #94a3b8;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: inherit;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* A-Z Navigation */
.glossary-nav-section {
  padding: 1.5rem 0;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(0, 229, 212, 0.1);
  border-bottom: 1px solid rgba(0, 229, 212, 0.1);
  position: sticky;
  top: 80px;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.glossary-alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
}

.alphabet-letter {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alphabet-letter:hover:not(.disabled) {
  border-color: var(--hp-teal);
  color: var(--hp-teal);
  background: rgba(0, 229, 212, 0.1);
}

.alphabet-letter.active {
  background: var(--hp-gradient);
  border-color: transparent;
  color: #0f172a;
}

.alphabet-letter.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Terms Section */
.glossary-terms-section {
  padding: 3rem 0 5rem;
  min-height: 50vh;
}

.glossary-results-info {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.glossary-results-info span {
  color: #64748b;
  font-size: 0.9rem;
}

/* Letter Sections */
.glossary-letter-section {
  margin-bottom: 3rem;
}

.glossary-letter-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.letter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--hp-gradient);
  border-radius: 12px;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Terms Grid */
.glossary-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .glossary-terms-grid {
    grid-template-columns: 1fr;
  }
}

/* Term Card */
.glossary-term-card {
  display: block;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.glossary-term-card:hover {
  border-color: var(--hp-teal);
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 229, 212, 0.1);
}

.term-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.term-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.term-description {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.term-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.term-category-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--hp-teal);
  background: rgba(0, 229, 212, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 212, 0.2);
}

.term-arrow {
  color: #64748b;
  transition: all 0.3s ease;
}

.term-arrow i {
  width: 18px;
  height: 18px;
}

.glossary-term-card:hover .term-arrow {
  color: var(--hp-teal);
  transform: translateX(4px);
}

/* Loading State */
.glossary-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  gap: 1rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 229, 212, 0.2);
  border-top-color: var(--hp-teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.glossary-loading p {
  color: #64748b;
}

/* No Results */
.glossary-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  text-align: center;
  gap: 1rem;
}

.glossary-no-results i {
  width: 64px;
  height: 64px;
  color: #475569;
}

.glossary-no-results h3 {
  color: #fff;
  font-size: 1.25rem;
}

.glossary-no-results p {
  color: #64748b;
  margin-bottom: 1rem;
}

/* Glossary Term Detail Page */
.glossary-term-hero {
  padding: calc(4rem + 80px) 0 2rem;
  background: linear-gradient(180deg, 
    rgba(2, 6, 23, 0.95) 0%, 
    rgba(15, 23, 42, 0.9) 100%);
}

.glossary-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.glossary-breadcrumb a {
  color: var(--hp-teal);
  text-decoration: none;
  transition: opacity 0.2s;
}

.glossary-breadcrumb a:hover {
  opacity: 0.8;
}

.glossary-breadcrumb span {
  color: #64748b;
}

.glossary-term-detail {
  padding: 3rem 0 5rem;
}

.glossary-term-content {
  max-width: 800px;
}

.glossary-term-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--hp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glossary-term-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.glossary-definition {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 3rem;
}

.glossary-keywords {
  margin-bottom: 3rem;
}

.glossary-keywords h3 {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-tag {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.explore-cta {
  margin: 2rem 0 2.5rem;
}

.related-terms {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 16px;
  padding: 2rem;
}

.related-terms h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.related-terms-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.related-term-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 229, 212, 0.05);
  border: 1px solid rgba(0, 229, 212, 0.1);
  border-radius: 10px;
  color: var(--hp-teal);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.related-term-link:hover {
  background: rgba(0, 229, 212, 0.1);
  border-color: var(--hp-teal);
}

.related-term-link i {
  width: 16px;
  height: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .glossary-hero {
    padding: 4rem 0 3rem;
  }
  
  .glossary-hero-subtitle {
    font-size: 1rem;
  }
  
  .glossary-nav-section {
    top: 60px;
    padding: 1rem 0;
  }
  
  .alphabet-letter {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.75rem;
  }
  
  .letter-badge {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .glossary-term-card {
    padding: 1.25rem;
  }
  
  .search-shortcut {
    display: none;
  }
}

/* Glossary Controls - Updated Layout */
.glossary-controls {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 1rem;
}

.glossary-search-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.glossary-language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.3);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.glossary-language-toggle .lang-toggle {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
}

.glossary-language-toggle .lang-toggle.active {
  color: var(--hp-teal);
}

.glossary-language-toggle .lang-separator {
  color: #64748b;
}

.glossary-controls .glossary-search-box {
  max-width: 500px;
}

.glossary-controls .glossary-alphabet-nav {
  justify-content: flex-start;
}
