/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4830cc;
  --secondary-color: #fe9906;
  --tertiary-color: #8657f0;
  --accent-purple: #6366f1;
  --accent-pink: #ec4899;
  --text-dark: #0f172a;
  --text-medium: #334155;
  --text-light: #64748b;
  --background-light: #f8fafc;
  --background-white: #ffffff;
  --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --border-light: #e2e8f0;
  --shadow-light: 0 4px 6px -1px rgba(72, 48, 204, 0.1),
    0 2px 4px -1px rgba(72, 48, 204, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(72, 48, 204, 0.1),
    0 4px 6px -2px rgba(72, 48, 204, 0.05);
  --shadow-large: 0 25px 50px -12px rgba(72, 48, 204, 0.25);
  --border-radius: 16px;
  --border-radius-small: 8px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

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

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

em {
  color: var(--primary-color);
  font-style: italic;
}

strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Highlight text */
.text-highlight {
  /* background-color: #ff5722; choose any color you like */
  color: var(--primary-color); /* white text */
  /* padding: 0.2em 0.4em;      optional: adds some spacing */
  /* border-radius: 0.2em;      optional: rounded corners */
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  /* border-bottom: 2px solid var(--primary-color); */
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo img {
  transition: var(--transition);
}

.nav-logo:hover img {
  transform: rotate(10deg);
}

.nav-brand {
  font-family: "Playfair Display", serif;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--primary-color);
  background: rgba(72, 48, 204, 0.1);
  transform: translateY(-2px);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--tertiary-color)
  );
  border-radius: 2px;
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after,
.nav-menu a.nav-active::after {
  width: 80%;
}

.nav-menu a.nav-active {
  color: var(--primary-color);
  background: rgba(72, 48, 204, 0.1);
}

/* Navigation Frost Glass Effect */
.nav-frost-glass {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 50%, var(--secondary-color) 100%); */
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

/* Hero Animation Elements */
.hero-title {
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(30px);
}

.hero .cta-button {
  opacity: 0;
  transform: translateY(30px);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(72, 48, 204, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(254, 153, 6, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(134, 87, 240, 0.15) 0%,
      transparent 50%
    );
  /* animation: float 25s ease-in-out infinite; */
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  animation: drift 40s linear infinite;
}

.hero-container {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-medium);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

.hero .cta-button {
  background: linear-gradient(135deg, #fe9906 0%, #ff6b6b 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(254, 153, 6, 0.4);
  position: relative;
  overflow: hidden;
}

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

.hero .cta-button:hover::before {
  left: 100%;
}

.hero .cta-button:hover,
.hero .cta-button:focus {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(254, 153, 6, 0.6);
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  background: linear-gradient(135deg, #fe9906 0%, #ff6b6b 100%);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(254, 153, 6, 0.4);
  position: relative;
  overflow: hidden;
  width: auto;
  /* Mobile touch optimizations */
  -webkit-tap-highlight-color: rgba(254, 153, 6, 0.3);
  -webkit-touch-callout: default;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
  cursor: pointer;
}

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

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(254, 153, 6, 0.6);
}

.cta-button.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: auto;
}

/* CTA Button Layout Components */
.cta-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-separator {
  width: 1px;
  background-color: #ffffff;
  align-self: stretch;
  min-height: 40px;
  flex-shrink: 0;
}

.cta-text {
  flex: 1;
  text-align: left;
}

/* Mobile line break - hidden by default */
.mobile-break {
  display: none;
}

/* Sections */
section {
  padding: 6rem 0;
  position: relative;
}

section:nth-child(even) {
  background: var(--background-light);
}

/* section:not(:last-of-type)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(72, 48, 204, 0.3), transparent);
  border-radius: 0.5px;
} */

/* About Section */
.about {
  background: var(--background-white);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(72, 48, 204, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-text {
  opacity: 0;
  transform: translateY(30px);
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-medium);
}

.about-illustration {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
}

.illustration-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.dotted-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, #94a3b8 1.5px, transparent 1.5px);
  background-size: 25px 25px;
  opacity: 0.4;
  z-index: 1;
}

.dotted-grid--low-opacity {
  opacity: 0.25;
}

.path-illustration {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.path-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.path-dot.start {
  opacity: 0;
}

.path-dot.end {
  opacity: 0;
}

.digital-element {
  opacity: 0;
  transform: scale(0.3);
  transform-origin: center;
}

/* Services Section */
.services {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  text-align: center;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.services-intro {
  font-size: 1.25rem;
  color: var(--text-medium);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--background-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-color: var(--primary-color);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--tertiary-color)
  );
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

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

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.service-icon {
  width: 72px;
  height: 72px;
  color: var(--primary-color);
  margin: 0 auto 1.5rem;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(72, 48, 204, 0.1),
    rgba(254, 153, 6, 0.1)
  );
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(72, 48, 204, 0.2),
    rgba(254, 153, 6, 0.2)
  );
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-medium);
  margin-bottom: 0;
}

/* Approach Section */
.approach::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.approach {
  background: var(--background-white);
  position: relative;
  overflow: hidden;
}

.approach::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(72, 48, 204, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

.approach-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.approach-content::before {
  content: "";
  position: absolute;
  bottom: -3rem;
  left: -2rem;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, #94a3b8 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.3;
  z-index: 1;
}

.approach-text {
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
}

.approach-text h2 {
  margin-bottom: 1.5rem;
}

.approach-intro {
  font-size: 1.25rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.approach-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.process-subtitle {
  color: var(--text-medium);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.approach-conclusion {
  font-size: 1.125rem;
  color: var(--text-medium);
  font-style: italic;
  margin-top: 2rem;
}

.process-flow {
  position: relative;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-step {
  background: var(--background-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--tertiary-color)
  );
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

.process-step:hover::before {
  transform: scaleX(1);
}

.process-step:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.step-icon {
  width: 72px;
  height: 72px;
  color: var(--primary-color);
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(72, 48, 204, 0.1),
    rgba(254, 153, 6, 0.1)
  );
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
}

.process-step:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(72, 48, 204, 0.2),
    rgba(254, 153, 6, 0.2)
  );
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-size: 1.25rem;
}

.step-content p {
  color: var(--text-medium);
  margin-bottom: 0;
  line-height: 1.6;
}

.step-connector {
  width: 2px;
  height: 1.5rem;
  background: var(--primary-color);
  margin: 0 auto;
  position: relative;
  left: 0;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
}

/* Experience Section */
.experience::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.experience {
  text-align: center;
}

.experience h2 {
  margin-bottom: 1rem;
}

.experience > p {
  font-size: 1.125rem;
  color: var(--text-medium);
  margin-bottom: 3rem;
}

.industries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.industry-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.industry-tag:hover {
  background: var(--tertiary-color);
  transform: translateY(-2px);
}

.experience-conclusion {
  font-size: 1.125rem;
  color: var(--text-medium);
  max-width: 800px;
  margin: 0 auto;
}

/* Locations Section */
.locations::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.locations {
  text-align: center;
}

.locations h2 {
  margin-bottom: 1rem;
}

.locations > p {
  font-size: 1.125rem;
  color: var(--text-medium);
  margin-bottom: 3rem;
}

.locations-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  margin: 3rem 0;
  position: relative;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Location Connector Line */
.location-connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  z-index: 1;
}

.connector-line {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Ensure it doesn't interfere with card interactions */
}

/* Horizontal line for desktop layout */
.connector-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--primary-color);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: block; /* Show horizontal line on desktop */
  opacity: 1; /* Make sure it's visible */
  z-index: 1; /* Ensure line stays behind circles */
}

/* Vertical line for mobile layout */
.connector-line::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  bottom: 20px;
  width: 3px;
  background: var(--primary-color);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: none; /* Hide vertical line on desktop */
  opacity: 1; /* Make sure it's visible when shown */
  z-index: 1; /* Ensure line stays behind circles */
}

/* Animation states */
.connector-line.animate-horizontal::before {
  transform: translateY(-50%) scaleX(1);
}

.connector-line.animate-vertical::after {
  transform: translateX(-50%) scaleY(1);
}

/* Pulsating dots at both ends of the connector line */
.pulsating-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--secondary-color);
  border-radius: 50%;
  z-index: 10;
  animation: pulsate 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(254, 153, 6, 0.7);
}

.pulsating-dot--left {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.pulsating-dot--right {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/* Pulsating animation keyframes */
@keyframes pulsate {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(254, 153, 6, 0.7);
  }
  50% {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 0 8px rgba(254, 153, 6, 0);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(254, 153, 6, 0);
  }
}

/* Adjust pulsating dots for vertical layout */
.connector-line.animate-vertical .pulsating-dot--left {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.connector-line.animate-vertical .pulsating-dot--right {
  top: auto;
  bottom: 20px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

/* Update pulsating animation for vertical layout */
.connector-line.animate-vertical .pulsating-dot {
  animation: pulsateVertical 2s ease-in-out infinite;
}

@keyframes pulsateVertical {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(254, 153, 6, 0.7);
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 8px rgba(254, 153, 6, 0);
  }
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(254, 153, 6, 0);
  }
}

/* SPARK Circles */
.spark-circles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: calc(100% - 40px);
  min-height: 60px;
  max-width: 300px;
  pointer-events: none;
  z-index: 5;
}

.spark-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: 
    linear-gradient(
      135deg,
      rgba(72, 48, 204, 0.15),
      rgba(254, 153, 6, 0.15)
    ),
    var(--background-white);
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(72, 48, 204, 0.3), 0 2px 4px rgba(72, 48, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 18px;
  color: var(--primary-color);
  opacity: 1;
  transform: scale(0);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 6;
}

.spark-circle:hover {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(72, 48, 204, 0.2),
    rgba(254, 153, 6, 0.2)
  );
  box-shadow: 0 6px 16px rgba(72, 48, 204, 0.4), 0 3px 6px rgba(72, 48, 204, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation for horizontal layout */
.location-connector:has(.connector-line.animate-horizontal) .spark-circle {
  animation: sparkLoopHorizontal 3s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.location-connector:has(.connector-line.animate-horizontal) .spark-circle:nth-child(1) {
  animation-delay: 1.5s;
}

.location-connector:has(.connector-line.animate-horizontal) .spark-circle:nth-child(2) {
  animation-delay: 1.6s;
}

.location-connector:has(.connector-line.animate-horizontal) .spark-circle:nth-child(3) {
  animation-delay: 1.7s;
}

.location-connector:has(.connector-line.animate-horizontal) .spark-circle:nth-child(4) {
  animation-delay: 1.8s;
}

.location-connector:has(.connector-line.animate-horizontal) .spark-circle:nth-child(5) {
  animation-delay: 1.9s;
}

/* Animation for vertical layout - circles remain horizontal */
.location-connector:has(.connector-line.animate-vertical) .spark-circles {
  flex-direction: row;
  width: calc(100% - 40px);
  min-height: 60px;
  max-width: 300px;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.location-connector:has(.connector-line.animate-vertical) .spark-circle {
  animation: sparkLoopVertical 3s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.location-connector:has(.connector-line.animate-vertical) .spark-circle:nth-child(1) {
  animation-delay: 1.5s;
}

.location-connector:has(.connector-line.animate-vertical) .spark-circle:nth-child(2) {
  animation-delay: 1.6s;
}

.location-connector:has(.connector-line.animate-vertical) .spark-circle:nth-child(3) {
  animation-delay: 1.7s;
}

.location-connector:has(.connector-line.animate-vertical) .spark-circle:nth-child(4) {
  animation-delay: 1.8s;
}

.location-connector:has(.connector-line.animate-vertical) .spark-circle:nth-child(5) {
  animation-delay: 1.9s;
}

/* Keyframe animations */
@keyframes sparkPopHorizontal {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sparkPopVertical {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Looping spark circle animations */
@keyframes sparkLoopHorizontal {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  20% {
    opacity: 1;
    transform: scale(1.15);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
  60% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes sparkLoopVertical {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  20% {
    opacity: 1;
    transform: scale(1.15);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
  60% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}



.location-card {
  background: var(--background-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 320px; /* Slightly smaller base size to fit better */
  justify-self: start;
  max-width: 100%; /* Ensure it doesn't overflow on small screens */
  justify-content: space-between; /* Ensure email link stays at bottom */
}

.location-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--tertiary-color)
  );
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

.location-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.location-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  max-width: 100%;
  align-self: center;
}

.headquarters .location-badge {
  background: linear-gradient(
    135deg,
    rgba(72, 48, 204, 0.1),
    rgba(254, 153, 6, 0.1)
  );
  color: var(--primary-color);
  border: 1px solid rgba(72, 48, 204, 0.2);
}

.satellite .location-badge {
  background: linear-gradient(
    135deg,
    rgba(72, 48, 204, 0.1),
    rgba(254, 153, 6, 0.1)
  );
  color: var(--primary-color);
  border: 1px solid rgba(72, 48, 204, 0.2);
}

.location-card.satellite {
  justify-self: end;
}

.location-icon {
  width: 72px;
  height: 72px;
  color: var(--primary-color);
  margin: 0 auto 1.5rem;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(72, 48, 204, 0.1),
    rgba(254, 153, 6, 0.1)
  );
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
}

.headquarters-icon {
  color: var(--primary-color);
}

.satellite-icon {
  color: var(--tertiary-color);
}

.location-card:hover .location-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(72, 48, 204, 0.2),
    rgba(254, 153, 6, 0.2)
  );
}

.location-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.location-address {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 120px;
  text-align: center;
  margin-bottom: 1rem; /* Add space before email link */
}

.location-address p {
  margin-bottom: 0.25rem;
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.4;
}

.location-address p:first-child {
  color: var(--text-dark);
  font-weight: 600;
}

.location-address p:last-child {
  margin-bottom: 0;
}

/* Location Email Link */
.location-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(72, 48, 204, 0.3);
  position: relative;
  overflow: hidden;
  width: fit-content;
  align-self: center;
  margin-top: auto; /* Push to bottom of flex container */
  /* Mobile touch optimizations */
  -webkit-tap-highlight-color: rgba(72, 48, 204, 0.3);
  -webkit-touch-callout: default;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
  cursor: pointer;
}

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

.location-email-link:hover::before {
  left: 100%;
}

.location-email-link:hover,
.location-email-link:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(72, 48, 204, 0.4);
  background: var(--tertiary-color);
}

.location-email-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-email-separator {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.6);
  align-self: stretch;
  min-height: 20px;
  flex-shrink: 0;
}

.location-email-text {
  flex: 1;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.3;
}


.locations-conclusion {
  font-size: 1.125rem;
  color: var(--text-medium);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}


/* Values Section */
.values {
  text-align: center;
  background: var(--background-white);
  position: relative;
  overflow: hidden;
}

.values::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(72, 48, 204, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

/* .values::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-pink));
  border-radius: 2px;
} */

.values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.values > p {
  font-size: 1.25rem;
  color: var(--text-medium);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.values-grid::before {
  content: "";
  position: absolute;
  bottom: -3rem;
  left: -2rem;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, #94a3b8 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.3;
  z-index: 1;
}

.value-card {
  background: var(--background-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-color: var(--primary-color);
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--tertiary-color)
  );
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

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

.value-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.value-icon {
  width: 72px;
  height: 72px;
  color: var(--primary-color);
  margin: 0 auto 1.5rem;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(72, 48, 204, 0.1),
    rgba(254, 153, 6, 0.1)
  );
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(72, 48, 204, 0.2),
    rgba(254, 153, 6, 0.2)
  );
}

.value-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.value-card p {
  color: var(--text-medium);
  margin-bottom: 0;
}

/* Contact Section */
.contact {
  /* background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--tertiary-color) 50%,
    var(--secondary-color) 100%
  ); */
  color: var(--text-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(72, 48, 204, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(254, 153, 6, 0.2) 0%,
      transparent 50%
    );
  /* animation: float 25s ease-in-out infinite reverse; */
}

.contact::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  animation: drift 40s linear infinite;
  z-index: 1;
}

.contact h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
}

.contact p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: var(--text-medium);
  opacity: 0;
  transform: translateY(30px);
}

.contact-content {
  position: relative;
  z-index: 3;
}

.contact .cta-button {
  background: linear-gradient(135deg, #fe9906 0%, #ff6b6b 100%);
  color: white;
  opacity: 0;
  transform: translateY(30px);
  animation: none;
  box-shadow: 0 10px 30px rgba(254, 153, 6, 0.4);
  position: relative;
  overflow: hidden;
}

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

.contact .cta-button:hover::before {
  left: 100%;
}

.contact .cta-button:hover,
.contact .cta-button:focus {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(254, 153, 6, 0.6);
}

/* Footer */
.footer {
  background: var(--background-white);
  color: var(--text-dark);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer p {
  margin: 0;
  opacity: 0.8;
  color: var(--text-dark);
}

/* Animation Classes for JavaScript Control */
.animate-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in.animate {
  opacity: 1;
}

.animate-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-stagger.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(1deg);
  }
  66% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

@keyframes drift {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

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

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

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

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 120px;
    height: 120px;
    opacity: 0;
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Optimize layout for larger tablets and small laptops - normal size but ensure fit */
@media (min-width: 901px) and (max-width: 1100px) {
  .locations-container {
    max-width: 1000px;
  }

  .location-card {
    width: 300px; /* Slightly smaller than default 320px */
  }
}

/* Optimize layout for small tablets and small desktops - keep horizontal layout with smaller cards */
@media (min-width: 601px) and (max-width: 900px) {
  .locations-container {
    grid-template-columns: auto 1fr auto;
    gap: 0;
    max-width: 900px; /* Reduce max width to fit better */
  }

  .location-card {
    width: 280px; /* Smaller cards to fit horizontal layout */
    padding: 2rem 1.5rem; /* Reduce padding slightly */
  }

  .location-card.satellite {
    justify-self: end;
  }
}

/* Further optimize for smaller tablets - even smaller cards but keep horizontal */
@media (min-width: 601px) and (max-width: 750px) {
  .location-card {
    width: 240px; /* Even smaller cards */
    padding: 1.75rem 1.25rem; /* Further reduce padding */
  }
}


/* Extra small screens - compact horizontal layout */
@media (max-width: 449px) {

  .location-address {
    min-height: 100px; /* Reduce minimum height */
  }

  /* Vertical connector for extra small screens */
  .location-connector {
    min-height: 120px;
    height: 120px;
  }

  .connector-line::before {
    display: block; /* Keep horizontal line on extra small screens */
  }

  .connector-line::after {
    display: none; /* Hide vertical line on extra small screens */
  }

  /* SPARK Circles responsive behavior for extra small screens */
  .spark-circles {
    width: calc(100% - 20px);
    min-height: 50px;
    max-width: 250px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .spark-circle {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .location-address p {
    font-size: 0.9rem;
  }

  /* Pulsating dots for extra small screens */
  .pulsating-dot {
    width: 10px;
    height: 10px;
  }

  .pulsating-dot--left {
    left: 15px;
  }

  .pulsating-dot--right {
    right: 15px;
  }
}

/* Switch to vertical layout for screens 501px-600px where horizontal won't fit well */
@media (min-width: 501px) and (max-width: 600px) {
  .locations-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .location-card {
    width: 100%;
    justify-self: center;
    max-width: 400px; /* Prevent cards from getting too wide */
  }

  .location-card.satellite {
    justify-self: center;
  }

  /* Ensure location cards are immediately visible on mobile */
  .location-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
  }

  /* Vertical connector for mobile layout */
  .location-connector {
    min-height: 120px;
    height: 120px;
  }

  .connector-line::before {
    display: block; /* Keep horizontal line on mobile */
  }

  .connector-line::after {
    display: none; /* Hide vertical line on mobile */
  }

  /* SPARK Circles responsive behavior for mobile */
  .spark-circles {
    width: calc(100% - 20px);
    min-height: 50px;
    max-width: 280px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .spark-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Pulsating dots for mobile layout */
  .pulsating-dot {
    width: 10px;
    height: 10px;
  }

  .pulsating-dot--left {
    left: 15px;
  }

  .pulsating-dot--right {
    right: 15px;
  }
}

/* Responsive Design */
/* Tablet and intermediate resolutions - prevent navigation wrapping */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-menu {
    gap: 0.5rem; /* Reduce gap between navigation items */
  }
  
  .nav-menu a {
    padding: 0.5rem 0.75rem; /* Reduce padding to fit more items */
    font-size: 0.9rem; /* Slightly smaller font size */
    white-space: nowrap; /* Prevent text wrapping */
  }
  
  .nav-container {
    padding: 1.25rem 1.5rem; /* Reduce container padding */
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  .nav-container {
    justify-content: center;
  }

  .hero {
    padding: 8rem 2rem 4rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

  /* Hide line breaks in service card headings on mobile and tablet portrait */
  .service-card h3 br {
    display: none;
  }

  .approach-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .approach-text {
    text-align: center;
  }

  .process-step {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .step-connector {
    left: 0;
  }

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

  .locations-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .location-card {
    width: 100%;
    justify-self: center;
    opacity: 1;
    transform: translateY(0);
  }

  .location-card.satellite {
    justify-self: center;
  }

  /* Ensure location cards are immediately visible on mobile */
  .location-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
  }

  /* Vertical connector for mobile layout */
  .location-connector {
    min-height: 120px;
    height: 120px;
  }

  .connector-line::before {
    display: block; /* Keep horizontal line on mobile */
  }

  .connector-line::after {
    display: none; /* Hide vertical line on mobile */
  }

  /* SPARK Circles responsive behavior for mobile */
  .spark-circles {
    width: calc(100% - 20px);
    min-height: 50px;
    max-width: 280px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .spark-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Pulsating dots for mobile layout */
  .pulsating-dot {
    width: 10px;
    height: 10px;
  }

  .pulsating-dot--left {
    left: 15px;
  }

  .pulsating-dot--right {
    right: 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .industries {
    justify-content: center;
  }

  .industry-tag {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  /* CTA Button Mobile Responsive */
  .cta-button.large {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    width: auto;
  }

  .cta-separator {
    min-height: 30px;
  }

  .cta-text {
    text-align: left;
    line-height: 1.4;
  }

  /* Show mobile line break on mobile devices */
  .mobile-break {
    display: inline;
  }

  /* Mobile mailto link optimization */
  a[href^="mailto:"] {
    -webkit-tap-highlight-color: rgba(254, 153, 6, 0.3);
    -webkit-touch-callout: default;
    touch-action: manipulation;
    pointer-events: auto;
    cursor: pointer;
    /* Ensure the link is easily tappable on mobile */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    /* Ensure visibility is maintained */
    opacity: 1;
    transition: opacity 0.2s ease;
  }

  /* Ensure all child elements of mailto links allow pointer events */
  a[href^="mailto:"] * {
    pointer-events: none;
  }

  /* Touch feedback for mailto links */
  a[href^="mailto:"].mailto-touch-active {
    opacity: 0.7;
  }

  /* Additional mobile optimizations for mailto links */
  @media (pointer: coarse) {
    a[href^="mailto:"] {
      padding: 8px;
      margin: -8px;
      min-height: 48px;
    }
  }

  /* Location email link mobile responsive */
  .location-email-link {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .location-email-separator {
    min-height: 16px;
  }

  .location-email-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 1rem;
  }

  section {
    padding: 4rem 0;
  }

  .hero {
    padding: 6rem 1rem 4rem;
  }

  .service-card,
  .value-card,
  .location-card {
    padding: 1.5rem;
  }

  .location-card {
    padding: 1.5rem;
  }

  .location-address p {
    font-size: 0.85rem;
  }

  .locations-conclusion {
    font-size: 1rem;
  }

  .location-icon {
    width: 56px;
    height: 56px;
    padding: 12px;
  }

  /* SPARK Circles - compact layout for very small screens */
  .spark-circles {
    width: calc(100% - 20px);
    min-height: 50px;
    max-width: 200px;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .spark-circle {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  /* Pulsating dots for very small screens */
  .pulsating-dot {
    width: 8px;
    height: 8px;
  }

  .pulsating-dot--left {
    left: 10px;
  }

  .pulsating-dot--right {
    right: 10px;
  }

  /* Location email link very small screens */
  .location-email-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .location-email-separator {
    min-height: 14px;
  }

  .location-email-text {
    font-size: 0.75rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-arrow {
    animation: none;
  }

  .spark-circle {
    animation: none !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: none !important;
  }

  /* Disable pulsating dots animation for reduced motion */
  .pulsating-dot {
    animation: none !important;
    transform: translateY(-50%) scale(1) !important;
    box-shadow: none !important;
  }

  .connector-line.animate-vertical .pulsating-dot {
    transform: translateX(-50%) scale(1) !important;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.location-card:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--border-radius);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .location-badge {
    border-width: 2px;
  }

}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .connection-icon {
    animation: none;
  }

  .location-card:hover .location-icon {
    transform: none;
  }

  /* Disable data packet animations for reduced motion */
  .data-packet {
    animation: none !important;
    opacity: 0.6;
  }

  .sync-indicator {
    animation: none !important;
  }

  .sync-pulse {
    animation: none !important;
  }

  .sync-icon svg {
    animation: none !important;
  }


}

/* Enhanced Card Animations */
.service-card,
.value-card {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  filter: blur(0px);
  transform: translateY(0) scale(1);
}

/* Smooth Animation Rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.industry-tag {
  transform: translateY(0) scale(1);
}

/* Floating Elements */
.floating-element {
  position: absolute;
  opacity: 1;
  animation: float 20s ease-in-out infinite;
}

.floating-element:nth-child(odd) {
  animation-delay: -10s;
  animation-direction: reverse;
}

/* Gradient Text Effects */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--tertiary-color) 50%,
    var(--secondary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: shimmer 6s ease-in-out infinite;
}

/* Interactive Process Steps */
.process-step {
  cursor: pointer;
  transition: var(--transition);
}

/* Glowing Effects */
.glow {
  position: relative;
}

.glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--tertiary-color),
    var(--secondary-color)
  );
  border-radius: inherit;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.glow:hover::before {
  opacity: 0.7;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 10px rgba(72, 48, 204, 0.3);
    --shadow-medium: 0 4px 20px rgba(72, 48, 204, 0.4);
  }
}

/* Contact Fallback Styles */
.contact-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.contact-fallback-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  text-align: center;
}

.copy-email-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(254, 153, 6, 0.3);
}

.copy-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 153, 6, 0.4);
}

.copy-email-btn:active {
  transform: translateY(0);
}

.email-address {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.copy-icon {
  font-size: 1.1rem;
}

.copy-feedback {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  min-height: 1.2rem;
}

.copy-feedback.success {
  color: #4ade80;
}

.copy-feedback.error {
  color: #f87171;
}

/* Mobile responsiveness for contact fallback */
@media (max-width: 768px) {
  .contact-fallback {
    padding: 0.75rem;
    margin-top: 1rem;
  }
  
  .contact-fallback-text {
    font-size: 0.85rem;
  }
  
  .copy-email-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}
