/* ===================================
   SkillSwap Design System
   Modern, Vibrant, Community-Focused
   =================================== */

@font-face {
  font-family: 'Tritopani';
  src: url('./fonts/tritopani.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
.signature {
  font-family: 'Tritopani', cursive;
}
.sacramento-regular {
      font-family: "Sacramento", cursive;
      font-size: x-large;
      font-weight: 400;
      font-style: normal;
    }

/* === CSS Variables === */
:root {
  color-scheme: light;
  /* Primary Colors - Vibrant & Energetic */
  --primary-purple: #7C3AED;
  --primary-blue: #3B82F6;
  --primary-pink: #EC4899;
  --primary-orange: #F59E0B;
  --primary-green: #10B981;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --gradient-secondary: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
  --gradient-warm: linear-gradient(135deg, #F59E0B 0%, #EC4899 100%);

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --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);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-tooltip: 1070;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #FFFFFF !important;
  /* Ensure base is white */
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #FFFFFF !important;
  overflow-x: hidden;

  /* Content Protection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow selection in inputs */
input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Prevent image dragging */
img {
  /* -webkit-user-drag: none; removed for lint */
  -webkit-user-select: none;
  /* fallback usually sufficient */
  pointer-events: none;
  /* strict mode: prevents context menu on images specifically */
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--spacing-4);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--spacing-4);
}

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

a:hover {
  text-decoration: none;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-6);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Shimmer Animation */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite;
  z-index: -1;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.btn-primary-chat {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(124, 58, 237, 0.5);
  background-size: 150% auto;
}

.btn-primary-chat:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--gradient-secondary);
  color: var(--white)
    /* box-shadow: var(--shadow-lg), var(--shadow-glow); */
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--white);
  /* box-shadow: var(--shadow-md); */
}

.btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  /* box-shadow: var(--shadow-lg); */
}

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

.btn-outline:hover:not(:disabled) {
  background: var(--primary-purple);
  color: var(--white);
}

.btn-lg {
  padding: var(--spacing-4) var(--spacing-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--text-sm);
}

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
}

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

.card-gradient {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.card-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* === Forms === */
.form-group {
  margin-bottom: var(--spacing-5);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-2);
  font-weight: 600;
  color: var(--gray-700);
  font-size: var(--text-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-3) var(--spacing-4);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--gray-800);
  background-color: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

/* === Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-1);
  padding: var(--spacing-1) var(--spacing-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  color: var(--primary-purple);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  margin-left: var(--spacing-1);
  vertical-align: middle;
}

.verified-badge svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* === Navbar === */
/* === Navbar === */
.navbar {
  position: fixed;
  top: var(--spacing-4);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  /* Liquid Glass Effect */
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  /* Enhanced shadows for floating effect */
  box-shadow:
    0 8px 32px rgba(124, 58, 237, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  z-index: var(--z-sticky);
  padding: var(--spacing-3) 0;
  transition: all var(--transition-base);
}

/* ... */

/* === Cards === */
.card {
  background: #ffffff !important;
  /* Force white */
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 12px 40px rgba(124, 58, 237, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.navbar-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  letter-spacing: 0.5px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
  list-style: none;
}

.navbar-link {
  color: var(--gray-700);
  font-weight: 500;
  transition: all var(--transition-base);
  position: relative;
  padding: var(--spacing-1) 0;
}

.navbar-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.navbar-link:hover {
  color: var(--primary-purple);
}

/* .navbar-link:hover::after {} */

/* === Container & Layout === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.container-sm {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.section {
  padding: var(--spacing-20) 0;
}

.section-sm {
  padding: var(--spacing-12) 0;
}

/* === Grid === */
.grid {
  display: grid;
  gap: var(--spacing-6);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

/* === Utilities === */
.text-center {
  text-align: center;
}

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

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

.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-base {
  font-size: var(--text-base);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: var(--text-3xl);
}

.text-4xl {
  font-size: var(--text-4xl);
}

.font-bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

/* Text Colors */
.text-gray-400 {
  color: var(--gray-400);
}

.text-gray-500 {
  color: var(--gray-500);
}

.text-gray-600 {
  color: var(--gray-600);
}

.text-primary {
  color: var(--primary-purple);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-pink-500 {
  color: var(--primary-pink);
}

/* Layout & Positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.w-full {
  width: 100%;
}

.flex {
  display: flex;
}

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

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

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: var(--spacing-2);
}

.gap-4 {
  gap: var(--spacing-4);
}

.gap-6 {
  gap: var(--spacing-6);
}

.gap-8 {
  gap: var(--spacing-8);
}

.mt-2 {
  margin-top: var(--spacing-2);
}

.mt-4 {
  margin-top: var(--spacing-4);
}

.mt-6 {
  margin-top: var(--spacing-6);
}

.mt-8 {
  margin-top: var(--spacing-8);
}

.mt-12 {
  margin-top: 3rem;
}

.mb-2 {
  margin-bottom: var(--spacing-2);
}

.mb-4 {
  margin-bottom: var(--spacing-4);
}

.mb-6 {
  margin-bottom: var(--spacing-6);
}

.mb-8 {
  margin-bottom: var(--spacing-8);
}

.mb-12 {
  margin-bottom: 3rem;
}

.hidden {
  display: none;
}

/* === Animations === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

.slide-in-right {
  animation: slideInRight var(--transition-slow) ease-out;
}

/* === Responsive === */

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

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  /* Slightly cleaner background */
  backdrop-filter: blur(8px);
  /* Stronger blur for "full page" effect */
  -webkit-backdrop-filter: blur(8px);
  z-index: 1010;
  /* Lower than navbar (1020) so interaction works */
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
}

/* Sidebar Overlay (for app pages) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* mobile Sidebar Toggle Button (for app pages) */
.mobile-sidebar-toggle {
  display: none;
  position: fixed;
  bottom: var(--spacing-6);
  right: var(--spacing-6);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  z-index: 998;
  font-size: var(--text-2xl);
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.mobile-sidebar-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.4);
}

.mobile-sidebar-toggle.active {
  background: var(--gray-800);
  transform: rotate(90deg);
}

/* Tablet Breakpoint (768px - 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-4);
  }

  .section {
    padding: var(--spacing-16) 0;
  }
}

/* Mobile Breakpoint (< 768px) */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --spacing-20: 3rem;
  }

  /* Mobile Navigation (for landing pages) */
  .mobile-menu-toggle {
    display: flex;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    flex-direction: column;
    align-items: stretch;
    padding: var(--spacing-4);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-dropdown);
    gap: var(--spacing-2);

    /* Dropdown Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);

    margin-top: var(--spacing-2);
    border: 1px solid var(--gray-200);
  }

  /* Disable animations on mobile to ensure visibility */
  .fade-in,
  .slide-in-right,
  .faq-icon {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .navbar-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-menu li {
    width: 100%;
  }

  .navbar-link {
    display: block;
    padding: var(--spacing-3) 0;
    font-size: var(--text-lg);
  }

  .navbar-menu .btn {
    width: 100%;
  }

  /* Sidebar Toggle (for app pages) */
  .mobile-sidebar-toggle {
    display: flex;
  }

  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transition: left var(--transition-slow);
    box-shadow: var(--shadow-2xl);
  }

  .sidebar.active {
    left: 0;
  }

  /* Grid Layouts */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }

  /* Keep stats as 2x2 grid on mobile for compactness */
  .grid-4 {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: var(--spacing-4);
  }

  /* Sections */
  .section {
    padding: var(--spacing-12) 0;
  }

  /* Hero */
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* Buttons */
  .btn-lg {
    padding: var(--spacing-3) var(--spacing-6);
    font-size: var(--text-base);
  }

  /* Forms */
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  /* Cards */
  .card {
    padding: var(--spacing-4);
  }

  /* === App Layout (No Sidebar) === */
  .main-content {
    padding-top: 100px;
    /* Space for fixed navbar */
    min-height: 100vh;
    background: var(--gray-50);
  }

  .dashboard-container {
    display: block;
    /* Remove grid layout */
  }

  /* Chat Layout adjustments */
  .chat-main {
    height: calc(100vh - 100px);
    /* Adjust for navbar */
  }

  .chat-sidebar {
    height: calc(100vh - 100px);
  }

  .chat-messages {
    height: calc(100vh - 100px - 140px);
    /* Approx height for header + input */
  }

  @media (max-width: 768px) {
    .main-content {
      padding-top: 90px;
      padding-left: var(--spacing-4);
      padding-right: var(--spacing-4);
    }

    .chat-main {
      height: calc(100vh - 90px);
    }
  }

  /* Chat Sidebar */
  .chat-sidebar {
    display: block !important;
  }

  /* Page Headers on Mobile */
  .main-content h1,
  .main-content h2 {
    margin-top: var(--spacing-2);
  }

  /* Hero Section Mobile Adjustments */
  .hero {
    padding: var(--spacing-10) 0;
  }

  .hero-stats {
    margin-top: var(--spacing-8) !important;
  }

  /* Small Mobile Breakpoint (< 480px) */
  @media (max-width: 480px) {
    :root {
      --text-5xl: 2rem;
      --text-4xl: 1.75rem;
      --text-3xl: 1.375rem;
      --spacing-12: 2.5rem;
    }

    .container {
      padding: 0 var(--spacing-3);
    }

    .navbar-container {
      padding: 0 var(--spacing-4);
    }

    .btn {
      padding: var(--spacing-3) var(--spacing-4);
    }

    h1 {
      font-size: var(--text-4xl);
    }

    h2 {
      font-size: var(--text-3xl);
    }

    .sidebar {
      width: 260px;
      left: -260px;
    }

    .sidebar.active {
      left: 0;
    }
  }

  /* === Mobile Utilities === */
  @media (min-width: 769px) {
    .mobile-only {
      display: none !important;
    }

    .mobile-sidebar-toggle {
      display: none !important;
    }

    .mobile-menu-overlay {
      display: none !important;
    }

    .sidebar-overlay {
      display: none !important;
    }
  }

  @media (max-width: 768px) {
    .desktop-only {
      display: none !important;
    }
  }

  /* Touch-Friendly Interactions */
  .touch-friendly {
    min-width: 44px;
    min-height: 44px;
  }

  /* Prevent Text Selection on Touch */
  .no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* === Loading Spinner === */
  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

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

  /* === Hidden Utilities for Auth State === */
  .hide-when-unauthenticated {
    display: none;
  }

  /* === Mobile Text Utility === */
  @media (max-width: 768px) {
    .mobile-text-sm {
      font-size: 0.875rem !important;
      /* 14px */
      line-height: 1.4 !important;
    }
  }
}

/* === Share Card (Hidden) === */
.share-card {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1080px;
  height: 1920px;
  background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px;
  color: white;
  text-align: center;
  font-family: 'Inter', sans-serif;
  z-index: -1;
  pointer-events: none;
}

.share-card-logo {
  font-size: 80px;
  font-weight: 800;
  margin-bottom: 60px;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.share-card-avatar-container {
  width: 320px;
  height: 320px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-bottom: 40px;
}

.share-card-avatar {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 150px;
  font-weight: 800;
  color: var(--primary-purple);
  overflow: hidden;
}

.share-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-card-name {
  font-size: 90px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.share-card-role {
  font-size: 40px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 80px;
}

.share-card-stats {
  display: flex;
  gap: 60px;
  margin: 60px 0;
  background: rgba(255, 255, 255, 0.15);
  padding: 60px 80px;
  border-radius: 50px;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.share-card-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
}

.share-card-stat-value {
  font-size: 100px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
}

.share-card-stat-label {
  font-size: 30px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.share-card-footer {
  margin-top: auto;
  font-size: 40px;
  font-weight: 600;
  opacity: 0.9;
  padding-bottom: 40px;
}

/* === New Home Page Effects === */

/* Typing Cursor */
.typing-cursor {
  display: inline-block;
  width: 4px;
  background-color: var(--primary-purple);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  vertical-align: middle;
  height: 1em;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Skill Marquee */
.skill-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.skill-marquee-track {
  display: flex !important;
  width: max-content;
  animation: marquee 60s linear infinite;
  gap: 0;
}

.skill-marquee-track span {
  flex-shrink: 0;
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-400);
  padding: 0 3rem;
  transition: color 0.3s ease;
}

.skill-marquee-track span:hover {
  color: var(--primary-purple);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.3333%);
  }

  /* 3 sets, move 1 set width */
}

/* Trusted By Placeholders */
.logo-placeholder {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.3s ease;
}


.grayscale-logos:hover .logo-placeholder {
  filter: grayscale(0);
  opacity: 1;
}

.logo-placeholder:hover {
  color: var(--primary-purple);
  transform: scale(1.05);
}

/* Explicit fix for logo spacing */
.grayscale-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem !important;
  /* Force gap */
  justify-content: center;
  align-items: center;
}

/* Pulse Map Dots */
.pulse-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-blue);
}

.pulse-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  animation: pulse-ripple 2s ease-out infinite;
}

@keyframes pulse-ripple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }

  100% {
    width: 400%;
    height: 400%;
    opacity: 0;
  }
}

/* Mobile Adjustments for New Elements */
@media (max-width: 768px) {
  .skill-marquee-track span {
    font-size: 1.2rem;
    padding: 0 1rem;
  }

  .logo-placeholder {
    font-size: 1.2rem;
  }

  /* Adjust map dots container height for mobile */
  .map-dots-container {
    height: 150px !important;
  }

  /* Stats Grid: Make it 2x2 on mobile for better density */
  .grid-4 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: var(--spacing-4);
  }

  /* Ensure stats stack properly */
  .stat-item {
    margin-bottom: 0;
    /* Remove bottom margin since we use gap */
    padding: var(--spacing-2);
  }

  /* Smaller font for stats on mobile */
  .stat-item .text-4xl {
    font-size: 1.75rem;
    /* Equivalent to text-3xl */
  }
}

/* Styled Text Logos (since we use text placeholders) */
.logo-placeholder {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
}

.logo-placeholder:hover {
  color: var(--primary-purple);
  background: rgba(124, 58, 237, 0.05);
  /* very light purple bg */
  border-color: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

/* Mobile Scrolling Grids (Carousel effect) */
@media (max-width: 768px) {

  .features-grid.grid-3,
  .grid-3 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--spacing-4);
    padding-bottom: var(--spacing-4);
    /* Space for scrollbar */
    padding-right: var(--spacing-4);
    /* Padding for end */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
  }

  /* Hide scrollbar for cleaner look but keep functionality */
  .features-grid.grid-3::-webkit-scrollbar,
  .grid-3::-webkit-scrollbar {
    display: none;
  }

  .features-grid.grid-3>*,
  .grid-3>* {
    min-width: 280px;
    /* Fixed width for consistent cards */
    width: 85vw;
    max-width: 400px;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

/* === Skill Stream Marquee === */
.skill-stream-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0;
}

.skill-stream {
  display: flex;
  width: fit-content;
  animation: scroll-left 40s linear infinite;
}

.skill-stream-content {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  padding-right: 1rem;
  /* Gap between duplicates */
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.skill-stream-wrapper:hover .skill-stream {
  animation-play-state: paused;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .skill-badge {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .skill-stream {
    animation-duration: 30s;
    /* Faster on mobile */
  }
}

/* === Mobile Menu Styles === */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    z-index: 1001;
    gap: 20px;
  }

  .navbar-menu.active {
    right: 0;
  }

  /* Hamburger Animation */
  .mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg);
  }

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

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

/* === Homepage Sections === */

/* Features Section (3D Inter-Card Style) */
.features {
  position: relative;
  z-index: 2;
  padding: var(--spacing-20) 0;
}

.features-grid {
  display: grid;
  gap: var(--spacing-8);
  /* The grid items are containers */
}

/* 1. Container: Provides Perspective & Hover Trigger */
.inter-card-container {
  perspective: 1000px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

/* 2. Body: The Rotating Element */
.inter-card-body {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--spacing-10) var(--spacing-8);
  /* Stronger definition for white theme */
  box-shadow: 
     0 4px 6px -1px rgba(0, 0, 0, 0.05),
     0 10px 15px -3px rgba(0, 0, 0, 0.05); /* Visible base shadow */
  transition: all 0.2s ease; 
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
  min-height: 320px; /* Ensure consistent height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(0,0,0,0.08); /* Distinct border */
}

.inter-card-body:hover {
  /* Pronounced floating effect */
  box-shadow: 
     0 20px 25px -5px rgba(0, 0, 0, 0.1), 
     0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border-color: rgba(124, 58, 237, 0.3); /* Purple hint */
  background: #ffffff;
}

/* 3. Items: Pop out in Z-space */
.inter-card-item {
  transform: translateZ(60px);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
}

.feature-icon-wrapper {
  margin-bottom: var(--spacing-2);
  font-size: 3.5rem; 
  background: rgba(124, 58, 237, 0.08); /* Visible tint */
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(124, 58, 237, 0.1);
  transition: all 0.3s ease;
}

.inter-card-body:hover .feature-icon-wrapper {
  background: var(--gradient-primary); /* Pop to full color on hover */
  color: white; /* Emoji might stay colored, but if icon font, this helps */
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
  border-color: transparent;
}
/* End 3D Features */
/* End 3D Features */

/* Stories Marquee */
.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: var(--spacing-4) 0;
}

.marquee-content {
  display: flex;
  gap: var(--spacing-6);
  width: max-content;
  /* Move Left-to-Right: Start at -50% (Showing 2nd set) -> Move to 0 (Showing 1st set) */
  animation: scrollRight 30s linear infinite;
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}

/* Stories Section Cards (Fixed width for scrolling) */
.stories .card {
  height: 100%;
  width: 350px; /* Fixed width for consistent marquee */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Ensure they look good */
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.stories .card p {
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works .step-card {
  position: relative;
  padding: var(--spacing-6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works .step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.step-number-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto var(--spacing-4);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

/* Footer Section */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f172a !important; /* Ensure dark theme */
}

.footer-logo img {
  filter: brightness(0) invert(1); /* Ensure white logo */
}

.footer-links a {
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white !important;
  text-decoration: underline;
}

/* New How It Works (Process Cards) */
.process-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--spacing-8) var(--spacing-6);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03); 
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 
    0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border-color: transparent;
}

/* Gradient Top Bar (Reveals on Hover) */
.process-card::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0); /* Hidden */
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 2;
}

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

.process-icon-box {
  width: 80px;
  height: 80px;
  background: var(--gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-6);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(0,0,0,0.05);
}

.process-card:hover .process-icon-box {
  background: var(--gradient-primary);
  color: white; /* Applies to text/emoji if inherits */
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
  border-color: transparent;
}

.process-number {
  position: absolute;
  top: var(--spacing-2);
  right: var(--spacing-4);
  font-size: 5rem;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  z-index: 0;
  transition: all 0.3s ease;
  opacity: 0.4;
  font-family: var(--font-display);
}

.process-card:hover .process-number {
  color: rgba(124, 58, 237, 0.05);
  transform: scale(1.1);
}

/* Vertical Timeline (Zig-Zag "More Better" Style) */
.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: var(--spacing-8) 0;
}

/* Gradient Center Line (Background) */
.timeline-track {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--gray-200); /* Base gray line */
  transform: translateX(-50%);
  z-index: 0;
  border-radius: 4px;
}

/* Scroll Progress Line (Fills up) */
.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* JS will update this */
  background: var(--gradient-primary);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
  border-radius: 4px;
  transition: height 0.1s linear;
}

/* Base Step Wrapper */
.timeline-step {
  position: relative;
  width: 50%;
  padding-bottom: var(--spacing-12);
  z-index: 1;
  perspective: 1000px; /* Enable 3D for the card inside */
}

/* 3D Process Card Updates (Matching Feature Cards) */
.process-card {
  /* Inherit base styles */
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--spacing-8) var(--spacing-6);
  /* Strong definition like Features */
  box-shadow: 
     0 4px 6px -1px rgba(0, 0, 0, 0.05),
     0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0,0,0,0.08);

  /* 3D Props */
  transform-style: preserve-3d;
  will-change: transform;
  transform: none; /* Let JS handle it */
  
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: visible; /* Needed for 3D elements popping out */
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.process-card:hover {
  box-shadow: 
     0 20px 25px -5px rgba(0, 0, 0, 0.1), 
     0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border-color: rgba(124, 58, 237, 0.3);
  background: #ffffff;
}

/* Gradient Top Bar (Keep this unique feature) */
.process-card::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 2;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.process-card:hover::before {
  transform: scaleX(1);
}

/* Make internal elements pop in 3D */
.process-card .process-icon-box {
  transform: translateZ(50px); /* Feature card depth */
  /* Feature Card Icon Style */
  width: 64px;
  height: 64px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 20px; /* Matching Feature Icon Radius */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-4);
  transition: all 0.3s ease;
}

.process-card:hover .process-icon-box {
  background: var(--gradient-primary);
  color: white;
  transform: translateZ(50px) scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
  border-color: transparent;
}

.process-card h4 {
  transform: translateZ(30px);
  margin-bottom: var(--spacing-2);
}
.process-card p {
  transform: translateZ(20px);
}
/* Zig-Zag Positioning Helper (Restored) */
.timeline-step:nth-child(odd) {
  left: 50%;
  padding-left: 50px;
}

.timeline-step:nth-child(even) {
  left: 0;
  padding-right: 50px;
}

/* Force Center Content in Cards */
.timeline-step:nth-child(even) .process-card,
.timeline-step:nth-child(odd) .process-card {
  align-items: center;
  text-align: center;
}

.timeline-step .process-icon-box {
  margin-left: auto;
  margin-right: auto;
}

/* Timeline Marker (Number Bubble) */
.timeline-marker {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  border: 4px solid var(--primary-purple);
  box-shadow: 0 0 0 4px white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-purple);
  position: absolute;
  top: 0;
  z-index: 2;
  transition: transform 0.3s ease;
}

.timeline-step:nth-child(odd) .timeline-marker {
  left: -32px; /* Center on line */
}

.timeline-step:nth-child(even) .timeline-marker {
  right: -32px;
}

.timeline-step:hover .timeline-marker {
  transform: scale(1.2);
  background: var(--gradient-primary);
  color: white;
  border-color: white;
}
/* End Zig-Zag Timeline */

/* Fully New FAQ (Premium Stack Layout) */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: var(--spacing-12);
}

.faq-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200); /* Subtle border */
  margin-bottom: var(--spacing-4);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Hover: Lift slightly */
.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.025);
  border-color: rgba(124, 58, 237, 0.2);
}

/* Active: Stronger shadow + Gradient Left Border */
.faq-card.active {
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: transparent; /* Let internal border handle it or pseudo */
  background: white;
}

/* Gradient Indicator for Active State */
.faq-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px; /* Left colored strip */
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-card.active::before {
  opacity: 1;
}

.faq-header {
  padding: var(--spacing-6) var(--spacing-8); /* Spacious */
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
}

.faq-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gray-800);
  transition: color 0.3s ease;
}

.faq-card.active .faq-title {
  color: var(--primary-purple);
}

.faq-toggle {
  width: 32px;
  height: 32px;
  background: var(--gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem; /* Larger for Plus sign */
  font-weight: 300;
  line-height: 1;
  color: var(--gray-500);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card:hover .faq-toggle {
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary-purple);
}

.faq-card.active .faq-toggle {
  background: var(--gradient-primary);
  color: white;
  transform: rotate(45deg); /* Plus becomes X */
}

/* Ensure no outline on focus if button */
.faq-header:focus-visible .faq-toggle {
  box-shadow: 0 0 0 2px var(--primary-purple);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease;
  opacity: 0;
}

.faq-card.active .faq-body {
  max-height: 200px;
  opacity: 1;
}

.faq-text {
  padding: 0 var(--spacing-8) var(--spacing-8) var(--spacing-8);
  color: var(--gray-600);
  line-height: 1.6;
}
/* Combined Footer & CTA */
.combined-footer {
  background: var(--gray-900);
  color: white;
  padding-top: var(--spacing-24);
  padding-bottom: var(--spacing-12);
  position: relative;
  overflow: hidden;
  margin-top: var(--spacing-24);
}

/* Background Decor - Mesh/Blobs - Optimized */
.footer-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px); /* Reduced from 80px for performance */
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0); /* Hardware accelerate */
  will-change: transform;
}
.footer-blob-1 {
  top: -100px;
  left: 30%;
  width: 500px;
  height: 500px;
  background: var(--primary-purple);
}
.footer-blob-2 {
  bottom: -100px;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--primary-pink);
}

.combined-footer .container {
  position: relative;
  z-index: 1;
}

/* CTA Section within Footer */
.footer-cta {
  text-align: center;
  margin-bottom: var(--spacing-20);
}

.footer-cta h2 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--spacing-6);
  letter-spacing: -0.02em;
}

.footer-cta p {
  color: var(--gray-400);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto var(--spacing-10);
}

.footer-btn-wrapper {
  display: inline-block;
  position: relative;
}

.footer-btn-wrapper::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-btn-wrapper:hover::after {
  opacity: 1;
  filter: blur(15px);
}

/* Divider */
.footer-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: var(--spacing-16); /* Increased to match bottom margin */
}

/* Footer Links Content */
.footer-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--spacing-12);
  align-items: start;
}

.footer-brand p {
  color: var(--gray-500);
  margin-top: var(--spacing-4);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: white;
  font-weight: 600;
  margin-bottom: var(--spacing-6);
  font-size: 1.1rem;
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  margin-bottom: var(--spacing-3);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: white;
  transform: translateX(2px);
}

/* Bottom Bar */
.footer-bottom-bar {
  margin-top: var(--spacing-16);
  padding-top: var(--spacing-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center; /* Centered */
  align-items: center;
  color: var(--gray-600);
  font-size: 0.9rem;
  text-align: center;
}

.social-links {
  display: flex;
  gap: var(--spacing-4);
  margin-top: var(--spacing-6);
}

.social-links a {
  color: var(--gray-500);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 1024px) {
  .social-links {
    justify-content: center; /* Center icons on tablet/mobile */
  }
}

@media (max-width: 1024px) {
  .footer-content-grid {
    grid-template-columns: 1fr 1fr; /* 2 Column Grid for Tablets */
    gap: var(--spacing-10);
  }
  
  .footer-brand {
    grid-column: 1 / -1; /* Brand takes full width on tablet */
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .footer-cta h2 { font-size: 3rem; }
}

@media (max-width: 640px) {
  .footer-content-grid {
    grid-template-columns: 1fr; /* 1 Column for Mobile */
    text-align: center;
    gap: var(--spacing-8);
  }

  .footer-cta h2 { font-size: 2.25rem; }
  .footer-cta p { font-size: 1.1rem; }
  
  .footer-brand { margin-bottom: var(--spacing-6); }
  
  .footer-bottom-bar {
    flex-direction: column;
    gap: var(--spacing-4);
    text-align: center;
  }
  
  .social-links { margin-left: 0; margin-top: var(--spacing-2); }
  
  /* Adjust blob opacity on mobile */
  .footer-decoration { opacity: 0.1; }
}
/* End Combined Footer */

/* Mobile Responsive Override */
@media (max-width: 768px) {
  .timeline-track {
    left: 30px; /* Move line to left */
  }
  
  .timeline-step {
    width: 100%; /* Full width */
    left: 0 !important; /* Force left */
    padding-left: 80px !important; /* Clear the line */
    padding-right: 0 !important;
    text-align: left !important; /* Reset text align */
  }

  .timeline-marker {
    left: 0 !important; /* Align to track */
    right: auto !important;
  }

  /* Reset Card Internals for mobile */
  .timeline-step:nth-child(even) .process-card {
    align-items: center; /* Back to center or left? Let's use left/center based on card CSS */
  }
  .timeline-step:nth-child(even) .process-icon-box {
    margin-left: initial;
    margin-right: initial;
  }
  /* Force card items to center (since .process-card is centered by default) */
  .process-card {
    align-items: flex-start; /* Better for list view? Or keep center */
    text-align: left;
    align-items: flex-start;
  }
  .process-icon-box {
    margin-left: 0;
    margin-right: auto;
    width: 64px !important;
    height: 64px !important;
    font-size: 1.5rem !important;
  }
}
/* End Zig-Zag Timeline */

/* Text Generate Effect */
.text-generate-effect {
  opacity: 1; /* Container is visible */
}

.text-generate-word {
  opacity: 0;
  filter: blur(10px);
  display: inline-block;
  transform: translateY(10px);
  transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s ease;
  /* margin-right removed - spacing handled by whitespace in HTML for better wrapping */
  will-change: opacity, filter, transform;
}

@media (prefers-reduced-motion: reduce) {
  .text-generate-word {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

.text-generate-word.active {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}