/* Reset default margins and padding for consistency across browsers */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Custom Properties for Theme System */
:root {
  /* Purple Theme Colors - Darker for Better Contrast */
  --purple-50: #f4f0ff;
  --purple-100: #e8d5ff;
  --purple-200: #d4b8ff;
  --purple-300: #b794f6;
  --purple-400: #9f7aea;
  --purple-500: #805ad5;
  --purple-600: #6b46c1;
  --purple-700: #553c9a;
  --purple-800: #44337a;
  --purple-900: #322659;

  /* Brown Theme Colors - Darker for Better Contrast */
  --brown-50: #f7f3f0;
  --brown-100: #e7ddd7;
  --brown-200: #d3c4b6;
  --brown-300: #b8a082;
  --brown-400: #a0845c;
  --brown-500: #8b6914;
  --brown-600: #744c00;
  --brown-700: #5d3a00;
  --brown-800: #4a2c00;
  --brown-900: #3d2300;

  /* Orange Accent Colors - Enhanced for Required Fields */
  --orange-light: #fbb040;
  --orange-main: #f56500;
  --orange-dark: #c53030;
  --orange-required: #b91c1c;

  /* Default Theme Variables */
  --primary-50: var(--purple-50);
  --primary-100: var(--purple-100);
  --primary-200: var(--purple-200);
  --primary-300: var(--purple-300);
  --primary-400: var(--purple-400);
  --primary-500: var(--purple-500);
  --primary-600: var(--purple-600);
  --primary-700: var(--purple-700);
  --primary-800: var(--purple-800);
  --primary-900: var(--purple-900);

  /* Font Size Variables */
  --base-font-size: 16px;
  --font-scale: 1;
}

/* Brown Theme Override */
[data-theme="brown"] {
  --primary-50: var(--brown-50);
  --primary-100: var(--brown-100);
  --primary-200: var(--brown-200);
  --primary-300: var(--brown-300);
  --primary-400: var(--brown-400);
  --primary-500: var(--brown-500);
  --primary-600: var(--brown-600);
  --primary-700: var(--brown-700);
  --primary-800: var(--brown-800);
  --primary-900: var(--brown-900);
}

html {
  font-size: calc(var(--base-font-size) * var(--font-scale));
}

/* Theme Controls - Responsive Fixed Position */
.theme-controls {
  position: fixed;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Ensure theme controls don't interfere with content */
@media (max-width: 768px) {
  .theme-controls {
    left: 8px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .theme-controls {
    left: 5px;
    top: 40%;
    gap: 8px;
  }
}

/* Theme Switcher Button */
.theme-switcher {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--primary-600);
  background: linear-gradient(
    135deg,
    var(--primary-500) 0%,
    var(--primary-700) 100%
  );
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-switcher:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Font Size Control */
.font-control {
  background: linear-gradient(
    135deg,
    var(--orange-main) 0%,
    var(--orange-dark) 100%
  );
  border: 3px solid var(--orange-dark);
  border-radius: 25px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 50px;
  height: 50px;
}

.font-control:hover,
.font-control.expanded {
  width: 60px;
  height: 180px;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.font-control-content {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.font-control:hover .font-control-content,
.font-control.expanded .font-control-content {
  opacity: 1;
  visibility: visible;
}

.font-control-icon {
  color: white;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.font-control:hover .font-control-icon,
.font-control.expanded .font-control-icon {
  opacity: 0;
  visibility: hidden;
}

.font-size-display {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.font-size-large {
  font-size: 18px;
}

.font-size-small {
  font-size: 10px;
}

.font-size-value {
  color: white;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 5px;
  text-align: center;
}

.font-slider {
  writing-mode: bt-lr; /* IE */
  writing-mode: vertical-lr; /* Standard */
  width: 20px;
  height: 80px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

.font-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.font-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@font-face {
  font-family: "Lexend Deca";
  src: url("lexend-deca/LexendDecaRegular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Set a default font and background for web pages */
body {
  font-family: "Lexend Deca", sans-serif;
  background-color: var(--primary-50);
  color: var(--primary-900);
  font-size: 1rem; /* Base font size */
  line-height: 1.5;
  scroll-behavior: smooth;
  transition: all 0.3s ease;
}

/* Full height sections */
.section-fullheight {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Infinity Scroll Navigation - Vertical Stack */
.dial-nav {
  position: fixed;
  top: 50%;
  right: 2em;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  user-select: none;
}

.dial-center {
  width: 4px;
  height: 120px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--primary-300) 20%,
    var(--primary-600) 50%,
    var(--primary-300) 80%,
    transparent 100%
  );
  border-radius: 2px;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.dial-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--orange-main);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--orange-main);
  transition: all 0.3s ease;
  cursor: grab;
  z-index: 1001;
}

.dial-indicator:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 20px var(--orange-main);
}

.dial-indicator:active,
.dial-indicator.dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 25px var(--orange-main);
  transition: none;
}

.dial-item {
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.5em;
  border-radius: 0.5em;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 120px;
}

.dial-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.dial-item.above {
  opacity: 0.4;
  transform: scale(0.9) translateY(-5px);
}

.dial-item.below {
  opacity: 0.4;
  transform: scale(0.9) translateY(5px);
}

.dial-item.active {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--orange-main);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dial-dot {
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.dial-item.above .dial-dot,
.dial-item.below .dial-dot {
  background: radial-gradient(
    circle,
    var(--primary-500) 0%,
    var(--primary-700) 100%
  );
  border: 2px solid var(--primary-400);
  opacity: 0.6;
}

.dial-item.active .dial-dot {
  background: radial-gradient(
    circle,
    var(--orange-main) 0%,
    var(--orange-dark) 100%
  );
  border: 2px solid var(--orange-dark);
  box-shadow: 0 0 15px var(--orange-main);
}

.dial-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dial-item.above .dial-label,
.dial-item.below .dial-label {
  color: var(--primary-300);
  opacity: 0.7;
}

.dial-item.active .dial-label {
  color: var(--orange-light);
  text-shadow: 0 0 8px var(--orange-light);
  font-weight: 700;
}

.dial-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.dial-item:hover .dial-dot {
  transform: scale(1.2);
}

.dial-item:hover .dial-label {
  color: var(--primary-100);
}

/* Infinity scroll animation */
@keyframes infinity-flow {
  0%,
  100% {
    background: linear-gradient(
      180deg,
      transparent 0%,
      var(--primary-300) 20%,
      var(--primary-600) 50%,
      var(--primary-300) 80%,
      transparent 100%
    );
  }
  50% {
    background: linear-gradient(
      180deg,
      transparent 0%,
      var(--orange-light) 20%,
      var(--orange-main) 50%,
      var(--orange-light) 80%,
      transparent 100%
    );
  }
}

.dial-center:hover {
  animation: infinity-flow 2s infinite;
}

/* Back to Top Button - Enhanced with Theme Colors */
.back-to-top {
  position: fixed;
  bottom: 2em;
  right: 2em;
  background: linear-gradient(
    135deg,
    var(--primary-700) 0%,
    var(--primary-800) 100%
  );
  color: var(--primary-50);
  border: 0.125em solid var(--primary-600);
  width: 3em;
  height: 3em;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(
    135deg,
    var(--orange-main) 0%,
    var(--orange-dark) 100%
  );
  border-color: var(--orange-dark);
  transform: translateY(-0.25em);
  box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.4);
}

/* Enhanced Button Styles with Theme Colors */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-600) 0%,
    var(--primary-800) 100%
  );
  border: 0.125em solid var(--primary-700);
  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-50);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--orange-main) 0%,
    var(--orange-dark) 100%
  );
  border-color: var(--orange-dark);
  transform: translateY(-0.125em);
  box-shadow: 0 0.375em 0.75em rgba(0, 0, 0, 0.3);
  color: white;
}

.btn-secondary {
  background: linear-gradient(
    135deg,
    var(--primary-100) 0%,
    var(--primary-200) 100%
  );
  border: 0.125em solid var(--primary-300);
  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-800);
}

.btn-secondary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-200) 0%,
    var(--primary-300) 100%
  );
  border-color: var(--primary-400);
  transform: translateY(-0.125em);
  box-shadow: 0 0.375em 0.75em rgba(0, 0, 0, 0.2);
  color: var(--primary-900);
}

/* Header styling for logo and navigation, used on all web pages */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25em;
  background: linear-gradient(
    135deg,
    var(--primary-50) 0%,
    var(--primary-100) 100%
  );
  box-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--primary-200);
  position: relative;
}

/* Logo container */
.logo-container {
  flex: 0 0 auto;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--primary-700);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--orange-main);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--orange-main);
}

/* Navigation container */
.nav {
  transition: all 0.3s ease;
}

/* Navigation styles */
.navbar {
  list-style: none;
  display: flex;
  gap: 1.25em;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: var(--primary-800);
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 0.75em;
  border-radius: 0.25em;
  transition: all 0.3s ease;
  display: block;
}

.navbar a:hover {
  color: var(--orange-dark);
  background-color: var(--primary-100);
  transform: translateY(-2px);
}

/* Active navigation state */
.navbar a.active {
  color: var(--primary-50);
  background: linear-gradient(
    135deg,
    var(--primary-600) 0%,
    var(--primary-700) 100%
  );
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar a.active:hover {
  background: linear-gradient(
    135deg,
    var(--orange-main) 0%,
    var(--orange-dark) 100%
  );
  color: white;
}

/* Logo image sizing for web pages */
.logo {
  max-width: 9.375em;
  height: auto;
}

/* Breadcrumb navigation styling for About, Contact, and Case Studies pages */
.breadcrumb {
  padding: 0.625em 1.25em;
  background: linear-gradient(
    135deg,
    var(--primary-100) 0%,
    var(--primary-200) 100%
  );
  font-size: 0.9rem;
  border-bottom: 1px solid var(--primary-300);
}

/* Breadcrumb link styling */
.breadcrumb a {
  color: var(--primary-700);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Breadcrumb link hover effect */
.breadcrumb a:hover {
  color: var(--orange-dark);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb separator spacing */
.breadcrumb span {
  color: var(--primary-600);
  margin-left: 0.3125em;
  font-weight: 500;
}

/* Hero section styling for homepage */
.hero {
  text-align: center;
  padding: 3.125em 1.25em;
  background: linear-gradient(
    135deg,
    var(--primary-100) 0%,
    var(--primary-200) 50%,
    var(--primary-100) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 20%,
      var(--orange-light) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 70% 80%, var(--primary-200) 0%, transparent 50%);
  opacity: 0.3;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* Hero headline styling */
.hero-headline {
  font-size: 2.5rem;
  margin-bottom: 0.625em;
  color: var(--primary-900);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

/* Hero tagline styling */
.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 1.25em;
  color: var(--primary-700);
  font-weight: 500;
}

/* Hero description styling */
.hero-description {
  font-size: 1.1rem;
  max-width: 37.5em;
  margin: 0 auto 1.875em;
  color: var(--primary-600);
  line-height: 1.6;
}

/* CTA buttons container for homepage */
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.25em;
  flex-wrap: wrap;
}

/* General button styling for CTAs across web pages */
.btn {
  padding: 0.75em 1.5em;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0.5em;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 140px;
  text-align: center;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Primary button styling for web pages */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-600) 0%,
    var(--primary-800) 100%
  );
  color: var(--primary-50);
  border: 2px solid var(--primary-700);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--orange-main) 0%,
    var(--orange-dark) 100%
  );
  border-color: var(--orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: white;
}

/* Secondary button styling for web pages */
.btn-secondary {
  background: linear-gradient(
    135deg,
    var(--primary-100) 0%,
    var(--primary-200) 100%
  );
  color: var(--primary-800);
  border: 2px solid var(--primary-400);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-200) 0%,
    var(--primary-300) 100%
  );
  border-color: var(--primary-500);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--primary-900);
}

/* Services section styling for homepage */
.services {
  padding: 3.125em 1.25em;
  text-align: center;
  background: var(--primary-50);
}

/* Services heading styling */
.services-heading {
  font-size: 2rem;
  margin-bottom: 1.875em;
  color: var(--primary-900);
  font-weight: 700;
}

/* Services container using flexbox for layout */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual service item styling */
.service-item {
  padding: 2em;
  background: linear-gradient(
    135deg,
    var(--primary-100) 0%,
    var(--primary-200) 100%
  );
  border-radius: 1em;
  border: 2px solid var(--primary-300);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-main), var(--orange-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-400);
  background: linear-gradient(
    135deg,
    var(--primary-200) 0%,
    var(--primary-300) 100%
  );
}

/* Service title styling */
.service-title {
  font-size: 1.5rem;
  margin-bottom: 0.625em;
  color: var(--primary-800);
  font-weight: 600;
}

/* Service description styling */
.service-description {
  font-size: 1rem;
  color: var(--primary-600);
  line-height: 1.6;
}

/* Company Story section styling for About page */
.company-story {
  padding: 3.125em 1.25em;
  text-align: center;
  background-color: #ffffff; /* White background for clean look */
}

/* Story heading styling */
.story-heading {
  font-size: 2rem;
  margin-bottom: 1.25em;
  color: #000000;
}

/* Story content paragraphs */
.story-content {
  font-size: 1.1rem;
  max-width: 50em;
  margin: 0 auto 0.9375em;
  color: #555555; /* Medium gray for readability */
}

/* Mission section styling for About page */
.mission {
  padding: 3.125em 1.25em;
  text-align: center;
  background-color: #f5f5f5; /* Light gray for contrast */
}

/* Mission heading styling */
.mission-heading {
  font-size: 2rem;
  margin-bottom: 1.25em;
  color: #000000;
}

/* Mission content styling */
.mission-content {
  font-size: 1.2rem;
  max-width: 43.75em;
  margin: 0 auto;
  color: #333333; /* Dark gray for emphasis */
}

/* Team section styling for About page */
.team {
  padding: 3.125em 1.25em;
  text-align: center;
}

/* Team heading styling */
.team-heading {
  font-size: 2rem;
  margin-bottom: 1.875em;
  color: #000000;
}

/* Team container using CSS Grid for layout */
.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual team member styling */
.team-member {
  flex: 1;
  min-width: 15.625em;
  max-width: 18.75em;
  padding: 1.25em;
  background-color: #e5e5e5; /* Light gray background, consistent with services */
  border-radius: 0.3125em;
}

/* Team member name styling */
.member-name {
  font-size: 1.5rem;
  margin-bottom: 0.625em;
  color: #000000;
}

/* Team member title, background, experience, and bio styling */
.member-title,
.member-background,
.member-experience,
.member-bio {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 0.5em;
}

/* Team member email styling */
.member-email {
  font-size: 0.9rem;
  margin-bottom: 0.5em;
}

/* Team member email link styling */
.member-email a {
  color: #000000; /* Black for links */
  text-decoration: none;
}

/* Team member email link hover effect */
.member-email a:hover {
  color: #555555; /* Medium gray on hover */
}

/* Stats section styling, used on About and Homepage */
.stats {
  padding: 3.125em 1.25em;
  background: linear-gradient(
    135deg,
    var(--primary-800) 0%,
    var(--primary-900) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      var(--orange-main) 0%,
      transparent 70%
    ),
    radial-gradient(circle at 80% 20%, var(--primary-600) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

.stats > * {
  position: relative;
  z-index: 1;
}

/* Stats heading styling for About page */
.stats-heading {
  font-size: 2rem;
  margin-bottom: 1.875em;
  color: var(--primary-50);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Stats container using flexbox */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual stat item styling */
.stat-item {
  padding: 2em 1.5em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-main), var(--orange-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Stat number styling for emphasis */
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--orange-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: block;
  margin-bottom: 0.5em;
  line-height: 1;
}

/* Stat description styling */
.stat-description {
  font-size: 1.1rem;
  color: var(--primary-100);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Values section styling for About page */
.values {
  padding: 3.125em 1.25em;
  text-align: center;
  background-color: #ffffff; /* White background for clean look */
}

/* Values heading styling */
.values-heading {
  font-size: 2rem;
  margin-bottom: 1.875em;
  color: #000000;
}

/* Values container using CSS Grid for layout */
.values-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
}

/* Individual value item styling */
.value-item {
  flex: 1;
  min-width: 12.5em;
  max-width: 15.625em;
  padding: 1.25em;
  background-color: #e5e5e5; /* Light gray background, consistent with other items */
  border-radius: 0.3125em;
}

/* Value title styling */
.value-title {
  font-size: 1.5rem;
  margin-bottom: 0.625em;
  color: #000000;
}

/* Value description styling */
.value-description {
  font-size: 1rem;
  color: #333333;
}

/* Page Header section styling for Contact and Case Studies pages */
.page-header {
  text-align: center;
  padding: 3.125em 1.25em;
  background-color: #f5f5f5; /* Light gray background, consistent with hero */
}

/* Page header heading styling */
.header-heading {
  font-size: 2.5rem;
  margin-bottom: 0.625em;
  color: #000000;
}

/* Page header subheading styling */
.header-subheading {
  font-size: 1.5rem;
  margin-bottom: 1.25em;
  color: #333333; /* Dark gray for subtle contrast */
}

/* Page header description styling */
.header-description {
  font-size: 1.1rem;
  max-width: 37.5em;
  margin: 0 auto;
  color: #555555; /* Medium gray for readability */
}

/* Contact Information section styling for Contact page */
.contact-info {
  padding: 3.125em 1.25em;
  text-align: center;
  background-color: #ffffff; /* White background for clean look */
}

/* Contact heading styling for company details */
.contact-heading {
  font-size: 2rem;
  margin-bottom: 1.25em;
  color: #000000;
}

/* Contact subheading styling for phone, email, hours, and emergency sections */
.contact-subheading {
  font-size: 1.5rem;
  margin-bottom: 0.625em;
  color: #000000;
}

/* Contact details, phone, email, hours, and emergency containers */
.contact-details,
.contact-phone,
.contact-email,
.contact-hours,
.contact-emergency {
  margin-bottom: 1.25em;
}

/* Contact info link styling */
.contact-phone a,
.contact-email a {
  color: #000000; /* Black for links */
  text-decoration: none;
}

/* Contact info link hover effect */
.contact-phone a:hover,
.contact-email a:hover {
  color: #555555; /* Medium gray on hover */
}

/* Contact Form section styling */
.contact-form {
  padding: 3.125em 1.25em;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-50) 0%,
    var(--primary-100) 100%
  );
  position: relative;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      var(--orange-light) 0%,
      transparent 60%
    ),
    radial-gradient(circle at 80% 70%, var(--primary-200) 0%, transparent 60%);
  opacity: 0.3;
  z-index: 0;
}

.contact-form > * {
  position: relative;
  z-index: 1;
}

/* Form element styling */
.form {
  max-width: 55em;
  margin: 0 auto;
}

/* Fieldset styling for form sections */
.form-fieldset {
  margin-bottom: 2.5em;
  padding: 2.5em;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.2em;
  border: 2px solid var(--primary-200);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.form-fieldset::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-500),
    var(--orange-main),
    var(--primary-600)
  );
  border-radius: 1.2em 1.2em 0 0;
}

.form-fieldset:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-300);
  background: rgba(255, 255, 255, 0.98);
}

/* Form legend styling */
.form-legend {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 1em;
  text-align: center;
  position: relative;
  padding: 0 1em;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.5em;
  display: inline-block;
}

.form-legend::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-main), var(--primary-600));
  border-radius: 2px;
}

/* Form Grid System */
.form-grid {
  display: grid;
  gap: 1.5em;
  margin-bottom: 1.5em;
  align-items: start;
}

.form-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.form-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 1200px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Form group for each input/select/textarea */
.form-group {
  margin-bottom: 1.5em;
  text-align: left;
  position: relative;
}

.form-group-full {
  grid-column: 1 / -1;
  margin-top: 1em;
}

/* Form label styling */
.form-group label {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-700);
  margin-bottom: 0.5em;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Required field indicator */
.required {
  color: var(--orange-required);
  font-weight: 900;
  font-size: 1.2em;
  text-shadow: 0 0 3px var(--orange-required);
  animation: pulse-required 2s infinite;
}

@keyframes pulse-required {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Input and textarea styling */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1em;
  font-size: 1rem;
  border: 2px solid var(--primary-300);
  border-radius: 0.75em;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-50) 100%);
  color: var(--primary-800);
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange-main);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.form-group input:required,
.form-group textarea:required,
.form-group select:required {
  border-left: 4px solid var(--orange-required);
}

.form-group input:required:focus,
.form-group textarea:required:focus,
.form-group select:required:focus {
  border-left: 4px solid var(--orange-main);
}

/* Textarea specific styling */
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Radio group styling */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  margin-top: 0.5em;
}

.radio-group label {
  display: flex;
  align-items: center;
  padding: 0.75em 1em;
  background: var(--primary-100);
  border: 2px solid var(--primary-200);
  border-radius: 0.75em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.radio-group label::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.radio-group label:hover::before {
  left: 100%;
}

.radio-group label:hover {
  background: var(--primary-200);
  border-color: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radio-group input[type="radio"]:checked + label {
  background: linear-gradient(
    135deg,
    var(--orange-light) 0%,
    var(--orange-main) 100%
  );
  border-color: var(--orange-dark);
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.3);
}

.radio-group input[type="radio"]:checked + label:hover {
  background: linear-gradient(
    135deg,
    var(--orange-main) 0%,
    var(--orange-dark) 100%
  );
}

/* Radio input and label styling */
.radio-group input[type="radio"] {
  margin-right: 0.5em;
  transform: scale(1.2);
}

/* Checkbox styling */
.form-group input[type="checkbox"] {
  margin-right: 0.5em;
  transform: scale(1.3);
  accent-color: var(--orange-main);
}

.form-group input[type="checkbox"] + label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5em;
  border-radius: 0.5em;
  transition: all 0.3s ease;
}

.form-group input[type="checkbox"] + label:hover {
  background: var(--primary-100);
}

/* Form actions container */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-top: 2em;
  flex-wrap: wrap;
}

.form-actions .btn {
  min-width: 180px;
  padding: 1em 2em;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Office Locations section styling */
.offices {
  padding: 3.125em 1.25em;
  text-align: center;
  background-color: #ffffff; /* White background */
}

/* Offices heading styling */
.offices-heading {
  font-size: 2rem;
  margin-bottom: 1.875em;
  color: #000000;
}

/* Offices container using CSS Grid */
.offices-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  max-width: 800px;
  margin: 0 auto;
}

/* Individual office item styling */
.office-item {
  flex: 1;
  min-width: 15.625em;
  max-width: 18.75em;
  padding: 1.25em;
  background-color: #e5e5e5; /* Light gray background, consistent with other items */
  border-radius: 0.3125em;
}

/* Office title styling */
.office-title {
  font-size: 1.5rem;
  margin-bottom: 0.625em;
  color: #000000;
}

/* Office link styling */
.office-item a {
  color: #000000; /* Black for links */
  text-decoration: none;
}

/* Office link hover effect */
.office-item a:hover {
  color: #555555; /* Medium gray on hover */
}

/* Quick Actions section styling */
.quick-actions {
  padding: 3.125em 1.25em;
  text-align: center;
  background-color: #d5d5d5; /* Medium gray background, consistent with stats */
}

/* Quick Actions heading styling */
.quick-actions-heading {
  font-size: 2rem;
  margin-bottom: 1.875em;
  color: #000000;
}

/* Quick Actions container using CSS Grid */
.quick-actions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
}

/* Individual action item styling */
.action-item {
  flex: 1;
  min-width: 15.625em;
  max-width: 18.75em;
  padding: 1.25em;
  background-color: #e5e5e5; /* Light gray background, consistent with other items */
  border-radius: 0.3125em;
}

/* Action title styling */
.action-title {
  font-size: 1.5rem;
  margin-bottom: 0.625em;
  color: #000000;
}

/* Action description styling */
.action-description {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 0.9375em;
}

/* Case Study section styling for Case Studies page */
.case-study {
  padding: 3.125em 1.25em;
  text-align: center;
  background-color: #ffffff; /* White background for clean look */
}

/* Case study heading styling */
.case-study-heading {
  font-size: 2rem;
  margin-bottom: 1.25em;
  color: #000000;
}

/* Case study subheading styling */
.case-study-subheading {
  font-size: 1.5rem;
  margin-bottom: 0.625em;
  color: #000000;
}

/* Case study info, challenge, solution, and results containers */
.case-study-info,
.case-study-challenge,
.case-study-solution,
.case-study-results {
  max-width: 50em;
  margin: 0 auto 1.25em;
}

/* Case study quote styling */
.case-study-quote blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: #333333; /* Dark gray for emphasis */
  margin: 0 auto;
  max-width: 43.75em;
  padding: 0.625em;
  border-left: 0.1875em solid #cccccc; /* Light gray border for quote */
}

/* Case study results list styling */
.case-study-results ul {
  list-style: none;
  text-align: left;
  max-width: 37.5em;
  margin: 0 auto;
}

/* Case study results list item styling */
.case-study-results li {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 0.625em;
}

/* Metrics Table section styling for Case Studies page */
.metrics-table {
  padding: 3.125em 1.25em;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-100) 0%,
    var(--primary-200) 100%
  );
}

/* Table heading styling */
.table-heading {
  font-size: 2rem;
  margin-bottom: 1.875em;
  color: var(--primary-900);
  font-weight: 700;
}

/* Table container for horizontal scrolling */
.table-container {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 1em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

/* Data table styling */
.data-table {
  width: 100%;
  min-width: 600px;
  margin: 0;
  border-collapse: collapse;
  border-radius: 1em;
  overflow: hidden;
}

/* Table caption styling */
.data-table caption {
  font-size: 1.1rem;
  color: #333333;
  margin-bottom: 0.625em;
}

/* Table header styling */
.data-table th {
  background: linear-gradient(
    135deg,
    var(--primary-600) 0%,
    var(--primary-700) 100%
  );
  color: var(--primary-50);
  font-weight: 700;
  padding: 1em 1.5em;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Table data cell styling */
.data-table td {
  padding: 1em 1.5em;
  border: none;
  color: var(--primary-800);
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Alternating row background for readability */
.data-table tr:nth-child(even) {
  background: var(--primary-100);
}

.data-table tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.8);
}

.data-table tr:hover {
  background: var(--primary-200);
  transform: scale(1.01);
}

/* ROI Calculator section styling */
.roi-calculator {
  padding: 3.125em 1.25em;
  text-align: center;
  background-color: #ffffff; /* White background */
}

/* ROI heading styling */
.roi-heading {
  font-size: 2rem;
  margin-bottom: 1.25em;
  color: #000000;
}

/* ROI description styling */
.roi-description {
  font-size: 1.1rem;
  max-width: 37.5em;
  margin: 0 auto 1.25em;
  color: #555555;
}

/* ROI metrics list styling */
.roi-metrics {
  list-style: none;
  max-width: 37.5em;
  margin: 0 auto;
  text-align: left;
}

/* ROI metrics list item styling */
.roi-metrics li {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 0.625em;
}

/* Testimonials section styling */
.testimonials {
  padding: 3.125em 1.25em;
  text-align: center;
  background-color: #d5d5d5; /* Medium gray background, consistent with stats */
}

/* Testimonials heading styling */
.testimonials-heading {
  font-size: 2rem;
  margin-bottom: 1.875em;
  color: #000000;
}

/* Testimonials container using CSS Grid */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual testimonial item styling */
.testimonial-item {
  flex: 1;
  min-width: 15.625em;
  max-width: 18.75em;
  padding: 1.25em;
  background-color: #e5e5e5; /* Light gray background, consistent with other items */
  border-radius: 0.3125em;
}

/* Testimonial quote styling */
.testimonial-item blockquote {
  font-size: 1rem;
  font-style: italic;
  color: #333333;
  margin-bottom: 0.625em;
}

/* Testimonial author styling */
.testimonial-author {
  font-size: 0.9rem;
  color: #555555;
}

/* Email-specific styles (to be inlined for emails) */

/* Email container styling */
.email .container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff; /* White background for email body */
}

/* Email header styling */
.email .header {
  text-align: center;
  padding: 20px 0;
  background-color: #f3f4f6; /* Light gray background for email header */
}

/* Email logo styling */
.email .header img {
  width: 200px;
  height: auto;
}

/* Email headline styling */
.email .header h1 {
  font-size: 24px;
  color: #111827; /* Dark gray text */
  margin: 10px 0;
}

/* Email date styling for newsletter */
.email .header p {
  font-size: 14px;
  color: #111827;
}

/* Email content section styling */
.email .content {
  padding: 20px;
}

/* Email subheading styling */
.email .content h2 {
  font-size: 18px;
  color: #111827;
  margin-bottom: 10px;
}

/* Email body text styling */
.email .content p {
  font-size: 14px;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Email list styling */
.email .content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

/* Email list item styling */
.email .content li {
  font-size: 14px;
  color: #111827;
  margin-bottom: 10px;
}

/* Email article container styling */
.email .article {
  margin-bottom: 20px;
}

/* Email hero image styling */
.email .article img {
  width: 600px;
  height: auto;
}

/* Email button container styling */
.email .btn-container {
  text-align: center;
  margin: 20px 0;
}

/* Email primary button styling */
.email .btn-primary {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  min-height: 44px;
  background-color: #2563eb; /* Blue background */
  color: #ffffff; /* White text */
}

/* Email secondary button styling */
.email .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  min-height: 44px;
  background-color: #f3f4f6; /* Light gray background */
  color: #2563eb; /* Blue text */
  border: 1px solid #2563eb; /* Blue border */
}

/* Email footer styling */
.email .footer {
  background-color: #f3f4f6; /* Light gray background */
  padding: 20px;
  text-align: center;
}

/* Email footer text styling */
.email .footer p {
  font-size: 12px;
  color: #111827;
  margin-bottom: 10px;
}

/* Email footer link styling */
.email .footer a {
  color: #2563eb; /* Blue for links */
  text-decoration: none;
  font-size: 12px;
}

/* Email footer link hover effect */
.email .footer a:hover {
  text-decoration: underline;
}

/* Responsive design for email on mobile */
@media only screen and (max-width: 480px) {
  .email .container {
    width: 100% !important;
  }
  .email .content {
    padding: 10px !important;
  }
  .email .article img {
    width: 100% !important;
  }
  .email .btn {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Footer styling, reused for all web pages */
.footer {
  padding: 2em 1.25em;
  background: linear-gradient(
    135deg,
    var(--primary-900) 0%,
    var(--primary-800) 100%
  );
  color: var(--primary-100);
  text-align: center;
  border-top: 3px solid var(--orange-main);
}

/* Footer company info styling */
.footer-company {
  margin-bottom: 0.625em;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Footer contact info styling */
.footer-contact {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer link styling for web pages */
.footer-contact a {
  color: var(--orange-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover effect for footer links on web pages */
.footer-contact a:hover {
  color: var(--orange-main);
  text-shadow: 0 0 8px var(--orange-light);
}

/* Tablet responsive design */
@media screen and (max-width: 64em) {
  .services-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
  }

  .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5em;
  }

  .team-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .form-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile responsive design */
@media screen and (max-width: 48em) {
  /* Theme controls mobile adjustments */
  .theme-controls {
    left: 5px;
    gap: 8px;
  }

  .theme-switcher {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .font-control {
    padding: 4px 6px;
  }

  .font-slider {
    height: 50px;
  }

  /* Infinity navigation mobile adjustments */
  .dial-nav {
    right: 5px;
    transform: translateY(-50%) scale(0.8);
  }

  .dial-item {
    min-width: 80px;
    padding: 0.3em;
  }

  .dial-label {
    font-size: 0.6rem;
  }

  .dial-center {
    height: 80px;
  }

  /* Header adjustments for mobile */
  .header {
    padding: 1em;
    flex-wrap: nowrap;
  }

  /* Show hamburger menu on mobile */
  .hamburger {
    display: flex;
  }

  /* Hide navigation by default on mobile */
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(
      135deg,
      var(--primary-100) 0%,
      var(--primary-200) 100%
    );
    backdrop-filter: blur(20px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 99;
    padding-top: 80px;
  }

  .nav.active {
    left: 0;
  }

  /* Mobile navigation styling */
  .navbar {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2em 1.5em;
  }

  .navbar li {
    border-bottom: 1px solid var(--primary-300);
  }

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

  .navbar a {
    padding: 1em 0;
    text-align: left;
    border-radius: 0;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: var(--primary-800);
    transition: all 0.3s ease;
  }

  .navbar a:hover {
    color: var(--orange-main);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
  }

  .navbar a.active {
    color: var(--orange-main);
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
  }

  /* Overlay when menu is open */
  body.nav-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    backdrop-filter: blur(2px);
  }

  /* Hero section mobile adjustments */
  .hero {
    padding: 2em 1em;
  }

  .hero-headline {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1em;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    padding: 1em 1.5em;
  }

  /* Grid containers mobile adjustments */
  .services-container,
  .stats-container,
  .team-container,
  .values-container,
  .testimonials-container,
  .offices-container,
  .quick-actions-container {
    grid-template-columns: 1fr;
    gap: 1.5em;
    padding: 0 1em;
  }

  /* Individual items mobile adjustments */
  .service-item,
  .stat-item,
  .team-member,
  .value-item,
  .testimonial-item,
  .office-item,
  .action-item {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Table responsive adjustments */
  .table-container {
    margin: 0 -1em;
    border-radius: 0;
  }

  .data-table {
    font-size: 0.85rem;
    min-width: 500px;
  }

  .data-table th,
  .data-table td {
    padding: 0.75em 0.5em;
    white-space: nowrap;
  }

  .data-table th {
    font-size: 0.8rem;
  }

  /* Section padding adjustments */
  .services,
  .stats,
  .team,
  .values,
  .company-story,
  .mission,
  .contact-info,
  .contact-form,
  .offices,
  .quick-actions,
  .case-study,
  .metrics-table,
  .roi-calculator,
  .testimonials {
    padding: 2em 1em;
  }

  /* Form adjustments for mobile */
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 1em;
  }

  .form-group {
    max-width: 100%;
    margin-bottom: 1em;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.625em;
  }

  .form-actions .btn {
    width: 100%;
  }

  .radio-group {
    gap: 0.5em;
  }

  .radio-group label {
    padding: 0.6em 0.8em;
    font-size: 0.9rem;
  }

  /* Page header adjustments for mobile */
  .page-header {
    padding: 1.875em 0.9375em;
  }

  .header-heading {
    font-size: 2rem;
  }

  .header-subheading {
    font-size: 1.2rem;
  }

  /* General section padding adjustments */
  .services,
  .stats,
  .team,
  .values,
  .company-story,
  .mission,
  .contact-info,
  .contact-form,
  .offices,
  .quick-actions,
  .case-study,
  .metrics-table,
  .roi-calculator,
  .testimonials {
    padding: 2em 1em;
  }
}

/* Extra small devices */
@media screen and (max-width: 30em) {
  .hero-headline {
    font-size: 1.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.8em 1.2em;
    font-size: 0.9rem;
  }

  .form-fieldset {
    padding: 1.5em;
    margin-bottom: 1.5em;
  }

  .form-legend {
    font-size: 1.4rem;
  }

  .theme-controls {
    left: 2px;
  }

  .dial-nav {
    right: 2px;
    transform: translateY(-50%) scale(0.7);
  }

  .table-container {
    margin: 0 -0.5em;
  }

  .data-table {
    font-size: 0.75rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5em 0.3em;
  }

  .navbar {
    grid-template-columns: 1fr;
    gap: 0.3em;
  }

  .navbar a {
    padding: 0.6em 0.8em;
    font-size: 0.9rem;
  }
}
