/* ════════════════════════════════════════════════════
   GeneXplor Website — Dark Minimalist Portfolio Theme
   ════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds: Pure Dark */
  --bg-main: #000000;
  --bg-surface: #000000;
  --bg-card: #0c0c0c;
  --bg-nav: rgba(10, 10, 10, 0.7);

  /* Texts: High Contrast & Muted Grays */
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA; /* Muted gray like portfolio */
  --text-muted: #71717A;
  --text-heading: #FFFFFF;

  /* Borders: Ultra Thin & Subtle */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(255, 255, 255, 0.25);

  /* Accents */
  --accent-primary: #FFFFFF;
  --accent-brand: #00D8FF; /* Cyan from portfolio */

  /* Spacing */
  --section-padding: 120px 0;
  --inner-max: 1100px;
  --radius-pill: 9999px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-main);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography: Sleek Sans-Serif */
h1, h2, h3, h4 { 
  font-family: 'Inter', sans-serif; 
  color: var(--text-heading); 
  font-weight: 700;
  line-height: 1.1; 
  letter-spacing: -0.03em;
}

/* Premium gradient text effect on main headers */
h1, h2 {
  background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 { font-size: 4rem; max-width: 850px; margin: 0 auto; padding: 0 16px; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }

code, pre { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; }

a { color: var(--text-primary); text-decoration: none; transition: opacity 0.2s, color 0.2s; }
a:hover { opacity: 0.8; }
strong { color: var(--text-primary); font-weight: 600; }
img { max-width: 100%; display: block; }

/* ── Floating Pill Navbar ── */
#navbar {
  position: sticky; top: 32px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none; /* Let clicks pass through empty space */
}

.nav-inner {
  pointer-events: auto; /* Re-enable clicks on the pill itself */
  padding: 6px 8px; 
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem;
  color: var(--text-heading); letter-spacing: -0.02em;
  padding: 0 16px;
}
.logo-icon { width: 18px; height: 18px; }

.nav-links { display: flex; gap: 4px; align-items: center; margin-left: 12px; }
.nav-link {
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  padding: 8px 16px; border-radius: var(--radius-pill);
  transition: all 0.2s;
  line-height: 1; /* prevents vertical stretching */
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-link.active { background: rgba(255,255,255,0.12); color: var(--text-primary); }

.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  margin: 5px 0; transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--text-primary); color: #000; font-weight: 600; }
.btn-primary:hover { opacity: 0.9; transform: scale(0.98); }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.03);
}

/* ── Page Layouts ── */
.page-header {
  padding: 140px 0 60px; text-align: center; max-width: 800px; margin: 0 auto;
}
.page-title { margin-bottom: 20px; }
.page-subtitle { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.6; font-weight: 400; max-width: 600px; margin: 0 auto; }

.section { padding: var(--section-padding); flex: 1; }
.section-inner { max-width: var(--inner-max); margin: 0 auto; padding: 0 32px; }

.section-header { text-align: left; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; max-width: 600px; color: var(--text-secondary); }

/* ── Hero ── */
.hero-section {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  min-height: 90vh; padding-top: 60px; text-align: center;
  position: relative;
}
/* A highly subtle dark gradient glow behind the hero */
.hero-section::before {
  content: ''; position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 50%);
  z-index: -1; pointer-events: none;
}

.hero-inner { max-width: 900px; padding: 0 32px; z-index: 10; }
.hero-subtitle { font-size: 1.15rem; color: #D4D4D8; margin-top: 24px; margin-bottom: 40px; line-height: 1.6; max-width: 650px; margin-left: auto; margin-right: auto; font-weight: 400; }
.hero-cta-row { display: flex; gap: 16px; justify-content: center; margin-bottom: 80px; }

/* Stats (Home) - Very Dark */
.stats-strip {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 60px 0; background: var(--bg-card);
}
.stats-inner {
  max-width: var(--inner-max); margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px;
}
.stat-item { text-align: center; }
.stat-number { font-family: 'Inter', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.05em; margin-bottom: 4px; display: block; }
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Generic Grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

/* ── Feature Cards (Minimalist Dark Mode) ── */
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color 0.3s, background 0.3s;
}
.feature-card:hover {
  border-color: var(--border-hover); background: #141414;
}
.feature-icon {
  margin-bottom: 20px; color: var(--text-primary);
}
.feature-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Demo Gallery ── */
.demo-gallery { display: flex; flex-direction: column; gap: 120px; }
.demo-item { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.demo-browser {
  background: var(--bg-main); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 8px; 
  box-shadow: 0 40px 100px rgba(0,0,0,0.8); /* Deep shadow */
}
.demo-browser img { border-radius: var(--radius-sm); border: 1px solid var(--border-light); opacity: 0.9; transition: opacity 0.3s; }
.demo-browser img:hover { opacity: 1; }

.demo-info { text-align: left; max-width: 500px; }
.demo-info h3 { margin-bottom: 16px; font-size: 1.7rem; }
.demo-info p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }

/* ── Architecture/Integration Layers ── */
.arch-layer {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 50px; margin-bottom: 32px;
}
.arch-layer-header { margin-bottom: 40px; border-bottom: 1px solid var(--border-light); padding-bottom: 32px; }
.arch-layer-header h3 { margin-bottom: 12px; }
.arch-layer-header p { font-size: 1.05rem; color: var(--text-secondary); max-width: 700px; }

.arch-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.arch-sub-card {
  padding: 0; background: transparent; border: none;
}
.arch-sub-card strong { font-size: 1rem; display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-primary); }
.arch-sub-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Data Sources Tables ── */
.ds-table-wrapper {
  overflow-x: auto; background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); margin-bottom: 40px;
}
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 20px 30px; border-bottom: 1px solid var(--border-light); }
th { font-family: 'JetBrains Mono', monospace; font-weight: 500; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
td { font-size: 0.95rem; color: var(--text-secondary); }
td strong { color: var(--text-primary); font-weight: 500;}
tr:last-child td { border-bottom: none; }
.ds-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; background: rgba(255,255,255,0.05); font-family: 'JetBrains Mono'; font-size: 0.8rem; color: var(--text-primary); border: 1px solid var(--border-light); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-main);
  padding: 80px 0 40px; margin-top: 80px;
}
.footer-inner {
  max-width: var(--inner-max); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .nav-logo { padding-left: 0; margin-bottom: 16px; font-size: 1.1rem; }
.footer-desc { font-size: 0.9rem; color: var(--text-muted); max-width: 320px; line-height: 1.6; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px;
}
.footer-col a {
  display: block; font-size: 0.9rem; color: var(--text-muted);
  padding: 6px 0; transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: var(--inner-max); margin: 0 auto; padding: 24px 32px 0;
  margin-top: 60px; border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  h1 { font-size: 3.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .arch-sub-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .nav-inner { padding: 12px; width: 100%; border-radius: 0; border: none; border-bottom: 1px solid var(--border-light); background: var(--bg-main); }
  #navbar { top: 0; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .arch-sub-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .demo-item { direction: ltr !important; } /* Force column on mobile */
  .demo-item > div { padding: 0 !important; text-align: left !important; direction: ltr !important; }
}
