/* ========== CSS VARIABLES ========== */
/* Color scheme and design tokens for the entire website */
:root {
  --ink: #ffffff;              /* Primary background color */
  --ink-2: #f8f9fa;            /* Secondary background color */
  --neon: #4caf50;             /* Primary accent color (green) */
  --accent: #66bb6a;           /* Secondary accent color (lighter green) */
  --text: #1a1a1a;             /* Primary text color */
  --muted: #666666;            /* Muted/secondary text color */
  --card: #ffffff;             /* Card background color */
  --white: #ffffff;            /* White color */
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.1);           /* Standard shadow */
  --shadow-glow: 0 0 30px rgba(76, 175, 80, 0.2);     /* Glowing shadow effect */
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Form Message Styles */
.form-message {
  padding: 16px;
  margin: 20px 0;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #4caf50;
}

.form-message.error {
  background: #ffebee;
  color: #c62828;
  border: 2px solid #ef5350;
}

/* ========== RESET & BASE STYLES ========== */
/* Box-sizing reset for consistent sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base body styles */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Performance: Font optimization with font-display: swap */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local("Poppins");
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f5f5f5;
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
  max-width: 100vw;
  position: relative;
  padding-top: 0; /* Will be adjusted for mobile if needed */
}

main {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

section {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Allow carousel section to have visible overflow for scrolling */
#clients {
  overflow-x: hidden;
  overflow-y: visible;
}

#clients .container {
  overflow-x: visible;
  overflow-y: visible;
}

/* Ensure logo carousel section is always visible */
#clients .logo-carousel-container {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ========== IMAGE STYLES ========== */
/* Default image styling with responsive behavior */
img {
  max-width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  border-radius: 8px;
  filter: brightness(0.98) contrast(1.02);
  transition: filter 0.3s ease;
}

/* Image hover effect */
img:hover {
  filter: brightness(1) contrast(1.05);
}

/* ========== LINK STYLES ========== */
a {
  color: inherit;
  text-decoration: none;
}

/* ========== CONTAINER ========== */
/* Main container for content with max-width and responsive padding */
.container {
  width: min(1200px, 92vw); /* Max width 1200px, responsive to viewport */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

/* Special handling for clients section container */
#clients .container {
  overflow-x: visible;
  overflow-y: visible;
}

/* Ensure header container doesn't overflow */
.header-inner.container {
  padding: 12px 20px;
  box-sizing: border-box;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  max-height: 100px !important;
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px !important;
  gap: 18px !important;
  min-height: 60px !important;
  max-height: 80px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  position: relative;
}

.header-inner > * {
  flex-shrink: 0;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 50%;
  flex-shrink: 1;
  overflow: hidden;
  position: relative;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon), #66bb6a);
  color: #ffffff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Hide brand-mark when logo is used */
.brand:has(.brand-logo) .brand-mark {
  display: none;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3); }
  50% { box-shadow: 0 8px 30px rgba(76, 175, 80, 0.5); }
}

.brand-title {
  font-weight: 700;
  color: var(--text);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.brand-subtitle {
  font-size: clamp(10px, 1vw, 12px);
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;
  margin: 0;
  padding: 0;
  min-width: 0;
  position: relative;
}

.nav a {
  font-weight: 500;
  color: var(--muted);
  transition: all 0.3s ease;
  position: relative;
  padding: 4px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--neon);
}

.nav a:hover::after {
  width: 100%;
}

.pill-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pill-btn {
  background: linear-gradient(135deg, var(--neon), #66bb6a);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(76, 175, 80, 0.3);
}

.pill-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.pill-btn:hover::before {
  width: 300px;
  height: 300px;
}

.pill-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(76, 175, 80, 0.4);
}

.pulse-btn {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.ghost-btn {
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--text);
}

.ghost-btn:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(76, 175, 80, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  scroll-margin-top: 100px; /* Account for sticky header */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.1), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(102, 187, 106, 0.1), transparent 35%),
    linear-gradient(135deg, #ffffff, #f5f5f5);
  z-index: 0;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.hero-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin: 10px 0 20px;
  color: var(--text);
  font-weight: 800;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

/* Typewriter Animation */
.typewriter-text {
  overflow: hidden;
  border-right: 3px solid var(--neon);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--neon); }
}

.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(76, 175, 80, 0.3);
}

.hero-stats .stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--neon);
  background: linear-gradient(135deg, var(--neon), #66bb6a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Ensure counter starts at 0 */
  min-height: 1.2em;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.floating-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.floating-card img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  border-radius: 20px;
}

.floating-card:hover img {
  transform: scale(1.02);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 10;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.floating-logos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.floating-logos span {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: var(--text);
}

.floating-logos span:hover {
  background: rgba(76, 175, 80, 0.15);
  border-color: var(--neon);
  transform: translateY(-3px);
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
  background: #ffffff;
  position: relative;
  scroll-margin-top: 100px; /* Account for sticky header */
}

.section.center {
  text-align: center;
}

.bg-ink {
  background: var(--ink-2);
}

.bg-soft {
  background: #f8f9fa;
}

.section-head {
  max-width: 680px;
}

.section-head.center {
  margin: 0 auto 50px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}

.section h2 {
  margin: 8px 0 20px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.section p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.two-col > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.two-col.inverse {
  align-items: center;
}

.grid {
  display: grid;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Prevent grid items from overflowing */
.grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ========== CARDS ========== */
.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
  transition: left 0.5s ease;
}

.interactive-card:hover::before {
  left: 100%;
}

.interactive-card {
  cursor: pointer;
}

.interactive-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(76, 175, 80, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), var(--shadow-glow);
}

.card.shadow {
  box-shadow: var(--shadow);
}

.card.accent {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(255, 255, 255, 0.95));
  border-color: rgba(76, 175, 80, 0.4);
}

.card-image-wrapper {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  background: rgba(0, 0, 0, 0.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  border-radius: 12px;
}

.interactive-card:hover .card-image-wrapper img {
  transform: scale(1.03);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card p {
  margin: 0;
  color: var(--muted);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text);
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.badge:hover {
  background: rgba(76, 175, 80, 0.15);
  border-color: var(--neon);
  transform: scale(1.05);
}

.badges {
  display: flex;
  flex-wrap: wrap;
}

.image-tile {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.image-tile img {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 16px;
  max-width: 100%;
  height: auto;
}

.image-tile:hover img {
  transform: scale(1.02);
}

/* Map image specific styling */
#milestones .image-tile img {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  max-height: 450px;
}

#milestones .image-tile:hover img {
  transform: scale(1.01);
}

/* Contact section image */
#contact .card img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 12px;
}

.list {
  color: var(--muted);
  line-height: 1.9;
}

.list ul {
  padding-left: 20px;
}

.list h4 {
  color: var(--neon);
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
}

/* ========== TIMELINE ========== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  padding-left: 80px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(76, 175, 80, 0.3);
  transform: translateX(8px);
}

.year-badge {
  color: var(--neon);
  font-weight: 800;
  font-size: 16px;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(76, 175, 80, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
}

.timeline-item span {
  display: none;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.split h5 {
  color: var(--neon);
  font-size: 16px;
  margin-bottom: 12px;
}

.split ul {
  list-style: none;
  padding: 0;
}

.split li {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ========== KEY MILESTONES SECTION ========== */
.milestone-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.milestone-block {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.milestone-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
  transition: left 0.5s ease;
}

.milestone-block:hover::before {
  left: 100%;
}

.milestone-block:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(76, 175, 80, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.milestone-title {
  color: var(--neon);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.milestone-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--neon), #66bb6a);
  border-radius: 2px;
}

.milestone-value {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  margin-left: 16px;
  background: linear-gradient(135deg, var(--neon), #66bb6a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.milestone-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.milestone-list li {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.milestone-list li:hover {
  background: rgba(255, 255, 255, 0.9);
  border-left-color: var(--neon);
  transform: translateX(8px);
}

.year-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(76, 175, 80, 0.2);
  color: var(--neon);
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  min-width: 80px;
  justify-content: center;
}

.milestone-sublist {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milestone-sublist li {
  color: var(--muted);
  font-size: 15px;
  padding: 8px 12px;
  background: transparent;
  border-left: 2px solid rgba(210, 255, 64, 0.3);
  position: relative;
}

.milestone-sublist li::before {
  content: '▸';
  position: absolute;
  left: -8px;
  color: var(--neon);
}

.milestone-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.milestone-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.milestone-image-wrapper:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 175, 80, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), var(--shadow-glow);
}

.milestone-image-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 16px;
}

.milestone-image-wrapper:hover img {
  transform: scale(1.03);
}

.image-placeholder-text {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.milestone-image-wrapper:hover .image-placeholder-text {
  opacity: 1;
}

/* ========== PROFILE CARDS ========== */
.profile-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.profile-card:hover {
  transform: translateY(-10px);
  border-color: rgba(76, 175, 80, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), var(--shadow-glow);
}

.profile-img-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.profile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-card:hover .profile-overlay {
  opacity: 1;
}

.profile-card:hover .profile-img {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(76, 175, 80, 0.3);
}

.profile-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.profile-role {
  color: var(--neon);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.profile-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ========== PARTNER WALL ========== */
.partner-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.partner {
  background: rgba(255, 255, 255, 0.9);
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  color: var(--text);
}

.partner:hover {
  background: rgba(76, 175, 80, 0.15);
  border-color: var(--neon);
  transform: scale(1.05) rotate(2deg);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* ========== LOGO CAROUSEL (Premium Enterprise Style) ========== */
.logo-carousel-container {
  position: relative;
  margin-top: 40px;
  padding: 0 60px;
  display: flex !important;
  align-items: center;
  gap: 20px;
  min-height: 200px;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

/* Ensure logos are visible immediately - no delay */
.logo-carousel-container,
.logo-carousel-wrapper,
.logo-carousel-track,
.logo-item,
.logo-card {
  visibility: visible !important;
  opacity: 1 !important;
}

.logo-carousel-container,
.logo-carousel-track,
.logo-item,
.logo-card {
  display: flex !important;
}

.logo-carousel-wrapper {
  display: block !important;
}

/* Logo images - ensure they are visible and properly sized */
/* Main .logo-card img styles are defined below to avoid conflicts */

.logo-carousel-wrapper {
  flex: 1;
  overflow: hidden !important;
  position: relative;
  width: 100%;
  min-height: 180px;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  mask: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  /* Ensure wrapper allows track to overflow */
  overflow-x: hidden;
  overflow-y: visible;
}

.logo-carousel-track {
  display: flex !important;
  gap: 24px;
  align-items: center;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(0);
  min-width: fit-content;
  width: fit-content;
  position: relative;
  touch-action: pan-x;
  overflow: visible;
  visibility: visible !important;
  opacity: 1 !important;
}

.logo-carousel-container.paused .logo-carousel-track {
  transition: none;
}

.logo-item {
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 200px;
  width: 180px;
  height: 160px;
  min-height: 160px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
}

.logo-card {
  width: 100%;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: visible;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 160px;
}

.logo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.logo-card img {
  width: auto !important;
  max-width: 140px !important;
  height: auto !important;
  max-height: 80px !important;
  min-height: 40px !important;
  min-width: 60px !important;
  object-fit: contain !important;
  margin: 0 auto 12px !important;
  filter: none !important;
  opacity: 1 !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  display: block !important;
  visibility: visible !important;
  position: relative;
  z-index: 1;
}

.logo-card span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.3px;
  transition: color 0.4s ease;
}

.logo-card:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 
    0 16px 48px rgba(76, 175, 80, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(76, 175, 80, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(250, 252, 255, 1));
}

.logo-card:hover img {
  transform: scale(1.08);
}

.logo-card:hover::before {
  opacity: 1;
}

.logo-card:hover span {
  color: var(--neon);
}

/* Navigation Buttons */
.logo-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 10;
}

.logo-nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: scale(0);
}

.logo-nav-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 8px 24px rgba(76, 175, 80, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  color: var(--neon);
}

.logo-nav-btn:hover::before {
  opacity: 1;
  transform: scale(1);
  animation: ripple 0.6s ease-out;
}

.logo-nav-btn:active {
  transform: scale(0.95);
}

.logo-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.logo-nav-btn:hover svg {
  transform: scale(1.1);
}

.logo-nav-prev:hover svg {
  transform: translateX(-2px) scale(1.1);
}

.logo-nav-next:hover svg {
  transform: translateX(2px) scale(1.1);
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.8;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ========== REVIEWS ========== */
.review {
  border-color: rgba(0, 0, 0, 0.1);
  text-align: left;
}

.review .stars {
  color: #ffd700;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
  display: block;
}

.animate-stars {
  animation: star-twinkle 2s ease-in-out infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.review-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}

.reviewer {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.contact-list p {
  margin: 12px 0;
  font-size: 18px;
  color: var(--text);
}

.contact-list strong {
  color: var(--neon);
}

.muted {
  color: var(--muted);
}

/* ========== FORM TABS ========== */
.form-tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 40px 0 30px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0;
}

.form-tab {
  background: transparent;
  border: none;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  pointer-events: auto;
  z-index: 10;
  min-height: 44px;
  min-width: 120px;
}

.form-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--neon);
  transition: width 0.3s ease;
}

.form-tab.active {
  color: var(--neon);
}

.form-tab.active::after {
  width: 100%;
}

.form-tab:hover {
  color: var(--neon);
}

.tab-content {
  display: none !important;
  animation: fadeIn 0.4s ease;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tab-content.active {
  display: block !important;
  opacity: 1;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h3 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--text);
}

.service-tagline {
  font-size: 20px;
  color: var(--neon);
  font-weight: 600;
  margin: 12px 0;
  font-style: italic;
}

.service-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 800px;
  margin: 20px auto;
  line-height: 1.7;
}

.service-footer-note {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--muted);
  font-style: italic;
}

.form-subtabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.form-subtab {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid transparent;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  pointer-events: auto;
  z-index: 10;
  min-height: 44px;
}

.form-subtab.active {
  background: var(--neon);
  color: white;
  border-color: var(--neon);
}

.form-subtab:hover {
  background: rgba(76, 175, 80, 0.2);
}

.service-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.service-tab-btn {
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  pointer-events: auto;
  z-index: 10;
  min-height: 44px;
}

.service-tab-btn.active {
  background: var(--neon);
  color: white;
  border-color: var(--neon);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

 .service-tab-btn:hover {
  border-color: var(--neon);
  transform: translateY(-2px);
}

/* ========== FORM STYLES ========== */
.quote-form,
.service-form {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.form-step {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.form-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.step-number {
  font-size: 24px;
}

.step-header h4 {
  font-size: 22px;
  color: var(--text);
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.form-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 15px;
}

.required {
  color: #e53935;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  background: white;
  color: var(--text);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin: -6px 0 8px;
  font-style: italic;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  background: white;
}

.radio-label:hover {
  border-color: var(--neon);
  background: rgba(76, 175, 80, 0.05);
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--neon);
}

.radio-label input[type="radio"]:checked + span {
  color: var(--neon);
  font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
  border-color: var(--neon);
  background: rgba(76, 175, 80, 0.1);
}

/* Checkboxes */
.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  background: white;
}

.checkbox-label:hover {
  border-color: var(--neon);
  background: rgba(76, 175, 80, 0.05);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--neon);
}

.checkbox-label:has(input[type="checkbox"]:checked) {
  border-color: var(--neon);
  background: rgba(76, 175, 80, 0.1);
}

.form-submit-btn {
  width: 100%;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  margin-top: 8px;
}

.purchase-details-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}


/* ========== ANIMATIONS ========== */
.animate-text {
  background: linear-gradient(135deg, var(--text), var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
  animation: slideUp 1s ease-out 0.2s both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOOTER ========== */
.footer {
  background: #f8f9fa;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--neon);
}

:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ========== RESPONSIVE DESIGN ========== */
/* Tablet and smaller desktop screens */
@media (max-width: 1200px) {
  .container {
    width: 95vw;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .header-inner.container {
    padding: 12px 20px;
  }

  .brand {
    max-width: 45%;
  }
  
  .hero-grid {
    gap: 40px;
  }
  
  .two-col {
    gap: 30px;
  }
}

/* Tablet screens and below */
@media (max-width: 1024px) {
  /* Ensure header doesn't grow too large */
  .site-header {
    max-height: 75px !important;
    overflow: hidden !important;
  }

  .header-inner {
    padding: 10px 20px !important;
    min-height: 55px !important;
    max-height: 70px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .brand {
    max-width: 40%;
    flex-shrink: 1;
  }

  .brand-title {
    font-size: clamp(12px, 2vw, 16px);
  }

  .brand-subtitle {
    font-size: clamp(9px, 1.5vw, 11px);
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    padding: 4px 6px;
    font-size: 14px;
  }

  /* Mobile navigation menu */
  .nav {
    position: fixed;
    top: 75px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1002;
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    box-sizing: border-box;
  }
  .nav a {
    padding: 12px 0;
    width: 100%;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .nav.open {
    display: flex !important;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Show mobile menu toggle button */
  .nav-toggle {
    display: flex;
  }

  /* Hide "Talk to us" button in header on tablet/mobile */
  .header-inner .pill-btn {
    display: none;
  }

  /* Adjust section padding for mobile */
  .section {
    padding: 70px 0;
  }

  /* Hero section adjustments */
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-grid {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  /* Two column layout becomes single column */
  .two-col {
    gap: 30px;
    grid-template-columns: 1fr;
  }
  
  .two-col > * {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  
  .two-col > * {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  /* All card grids become single column */
  .cards-3,
  .cards-4,
  .cards-2 {
    grid-template-columns: 1fr;
  }
  
  /* Ensure cards don't overflow */
  .cards-3 > *,
  .cards-4 > *,
  .cards-2 > * {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  /* Map adjustments */
  .main-map {
    height: 400px;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  /* Milestone section adjustments */
  .milestone-images {
    margin-top: 40px;
  }

  .milestone-image-wrapper {
    height: 280px;
  }

  /* Image tile adjustments */
  .image-tile {
    max-height: 350px;
  }

  .image-tile img {
    max-height: 350px;
  }

  /* Profile image adjustments */
  .profile-img {
    height: 280px;
  }

  /* Logo grid adjustments */
  .logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
  }

  /* Logo Carousel Tablet */
  .logo-carousel-container {
    padding: 0 50px;
    gap: 16px;
    min-height: 180px;
    overflow: visible;
  }

  .logo-nav-btn {
    width: 44px;
    height: 44px;
  }

  .logo-nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .logo-item {
    min-width: 160px;
    max-width: 180px;
    width: 160px;
    height: 140px;
  }

  .logo-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .logo-card img {
    max-width: 120px !important;
    max-height: 70px !important;
    min-height: 35px !important;
    min-width: 55px !important;
    margin: 0 auto 10px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain !important;
    filter: none !important;
  }
  
  .logo-card:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.08);
  }

  .logo-card span {
    font-size: 11px;
  }

  /* Partner wall adjustments */
  .partner-wall {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  /* Hero stats adjustments */
  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  /* Floating logos adjustments */
  .floating-logos {
    justify-content: center;
  }
}

/* Mobile phones and small screens */
@media (max-width: 768px) {
  /* Container padding for mobile */
  .container {
    width: 100%;
    padding: 0 16px;
  }

  /* Header adjustments */
  .site-header {
    max-height: 70px !important;
    overflow: hidden !important;
  }

  .header-inner {
    padding: 8px 16px !important;
    gap: 12px !important;
    min-height: 50px !important;
    max-height: 60px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }

  .brand {
    max-width: 60%;
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }
  
  .brand > div {
    min-width: 0;
    overflow: hidden;
    flex: 1;
  }

  .brand-logo {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 12px;
  }

  .brand-subtitle {
    font-size: 9px;
  }

  .nav {
    gap: 8px;
  }

  .nav a {
    padding: 4px 4px;
    font-size: 13px;
  }

  .header-inner .pill-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
  }

  .site-header {
    max-height: 80px;
  }

  .header-inner {
    padding: 10px 0;
    min-height: 50px;
    max-height: 70px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  /* Hero section mobile adjustments */
  .hero {
    padding: 80px 0 40px;
    scroll-margin-top: 70px;
  }

  /* Ensure sections don't get hidden behind header */
  .section {
    scroll-margin-top: 70px;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 8vw, 36px);
    margin: 8px 0 16px;
  }
  .typewriter-text {
    white-space: normal;
    overflow: visible;
    border-right: 0;
    animation: none;
  }

  .lead {
    font-size: 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-card {
    padding: 16px;
  }

  .hero-stats .stat-number {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .pill-btn,
  .ghost-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 14px 24px;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Section adjustments */
  .section {
    padding: 50px 0;
  }

  .section h2 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .section-head {
    margin-bottom: 30px;
  }

  /* Footer adjustments */
  .footer {
    padding: 30px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-nav {
    justify-content: center;
    gap: 16px;
  }

  /* Map adjustments */
  .main-map {
    height: 300px;
  }

  /* Logo grid mobile adjustments */
  .logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }

  /* Logo Carousel Mobile */
  .logo-carousel-container {
    padding: 0 8px;
    gap: 6px;
    min-height: 160px;
    margin-top: 30px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
    overflow: hidden; /* Fixed: Changed from visible to hidden to prevent scroll issues */
  }

  .logo-carousel-wrapper {
    flex: 1;
    overflow: hidden !important;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden; /* Fixed: Changed from visible to hidden */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%
    );
    mask: linear-gradient(
      to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%
    );
  }

  .logo-carousel-track {
    gap: 16px;
    touch-action: pan-x;
    overflow: visible;
  }

  .logo-nav-btn {
    width: 36px;
    height: 36px;
    display: flex !important;
    flex-shrink: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .logo-nav-btn svg {
    width: 16px;
    height: 16px;
  }

  .logo-item {
    min-width: 130px;
    max-width: 140px;
    width: 130px;
    height: 120px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .logo-card {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .logo-card img {
    max-width: 90px !important;
    max-height: 50px !important;
    min-height: 30px !important;
    min-width: 50px !important;
    margin: 0 auto 8px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain !important;
    filter: none !important;
  }
  
  .logo-card:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.05);
  }

  .logo-card span {
    font-size: 9px;
  }

  /* Milestone section mobile adjustments */
  .milestone-block {
    padding: 20px;
  }

  .milestone-title {
    font-size: 18px;
  }

  .milestone-value {
    font-size: 20px;
  }

  .milestone-list li {
    font-size: 14px;
    padding: 10px 12px;
  }

  .milestone-image-wrapper {
    height: 220px;
  }

  /* Image tile mobile adjustments */
  .image-tile {
    max-height: 300px;
  }

  .image-tile img {
    max-height: 300px;
  }

  /* Profile card mobile adjustments */
  .profile-img {
    height: 240px;
  }

  /* Card image wrapper mobile */
  .card-image-wrapper {
    height: 180px;
  }

  /* Contact section mobile */
  #contact .card img {
    max-height: 300px;
  }

  /* Timeline mobile adjustments */
  .timeline-item {
    padding-left: 60px;
    padding: 16px;
  }

  .year-badge {
    left: 10px;
    font-size: 14px;
    padding: 2px 8px;
  }

  /* Partner wall mobile */
  .partner-wall {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
  }

  .partner {
    padding: 16px;
    font-size: 14px;
  }

  /* Card adjustments */
  .card {
    padding: 20px;
  }

  /* Floating logos mobile */
  .floating-logos {
    gap: 8px;
  }

  .floating-logos span {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Extra small mobile devices */
@media (max-width: 400px) {
  /* Brand adjustments for very small screens */
  .brand-title {
    font-size: 12px;
  }

  .brand-subtitle {
    font-size: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  /* Section heading adjustments */
  .section h2 {
    font-size: 22px;
  }

  /* Hero adjustments */
  .hero-copy h1 {
    font-size: 24px;
  }

  .lead {
    font-size: 14px;
  }

  /* Stat card adjustments */
  .hero-stats .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 12px;
  }

  /* Card adjustments */
  .card {
    padding: 16px;
  }

  .card h4 {
    font-size: 18px;
  }

  /* Logo grid extra small */
  .logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  /* Logo Carousel Extra Small Mobile */
  .logo-carousel-container {
    padding: 0 25px;
    gap: 8px;
    min-height: 140px;
    overflow: visible;
  }

  .logo-carousel-wrapper {
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%
    );
  }

  .logo-nav-btn {
    width: 32px;
    height: 32px;
    display: none; /* Hide on extra small screens */
  }

  .logo-item {
    min-width: 120px;
    max-width: 130px;
    width: 120px;
    height: 110px;
  }

  .logo-card {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .logo-card img {
    max-width: 80px !important;
    max-height: 50px !important;
    min-height: 25px !important;
    min-width: 45px !important;
    margin: 0 auto 8px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain !important;
    filter: none !important;
  }
  
  .logo-card:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.05);
  }

  .logo-card span {
    font-size: 9px;
  }

  /* Partner wall extra small */
  .partner-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Form responsive adjustments */
  .form-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .form-tab {
    padding: 14px 24px;
    font-size: 16px;
  }

  .quote-form,
  .service-form {
    padding: 24px 16px;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .form-group.full-width {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
  }
  
  .form-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
    width: 100%;
    box-sizing: border-box;
  }

  .form-step {
    margin-bottom: 30px;
    padding-bottom: 30px;
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
  }

  .step-header h4 {
    font-size: 18px;
  }

  .form-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
  }

  .form-subtabs,
  .service-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .form-subtab,
  .service-tab-btn {
    width: 100%;
  }

  .form-header h3 {
    font-size: 24px;
  }

  .service-tagline {
    font-size: 18px;
  }

  .radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .radio-label {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: 95vw;
    padding: 0 20px;
  }
  
  .cards-3,
  .cards-4,
  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-form,
  .service-form {
    padding: 28px 24px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevent iOS zoom */
    padding: 12px 16px;
  }

  .two-col {
    gap: 30px;
  }

  .section {
    padding: 80px 0;
  }

  /* Logo Carousel Tablet (768-1024px) */
  .logo-carousel-container {
    padding: 0 55px;
    gap: 18px;
    min-height: 180px;
    overflow: visible;
  }

  .logo-nav-btn {
    width: 46px;
    height: 46px;
  }

  .logo-item {
    min-width: 165px;
    max-width: 175px;
    width: 165px;
    height: 145px;
  }

  .logo-card img {
    max-width: 125px !important;
    max-height: 75px !important;
    min-height: 38px !important;
    min-width: 60px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain !important;
    filter: none !important;
    margin: 0 auto 10px !important;
  }
  
  .logo-card:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.08);
  }
}

/* Tablet portrait orientation */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .quote-form,
  .service-form {
    padding: 28px 24px;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-group.full-width {
    grid-column: 1 / -1;
  }

  /* Logo Carousel Medium Mobile (481-768px) */
  .logo-carousel-container {
    padding: 0 40px;
    gap: 12px;
    min-height: 150px;
    overflow: visible;
  }

  .logo-nav-btn {
    width: 40px;
    height: 40px;
    display: none; /* Use swipe on tablets */
  }

  .logo-item {
    min-width: 145px;
    max-width: 150px;
    width: 145px;
    height: 125px;
  }

  .logo-card {
    padding: 18px 14px;
  }

  .logo-card img {
    max-width: 105px !important;
    max-height: 65px !important;
    min-height: 33px !important;
    min-width: 55px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain !important;
    filter: none !important;
    margin: 0 auto 10px !important;
  }
  
  .logo-card:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Large desktop screens */
@media (min-width: 1400px) {
  .container {
    width: min(1400px, 92vw);
  }

  .hero-grid {
    gap: 80px;
  }

  .section {
    padding: 120px 0;
  }

  /* Logo Carousel Large Desktop */
  .logo-carousel-container {
    padding: 0 80px;
    gap: 24px;
    min-height: 200px;
    overflow: visible;
  }

  .logo-nav-btn {
    width: 52px;
    height: 52px;
  }

  .logo-nav-btn svg {
    width: 22px;
    height: 22px;
  }

  .logo-item {
    min-width: 200px;
    max-width: 220px;
    width: 200px;
    height: 170px;
  }

  .logo-card {
    padding: 32px 28px;
  }

  .logo-card img {
    max-width: 160px !important;
    max-height: 90px !important;
    min-height: 45px !important;
    min-width: 70px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain !important;
    filter: none !important;
    margin: 0 auto 12px !important;
  }
  
  .logo-card:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.1);
  }

  .logo-card span {
    font-size: 13px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    padding: 60px 0 30px;
  }

  .section {
    padding: 60px 0;
  }
}

/* DESKTOP FIX - Forcing visibility and layout */
@media (min-width: 1024px) {
  .logo-carousel-container,
  .logo-carousel-wrapper,
  .logo-carousel-track,
  .logo-item,
  .logo-card,
  .logo-card img {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
  }
  
  /* Layout specifics */
  .logo-carousel-container {
    width: 100%;
    min-height: 160px;
    align-items: center;
    overflow: hidden;
  }
  
  .logo-carousel-wrapper {
    display: block !important;
    width: 100%;
  }

  .logo-carousel-track {
    display: flex !important;
    align-items: center;
    gap: 40px;
    transform: translateX(0);
  }

  .logo-card {
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
  }

  .logo-card img {
    display: block !important;
    height: 60px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain !important;
    filter: none !important;
  }
}
