/* Modern 2025 Theme - Revibe Landing Page */

:root {
  --primary: #ff006e;
  --cyan: #00f5ff;
  --purple: #8338ec;
  --bg-dark: #0f172a;
  --bg-darker: #0a0f1e;
  --bg-medium: #1e293b;
  --bg-light: #334155;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #475569;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-medium), var(--bg-darker));
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.5);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.btn-outline:hover {
  background: rgba(0, 245, 255, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-icon,
.btn-icon-right {
  width: 1.25rem;
  height: 1.25rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0 8rem;
}

.hero-content {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 0, 110, 0.15);
  border: 1px solid rgba(255, 0, 110, 0.3);
  margin-bottom: 2rem;
}

.badge-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.badge span {
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 32rem;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-primary {
  color: var(--primary);
}

.stat-cyan {
  color: var(--cyan);
}

.stat-purple {
  color: var(--purple);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-dark {
  background: var(--bg-medium);
}

.section-content {
  max-width: 64rem;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-title.text-center {
  text-align: center;
}

.section-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.highlight-box {
  background: linear-gradient(to right, rgba(255, 0, 110, 0.1), rgba(0, 245, 255, 0.1), rgba(131, 56, 236, 0.1));
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
}

.highlight-text {
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.text-cyan {
  color: var(--cyan);
  font-weight: 600;
}

.text-purple {
  color: var(--purple);
  font-weight: 600;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: var(--bg-light);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

.tab-btn.active:nth-child(2) {
  background: var(--cyan);
  color: black;
}

.tab-btn.active:nth-child(3) {
  background: var(--purple);
}

.tab-btn.active:nth-child(4) {
  background: linear-gradient(to right, var(--primary), var(--purple));
}

.tab-icon {
  width: 1rem;
  height: 1rem;
}

/* Tab Content */
.tab-content {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tab-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
}

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

.feature-icon-cyan {
  color: var(--cyan);
}

.feature-icon-purple {
  color: var(--purple);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Mermaid Container */
.mermaid-container {
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  overflow-x: auto;
  overflow-y: visible;
}

.mermaid {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  width: 100%;
  font-size: 16px;
}

.mermaid svg {
  width: 100% !important;
  /* max-width: 1200px !important; */
  height: auto !important;
  min-height: 500px !important;
}

.mermaid .nodeLabel {
  font-size: 14px !important;
}

.mermaid .edgeLabel {
  font-size: 12px !important;
}

/* Mermaid Error Handling */
.mermaid-error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

/* DIY Grid */
.diy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.diy-card {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s;
}

.diy-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.diy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.diy-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.difficulty-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.difficulty-beginner {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.difficulty-intermediate {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.difficulty-advanced {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.diy-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.diy-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.diy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.diy-arrow {
  width: 1rem;
  height: 1rem;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.step-card {
  text-align: center;
}

.step-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 1px solid;
}

.step-icon svg {
  width: 2rem;
  height: 2rem;
}

.step-icon-primary {
  background: rgba(255, 0, 110, 0.1);
  border-color: rgba(255, 0, 110, 0.2);
  color: var(--primary);
}

.step-icon-cyan {
  background: rgba(0, 245, 255, 0.1);
  border-color: rgba(0, 245, 255, 0.2);
  color: var(--cyan);
}

.step-icon-purple {
  background: rgba(131, 56, 236, 0.1);
  border-color: rgba(131, 56, 236, 0.2);
  color: var(--purple);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-text {
  color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
  background: var(--bg-dark);
}

.cta-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.footer-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 5rem;
  }

  .section {
    padding: 3rem 0;
  }

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

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

  .tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Gallery & Project Cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-medium);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(255, 0, 110, 0.2);
}

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

.roadmap-card {
  padding: 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Problem Grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.problem-card {
  padding: 2rem;
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
}

/* Enhanced Tab Styling for Behavioral Insights */
.tab-btn.active:nth-child(1) {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-color: var(--primary);
}

/* Code Blocks in Feature Cards */
.feature-card code {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: 'Courier New', Courier, monospace;
  overflow-x: auto;
}
