/*
 * Resonance SEO - Main Stylesheet
 * Modern, conversion-optimized design for e-commerce consulting
 */

:root {
  --black: #000;
  --dark: #111;
  --darker: #0a0a0a;
  --navy: #192a56;
  --white: #fff;
  --accent: #007bff;
  --accent-dark: #0056b3;
  --accent-light: #4da3ff;
  --gray: #888;
  --light-gray: #eee;
  --body: 'Inter', sans-serif;
  --head: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --container-padding: 15px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --border-radius: 8px;
}

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

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

body {
  font-family: var(--body);
  color: var(--white);
  background: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  animation: pageLoad 0.6s ease forwards;
}

@keyframes pageLoad {
  to {
    opacity: 1;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { opacity: 0.8; }

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Skip to Content Link */
.skip-to-content:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Button Styles */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
}

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

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.nav .logo {
  font-family: var(--head);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav .logo i {
  color: var(--accent);
  font-size: 1.75rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: var(--white);
  font-weight: 500;
  position: relative;
}

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

.nav-menu a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Sticky CTA Bar */
.sticky-cta-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.sticky-cta-bar.visible {
  transform: translateY(0);
}

.sticky-cta-bar p {
  margin: 0;
  color: var(--white);
  font-weight: 600;
}

.sticky-cta-bar .btn {
  padding: 0.5rem 1.25rem;
  background: var(--white);
  color: var(--accent);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 3rem;
  padding: 6rem 0;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.1), transparent);
  border-radius: 50%;
  transform: translate(-50%, -20%);
  pointer-events: none;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-text p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  color: var(--gray);
}

.hero-img {
  position: relative;
  display: flex;
  align-items: stretch;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 123, 255, 0.4),
              0 0 0 1px rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  transition: var(--transition);
}

.hero-img img:hover {
  box-shadow: 0 25px 70px rgba(0, 123, 255, 0.5),
              0 0 0 1px rgba(0, 123, 255, 0.2);
  border-color: rgba(0, 123, 255, 0.5);
  transform: translateY(-5px);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Trust Badges Section */
.trust-section {
  background: var(--darker);
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 2;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.trust-badge i {
  color: var(--accent);
  font-size: 1.5rem;
}

/* Clients Section */
.clients-section {
  background: #f8f9fa;
  padding: 5rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: relative;
  z-index: 3;
}

.clients-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--black);
}

.clients-subtitle {
  text-align: center;
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.clients-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.clients-carousel::before,
.clients-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.clients-carousel::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fa, transparent);
}

.clients-carousel::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fa, transparent);
}

.clients-track {
  display: flex;
  gap: 4rem;
  animation: scroll-logos 40s linear infinite;
  width: fit-content;
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.client-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(0, 123, 255, 0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.client-logo:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.client-logo:hover::before {
  opacity: 1;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.4s ease;
}

.client-logo:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Ensure consistent logo sizing regardless of intrinsic dimensions */
.client-logo img {
  width: auto;
  height: 60px;
  max-width: 160px;
}

/* Force specific sizing for logos with large intrinsic dimensions */
.client-logo img[src*="ethereum"],
.client-logo img[src*="alchemy"],
.client-logo img[src*="harvard"],
.client-logo img[src*="hbs"] {
  height: 80px;
  max-width: 140px;
}

.client-logo-placeholder {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  width: 100%;
  transition: var(--transition);
}

.client-logo:hover .client-logo-placeholder {
  color: var(--accent);
  border-color: var(--accent);
}

/* Metrics Section */
.metrics-section {
  background: var(--black);
  padding: 5rem 0;
  position: relative;
  z-index: 4;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.metric-card {
  background: linear-gradient(135deg, var(--dark), var(--darker));
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.metric-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 123, 255, 0.2);
  border-color: var(--accent);
}

.metric-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.metric-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 500;
}

/* Process Section */
.process-section {
  padding: 6rem 0;
  background: var(--darker);
}

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

.process-card {
  background: var(--dark);
  padding: 2.5rem;
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  position: relative;
  transition: var(--transition);
}

.process-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.15);
}

.process-card::before {
  content: attr(data-number);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 123, 255, 0.1);
}

.process-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.process-card h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.process-card ul {
  list-style: none;
}

.process-card li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
  color: var(--light-gray);
}

.process-card li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: var(--black);
}

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

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.about-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--dark);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.about-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.about-stat-label {
  color: var(--gray);
  font-size: 0.9rem;
}

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Case Studies Section */
.case-studies-section {
  padding: 6rem 0;
  background: var(--darker);
}

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

.case-study-card {
  background: var(--dark);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}

.case-study-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.2);
  border-color: var(--accent);
}

.case-study-header {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  padding: 2rem;
  text-align: center;
}

.case-study-header h4 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.case-study-header p {
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.case-study-body {
  padding: 2rem;
}

.case-study-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.case-study-metric {
  text-align: center;
  padding: 1rem;
  background: var(--darker);
  border-radius: 8px;
}

.case-study-metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.case-study-metric-label {
  font-size: 0.85rem;
  color: var(--gray);
}

.case-study-body p {
  color: var(--light-gray);
  margin-bottom: 1rem;
}

/* Testimonial Section */
.testimonial-section {
  background: var(--black);
  padding: 6rem 0;
}

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

.testimonial {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.testimonial:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.testimonial:before {
  content: """;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
}

.testimonial-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial p {
  font-style: italic;
  font-size: 1.1rem;
  padding-left: 1rem;
  color: var(--light-gray);
  line-height: 1.7;
}

.testimonial .author {
  margin-top: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1rem;
}

.testimonial .author i {
  color: var(--accent);
}

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

.section h2 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

/* Qualifier Section */
.qualifier {
  background: var(--darker);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qualifier::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.08), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.qualifier h2 {
  margin-bottom: 2rem;
}

.qualifier ul {
  list-style: none;
  margin: 3rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.qualifier li {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3rem;
  font-size: 1.15rem;
  color: var(--light-gray);
}

.qualifier li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qualifier li::after {
  content: '✓';
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-weight: bold;
  font-size: 1.2rem;
}

.qualifier p {
  margin-top: 2rem;
  font-size: 1.3rem;
  color: var(--gray);
}

.cta-down {
  margin-top: 2rem;
  display: inline-block;
  font-size: 2.5rem;
  animation: bounce 2s infinite;
  color: var(--accent);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Form Section */
.form-section {
  background: var(--dark);
  padding: 6rem 0;
}

.form-container {
  background: var(--white);
  color: var(--black);
  max-width: 600px;
  margin: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-header {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--white);
  padding: 2.5rem;
  text-align: center;
}

.form-header i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-header h2 {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
}

.form-header h2::after {
  display: none;
}

.form-header p {
  font-size: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.9);
}

.form-body {
  padding: 3rem;
}

.form-body label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.form-body input,
.form-body textarea,
.form-body select {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: var(--body);
}

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

.form-body input:focus,
.form-body textarea:focus,
.form-body select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
}

.form-body .btn {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.1rem;
}

.form-footer {
  text-align: center;
  font-size: 0.875rem;
  padding: 1.5rem;
  color: #666;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-footer i {
  color: var(--accent);
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
  background: var(--darker);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.accordion {
  max-width: 800px;
  margin: auto;
}

.accordion-item {
  margin-bottom: 1.5rem;
  background: var(--dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: var(--accent);
}

.accordion-item summary {
  padding: 1.75rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.accordion-item summary i {
  color: var(--accent);
  font-size: 1.25rem;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary:after {
  content: "+";
  position: absolute;
  right: 1.75rem;
  color: var(--accent);
  font-size: 1.75rem;
  line-height: 1;
  transition: var(--transition);
  font-weight: 300;
}

.accordion-item[open] summary:after {
  transform: rotate(45deg);
}

.accordion-item div {
  padding: 0 1.75rem 1.75rem 4rem;
  font-size: 1rem;
  color: var(--light-gray);
  line-height: 1.7;
}

/* Floating CTA Button */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  padding: 14px 24px;
  border-radius: 50px;
  display: none;
  z-index: 100;
  text-align: center;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.floating-cta.visible {
  transform: translateY(0);
  opacity: 1;
}

.floating-cta:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

.floating-cta i {
  margin-right: 0.5rem;
}

/* Footer */
footer {
  background: var(--black);
  color: var(--gray);
  padding: 3rem 0;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

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

footer a {
  color: var(--gray);
  transition: var(--transition);
}

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

.lovable {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 10000;
  transition: width 0.1s ease;
}

/* Button Ripple Effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
  transition: width 0s, height 0s;
}

/* 3D Card Tilt Effect */
.case-study-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.case-study-card:hover {
  transform: translateY(-10px) rotateX(2deg);
}

/* Enhanced Testimonial Effects */
.testimonial {
  transform-style: preserve-3d;
}

.testimonial:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 123, 255, 0.3);
}

/* Parallax Elements */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* Skeleton Loading */
@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--darker) 25%, var(--dark) 50%, var(--darker) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

/* Enhanced Metric Cards with Pulse */
.metric-card {
  animation: pulse 3s ease-in-out infinite;
}

.metric-card:nth-child(1) {
  animation-delay: 0s;
}

.metric-card:nth-child(2) {
  animation-delay: 0.2s;
}

.metric-card:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(0, 123, 255, 0.3);
  }
}

/* Smooth Image Loading */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

/* Exit Intent Popup */
.exit-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exit-popup.show {
  display: flex;
  opacity: 1;
}

.exit-popup-content {
  background: var(--white);
  color: var(--black);
  max-width: 600px;
  border-radius: 16px;
  padding: 3rem;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 123, 255, 0.3);
}

.exit-popup.show .exit-popup-content {
  transform: scale(1);
}

.exit-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray);
  transition: var(--transition);
}

.exit-popup-close:hover {
  color: var(--black);
  transform: rotate(90deg);
}

.exit-popup h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.exit-popup p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.exit-popup input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.exit-popup input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
}

/* Social Proof Notification */
.social-proof-notification {
  position: fixed;
  bottom: 80px;
  left: 20px;
  background: var(--white);
  color: var(--black);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  transform: translateX(-400px);
  transition: transform 0.5s ease;
  max-width: 350px;
}

.social-proof-notification.show {
  transform: translateX(0);
}

.social-proof-notification img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.social-proof-notification .content {
  flex: 1;
}

.social-proof-notification .content strong {
  display: block;
  color: var(--black);
  font-size: 0.95rem;
}

.social-proof-notification .content small {
  color: #666;
  font-size: 0.85rem;
}

/* Form Steps Progress */
.form-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.form-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.form-step::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  z-index: -1;
}

.form-step:first-child::before {
  display: none;
}

.form-step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.form-step.active .form-step-circle {
  background: var(--accent);
  color: var(--white);
}

.form-step.completed .form-step-circle {
  background: #28a745;
  color: var(--white);
}

.form-step-label {
  font-size: 0.85rem;
  color: #999;
}

.form-step.active .form-step-label {
  color: var(--accent);
  font-weight: 600;
}

.form-page {
  display: none;
}

.form-page.active {
  display: block;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-navigation .btn {
  flex: 1;
}

/* Inline Validation */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc3545;
}

.form-group.error .form-error {
  display: block;
}

.form-group.success input,
.form-group.success select {
  border-color: #28a745;
}

.form-group .icon-check {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #28a745;
  display: none;
}

.form-group.success .icon-check {
  display: block;
}

/* Urgency Badge */
.urgency-badge {
  background: #ff6b6b;
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  animation: pulse-urgent 2s ease-in-out infinite;
}

@keyframes pulse-urgent {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
  }
}

/* Loading State */
.btn.loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Enhanced Mobile Styles */
@media (max-width: 992px) {
  html { font-size: 15px; }
  .section { padding: 4rem 0; }
  .floating-cta {
    display: flex;
    align-items: center;
  }
  .about-content,
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 4rem 0;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 1rem;
    display: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a:hover {
    background: rgba(255,255,255,0.05);
    padding-left: 20px;
  }

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

  .footer-links {
    margin-top: 1rem;
    justify-content: center;
  }

  .trust-badges {
    flex-direction: column;
    gap: 1.5rem;
  }

  .clients-section {
    padding: 4rem 0;
  }

  .clients-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .client-logo {
    width: 180px;
    height: 100px;
  }

  .clients-track {
    gap: 2.5rem;
  }

  .sticky-cta-bar {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
  }

  .sticky-cta-bar .btn {
    width: auto;
  }

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

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  html { font-size: 13px; }
  .container { width: 95%; padding: 0 10px; }
  .btn { width: 100%; }

  .hero-buttons {
    flex-direction: column;
  }

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

  .form-header { padding: 2rem 1.5rem; }
  .form-body { padding: 2rem 1.5rem; }
  .form-body input {
    padding: 0.75rem;
    font-size: 16px;
  }

  .accordion-item summary { padding: 1.25rem; }
  .accordion-item div { padding: 0 1.25rem 1.25rem 2.5rem; }

  .section { padding: 3rem 0; }
  .hero { padding: 2rem 0 3rem; }

  .floating-cta {
    padding: 14px 20px;
    right: 15px;
    bottom: 15px;
    font-size: 0.95rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .clients-section {
    padding: 3rem 0;
  }

  .client-logo {
    width: 160px;
    height: 90px;
  }

  .clients-track {
    gap: 2rem;
  }

  .clients-carousel::before,
  .clients-carousel::after {
    width: 50px;
  }
}
