/* ═══════════════════════════════════════════════════════════════
   ROHIT RAM — PERSONAL WEBSITE | CSS
   Chatfolio Style — Light/Dark Theme, Blue Accent
═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-light: #dbeafe;
  --bg: #f5fafe;           /* matches demo body background */
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow: 0 4px 24px rgba(59,130,246,0.10);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --radius: 18px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --chat-bar-height: 140px;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface2: #1a2744;
  --border: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --shadow: 0 4px 24px rgba(59,130,246,0.20);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.30);
  --accent-light: #1e3a5f;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* ── PAGE CENTER (white stage) ── */
.page-center {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  position: relative;
  overflow: visible;   /* allow watermarks to bleed into side panels */
  box-shadow: -30px 0 80px rgba(59,130,246,0.06),
               30px 0 80px rgba(59,130,246,0.06);
}
[data-theme="dark"] .page-center {
  box-shadow: -30px 0 80px rgba(0,0,0,0.3), 30px 0 80px rgba(0,0,0,0.3);
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  position: fixed;
  top: 20px; right: 220px;
  z-index: 1000;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.1); }

/* ── BACK HOME BUTTON ── */
.back-home {
  position: fixed;
  top: 20px; left: 220px;
  z-index: 1000;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.back-home:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.1); }

/* ── SECTION LABEL (top right pill) ── */
.section-label {
  position: fixed;
  top: 28px; right: 380px;
  z-index: 999;
  background: var(--accent);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
  animation: slideIn 0.3s ease;
}

/* ── WATERMARKS (absolute inside page-center, touching left/right borders) ── */
.watermark {
  position: absolute;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  top: 50%;
  opacity: 0.07;
  color: var(--accent);
  white-space: nowrap;
  transition: opacity var(--transition);
}
[data-theme="dark"] .watermark { opacity: 0.1; }
/* Left watermark: sits just outside the left border of page-center */
.watermark-left {
  left: 0;
  writing-mode: vertical-rl;
  transform: translateY(-50%) translateX(-80%) rotate(180deg);
}
/* Right watermark: sits just outside the right border of page-center */
.watermark-right {
  right: 0;
  writing-mode: vertical-rl;
  transform: translateY(-50%) translateX(80%);
}

/* ── HERO SECTION ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px calc(var(--chat-bar-height) + 40px);
  position: relative;
  z-index: 1;
  transition: opacity var(--transition), transform var(--transition);
  text-align: center;
}

.hero.faded {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.hero-greeting {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  animation: fadeInDown 0.6s ease;
}
.hero-greeting .wave { font-size: 1.1rem; }

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  animation: fadeInDown 0.65s ease;
}
.hero-subtitle {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
  animation: fadeInDown 0.7s ease;
}
.accent { color: var(--accent); }

/* ── HERO MIDDLE 3-COLUMN ── */
.hero-middle {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 980px;
  margin-top: 10px;
  animation: fadeIn 0.8s ease;
}

/* ── PHOTO ── */
.hero-photo-wrap {
  position: relative;
  width: 240px;
  height: 300px;
  flex-shrink: 0;
  z-index: 110;   /* above chat-bar (z-index: 100) so photo overlaps it */
  margin-bottom: -20px; /* nudge bottom edge to overlap/kiss chat bar top */
}
.hero-photo-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: var(--accent);
  opacity: 0.92;
  z-index: 0;
  /* Single animation handles both morph shape AND left-right sway */
  animation: blobMorphSway 8s ease-in-out 0.5s infinite;
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: 334px;
  height: 400px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;   /* removes frame */
  display: block;
  margin: 0 auto;
  margin-top: -50px;
  margin-left: -30px;
  background: none;   /* optional: removes background tint */
}

/* ── QUOTE ── */
.hero-quote {
  text-align: left;
  max-width: 300px;
  justify-self: end;
  animation: fadeIn 1s ease;
}
.quote-icon {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
  margin-left: 25px;
}
.hero-quote p {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-style: italic;
  margin-left: 25px;
}
.quote-author {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  margin-left: 25px;
}

/* ── CTA BUTTONS ── */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-self: start;
  animation: fadeInUp 0.9s ease;
}

/* ── BUTTONS ── */
.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: all var(--transition);
  white-space: nowrap;
  min-width: 170px;
  text-decoration: none;
  margin-left: 80px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.45);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── CHAT PANEL ── */
.chat-panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: var(--chat-bar-height);
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 20px 20px;
}

.chat-messages {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - var(--chat-bar-height) - 100px);
  overflow-y: auto;
  pointer-events: all;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-light) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--accent-light); border-radius: 4px; }

/* ── CHAT MESSAGES ── */
.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: msgSlideIn 0.4s ease;
}
.chat-msg.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 50px;
}

.bot-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--accent-light);
}
.bot-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

.msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  max-width: 680px;
  flex: 1;
}

/* ── TYPEWRITER ── */
.typewriter { min-height: 1.7em; }
.cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px !important;
}
@media(max-width:600px){ .stats-grid{ grid-template-columns: repeat(2,1fr); } }

.stat {
  text-align: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
}
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ── INFO PILLS ── */
.info-pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px !important; }
.info-pills span {
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── SKILLS BLOCK ── */
.skills-block { display: flex; flex-direction: column; gap: 18px; }
.skills-category h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: default;
}
.skill-tags span:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── ACTION BUTTONS ── */
.action-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
}
.action-btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.action-btn.primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.action-btn.outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.action-btn.outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── PROJECT CARDS ── */
.project-cards { display: flex; flex-direction: column; gap: 16px; padding: 8px !important; }
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: all var(--transition);
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--accent);
}
.project-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.project-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 9px;
  border-radius: 50px;
}
.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.project-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech span {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; padding: 8px 0 !important; }
.timeline-item {
  display: flex;
  gap: 18px;
  padding-bottom: 24px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 3px solid var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  margin-left: 10px;
}
.timeline-dot.accent { background: var(--accent); }
.timeline-content { flex: 1; }
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.timeline-header h3 { font-size: 0.95rem; font-weight: 700; }
.timeline-period {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  margin-right: 20px;
}
.timeline-company {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 10px;
}
.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.timeline-bullets li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* ── CERT CARDS ── */
.cert-cards { display: flex; flex-direction: column; gap: 12px; padding: 8px !important; }
.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all var(--transition);
}
.cert-card:hover { border-color: var(--accent); transform: translateX(4px); }
.cert-icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}
.cert-info h4 { font-size: 1rem; font-weight: 800; color: var(--accent); }
.cert-info p { font-size: 0.83rem; color: var(--text-muted); margin: 2px 0; }
.cert-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: #dcfce7;
  color: #16a34a;
  padding: 2px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
[data-theme="dark"] .cert-badge { background: #14532d; color: #4ade80; }

/* ── CONTACT CARDS ── */
.contact-cards { display: flex; flex-direction: column; gap: 10px; padding: 8px !important; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-card.no-link { cursor: default; }
.contact-card i {
  font-size: 1.2rem;
  color: var(--accent);
  width: 24px;
  text-align: center;
}
.contact-card span { font-size: 0.75rem; color: var(--text-muted); display: block; }
.contact-card strong { font-size: 0.88rem; font-weight: 600; }

/* ── CONTACT FORM ── */
.contact-form-wrap h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.87rem;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.form-success {
  padding: 14px;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  color: #16a34a;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
[data-theme="dark"] .form-success { background: #14532d; border-color: #166534; color: #4ade80; }

.form-error {
  padding: 14px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  color: #dc2626;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
[data-theme="dark"] .form-error { background: #450a0a; border-color: #7f1d1d; color: #f87171; }

/* ── HOBBY LIST ── */
.hobby-list { display: flex; flex-direction: column; gap: 12px; }
.hobby-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.hobby-icon { font-size: 1.5rem; flex-shrink: 0; }
.hobby-item strong { color: var(--text); }

/* ── BLOGS ── */
.blog-categories { display: flex; flex-direction: column; gap: 12px; }
.blog-cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.blog-cat-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(4px);
}
.blog-cat-icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: background var(--transition);
}
.blog-cat-card:hover .blog-cat-icon { background: var(--accent); color: white; }
.blog-cat-info { flex: 1; }
.blog-cat-info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.blog-cat-info p { font-size: 0.8rem; color: var(--text-muted); }
.blog-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 9px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 4px;
}
.blog-cat-arrow { color: var(--text-light); font-size: 0.9rem; }

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--text-muted);
  padding: 8px 14px !important;
  background: var(--bg) !important;
}
.breadcrumb-back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  padding: 0;
  font-family: inherit;
  transition: opacity var(--transition);
}
.breadcrumb-back:hover { opacity: 0.7; }

.blog-list { display: flex; flex-direction: column; gap: 2px; padding: 4px !important; }
.blog-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.blog-item:hover {
  background: var(--bg);
  border-color: var(--border);
  transform: translateX(4px);
}
.blog-item-num {
  width: 32px; height: 32px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.blog-item-content { flex: 1; }
.blog-item-content h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.blog-item-content p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 6px; }
.blog-meta { display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-light); }
.blog-meta span { display: flex; align-items: center; gap: 4px; }
.blog-item > i { color: var(--text-light); font-size: 0.8rem; flex-shrink: 0; }

/* ── BLOG POST ── */
.blog-post { max-width: 100%; }
.post-header { margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.post-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}
.post-header h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.post-meta { font-size: 0.77rem; color: var(--text-light); display: flex; gap: 10px; }
.post-body { font-size: 0.87rem; line-height: 1.8; color: var(--text-muted); }
.post-body p { margin-bottom: 12px; }
.post-body h5 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin: 14px 0 8px; }
.post-body ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.post-body ul li {
  padding-left: 16px;
  position: relative;
}
.post-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}
.post-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-style: normal !important;
}

/* ── COMING SOON BANNER (GitHub / YouTube) ── */
.coming-soon-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.coming-soon-banner strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.coming-soon-banner p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.coming-soon-icon {
  width: 48px; height: 48px;
  background: #1e293b;
  color: white;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.coming-soon-icon.youtube {
  background: #ff0000;
}
[data-theme="dark"] .coming-soon-icon { background: #334155; }
[data-theme="dark"] .coming-soon-icon.youtube { background: #cc0000; }

/* ── CHAT BAR (fixed bottom) ── */
.chat-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;   /* no white footer box — matches demo */
  border-top: none;
  padding: 0 20px 14px;
  pointer-events: none;      /* allow clicks to pass through transparent area */
}
.chat-bar-inner {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 12px 16px 6px;
  box-shadow: 0 -4px 30px rgba(59,130,246,0.08);
  pointer-events: all;       /* re-enable interaction on the visible inner box */
}
.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 8px 6px 20px;
  transition: border-color var(--transition);
  margin-bottom: 10px;
}
.chat-input-row:focus-within { border-color: var(--accent); }
.chat-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
}
.chat-input-row input::placeholder { color: var(--text-light); }
.send-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.send-btn:hover { background: var(--accent-dark); transform: scale(1.1); }

.chat-quick-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.chat-quick-btns button {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font-family: inherit;
  transition: all var(--transition);
  white-space: nowrap;
}
.chat-quick-btns button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.chat-quick-btns button i { font-size: 0.75rem; }

.chat-hint {
  text-align: center;
  font-size: 0.73rem;
  color: var(--text-light);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}
.chat-hint span {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.chat-hint span:hover { text-decoration: underline; }

/* ── CURTAIN INTRO ── */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}
.curtain-panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: var(--bg);
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.curtain-left  { left: 0; transform: translateX(0); }
.curtain-right { right: 0; transform: translateX(0); }

.curtain-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--accent);
  transform: translateX(-50%) scaleY(0);
  transform-origin: center center;
  opacity: 1;
  /* Two transitions: scaleY for drawing in, opacity for fading out */
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1),
              opacity   0.22s ease-in;
  box-shadow: 0 0 18px rgba(59,130,246,0.7), 0 0 40px rgba(59,130,246,0.3);
  will-change: transform, opacity;
}

/* JS adds these classes in sequence */
.curtain-line.line-show                    { transform: translateX(-50%) scaleY(1); }
.curtain-line.line-show.line-fade          { opacity: 0; }          /* fades AFTER fully drawn */
.curtain-left.panel-open                   { transform: translateX(-101%); }
.curtain-right.panel-open                  { transform: translateX(101%); }
.curtain.curtain-done                      { display: none; }

/* ── ANIMATIONS ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── BLOB ANIMATION (morph shape + left-right sway, single animation) ── */
@keyframes blobMorphSway {
  0%    {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(calc(-50% + 0px),   -50%);
  }
  25%   {
    border-radius: 45% 55% 50% 50% / 45% 55% 45% 55%;
    transform: translate(calc(-50% + 28px),  -50%);
  }
  50%   {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(calc(-50% + 0px),   -50%);
  }
  75%   {
    border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
    transform: translate(calc(-50% - 28px),  -50%);
  }
  100%  {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(calc(-50% + 0px),   -50%);
  }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── CV OPTIONS ── */
.cv-options { display: flex; flex-direction: column; gap: 14px; padding: 8px !important; }
.cv-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
}
.cv-card:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.cv-card-magazine:hover { border-color: #8b5cf6; }
.cv-card-magazine .cv-card-icon { background: #ede9fe; color: #7c3aed; }
.cv-card-magazine .cv-download-btn { background: #7c3aed; }
[data-theme="dark"] .cv-card-magazine .cv-card-icon { background: #2e1065; color: #a78bfa; }

.cv-card-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cv-card-info { flex: 1; }
.cv-card-info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.cv-card-info p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero-middle {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    gap: 24px;
  }
  .hero-quote { justify-self: center; text-align: center; max-width: 80px; }
  .hero-cta { align-items: center; justify-self: center; flex-direction: row; }
}

@media (max-width: 768px) {
  .hero-name { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.8rem; }
  .chat-quick-btns button { font-size: 0.75rem; padding: 6px 12px; }
  .watermark { opacity: 0.04; font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-header { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; gap