/* ============================================================
   HOME PAGE STYLES
   ============================================================ */

/* ---- Hero ---- */
.hero {
  padding-top: calc(var(--space-32) + var(--space-12));
  padding-bottom: var(--space-24);
  position: relative;
  overflow: hidden;
}

.hero__parallax-bg {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  will-change: transform;
  transition: transform 0.12s linear;
}

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-muted);
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  max-width: 14ch;
}

.hero__heading em {
  font-style: normal;
  color: var(--accent);
}

.hero__subtext {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  max-width: 56ch;
  margin-bottom: var(--space-10);
}

.hero__stats {
  display: flex;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}


/* ---- Feature Highlights ---- */
.features {
  padding-top: 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base);
}
.feature-card:hover {
  border-color: var(--accent-border);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  letter-spacing: 0.1em;
}

.feature-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.feature-card__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-6);
}

.feature-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.feature-card__list li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.feature-card__list li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

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


/* ---- Open Source ---- */
.open-source {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.open-source__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.open-source__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.open-source__heading {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.open-source__body {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.open-source__repos {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.repo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
  cursor: pointer;
}
.repo-item:hover { border-color: var(--accent-border); }

.repo-item__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.repo-item__desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}
.repo-item__stars {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

@media (max-width: 768px) {
  .open-source__inner { grid-template-columns: 1fr; gap: var(--space-8); }
}


/* ---- Current Projects ---- */
.current-projects__header {
  margin-bottom: var(--space-8);
}

.current-projects__heading {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
}

.current-projects__subtext {
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

.project-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.project-preview:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.project-preview__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--accent-green);
  font-weight: var(--weight-semibold);
}
.project-preview__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.project-preview__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.project-preview__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
}

.project-preview__link {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: var(--weight-medium);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  transition: gap var(--transition-fast);
}
.project-preview__link:hover { gap: var(--space-3); }


/* ---- Currently Widget ---- */
.currently {
  padding-block: var(--space-16);
  border-top: 1px solid var(--border);
}

.currently__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-12);
  align-items: center;
}

.currently__header {
  min-width: 160px;
}

.currently__heading {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-black);
  color: var(--text-primary);
  line-height: 1;
  margin-top: var(--space-2);
}

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

.currently__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 2px solid var(--accent-border);
  transition: border-color var(--transition-fast), border-left-color var(--transition-fast);
}
.currently__item:hover {
  border-color: var(--border-hover);
  border-left-color: var(--accent);
}

.currently__icon {
  font-size: var(--text-base);
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
  line-height: 1;
  font-family: var(--font-mono);
}

.currently__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
  line-height: 1;
}

.currently__value {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}

@media (max-width: 768px) {
  .currently__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}


/* ---- Home CTA ---- */
.home-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.home-cta__heading {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--weight-black);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.home-cta__heading em {
  font-style: italic;
  color: var(--accent);
}

.home-cta__subtext {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.home-cta__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
