/* ===== DESIGN SYSTEM & VARIABLES ===== */
:root {
  /* McKinsey-Inspired Professional Color Palette */
  --primary-navy: #1a2332;
  --primary-blue: #2d4a6b;
  --primary-light: #4a6a8a;
  --accent-gold: #d4a574;
  --accent-bronze: #b8954a;
  --neutral-warm: #faf8f5;
  --neutral-light: #f7f7f7;
  --neutral-medium: #e5e5e5;
  --text-primary: #1a2332;
  --text-secondary: #4a6a8a;
  --text-muted: #6b7c96;
  --white: #ffffff;
  --success: #2d5016;
  --error: #a13c3c;
  --border-color: rgba(26, 35, 50, 0.1);
  
  /* Sophisticated Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Gradient Systems */
  --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-bronze) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(45, 74, 107, 0.8) 100%);
  
  /* Spacing & Layout */
  --container-max-width: 1200px;
  --section-padding: 120px 0;
  --section-padding-mobile: 80px 0;
  --grid-gap: 2rem;
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 35, 50, 0.12);
  --shadow-lg: 0 8px 32px rgba(26, 35, 50, 0.16);
  --shadow-xl: 0 16px 64px rgba(26, 35, 50, 0.24);
  
  /* Transitions */
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.1s ease-out;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Performance optimizations */
* {
  /* Optimize animations for mobile devices */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Disable GSAP and AOS animations */
  [data-aos] {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Modern CSS improvements */
@supports (height: 100dvh) {
  .hero {
    min-height: max(100dvh, 700px);
  }
  
  /* Handle short dynamic viewports better */
  @media (max-height: 600px) {
    .hero {
      min-height: auto !important;
    }
  }
}

@supports (scrollbar-width: thin) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) var(--neutral-light);
  }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
}

/* ===== TYPOGRAPHY SYSTEM ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h5 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  container-type: inline-size;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 1.5rem auto 2rem;
  border-radius: 2px;
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 2rem;
}

.highlight {
  background: linear-gradient(120deg, transparent 0%, transparent 40%, rgba(212, 165, 116, 0.3) 40%, rgba(212, 165, 116, 0.3) 60%, transparent 60%);
  padding: 0 0.2em;
}

/* ===== BUTTON SYSTEM ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  /* Improved touch target */
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 165, 116, 0.4);
  color: var(--white);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ===== LOADING SCREEN ===== */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

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

.loading-logo {
  height: 80px;
  width: auto;
  margin-bottom: 2rem;
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--neutral-medium);
  border-top: 3px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  /* Use CSS custom properties for progressive sizing */
  padding: var(--navbar-padding, 1.0rem) 0;
  transition: background-color var(--transition-smooth), backdrop-filter var(--transition-smooth);
  /* Progressive box-shadow using CSS custom property */
  box-shadow: 0 2px 20px rgba(45, 74, 107, var(--shadow-opacity, 0.08));
  /* Ensure navbar stays on top on mobile */
  transform: translateZ(0);
  will-change: transform, padding;
}

.navbar.scrolled {
  /* Only use scrolled class for non-progressive properties */
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  /* Use CSS custom property for progressive height changes */
  height: var(--logo-height, 80px);
  width: auto;
  /* Smooth transition for any remaining properties */
  transition: filter var(--transition-smooth);
}

.nav-menu {
  display: flex;
  /* Dynamic gap that scales with available space and number of items */
  gap: clamp(1rem, 1.5vw, 2.5rem);
  align-items: center;
  /* Allow wrapping for better responsive behavior */
  flex-wrap: wrap;
  /* Distribute space evenly when needed */
  justify-content: center;
  /* Prevent overflow on smaller screens */
  max-width: 100%;
  overflow: hidden;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  /* Responsive font size that scales down when needed */
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  /* Dynamic padding that adapts to available space */
  padding: clamp(0.25rem, 0.5vw, 0.5rem) clamp(0.5rem, 1vw, 1rem);
  /* Improved touch target */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Prevent text wrapping */
  white-space: nowrap;
  /* Better touch interaction */
  -webkit-tap-highlight-color: transparent;
  /* Ensure readability on all screen sizes */
  border-radius: 6px;
  /* Smooth hover transition */
  background: transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
  /* background: rgba(45, 74, 107, 0.05); */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  /* Ensure touch target is at least 44px for accessibility */
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  /* Improve touch interaction */
  -webkit-tap-highlight-color: rgba(212, 165, 116, 0.2);
  touch-action: manipulation;
}

.nav-hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: max(100vh, 700px); /* Ensure minimum content visibility */
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-primary);
  color: var(--white);
  overflow: visible;
  padding: max(80px, 10vh) 0 max(4rem, 8vh) 0;
  /* Optimize for mobile performance */
  transform: translateZ(0);
  will-change: transform;
}

.hero-background {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(45, 74, 107, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
  /* Ensure content is never cut off */
  min-height: min-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-text {
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  line-height: 1.2;
  /* reserve exactly three lines' worth of height with responsive scaling */
  min-height: calc(1.2em * 3);
  overflow: visible;
  color: var(--white);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* Prevent text from breaking awkwardly */
  word-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.typed-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  /* Better text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  margin: clamp(2rem, 4vw, 3rem) 0;
  flex-wrap: wrap;
  /* Ensure stats are readable on all screens */
  padding: 0 1rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  /* Prevent number breaking */
  white-space: nowrap;
}

.stat-label {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  /* Better text wrapping for mobile */
  text-align: center;
  line-height: 1.3;
}

.hero-cta {
  display: flex;
  gap: clamp(1rem, 3vw, 1.5rem);
  /* Better responsive spacing and layout */
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding: 0 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
  opacity: 1 !important;
  visibility: visible !important;
  /* Ensure buttons are always accessible */
  margin-bottom: 1rem;
}
.hero-cta .btn {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
}

/* ===== CLIENT SHOWCASE ===== */
.client-showcase {
  padding: clamp(3rem, 6vw, 4rem) 0;
  background: var(--neutral-light);
  /* Prevent horizontal overflow */
  overflow-x: hidden;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  /* Prevent overflow and ensure proper spacing */
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

.client-logo-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: clamp(0.5rem, 1.5vw, 1rem);
  text-align: center;
  border: 1px solid rgba(212, 165, 116, 0.15);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* Ensure proper sizing and prevent overflow */
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Optimize animation performance */
  transform: translateZ(0);
  will-change: transform;
}

.client-logo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
  transition: left 0.6s ease;
}

.client-logo-card:hover::before {
  left: 100%;
}

.client-logo-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 1);
}

.client-logo {
  /* width: clamp(6rem, 15vw, 10rem); */
  width: 100%;
  height: clamp(6rem, 15vw, 10rem);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  transition: var(--transition-smooth);
  padding: 0.0rem;
  border-radius: 0px;
  background: transparent;
  /* Ensure images don't overflow */
  overflow: hidden;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* filter: brightness(0.8); */
  transition: var(--transition-smooth);
}

.client-logo-card:hover .client-logo {
  transform: scale(1.08);
}

.client-logo-card:hover .client-logo img {
  filter: brightness(1);
}

.client-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.client-desc {
  font-size: clamp(0.75rem, 1.5vw, 0.8rem);
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
  /* Prevent text overflow on small cards */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: var(--section-padding);
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.5;
}

.about-text {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.9;
}

.about-details p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.9;
}

.expertise-areas {
  margin-top: 1rem;
  display: grid;
  gap: 2rem;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.expertise-item i {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.expertise-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--primary-navy);
}

.expertise-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.about-visual {
  position: relative;
}

.about-profile-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-smooth);
  position: relative;
}

.about-profile-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(26, 35, 50, 0.25);
}

.profile-hero-bg {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--gradient-primary);
}

.brand-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-profile-card:hover .brand-bg {
  transform: scale(1.05);
}

.profile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(45, 74, 107, 0.8) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 2rem 1.5rem;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.profile-avatar i {
  font-size: 2rem;
  color: var(--white);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.about-profile-card:hover .profile-avatar {
  transform: scale(1.3);
}

.profile-info h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.profile-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.languages {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.language {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  gap: 0;
}

.profile-stat {
  text-align: center;
  flex: 1;
  min-width: 0; /* Allow flex items to shrink below their content size */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.profile-stat .stat-number {
  display: block;
  font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-sans);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  white-space: nowrap;
}

.profile-stat .stat-label {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: var(--section-padding);
  background: var(--neutral-warm);
}

.service-category {
  margin-bottom: 5rem;
}

.service-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--primary-navy);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  /* Ensure proper spacing and prevent overflow */
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.service-card {
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  /* Ensure proper height and content alignment */
  min-height: 280px;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  /* iOS Mobile Animation Optimization */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  will-change: transform, opacity;
  /* Only transition non-GSAP properties to avoid conflicts */
  transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.service-card:hover {
  /* Only apply hover effects on non-touch devices to avoid iOS conflicts */
  box-shadow: var(--shadow-xl);
}

/* Separate hover transform for desktop only - avoid mobile conflicts */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-8px) translateZ(0);
  }
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.service-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
  color: var(--primary-navy);
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.3rem);
  line-height: 1.3;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
  /* Allow content to grow and fill space */
  flex-grow: 1;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 1vw, 0.5rem);
  margin-top: auto; /* Push to bottom of card */
}

.feature {
  background: var(--neutral-light);
  padding: clamp(0.3rem, 1vw, 0.4rem) clamp(0.6rem, 1.5vw, 0.8rem);
  border-radius: 15px;
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  color: var(--text-secondary);
  font-weight: 500;
  /* Ensure good touch targets */
  min-height: 28px;
  display: flex;
  align-items: center;
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies-section {
  padding: var(--section-padding);
  background: var(--white);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: var(--grid-gap);
}

.case-study-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--accent-gold);
  position: relative;
  /* iOS Mobile Animation Optimization */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  will-change: transform, opacity;
  /* Only transition non-GSAP properties to avoid conflicts */
  transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.case-study-card.featured {
  border-left-color: var(--primary-blue);
  grid-column: 1 / -1;
  max-width: none;
}

.case-study-card:hover {
  /* Only apply hover effects on non-touch devices to avoid iOS conflicts */
  box-shadow: var(--shadow-xl);
}

/* Separate hover transform for desktop only - avoid mobile conflicts */
@media (hover: hover) and (pointer: fine) {
  .case-study-card:hover {
    transform: translateY(-6px) translateZ(0);
  }
}

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.case-brand-info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.case-category {
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-brand-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-brand-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.case-challenge,
.case-solution,
.case-results {
  margin-bottom: 2rem;
}

.case-challenge h4,
.case-solution h4,
.case-results h4 {
  color: var(--primary-blue);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.case-challenge h4 i,
.case-solution h4 i,
.case-results h4 i {
  font-size: 1rem;
}

.case-challenge p,
.case-solution p {
  font-size: 1rem;
  line-height: 1.7;
}

.results-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.metric {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.metric-number {
  display: block;
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.additional-results {
  background: var(--neutral-light);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--neutral-warm);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--grid-gap);
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  border-top: 4px solid var(--primary-blue);
  transition: var(--transition-smooth);
}

.testimonial-card.featured {
  border-top-color: var(--accent-gold);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.quote-icon {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 1.0rem;
  opacity: 0.8;
}

.testimonial-quote p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.author-info h4 {
  color: var(--primary-navy);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.author-info span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: var(--section-padding);
  background: var(--neutral-light);
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.2), transparent);
}

.faq-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.2), transparent);
}

.faq-content {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 18px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(26, 35, 50, 0.08);
  border: 1px solid rgba(212, 165, 116, 0.12);
  transition: var(--transition-smooth);
  overflow: hidden;
  /* iOS Mobile Animation Optimization */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  will-change: transform, opacity;
}

.faq-item:hover {
  box-shadow: 0 8px 32px rgba(26, 35, 50, 0.12);
  border-color: rgba(212, 165, 116, 0.3);
}

/* Separate hover transform for desktop only - avoid mobile conflicts */
@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    transform: translateY(-4px) translateZ(0);
  }
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  cursor: pointer;
  position: relative;
  background: transparent;
  transition: var(--transition-smooth);
  /* Improve touch target */
  min-height: 64px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.faq-question:hover {
  background: rgba(212, 165, 116, 0.05);
}

.faq-question h3 {
  color: var(--primary-navy);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  margin-right: 1.5rem;
  font-family: var(--font-serif);
  /* Prevent text from breaking awkwardly */
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  /* Better mobile readability */
  letter-spacing: -0.01em;
}

.faq-question i {
  font-size: 1.2rem;
  color: var(--accent-gold);
  transition: var(--transition-smooth);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 clamp(1.75rem, 3vw, 2.25rem);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust based on content needs */
  padding: 0 clamp(1.75rem, 3vw, 2.25rem) clamp(1.75rem, 3vw, 2.25rem);
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  margin: 0;
  /* Better text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Improved readability */
  letter-spacing: 0.01em;
  word-spacing: 0.02em;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: var(--section-padding);
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact-details {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.2rem;
  color: var(--white);
}

.contact-text h4 {
  color: var(--primary-navy);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.contact-text p,
.contact-text a {
  color: var(--text-secondary);
  margin: 0;
  text-decoration: none;
  line-height: 1.6;
}

.contact-text a:hover {
  color: var(--primary-blue);
}

.contact-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  /* Improve touch target */
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.social-link:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
}

.contact-form-container {
  background: var(--neutral-warm);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-muted);
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

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

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

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(45, 74, 107, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-navy);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin: 0;
}

.footer-section h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.contact-info {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-navy);
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--accent-gold);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Extra large screens - prevent navigation from being too spread out */
@media (min-width: 1400px) {
  .nav-menu {
    max-width: 1000px;
    margin: 0 auto;
  }
}

/* Large tablets and small desktops - optimize navigation spacing */
@media (max-width: 1200px) {
  .nav-menu {
    gap: clamp(0.75rem, 2vw, 1.5rem);
  }
  
  .nav-link {
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    padding: clamp(0.2rem, 0.4vw, 0.4rem) clamp(0.4rem, 0.8vw, 0.8rem);
  }
}

/* Medium tablets - start compacting navigation */
@media (max-width: 1024px) {
  :root {
    --section-padding: 100px 0;
  }
  
  .nav-menu {
    gap: clamp(0.5rem, 1.5vw, 1rem);
  }
  
  .nav-link {
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    padding: clamp(0.15rem, 0.3vw, 0.3rem) clamp(0.3rem, 0.6vw, 0.6rem);
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
  }
  
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .client-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.2rem, 2.5vw, 1.8rem);
  }
}

/* Small tablets - prepare for mobile menu transition */
@media (max-width: 900px) {
  .nav-menu {
    gap: clamp(0.25rem, 1vw, 0.75rem);
  }
  
  .nav-link {
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    padding: clamp(0.1rem, 0.25vw, 0.25rem) clamp(0.2rem, 0.4vw, 0.4rem);
  }
  
  .nav-container {
    padding: 0 1.5rem;
  }
}

/* Switch to mobile hamburger menu at a more appropriate breakpoint for 8 items */
@media (max-width: 820px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .hero {
    padding-top: max(120px, 15vh);
    min-height: max(100vh, 600px); /* Ensure content doesn't get cut off */
    padding-bottom: max(2rem, 5vh);
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
  }
  
  .hero-content {
    margin-top: 2rem;
    padding: 0 1.5rem;
    max-width: 100%;
    width: 100%;
  }
  
  /* Improved text sizing for mobile */
  h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    line-height: 1.2;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 7vw, 3.2rem);
    line-height: 1.2;
    min-height: calc(1.2em * 3);
    margin-bottom: clamp(1.25rem, 3vw, 1.5rem);
    /* Improve readability on smaller screens */
    text-align: center;
    padding: 0 0.5rem;
  }
  
  h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  
  h3 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  
  p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    line-height: 1.6;
    padding: 0 0.5rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }
  
  .section-description {
    font-size: 1.1rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport units for better mobile support */
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    /* Prevent scrolling issues */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Add safe area support for iOS */
    padding-top: max(2rem, env(safe-area-inset-top));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    /* Optimize for mobile performance */
    transform: translateZ(0);
    will-change: transform;
    /* Reset flexbox properties from desktop */
    flex-wrap: nowrap;
    max-width: none;
  }
  
  .nav-menu .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 200px;
    min-height: 52px; /* Larger touch target for mobile */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Improve touch interaction */
    -webkit-tap-highlight-color: rgba(212, 165, 116, 0.1);
    touch-action: manipulation;
    /* Better text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .nav-menu .nav-link:hover {
    background: var(--neutral-light);
    color: var(--primary-blue);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-hamburger {
    display: flex;
    z-index: 1001;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: rgba(212, 165, 116, 0.2);
    touch-action: manipulation;
  }
  
  .nav-hamburger:hover {
    background: rgba(26, 35, 50, 0.05);
  }
  
  .nav-hamburger span {
    width: 24px;
    height: 2px;
    border-radius: 1px;
  }
  
  .nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
  }
  
  .hero-stats {
    gap: 1.5rem;
    flex-direction: column;
    margin: 2rem 0 1.5rem;
    padding: 0;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
  
  .case-study-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .case-category {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-section {
    padding: clamp(3rem, 6vw, 4rem) 0;
    background: var(--white);
  }
  
  .faq-section .section-header {
    margin-bottom: 3rem;
  }
  
  .faq-section .section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
  }
  
  .faq-section .section-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    padding: 0 1rem;
  }
  
  .faq-content {
    padding: 0 1.5rem;
  }
  
  .faq-item {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(26, 35, 50, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.15);
  }
  
  .faq-question {
    padding: 1.5rem 1.75rem;
    min-height: 60px;
  }
  
  .faq-question h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    line-height: 1.4;
    font-weight: 600;
    margin-right: 1.5rem;
  }
  
  .faq-question i {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
  }
  
  .faq-answer {
    padding: 0 1.75rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 1.75rem 1.5rem;
  }
  
  .faq-answer p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-secondary);
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .client-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .client-logo {
    width: 100%;
    height: clamp(4rem, 12vw, 6rem);
    margin-bottom: 1rem;
  }
  
  .results-metrics {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    min-height: max(100vh, 550px); /* Prevent truncation on short screens */
    padding-top: max(100px, 12vh);
    padding-bottom: max(2rem, 4vh);
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
  }
  
  .hero-content {
    padding: 0 1rem;
    max-width: 100%;
    width: 100%;
    margin-top: clamp(1rem, 3vh, 2rem);
    /* Ensure content is always visible */
    position: relative;
    z-index: 10;
  }
  
  .hero-text {
    margin-bottom: 1.5rem;
  }
  
  .service-card,
  .case-study-card,
  .testimonial-card {
    padding: 1.5rem;
    min-height: 240px;
  }
  
  .faq-section {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    background: var(--white);
  }
  
  .faq-section .section-header {
    margin-bottom: 2.5rem;
  }
  
  .faq-section .section-header h2 {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    margin-bottom: 1.25rem;
  }
  
  .faq-section .section-description {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    line-height: 1.55;
    padding: 0 0.75rem;
  }
  
  .faq-content {
    padding: 0 1rem;
  }
  
  .faq-item {
    margin-bottom: 1.25rem;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(26, 35, 50, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
  }
  
  .faq-question {
    padding: 1.25rem 1.5rem;
    min-height: 56px;
  }
  
  .faq-question h3 {
    font-size: clamp(1.05rem, 3.2vw, 1.2rem);
    line-height: 1.45;
    font-weight: 600;
    margin-right: 1.25rem;
  }
  
  .faq-question i {
    font-size: 1.1rem;
    width: 26px;
    height: 26px;
  }
  
  .faq-answer {
    padding: 0 1.5rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
  }
  
  .faq-answer p {
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    line-height: 1.75;
    color: var(--text-secondary);
    margin-top: 0.5rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .client-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .client-logo {
    width: 100%;
    height: clamp(4rem, 10vw, 6rem);
    margin-bottom: 0.75rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    min-height: 48px;
  }
  
  .hero-cta {
    gap: 1rem;
    margin-top: 2rem;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
  }
  
  .hero-cta .btn {
    max-width: 280px;
    display: inline-flex !important;
    visibility: visible !important;
  }
  
  /* Better form elements on small screens */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 1.2rem;
    font-size: 1rem;
  }
  
  /* Improve stat display on mobile */
  .stat-number {
    font-size: 2.2rem;
  }
  
  .metric-number {
    font-size: 2rem;
  }
  
  /* Better client logo cards */
  .client-logo-card {
    padding: 0.5rem;
    border-radius: 16px;
  }
  
  .client-desc {
    font-size: 0.75rem;
  }
  
  /* Fix font hierarchy - ensure category titles are smaller than section headers */
  .category-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
  }
}

/* ===== MOBILE PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  .service-card:hover,
  .case-study-card:hover,
  .testimonial-card:hover {
    transform: translateY(-4px);
  }
  
  .client-logo-card:hover {
    transform: translateY(-8px);
  }
  
  /* Simplify shadows on mobile */
  .service-card:hover,
  .case-study-card:hover,
  .testimonial-card:hover {
    box-shadow: 0 8px 25px rgba(26, 35, 50, 0.15);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* animation-duration: 0.01ms !important; */
    /* animation-iteration-count: 1 !important; */
    /* transition-duration: 0.01ms !important; */
    animation-delay: -1ms !important;
    /* animation-fill-mode: forwards !important; */
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Improved focus visibility */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Focus styles for keyboard navigation */
/* button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
} */

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-navy: #000000;
    --primary-blue: #0056b3;
    --text-secondary: #333333;
    --text-muted: #555555;
    --border-color: rgba(0, 0, 0, 0.3);
  }
}

/* ===== TABLET OPTIMIZATIONS ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  
  .profile-hero-bg {
    height: 450px;
  }
  
  .profile-avatar {
    width: 130px;
    height: 130px;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects on touch devices */
  .service-card:hover,
  .client-logo-card:hover,
  .case-study-card:hover,
  .faq-item:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  .service-card:hover::before,
  .client-logo-card:hover::before {
    transform: scaleX(0);
  }
  
  .service-card:hover .service-icon {
    transform: none;
  }
  
  .faq-question:hover {
    background: transparent;
  }
  
  /* Add focus states for accessibility */
  .service-card:focus,
  .client-logo-card:focus,
  .faq-item:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
  }
  
  .faq-question:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* ===== MOBILE-SPECIFIC IMPROVEMENTS ===== */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  /* Improve scrolling performance on mobile */
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Better tap highlights */
  a, button, input, select, textarea {
    -webkit-tap-highlight-color: rgba(45, 74, 107, 0.2);
  }
  
  /* Prevent zoom on input focus */
  input, select, textarea {
    font-size: 16px;
  }
  
  /* Improve card interactions */
  .service-card,
  .case-study-card,
  .testimonial-card,
  .client-logo-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Better hero stats layout */
  .hero-stats {
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* Improved contact section spacing */
  .contact-details {
    margin-bottom: 2rem;
  }
  
  .contact-item {
    margin-bottom: 1.5rem;
  }
  
  /* Consolidated mobile client logos - removed conflicting auto-fit rule */
  
  .client-logo-card {
    padding: 1.2rem 0.8rem;
    min-height: 100px;
  }
  
  /* Profile optimizations for mobile */
  .profile-stats {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    gap: 0;
  }

  .profile-stat .stat-number {
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  }

  .profile-stat .stat-label {
    font-size: clamp(0.75rem, 2.2vw, 0.85rem);
    line-height: 1.2;
    white-space: nowrap;
  }
  
  .languages {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .profile-hero-bg {
    height: 380px;
  }
    
  .profile-avatar {
    width: 110px;
    height: 110px;
  }
  
  /* Better results metrics layout */
  .results-metrics {
    gap: 1.5rem;
    justify-content: center;
  }
  
  .metric {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  /* Ultra-small screen optimizations */
  .navbar {
    padding: 1rem 0;
  }
  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    line-height: 1.2;
    min-height: calc(1.2em * 3);
    overflow: visible;
    margin-bottom: clamp(1rem, 2vw, 1.25rem);
    /* Ensure text doesn't overflow on very small screens */
    padding: 0 0.25rem;
    word-break: break-word;
  }
  
  .about-profile-card {
    margin: 0;
    max-width: 100%;
  }
  
  .profile-hero-bg {
    height: 420px;
  }
  
  .profile-avatar {
    width: 110px;
    height: 110px;
  }
  
  .languages {
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  
  .language {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
  
  /* Consolidated client logo styles - removed conflicting auto-fit rule */
  
  .client-logo-card {
    padding: 0.5rem 0.5rem;
    min-height: 90px;
    border-radius: 16px;
  }
  
  .client-name {
    font-size: 1rem;
  }
  
  /* Consolidated case study styles */
  .case-brand-info h3 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  
  .case-study-header {
    margin-bottom: 1.5rem;
  }
  
  /* Consolidated profile styles */
  .profile-overlay {
    padding: 1.5rem 1rem;
  }
  
  .profile-stats {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    gap: 0;
  }

  .profile-stat .stat-number {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
  }

  .profile-stat .stat-label {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    line-height: 1.2;
    white-space: nowrap;
  }
  
  /* Consolidated metrics styles */
  .metric {
    min-width: 100px;
  }
  
  .results-metrics {
    gap: 1.5rem;
    justify-content: center;
  }
}

/* ===== CUSTOM ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Typing cursor animation */
.typed-cursor {
  opacity: 1;
  animation: blink 1s infinite;
}

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

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* Content visibility for performance */
/* Content visibility disabled for sections with GSAP animations to prevent scroll trigger conflicts */
/* @supports (content-visibility: auto) {
  .services-section,
  .case-studies-section,
  .testimonials-section {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
  }
} */

/* Optimize font loading */
@media (max-width: 768px) {
  /* Reduce expensive effects on mobile */
  .navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .client-logo-card {
    backdrop-filter: blur(10px);
  }
  
  /* Optimize animations for mobile performance */
  * {
    animation-fill-mode: both;
  }
  
  [data-aos] {
    /* Reduce AOS animation duration on mobile */
    transition-duration: 0.4s !important;
  }
}

/* ===== SHORT VIEWPORT HEIGHT OPTIMIZATIONS ===== */
@media (max-height: 900px) {
  .hero {
    /* min-height: auto !important; */
    padding-top: 100px;
    padding-bottom: 2rem;
    align-items: flex-start;
  }
  
  .hero-content {
    margin-top: 1rem;
  }
  
  .hero-stats {
    margin: 1.5rem 0;
    gap: 1.5rem;
  }
  
  .hero-cta {
    margin-top: 1.5rem;
  }
}

@media (max-height: 500px) {
  /* Make Navbar along with menu items and logo smaller when viewport is short, just like when it's scrolled */
  .navbar {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
  }  
  .navbar .nav-logo {
    height: 45px;
  }
  .hero {
    padding-top: 80px;
    padding-bottom: 1rem;
  }
  
  .hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    margin-bottom: 0rem !important;
  }
  
  .hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-stats {
    margin: 1rem 0;
    gap: 1rem;
  }
  
  .stat-number {
    font-size: clamp(1.8rem, 4vw, 2.2rem) !important;
  }
}

/* ===== iOS SAFE AREA SUPPORT ===== */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .hero {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(4rem, env(safe-area-inset-bottom));
  }
  
  .container {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
  
  @media (max-width: 768px) {
    .container {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
  }
}

/* ===== TOOLS & PLATFORMS SECTION (ABOUT) ===== */
.tools-platforms-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--neutral-light);
  border-radius: 16px;
  border-left: 4px solid var(--accent-gold);
}

.tools-platforms-section h4 {
  color: var(--primary-navy);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.tools-platforms-section p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===== B2B SERVICES SECTION ===== */
.b2b-services-section {
  padding: var(--section-padding);
  background: var(--primary-navy);
  color: var(--white);
}

.b2b-services-section .section-header h2 {
  color: var(--white);
}

.b2b-services-section .section-subtitle {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.b2b-services-section .section-description {
  color: rgba(255, 255, 255, 0.9);
}

.b2b-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.b2b-service-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 165, 116, 0.2);
  position: relative;
  overflow: hidden;
  /* Only transition non-GSAP properties to avoid conflicts */
  transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth), background-color var(--transition-smooth);
  /* Ensure proper height and content alignment */
  min-height: 300px;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  /* iOS Mobile Animation Optimization */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  will-change: transform, opacity;
}

.b2b-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.b2b-service-card:hover {
  /* Transform handled by GSAP - only apply safe CSS properties */
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 1);
}

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

.b2b-service-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.b2b-service-icon i {
  font-size: 1.8rem;
  color: var(--white);
}

/* .b2b-service-card:hover .b2b-service-icon - Transform handled by GSAP hover animations */

.b2b-service-card h3 {
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  line-height: 1.3;
  font-family: var(--font-serif);
  font-weight: 600;
}

.b2b-service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.b2b-service-features li {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
}

.b2b-service-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1.1rem;
}

.b2b-service-features li:last-child {
  margin-bottom: 0;
}

.b2b-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.b2b-client-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(212, 165, 116, 0.3);
  transition: var(--transition-smooth);
}

.b2b-client-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.b2b-client-card h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-family: var(--font-serif);
  font-weight: 600;
}

.b2b-client-card p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== QUALIFYING QUESTIONS (CONTACT) ===== */
.qualifying-questions {
  background: var(--neutral-light);
  padding: 2.5rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  border-left: 6px solid var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.qualifying-questions h3 {
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
}

.qualification-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.qualification-list li {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.7;
}

.qualification-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1.2rem;
  width: 1.5rem;
  text-align: center;
}

.qualification-list li:last-child {
  margin-bottom: 0;
}

.qualification-cta {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
  text-align: center;
  font-style: italic;
}

/* ===== RESPONSIVE STYLES FOR NEW COMPONENTS ===== */

@media (max-width: 1024px) {
  .b2b-services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .tools-platforms-section {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  .tools-platforms-section h4 {
    font-size: 1.2rem;
  }
  
  .tools-platforms-section p {
    font-size: 1rem;
  }
  
  .b2b-services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .b2b-service-card {
    padding: 2rem;
    min-height: 250px;
  }
  
  .b2b-service-icon {
    width: 60px;
    height: 60px;
  }
  
  .b2b-service-icon i {
    font-size: 1.5rem;
  }
  
  .b2b-clients-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .b2b-client-card {
    padding: 1.5rem;
  }
  
  .b2b-client-card h4 {
    font-size: 1.2rem;
  }
  
  .qualifying-questions {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .qualifying-questions h3 {
    font-size: 1.3rem;
  }
  
  .qualification-list li {
    font-size: 1rem;
    padding-left: 1.5rem;
  }
  
  .qualification-cta {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .tools-platforms-section {
    padding: 1.25rem;
  }
  
  .b2b-service-card {
    padding: 1.5rem;
    min-height: 220px;
  }
  
  .b2b-service-card h3 {
    font-size: 1.2rem;
  }
  
  .b2b-service-features li {
    font-size: 0.95rem;
  }
  
  .b2b-client-card {
    padding: 1.25rem;
  }
  
  .b2b-client-card h4 {
    font-size: 1.1rem;
  }
  
  .b2b-client-card p {
    font-size: 0.95rem;
  }
  
  .qualifying-questions {
    padding: 1.5rem;
  }
  
  .qualifying-questions h3 {
    font-size: 1.2rem;
  }
  
  .qualification-list li {
    font-size: 0.95rem;
    padding-left: 1.25rem;
  }
  
  .qualification-cta {
    font-size: 1rem;
  }
}

/* Touch device optimizations for new components */
@media (hover: none) and (pointer: coarse) {
  .b2b-service-card:hover {
    /* Transform handled by GSAP - only apply safe CSS properties */
    box-shadow: var(--shadow-lg);
  }
  
  .b2b-service-card:hover::before {
    transform: scaleX(0);
  }
  
  /* .b2b-service-card:hover .b2b-service-icon - Transform handled by GSAP to avoid conflicts */
  
  .b2b-service-card:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
  }
}

/* Separate hover transform for desktop only - avoid mobile conflicts */
@media (hover: hover) and (pointer: fine) {
  /* .b2b-service-card:hover - Transform handled by GSAP to avoid conflicts */
}

/* Additional responsive styles for new components */

