/* CyborgJT — Cinematic dark portfolio */
:root {
  --bg: #08090d;
  --bg2: #0d1017;
  --bg3: #141820;
  --border: #1e2330;
  --text: #e8eaf0;
  --text2: #8892a4;
  --accent: #3b82f6;
  --accent2: #f0a830;
  --green: #3fb950;
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.accent { color: var(--accent); }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 35, 48, 0.5);
}

.nav-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-github {
  background: var(--accent);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600 !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 0.5s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8,9,13,0.7) 0%,
    rgba(8,9,13,0.5) 40%,
    rgba(8,9,13,0.8) 80%,
    rgba(8,9,13,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.hero-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--mono);
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: #2563eb; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text2); }

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--text2);
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto;
}

/* Products */
.products {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card.reverse { direction: rtl; }
.product-card.reverse > * { direction: ltr; }

.product-visual {
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--bg2) 100%);
}

.product-card.reverse .product-visual::after {
  background: linear-gradient(-90deg, transparent 60%, var(--bg2) 100%);
}

.product-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent2);
  margin-bottom: 8px;
}

.product-info h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-info p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.product-metrics span {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--green);
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

.product-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.product-stack span {
  font-size: 11px;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

.product-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.product-link:hover { text-decoration: underline; }

/* Frameworks */
.frameworks {
  padding: 120px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.framework-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.framework-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  transition: border-color 0.2s, transform 0.2s;
}

.framework-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.framework-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent2);
}

.framework-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}

/* Demo */
.demo {
  padding: 120px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.demo-embed { text-align: center; }

.demo-link {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.demo-preview {
  background: var(--bg2);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 60px 40px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.demo-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}

.demo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  animation: pulse 2s ease-in-out infinite;
}

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

.demo-preview h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.demo-preview p {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 24px;
}

.demo-source {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-top: 16px;
  text-decoration: none;
}
.demo-source:hover { color: var(--accent); }

/* Bio */
.bio {
  padding: 120px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.bio-timeline {
  position: relative;
  padding-left: 40px;
}

.bio-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-item.active::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.timeline-year {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 1px;
}

.timeline-text h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 8px;
}

.timeline-text p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* Contact */
.contact {
  padding: 120px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.contact h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}

.contact-links a:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

.contact-sub {
  font-size: 13px;
  color: var(--text2);
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 42px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 28px; }
  .products { padding: 80px 20px; }
  .product-card { grid-template-columns: 1fr; }
  .product-card.reverse { direction: ltr; }
  .product-visual { min-height: 250px; }
  .framework-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }
  .contact-links { flex-direction: column; align-items: center; }
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
