:root {
  --primary-blue: #2563eb;
  --primary-blue-dark: #1e40af;
  --primary-blue-light: #3b82f6;
  --accent-orange: #f97316;
  --accent-orange-light: #fb923c;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  padding-top: 72px; /* Account for fixed header */
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-section a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
}

.logo-text {
  color: #000000;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

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

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

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

.nav-menu a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

/* Mega Menu Styles */
.nav-item-with-dropdown {
  position: relative;
}

.nav-item-with-dropdown > a::after {
  content: '▼';
  font-size: 10px;
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.nav-item-with-dropdown:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 95vw;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-top: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item-with-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Disable hover on mobile - use click instead */
@media (max-width: 640px) {
  .nav-item-with-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none; /* Override with display for mobile */
  }
  
  .nav-item-with-dropdown.active .mega-menu {
    display: block;
  }
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.mega-menu-section {
  display: flex;
  flex-direction: column;
}

.mega-menu-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-light);
}

.mega-menu-item {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-bottom: 8px;
}

.mega-menu-item:hover {
  background: var(--bg-light);
  transform: translateX(4px);
}

.mega-menu-item-content {
  flex: 1;
}

.mega-menu-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.mega-menu-item:hover .mega-menu-item-title {
  color: var(--primary-blue);
}

.mega-menu-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.nav-menu a.nav-cta {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-menu a.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Hero Section */
.hero {
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
  position: relative;
  overflow: hidden;
  margin-top: 0; /* Reset margin since body has padding-top */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  max-width: 100%;
}

.hero-illustration {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  max-width: 100%;
}

.hero-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  max-height: 500px;
}

.illustration-box {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(249, 115, 22, 0.05));
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.image-suggestion {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* Section Styles */
section {
  padding: 80px 24px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Value Props */
.value-props {
  background: var(--bg-light);
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.prop-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.prop-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.prop-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.prop-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* Services */
.services {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  color: var(--text-secondary);
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: 700;
}

/* Industries */
.industries {
  background: var(--bg-light);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.industry-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-orange);
}

.industry-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.industry-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.industry-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Workflow */
.workflow {
  background: white;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  gap: 24px;
  align-items: center;
  padding: 32px;
  background: var(--bg-light);
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.step-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.step-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-blue);
}

.step-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-icon {
  font-size: 40px;
  text-align: center;
}

/* Case Studies */
.case-studies {
  background: var(--bg-light);
}

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

.case-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.case-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.case-industry {
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(249, 115, 22, 0.1));
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-blue);
}

.case-goal,
.case-approach,
.case-outcome {
  margin-bottom: 16px;
}

.case-goal strong,
.case-approach strong,
.case-outcome strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}

.case-outcome ul {
  list-style: none;
  margin-top: 8px;
}

.case-outcome li {
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  margin-bottom: 6px;
}

.case-outcome li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 700;
}

/* Clients / Trusted By Section */
.clients-section {
  background: white;
  padding: 80px 24px;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.client-logo {
  width: 100%;
  max-width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.client-logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-logo .logo-placeholder {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
}

/* Featured On / Press Section */
.featured-section {
  background: var(--bg-light);
  padding: 80px 24px;
}

.featured-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-logo {
  width: 100%;
  max-width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.8;
}

.featured-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-orange);
}

.featured-logo img {
  max-width: 100%;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.featured-logo .logo-placeholder {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  padding: 10px;
  letter-spacing: 0.5px;
}

/* Testimonials */
.testimonials {
  background: white;
}

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

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-orange);
}

.testimonial-content {
  margin-bottom: 24px;
}

.testimonial-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  gap: 16px;
  align-items: center;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.author-title {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.author-company {
  font-size: 12px;
  color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  padding: 80px 24px;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  color: white;
}

.cta-content p {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-banner .btn-primary {
  background: white;
  color: var(--primary-blue);
}

.cta-banner .btn-primary:hover {
  background: var(--bg-light);
}

.cta-banner .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-banner .btn-secondary:hover {
  background: white;
  color: var(--primary-blue);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 60px 24px 24px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  display: block;
  flex-shrink: 0;
}

.footer-logo .logo-text {
  white-space: nowrap;
  color: white;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-top: 16px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

/* Tablet adjustments for mega menu */
@media (max-width: 1024px) and (min-width: 769px) {
  .mega-menu {
    width: 800px;
  }

  .mega-menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ensure 2x2 grid for 4 items in props-grid on medium to large screens */
@media (min-width: 700px) and (max-width: 1400px) {
  .props-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Allow more columns on very large screens if needed */
@media (min-width: 1401px) {
  .props-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Responsive */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image {
    max-width: 100%;
    max-height: 400px;
  }

  .hero-title {
    font-size: 42px;
  }

  .section-title {
    font-size: 36px;
  }

  .nav-menu {
    gap: 16px;
  }

  .nav-menu a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .nav-menu a.nav-cta {
    padding: 10px 20px;
    font-size: 14px;
  }

  .step-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step-number,
  .step-icon {
    display: none;
  }

  .services-grid,
  .props-grid,
  .industries-grid,
  .case-studies-grid,
  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  .clients-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .featured-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .service-card[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

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

  section {
    padding: 60px 24px;
  }

  .hero {
    padding: 60px 24px;
  }
}

/* Office Gallery Styles */
.office-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.office-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bg-white);
}

.office-gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.office-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.office-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.office-gallery-item:hover .office-image {
  transform: scale(1.05);
}

.office-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.office-gallery-item:hover .office-image-overlay {
  opacity: 1;
}

.office-image-label {
  color: var(--bg-white);
  font-size: 16px;
  font-weight: 600;
  display: block;
}

@media (max-width: 640px) {
  body {
    padding-top: 64px; /* Smaller header on mobile */
  }
  
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-image {
    max-height: 300px;
  }

  .hero-illustration {
    padding: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .nav-container {
    flex-wrap: wrap;
    position: relative;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    display: none;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu a.nav-cta {
    border-radius: 8px;
    border: none;
    text-align: center;
  }

  /* Mobile mega menu styles */
  .nav-item-with-dropdown {
    width: 100%;
  }

  .nav-item-with-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-item-with-dropdown > a::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
  }

  .nav-item-with-dropdown.active > a::after {
    transform: rotate(180deg);
  }

  .mega-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none !important;
    left: auto;
    margin-top: 0;
    margin-left: 0;
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border-color);
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-item-with-dropdown.active .mega-menu {
    display: block !important;
  }
  
  /* Disable hover effects on mobile */
  .nav-item-with-dropdown:hover .mega-menu {
    display: none;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mega-menu-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .mega-menu-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .mega-menu-section-title {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .mega-menu-item {
    padding: 10px;
    margin-bottom: 4px;
  }

  .mega-menu-item-title {
    font-size: 14px;
  }

  .mega-menu-item-desc {
    font-size: 12px;
  }

  .hero-cta-group,
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .stat-item {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .prop-card,
  .service-card,
  .industry-card,
  .case-card,
  .testimonial-card {
    padding: 24px;
  }

  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .featured-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .client-logo,
  .featured-logo {
    max-width: 100%;
    height: 80px;
    padding: 16px;
  }

  .client-logo .logo-placeholder,
  .featured-logo .logo-placeholder {
    font-size: 12px;
    padding: 10px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .workflow-steps {
    gap: 16px;
  }

  .step-item {
    padding: 24px;
  }

  .office-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .office-image {
    height: 300px;
  }
}

