/* =========================
   CSS VARIABLES & THEMES
   ========================= */
:root {
  /* Brand Colors - Strict adherence */
  --brand-blue: #2563eb;
  --brand-yellow: #f59e0b;
  --brand-white: #ffffff;
  
  /* Light Theme */
  --bg-primary: var(--brand-white);
  --bg-secondary: #f8fafc;
  --bg-tertiary: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  /* Dark Theme - Adjusted for accessibility */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* =========================
   BASE STYLES
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================
   TYPOGRAPHY
   ========================= */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--brand-blue);
  color: var(--brand-white);
  border-color: var(--brand-blue);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn-outline:hover {
  background: var(--brand-blue);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-text {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
}

.btn-text:hover {
  color: var(--brand-blue);
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .main-header.scrolled {
  background: rgba(15, 23, 42, 0.95);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow));
  color: var(--brand-white);
  border-radius: 0.375rem;
  font-weight: 800;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: var(--brand-blue);
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  padding: 2rem 1.5rem;
}

.mobile-nav-links li {
  margin-bottom: 1rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-actions {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-subtext {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-benefits {
  list-style: none;
  margin-bottom: 2rem;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.benefit-body strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.benefit-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.link-link {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
}

.trust-line {
  width: 100%;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.hero-right {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.hero-stats {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-quote {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-left: 4px solid var(--brand-yellow);
  border-radius: 0.5rem;
  font-style: italic;
}

.quote-author {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-style: normal;
}

.hero-banner {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow));
  color: var(--brand-white);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.hero-banner a {
  color: var(--brand-white);
  text-decoration: underline;
  font-weight: 600;
}

/* =========================
   FEATURED FREELANCER
   ========================= */
.featured-freelancer {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.featured-card {
  background: var(--bg-primary);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  max-width: 800px;
  margin: 0 auto;
}

.featured-badge {
  background: var(--brand-yellow);
  color: var(--brand-white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 2rem;
}

.featured-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.featured-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--brand-blue);
}

.featured-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.featured-specialty {
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.featured-achievements {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.achievement {
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.featured-story {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.featured-story .highlight {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--brand-blue);
  font-style: italic;
  margin-top: 1rem;
}

.featured-contact h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--brand-blue);
  color: var(--brand-white);
  transform: translateY(-2px);
}

/* =========================
   PROBLEM SECTION
   ========================= */
.problem-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.problem-card {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.problem-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.problem-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.problem-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.problem-text {
  color: var(--text-secondary);
}

.problem-summary {
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--brand-yellow);
  padding-left: 1rem;
}

.problem-summary-footer {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

/* =========================
   SOLUTION SECTION
   ========================= */
.solution-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.solution-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.core-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--brand-yellow);
  padding-left: 1.5rem;
}

.intro-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.solution-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.solution-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.solution-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.solution-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.solution-summary {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

/* =========================
   FEATURES SECTION
   ========================= */
.features-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-cta {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow));
  color: var(--brand-white);
  border-radius: 1rem;
}

.feature-cta h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-cta .btn-primary {
  background: var(--brand-white);
  color: var(--brand-blue);
  border-color: var(--brand-white);
}

.feature-cta .btn-primary:hover {
  background: transparent;
  color: var(--brand-white);
}

/* =========================
   EVOLUTION SECTION
   ========================= */
.evolution-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding-left: 2rem;
  border-left: 3px solid var(--brand-blue);
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-primary);
  border: 3px solid var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  left: -2.4rem;
}

.timeline-content {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  flex: 1;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-cta {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

/* =========================
   TOP FREELANCERS
   ========================= */
.top-freelancers {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.freelancer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.freelancer-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.freelancer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.freelancer-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-blue);
  margin-bottom: 1rem;
}

.freelancer-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.freelancer-skill {
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.freelancer-badge {
  background: var(--brand-yellow);
  color: var(--brand-white);
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.freelancer-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-profile {
  background: var(--brand-blue);
  color: var(--brand-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-profile:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* =========================
   JOIN SECTION
   ========================= */
.join-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.join-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.join-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.join-text ul {
  list-style: none;
  margin-bottom: 2rem;
}

.join-text li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.highlight {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--brand-yellow);
  font-style: italic;
  color: var(--text-primary);
}

.join-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.community-showcase {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.mini-heading {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--brand-blue);
}

.count {
  margin-left: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.join-footer {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.join-footer h4 {
  font-style: italic;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.join-footer p {
  color: var(--text-muted);
}

/* =========================
   FAQ SECTION
   ========================= */
.faq-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-primary);
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--brand-blue);
}

.faq-question {
  padding: 1.5rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* =========================
   INVESTOR SECTION
   ========================= */
.investor-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.investor-content {
  max-width: 800px;
  margin: 0 auto;
}

.investor-body {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.investor-body p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.investor-body h3 {
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.investor-points {
  list-style: none;
  margin-bottom: 2rem;
}

.investor-points li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.point-text strong {
  color: var(--text-primary);
}

.cta-box {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.cta-box h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta-box p {
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background: var(--brand-blue);
  color: var(--brand-white);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* =========================
   FOOTER
   ========================= */
.footer-section {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.version-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links h3,
.footer-connect h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--brand-blue);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--brand-blue);
  color: var(--brand-white);
  transform: translateY(-2px);
}

.newsletter-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.newsletter-input {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.newsletter-input button {
  background: var(--brand-blue);
  color: var(--brand-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-input button:hover {
  background: #1d4ed8;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

.footnote {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* =========================
   BANNER & LOADER
   ========================= */
.early-access-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow));
  color: var(--brand-white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
  transform: translateX(400px);
  transition: transform 0.4s ease;
  max-width: 400px;
}

.early-access-banner.visible {
  transform: translateX(0);
}

.banner-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.banner-content p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.join-early-btn {
  background: var(--brand-white);
  color: var(--brand-blue);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.join-early-btn:hover {
  background: var(--bg-primary);
  transform: translateY(-2px);
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 1.8s infinite ease-in-out;
}

.loader-text {
  margin-top: 1rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--brand-blue);
  color: var(--brand-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .header-actions {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .problem-grid,
  .join-content {
    grid-template-columns: 1fr;
  }
  
  .featured-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-links {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .early-access-banner {
    flex-direction: column;
    text-align: center;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
  
  .timeline {
    padding-left: 1rem;
  }
  
  .timeline-icon {
    left: -1.4rem;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .feature-card,
  .solution-card,
  .freelancer-card {
    padding: 1.5rem;
  }
  
  .investor-body {
    padding: 2rem 1.5rem;
  }
  
  .featured-card {
    padding: 2rem 1.5rem;
  }
}

/* =========================
   ANIMATIONS
   ========================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* =========================
   UTILITY CLASSES
   ========================= */
.dot {
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

/* =========================
   EVOLUTION SECTION - IMPROVED MOBILE
   ========================= */
.evolution-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* Desktop timeline with connecting line */
@media (min-width: 769px) {
  .timeline {
    padding-left: 2rem;
    border-left: 3px solid var(--brand-blue);
  }
  
  .timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
  }
  
  .timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border: 3px solid var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    left: -2.4rem;
  }
}

/* Mobile timeline - no connecting line, stacked cards */
@media (max-width: 768px) {
  .timeline {
    padding-left: 0;
    border-left: none;
  }
  
  .timeline-step {
    display: block;
    margin-bottom: 2rem;
  }
  
  .timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 3px solid var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
  }
  
  .timeline-content {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
  }
}

/* Shared styles for both desktop and mobile */
.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-cta {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  margin-top: 2rem;
}

/* =========================
   THEME TOGGLE BUTTON
   ========================= */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--brand-blue);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .sun-icon {
    color: var(--brand-yellow);
}

.theme-toggle .moon-icon {
    color: var(--brand-blue);
}

/* Hide appropriate icon based on theme */
[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: scale(0);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: scale(1);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: scale(0);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: scale(1);
}

/* Update the header styles to work with theme toggle */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Ensure theme toggle stays above header */
.theme-toggle {
    z-index: 1001;
}

/* Update scrolled header for dark theme */
[data-theme="dark"] .main-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

/* Add to your base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* But exclude transform and opacity from the universal transition */
.transform-transition {
    transition: transform 0.3s ease;
}

.opacity-transition {
    transition: opacity 0.3s ease;
}

/* =========================
   RESPONSIVE OVERFLOW FIXES
   ========================= */

/* Fix banner overflow on mobile */
@media (max-width: 768px) {
    .early-access-banner {
        left: 1rem !important;
        right: 1rem !important;
        max-width: calc(100vw - 2rem) !important;
        width: auto !important;
    }
    
    /* Fix timeline overflow */
    .timeline {
        padding-left: 0;
        border-left: none;
        margin-left: 0;
        overflow: hidden;
    }
    
    .timeline-icon {
        left: 0 !important;
        margin: 0 auto 1rem !important;
        position: relative !important;
    }
    
    /* Ensure all containers respect viewport */
    .container {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Fix hero stats grid overflow */
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat {
        min-width: 30%;
        flex: 1;
    }
    
    /* Fix featured freelancer image overflow */
    .featured-photo {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix contact links overflow */
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
    }
}

/* Prevent horizontal scroll globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix specific container overflow */
.hero-grid,
.problem-grid,
.features-grid,
.freelancer-grid,
.footer-grid {
    max-width: 100%;
}

/* Fix theme toggle position on mobile */
@media (max-width: 768px) {
    .theme-toggle {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Adjust header for theme toggle */
    .header-container {
        padding-right: 3rem; /* Make space for theme toggle */
    }
}

/* Fix mobile menu overflow */
.mobile-nav {
    width: 100vw;
    left: -100vw;
}

.mobile-nav.active {
    left: 0;
}

/* Fix hero section overflow */
.hero {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Fix investor section text overflow */
.investor-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix FAQ question text overflow */
.faq-question {
    word-wrap: break-word;
    padding-right: 2rem;
}

/* Fix counter numbers overflow */
.stat-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
    word-break: keep-all;
}

/* Fix button text overflow on small screens */
@media (max-width: 480px) {
    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        white-space: nowrap;
    }
    
    .hero-ctas .btn {
        min-width: 140px;
    }
}

/* Fix avatar grid overflow */
.avatars {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Fix footer newsletter input overflow */
.newsletter-input {
    flex-direction: column;
}

.newsletter-input input,
.newsletter-input button {
    width: 100%;
}