/* Import Google Fonts */

/* CSS Custom Properties */
:root {
  /* Colors - Construction Theme */
  --primary-color: #d97706;
  --primary-hover: #b45309;
  --primary-light: #fed7aa;
  --primary-dark: #92400e;

  --secondary-color: #7c2d12;
  --secondary-hover: #92400e;
  --secondary-light: #fecaca;

  --accent-color: #f59e0b;
  --accent-hover: #d97706;

  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-overlay: rgba(15, 23, 42, 0.8);

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e1;

  /* Typography */
  --font-primary:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Monaco", "Consolas", monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
}

/* Dark Theme */
[data-theme="dark"] {
  --primary-color: #fb923c;
  --primary-hover: #f97316;
  --primary-light: #431407;
  --primary-dark: #fdba74;

  --secondary-color: #dc2626;
  --secondary-hover: #b91c1c;
  --secondary-light: #450a0a;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-overlay: rgba(248, 250, 252, 0.1);

  --border-color: #334155;
  --border-light: #475569;
  --border-dark: #64748b;
}

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

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

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition:
    color var(--transition-normal),
    background-color var(--transition-normal);
  overflow-x: hidden;
}

main {
  padding-top: 100px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.875rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-hover);
}

/* Utility Classes */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.spaced-section {
  padding: var(--space-4xl) 0;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition:
    opacity var(--transition-slow),
    visibility var(--transition-slow);
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-md);
}

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

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  z-index: 1000;
  transition: width var(--transition-fast);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--container-padding);
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.logo-image {
  height: 30px;
  width: 60px;
  border-radius: 8px;
}

.logo-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.logo-tagline {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
  .logo-text-container {
    display: none;
  }
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary);
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-cta-btn {
  background: var(--primary-color);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.header-cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Hide on mobile devices (typically 768px and below) */
@media (max-width: 768px) {
  .header-cta-btn {
    display: none;
  }
}

/* Theme Switcher */
.theme-switcher button {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-switcher button:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-dark);
}

.sun-icon,
.moon-icon {
  font-size: 1rem;
  color: var(--text-primary);
}

/* EXPLICITLY define what to show/hide in LIGHT mode */
[data-theme="light"] .sun-icon {
  display: block; /* Or inline-block */
}
[data-theme="light"] .moon-icon {
  display: none;
}

/* EXPLICITLY define what to show/hide in DARK mode */
[data-theme="dark"] .sun-icon {
  display: none;
}
[data-theme="dark"] .moon-icon {
  display: block; /* Or inline-block */
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="300" cy="700" r="120" fill="url(%23a)"/></svg>');
  opacity: 0.3;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: var(--space-xl);
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  white-space: nowrap;

  /* Optional: Add responsive behavior */
  @media (max-width: 768px) {
    white-space: normal;
    font-size: 2.5rem;
  }

  @media (max-width: 480px) {
    font-size: 2rem;
  }
}

.title-highlight {
  display: block;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.title-main {
  display: block;
  color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button.primary {
  background: white;
  color: var(--primary-color);
}

.cta-button.primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--primary-color);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.cta-button.large {
  padding: var(--space-xl) var(--space-3xl);
  font-size: 1.125rem;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.dashboard-mockup {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  margin-top: 20px;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-buttons {
  display: flex;
  gap: var(--space-sm);
}

.mockup-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-btn.red {
  background: #ef4444;
}
.mockup-btn.yellow {
  background: #f59e0b;
}
.mockup-btn.green {
  background: #10b981;
}

.mockup-title {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.875rem;
}

.mockup-content {
  padding: var(--space-xl);
  height: 300px;
}

.chart-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-left: none;
  border-top: none;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

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

/* Section Headers */
.section-header {
  margin-bottom: var(--space-4xl);
}

.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-color);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Problem Section */
.problem-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-4xl);
}

.problem-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.problem-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.stat-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--primary-color);
  font-size: 1.5rem;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

/* Mobile Horizontal Scroll for Challenge Section */
@media (max-width: 768px) {
  .problem-stats {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
    padding-bottom: var(--space-lg); /* Space for scrollbar/shadow */
    margin-left: calc(var(--container-padding) * -1);
    margin-right: calc(var(--container-padding) * -1);
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .problem-stats::-webkit-scrollbar {
    display: none;
  }

  .problem-stat-card {
    min-width: 75%;
    padding: var(--space-lg);
    scroll-snap-align: center;
    margin-right: 0;
  }
}

.stat-content p {
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

/* How It Works Section */
.how-it-works-section {
  background: var(--bg-secondary);
  padding: var(--space-4xl) 0;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.step-card {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: var(--space-2xl);
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.step-card:hover::before {
  opacity: 1;
}

.step-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-mono);
}

.step-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 auto var(--space-sm);
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

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

.step-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.step-features li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: 600;
}

.step-visual {
  width: 200px;
  height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

/* Step Animations */
.integration-animation,
.engagement-animation,
.growth-animation {
  position: relative;
  width: 100%;
  height: 100%;
}

.api-nodes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.api-node {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
  position: relative;
  animation: pulse 2s infinite;
}

.pulse-rings {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 2s infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.5s;
}
.pulse-ring:nth-child(3) {
  animation-delay: 1s;
}

.growth-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: var(--space-sm);
  height: 100%;
}

.growth-bar {
  width: 20px;
  background: var(--primary-color);
  border-radius: var(--radius-sm);
  animation: growBar 2s infinite;
}

.growth-bar:nth-child(1) {
  height: 30%;
  animation-delay: 0s;
}
.growth-bar:nth-child(2) {
  height: 50%;
  animation-delay: 0.2s;
}
.growth-bar:nth-child(3) {
  height: 70%;
  animation-delay: 0.4s;
}
.growth-bar:nth-child(4) {
  height: 90%;
  animation-delay: 0.6s;
}

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

@keyframes pulseRing {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
  100% {
    width: 60px;
    height: 60px;
    opacity: 0;
  }
}

@keyframes growBar {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.2);
  }
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-4xl);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.feature-card > * {
  position: relative;
  z-index: 2;
}

/* Continue from where the CSS was cut off */
.feature-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: var(--primary-color);
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Feature Card with Image */
.feature-card.has-image {
  padding: 0;
  overflow: hidden;
}

.feature-card.has-image h3,
.feature-card.has-image p {
  padding: 0 var(--space-2xl);
}

.feature-card.has-image h3 {
  padding-top: var(--space-lg);
}

.feature-card.has-image p {
  padding-bottom: var(--space-2xl);
}

.feature-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.feature-card:hover .feature-image img {
  transform: scale(1.05);
}

/* Emoji Icon Support */
.feature-emoji {
  font-size: 2rem;
  line-height: 1;
}

/* About Section */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-text .section-badge {
  margin-bottom: var(--space-lg);
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.highlight-item i {
  color: var(--success-color);
  font-size: 1.125rem;
}

.trust-visualization {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-nodes {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  position: relative;
}

.trust-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.trust-node i {
  width: 4rem;
  height: 4rem;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.trust-bridge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bridge-line {
  width: 100px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--radius-full);
}

.bridge-logo {
  position: absolute;
  background: var(--primary-color);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Partners Section */
.partners-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.partners-subtitle {
  color: var(--text-muted);
  margin-bottom: 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-normal);
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.partner-logo i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.partner-logo span {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Testimonials Section */
.testimonials-section {
  background: var(--bg-secondary);
  padding: var(--space-4xl) 0;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.testimonial-card {
  display: none;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

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

.quote-icon {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-2xl);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.author-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.testimonial-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.testimonial-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.testimonial-dots {
  display: flex;
  gap: var(--space-sm);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.dot.active {
  background: var(--primary-color);
}

/* CTA Section */
.cta-section {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="b" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.05)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="100" cy="100" r="80" fill="url(%23b)"/><circle cx="900" cy="200" r="120" fill="url(%23b)"/><circle cx="200" cy="800" r="100" fill="url(%23b)"/></svg>');
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: var(--space-xl);
  font-size: 0.875rem;
  font-weight: 500;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  color: white;
}

.cta-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.cta-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--space-4xl) 0 0;
}

.footer-content {
  margin-bottom: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer-logo {
  margin-bottom: var(--space-lg);
}

.footer-logo .logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
}

.footer-logo .logo-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.footer-description {
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.contact-item i {
  width: 1.25rem;
  color: var(--primary-color);
}

/* Newsletter */
.newsletter-section {
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.newsletter-content h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.newsletter-content p {
  color: var(--text-secondary);
  margin: 0;
}

.newsletter-form {
  display: flex;
}

.newsletter-input-group {
  display: flex;
  width: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.newsletter-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: var(--space-lg) var(--space-xl);
  color: var(--text-primary);
  font-size: 1rem;
}

.newsletter-input-group input::placeholder {
  color: var(--text-muted);
}

.newsletter-input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.newsletter-btn {
  background: var(--primary-color);
  border: none;
  padding: var(--space-lg);
  color: white;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.newsletter-btn:hover {
  background: var(--primary-hover);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) 0;
}

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

.footer-bottom-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 3rem;
  height: 3rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .step-card {
    grid-template-columns: auto 1fr auto;
  }

  .step-visual {
    grid-column: 1 / -1;
    margin-top: var(--space-lg);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .newsletter-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .main-nav {
    display: none;
  }

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

  .logo {
    min-width: 0;
  }

  .logo-text {
    font-size: 1rem;
  }

  .header-actions {
    gap: var(--space-sm);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .step-number {
    font-size: 2rem;
  }

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

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

  .footer-bottom-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .testimonial-author {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* 
   ==============================================
   About Us & Contact Us Page Styles
   ==============================================
*/

/* Generic Page Hero for sub-pages */
.page-hero {
  background-color: var(--primary-color-light);
  padding: 7rem 0 4rem;
  border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .page-hero {
  background-color: #1c1626;
}

.page-title {
  font-size: 2.5rem;
  color: var(--heading-color);
}

.page-subtitle {
  font-size: 1.1rem;
  max-width: 650px;
  opacity: 0.9;
}

/* About Page: Story Section */
.story-section.card {
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* About Page: Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member-card {
  text-align: center;
}

.team-member-photo {
  height: 140px;
  width: 140px;
  background-color: var(--border-color);
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  border: 4px solid var(--surface-color);
  box-shadow: var(--shadow-sm);
}

.team-member-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.team-member-card .member-title {
  color: var(--primary-color);
  font-weight: 500;
}

/* Contact Page: Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

/* Contact Page: Form */
.contact-form-container.card {
  padding: 2.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.contact-.form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-light);
}
[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.2);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .cta-button {
  width: 100%;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

/* Contact Page: Info */
.contact-info-container {
  padding-top: 1rem;
}

.contact-info-item {
  margin-bottom: 2rem;
}

.contact-info-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  margin-bottom: 0;
  line-height: 1.7;
}

/* Responsive adjustments for contact page */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Quote Form Styles */
.quote-form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.quote-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.quote-form .form-group-full {
  grid-column: 1 / -1;
}

.quote-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.quote-form .form-group input,
.quote-form .form-group textarea,
.quote-form .form-group select {
  width: 100%;
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.quote-form .form-group input:focus,
.quote-form .form-group textarea:focus,
.quote-form .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.quote-form .form-actions {
  margin-top: var(--space-xl);
  text-align: right;
}

@media (max-width: 768px) {
  .quote-form .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================================= */
/*                      THE GODDAMN MOBILE MENU SOLUTION                   */
/* ======================================================================= */

/* 1. Reset the broken overlay styles and create the side panel */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  max-width: 80%;
  background: var(--bg-primary); /* The solid background */
  z-index: 9999;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding-top: 50px;
  display: block; /* Overrides the old flex settings */
  opacity: 1;
  visibility: hidden;
  backdrop-filter: none;
  transform: translateX(-100%); /* Start off-screen */
  transition:
    transform 300ms ease-out,
    visibility 300ms;
}

.mobile-menu-overlay.active {
  transform: translateX(0); /* Slide it in */
  visibility: visible;
}

/* 2. Style the close button */
.mobile-menu-close {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* 3. Make the links look correct inside the menu */
.mobile-menu-overlay .mobile-nav ul {
  text-align: left;
}
.mobile-menu-overlay .mobile-nav-link {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
}
.mobile-menu-overlay .mobile-nav-link:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
}

/*
/* --- Review Modal Styles (Themed) ---
/* This CSS uses the custom properties defined in your theme
*/

/* The Modal Background (Overlay) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: var(--bg-overlay); /* Use theme overlay color */
  backdrop-filter: blur(4px); /* Optional: Adds a nice blur effect */
}

/* Modal Content Box */
.modal-content {
  position: relative;
  background-color: var(--bg-card); /* Use theme card background */
  color: var(--text-primary);
  margin: 10% auto; /* Center vertically and horizontally */
  padding: var(--space-xl); /* Use theme spacing */
  border: 1px solid var(--border-color); /* Use theme border color */
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-lg); /* Use theme border radius */
  box-shadow: var(--shadow-xl); /* Use theme shadow */
  animation: fadeIn 0.3s ease-out; /* Keep the subtle animation */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Header: Title and Subtitle */
.modal-content h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* The Close Button (X) */
.close-btn {
  color: var(--text-light);
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-size: 28px;
  font-weight: bold;
  transition: color var(--transition-fast);
}

.close-btn:hover,
.close-btn:focus {
  color: var(--error-color); /* Use error color for emphasis on close */
  text-decoration: none;
  cursor: pointer;
}

/* Form Group Styling */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500; /* A good weight for Inter font */
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem; /* A comfortable padding */
  background-color: var(--bg-secondary); /* A slightly different background */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
  box-sizing: border-box;
}

/* Style for when the user clicks into a form field */
.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* The submit button already uses your `.cta-button.primary` class, 
   so it should be themed correctly without needing extra CSS.
*/

/* --- Services Grid Refinements --- */

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

/* Desktop Visibility */
.hidden-desktop {
  display: none;
}

/* Mobile Layout */
@media (max-width: 768px) {
  /* Reset hidden desktop items for mobile to show all */
  .hidden-desktop {
    display: block !important;
  }

  /* Hide Load More button on mobile */
  .desktop-only {
    display: none !important;
  }

  /* Horizontal Scroll "Peek-a-boo" */
  #services-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.5rem; /* Very small gap as requested */
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem; /* Pull slightly to edge */
    margin-right: -1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }

  #services-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }

  #services-grid .feature-card {
    flex: 0 0 85%; /* Peek-a-boo width */
    width: 85%;
    min-width: 85%;
    scroll-snap-align: center;
    margin: 0;
    padding: 1.25rem; /* Reduced padding */
  }

  #services-grid .feature-card.has-image {
    padding: 0;
  }

  /* Adjust feature card sizing for mobile scroll */
  #services-grid .feature-card h3 {
    font-size: 1.1rem;
  }
}

/* --- Services Refinements (Step 2) --- */

/* Add more margin to the load more button on desktop */
#load-more-services {
  margin-top: 2rem; /* Added extra space */
}

/* Mobile Text Alignment */
@media (max-width: 768px) {
  #services-grid .feature-card {
    text-align: left; /* Force left alignment on mobile */
    align-items: flex-start;
  }

  #services-grid .feature-card h3,
  #services-grid .feature-card p {
    text-align: left;
  }

  /* Ensure icon/emoji stays aligned with text */
  #services-grid .feature-icon {
    margin-left: 0;
    margin-right: auto;
  }
}

/* --- Desktop Centering Fix --- */
@media (min-width: 769px) {
  #services-grid .feature-card {
    text-align: center;
    align-items: center;
  }

  #services-grid .feature-card h3,
  #services-grid .feature-card p {
    text-align: center;
  }

  #services-grid .feature-icon {
    margin: 0 auto var(--space-lg);
  }
}

/* --- FINAL FIXES (MOBILE MENU & DESKTOP ALIGNMENT) --- */

@media (max-width: 768px) {
  /* Mobile Menu Styles */
  .main-nav.active {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
  }

  .main-nav.active ul {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (min-width: 769px) {
  /* Enforce Desktop Centering */
  #services-grid .feature-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  #services-grid .feature-card h3,
  #services-grid .feature-card p {
    text-align: center !important;
  }

  /* Ensure icon is centered */
  #services-grid .feature-icon,
  #services-grid .feature-image {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* --- FIX: Force Hidden Services to Stay Hidden --- */
@media (min-width: 769px) {
  /* Specificity override: ID + Class + !important */
  #services-grid .feature-card.hidden-desktop {
    display: none !important;
  }
}

/* --- MODERN MOBILE MENU (Tailwind-style) --- */
@media (max-width: 768px) {
  /* Menu Styles - Full Screen Overlay / Slide-out */
  .main-nav {
    display: block !important; /* Always in DOM for transitions, handle visibility with transform */
    position: fixed;
    top: 0;
    right: 0;
    width: 100%; /* Full width drawer */
    height: 100vh;
    background-color: var(--bg-card); /* Use theme background */
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 5rem 2rem 2rem; /* Top padding for close button space */
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    transform: translateX(0); /* Slide in */
  }

  /* Menu Items */
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start; /* Left align items */
    gap: 2rem; /* More spacing */
  }

  .main-nav a.nav-link {
    font-size: 1.5rem; /* Larger text */
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
  }

  /* Hamburger Animation Fix */
  .mobile-menu-toggle {
    z-index: 2001; /* Above the menu */
  }

  .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);
  }
}

/* --- MOBILE REFINEMENTS (Buttons, Stats, Cleanup) --- */
@media (max-width: 768px) {
  /* 1. Horizontal Buttons (Small & Side-by-Side) */
  .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.75rem !important;
    width: 100%;
    margin-top: 1.5rem;
  }

  .hero-actions .cta-button {
    flex: 1; /* Equal width */
    width: auto !important;
    padding: 0.75rem 0.5rem !important; /* Compact padding */
    font-size: 0.9rem !important; /* Smaller text */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  /* Hide icon on very small screens if text breaks */
  .hero-actions .cta-button i {
    display: none;
  }

  /* 2. Horizontal Stats (Compact Row) */
  .hero-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 0.5rem !important;
    width: 100%;
    margin-top: 2rem;
    flex-wrap: nowrap !important;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hero-stats .stat-item {
    flex: 1;
    width: auto;
    min-width: 0; /* Allow shrinking */
    margin-bottom: 0 !important;
    padding: 0.25rem !important;
    text-align: center;
    border: none !important;
  }

  .hero-stats .stat-number {
    font-size: 1.25rem !important;
    margin-bottom: 0.1rem;
  }

  .hero-stats .stat-label {
    font-size: 0.7rem !important;
    line-height: 1.1;
    white-space: normal;
  }

  /* 3. Hide Scroll Indicator (User Request) */
  .hero-scroll-indicator {
    display: none !important;
  }
}
