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

:root {
  --bg-primary: #070d1a;
  --bg-secondary: #0d1a24;
  --bg-card: #111e2e;
  --accent: #00d9b8;
  --accent-gold: #f59e0b;
  --accent-green: #10e98b;
  --accent-purple: #818cf8;
  --text-primary: #eef4ff;
  --text-secondary: #7a9bb8;
  --border: rgba(255,255,255,0.07);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* NAV */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem;
  background: rgba(7,13,26,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { font-size: 1.1rem; font-weight: 900; letter-spacing: -0.3px; }
.nav-logo .accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-chat-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent); color: #070d1a;
  border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.nav-chat-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,200,255,0.4); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); animation: pulse 1.5s infinite; display: inline-block; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.3); } }
.hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.4rem; cursor: pointer; }

/* HERO */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
#particleCanvas { width: 100%; height: 100%; display: block; }
.hero-content {
  position: relative; z-index: 1;
  max-width: 860px; margin: 0 auto; padding: 8rem 2rem 4rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,233,139,0.1); border: 1px solid rgba(16,233,139,0.3);
  color: var(--accent-green); border-radius: 100px;
  padding: 6px 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge::before { content: '●'; animation: pulse 1.5s infinite; }
.hero-photo {
  margin-bottom: 1.5rem;
}
.hero-avatar {
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card), #1a2e42);
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 3px var(--accent), 0 0 32px rgba(0,217,184,0.25), 0 0 64px rgba(0,217,184,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-size: 2.4rem; font-weight: 900; color: var(--accent);
  letter-spacing: -2px;
  position: relative;
}
.hero-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center center;
}
.hero-avatar::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--accent-gold), var(--accent-purple), var(--accent));
  z-index: -1;
  animation: spinRing 6s linear infinite;
  opacity: 0.6;
}
@keyframes spinRing { to { transform: rotate(360deg); } }

.hero-name {
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 900; letter-spacing: -3px;
  background: linear-gradient(135deg, #eef4ff 0%, #00d9b8 50%, #f59e0b 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.35rem); font-weight: 500;
  color: var(--text-secondary); margin-bottom: 1.5rem; height: 2rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}
.typed-text { color: var(--accent); }
.cursor { color: var(--accent); animation: blink 0.7s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.hero-sub { font-size: 1.05rem; color: var(--text-secondary); max-width: 660px; margin: 0 auto 2.5rem; line-height: 1.72; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-primary {
  background: var(--accent); color: #070d1a;
  border: none; border-radius: 12px;
  padding: 13px 26px; font-size: 0.92rem; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all 0.2s; font-family: inherit;
}
.btn-primary:hover, .btn-primary:focus { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,255,0.35); color: #070d1a; text-decoration: none; }
.btn-primary.large { padding: 15px 32px; font-size: 1rem; }
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 26px; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero-quick-stats {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 2rem;
  max-width: 700px; margin: 0 auto;
}
.qs { text-align: center; padding: 0 1.75rem; }
.qs-num { display: block; font-size: 1.75rem; font-weight: 900; color: var(--accent); line-height: 1; }
.qs-label { font-size: 0.68rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; display: block; }
.qs-divider { width: 1px; height: 38px; background: var(--border); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-secondary); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; z-index: 1;
  animation: scrollBounce 2s infinite;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--text-secondary), transparent); }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* SECTIONS */
.section { padding: 5.5rem 2rem; }
.section-dark { background: var(--bg-secondary); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag { display: inline-block; color: var(--accent); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.6rem; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 0.75rem; }
.section-header p { color: var(--text-secondary); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-purple)); opacity: 0; transition: opacity 0.3s; }
.stat-card:hover { transform: translateY(-4px); border-color: rgba(0,200,255,0.28); box-shadow: var(--shadow); }
.stat-card:hover::before { opacity: 1; }
.stat-icon { font-size: 1.9rem; margin-bottom: 0.6rem; }
.stat-num { font-size: 2.8rem; font-weight: 900; color: var(--accent); line-height: 1; display: inline; font-variant-numeric: tabular-nums; }
.stat-suffix { font-size: 2.8rem; font-weight: 900; color: var(--accent); }
.stat-label { color: var(--text-secondary); font-size: 0.83rem; margin-top: 0.4rem; line-height: 1.4; }

/* TIMELINE */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--accent), var(--accent-purple), transparent); }
.timeline-item { position: relative; margin-bottom: 2.75rem; padding-left: 2.5rem; }
.timeline-marker { position: absolute; left: -2.4rem; top: 0.45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg-primary); box-shadow: 0 0 12px var(--accent); }
.timeline-marker-sm { width: 10px; height: 10px; left: -2.2rem; background: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }
.timeline-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: all 0.3s; }
.timeline-content:hover { border-color: rgba(0,200,255,0.22); transform: translateX(4px); }
.timeline-content-sm { padding: 1.1rem 1.5rem; }
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }
.timeline-header h3 { font-size: 1.12rem; font-weight: 700; }
.timeline-company { color: var(--accent); font-size: 0.87rem; font-weight: 500; display: block; margin-top: 2px; }
.timeline-date { color: var(--text-secondary); font-size: 0.77rem; font-weight: 600; background: rgba(255,255,255,0.05); border-radius: 6px; padding: 3px 9px; white-space: nowrap; }
.timeline-bullets { list-style: none; margin-bottom: 0.85rem; }
.timeline-bullets li { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; padding: 0.3rem 0 0.3rem 1.2rem; position: relative; }
.timeline-bullets li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: 0.68rem; top: 0.4rem; }
.timeline-bullets strong { color: var(--text-primary); }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.timeline-tags span { background: rgba(0,200,255,0.08); border: 1px solid rgba(0,200,255,0.2); color: var(--accent); border-radius: 6px; padding: 2px 9px; font-size: 0.73rem; font-weight: 600; }
.timeline-note { color: var(--text-secondary); font-size: 0.88rem; font-style: italic; }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  position: relative; transition: all 0.3s; overflow: hidden;
}
.project-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%), rgba(0,200,255,0.05), transparent 40%); pointer-events: none; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(0,200,255,0.28); box-shadow: 0 16px 40px rgba(0,0,0,0.38); }
.project-card.featured { border-color: rgba(0,200,255,0.25); }
.project-badge { position: absolute; top: 1.1rem; right: 1.1rem; background: linear-gradient(135deg, var(--accent-gold), #d97706); color: #070d1a; font-size: 0.68rem; font-weight: 800; padding: 3px 9px; border-radius: 6px; letter-spacing: 0.05em; }
.veteran-badge { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(135deg, #3b5a2a, #4d7a38); border: 1px solid #6aaf4a; color: #c8f0a8; font-size: 0.68rem; font-weight: 800; padding: 3px 10px; border-radius: 6px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.5rem; }
.hero-veteran-badge { text-align: center; margin-top: 0.85rem; }
.hero-veteran-badge span { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #3b5a2a, #4d7a38); border: 1px solid #6aaf4a; color: #c8f0a8; font-size: 0.72rem; font-weight: 800; padding: 5px 14px; border-radius: 20px; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 0 12px rgba(106,175,74,0.3); }
.project-header { margin-bottom: 0.85rem; }
.project-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.45rem; }
.project-impact { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.impact-pill { background: rgba(16,233,139,0.1); border: 1px solid rgba(16,233,139,0.22); color: var(--accent-green); border-radius: 100px; padding: 2px 9px; font-size: 0.7rem; font-weight: 600; }
.project-card > p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.62; margin-bottom: 0.85rem; }
.project-outcome { background: rgba(0,200,255,0.05); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 0.65rem 0.9rem; font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 0.85rem; }
.project-outcome strong { color: var(--text-primary); }
.project-outcome em { color: var(--accent); font-style: normal; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.project-tags span { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-secondary); border-radius: 6px; padding: 2px 8px; font-size: 0.7rem; }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1.4rem; }
.skill-category { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: all 0.3s; }
.skill-category:hover { transform: translateY(-3px); border-color: rgba(0,200,255,0.18); }
.skill-cat-icon { font-size: 1.85rem; margin-bottom: 0.65rem; }
.skill-category h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.85rem; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill { border-radius: 8px; padding: 4px 11px; font-size: 0.78rem; font-weight: 500; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-secondary); transition: all 0.2s; }
.pill.strong { background: rgba(0,200,255,0.08); border-color: rgba(0,200,255,0.22); color: var(--text-primary); }
.pill:hover { border-color: var(--accent); color: var(--accent); }

/* EDUCATION */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.edu-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; transition: all 0.3s; }
.edu-card:hover { transform: translateY(-3px); border-color: rgba(0,200,255,0.2); }
.edu-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.edu-card h4 { font-weight: 700; margin-bottom: 0.4rem; font-size: 1rem; }
.edu-card p { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.3rem; }
.edu-card span { color: var(--text-secondary); font-size: 0.8rem; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.contact-card { display: flex; align-items: center; gap: 0.9rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.4rem; text-decoration: none; color: var(--text-primary); transition: all 0.3s; }
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text-primary); text-decoration: none; }
.contact-icon { font-size: 1.4rem; }
.contact-label { font-size: 0.73rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { font-weight: 600; font-size: 0.88rem; }
.contact-cta { text-align: center; }

/* CHARACTER SECTION */
.character-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.character-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; transition: transform 0.2s, border-color 0.2s; }
.character-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.character-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.character-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.6rem; }
.character-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.character-quote { margin: 1rem 0 0; padding: 0.6rem 1rem; border-left: 3px solid var(--accent); font-style: italic; font-size: 1rem; color: var(--text-primary); font-weight: 600; background: rgba(0,217,184,0.06); border-radius: 0 8px 8px 0; }

/* FOOTER */
footer { background: var(--bg-primary); border-top: 1px solid var(--border); padding: 1.75rem; text-align: center; color: var(--text-secondary); font-size: 0.82rem; }
.visitor-count { margin-top: 0.4rem; font-size: 0.75rem; color: var(--text-secondary); opacity: 0.7; }

/* PROJECT STORY MODAL */
.clickable-badge { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.clickable-badge:hover { transform: scale(1.07); box-shadow: 0 0 14px rgba(245,158,11,0.5); }
.clickable-pill { cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s; }
.clickable-pill:hover { background: var(--accent); color: #070d1a; transform: scale(1.05); }
.clickable-stat { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.clickable-stat:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,217,184,0.15); border-color: var(--accent); }
.stat-cta { font-size: 0.72rem; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; margin-top: 0.6rem; opacity: 0; transition: opacity 0.2s; }
.clickable-stat:hover .stat-cta { opacity: 1; }
.story-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 2000; align-items: center; justify-content: center; padding: 1.5rem; }
.story-overlay.open { display: flex; }
.story-modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; max-width: 660px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 2.5rem; position: relative; animation: storyIn 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes storyIn { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.story-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: none; color: var(--text-secondary); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.story-close:hover { color: var(--text-primary); }
.story-badge-label { display: inline-block; background: linear-gradient(135deg, var(--accent-gold), #d97706); color: #070d1a; font-size: 0.68rem; font-weight: 800; padding: 3px 10px; border-radius: 6px; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.story-modal h2 { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 1.5rem; }
.story-section { margin-bottom: 1.4rem; }
.story-section h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.4rem; }
.story-section p { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }
.story-stat-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.story-stat { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1.2rem; text-align: center; flex: 1; min-width: 120px; }
.story-stat strong { display: block; font-size: 1.3rem; color: var(--accent); font-weight: 800; }
.story-stat span { font-size: 0.72rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* AI CHAT WIDGET */
.chat-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--accent), #0088bb);
  color: #070d1a; border-radius: 50px;
  padding: 13px 20px; cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,200,255,0.38);
  font-weight: 700; font-size: 0.88rem;
  border: none; font-family: inherit;
  animation: fabFloat 3s ease-in-out infinite;
}
@keyframes fabFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.chat-fab:hover { transform: scale(1.05) !important; box-shadow: 0 12px 40px rgba(0,200,255,0.55); animation: none; }
.chat-fab-pulse { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; background: var(--accent-green); border-radius: 50%; border: 2px solid var(--bg-primary); animation: pulse 1.5s infinite; }
.chat-panel {
  position: fixed; bottom: 6rem; right: 2rem; z-index: 200;
  width: 380px; max-height: 560px;
  background: var(--bg-secondary); border: 1px solid rgba(0,200,255,0.25);
  border-radius: 20px; box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.95); opacity: 0;
  pointer-events: none; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.2rem; background: linear-gradient(135deg, rgba(0,200,255,0.1), rgba(167,139,250,0.1)); border-bottom: 1px solid var(--border); }
.chat-header-info { display: flex; align-items: center; gap: 0.7rem; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-purple)); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: #070d1a; }
.chat-name { font-weight: 700; font-size: 0.88rem; }
.chat-status { font-size: 0.7rem; color: var(--accent-green); }
.chat-close { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 0.95rem; padding: 4px 7px; border-radius: 5px; transition: all 0.2s; }
.chat-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }
.chat-messages { flex: 1; overflow-y: auto; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.65rem; }
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble { max-width: 85%; padding: 0.68rem 0.9rem; border-radius: 14px; font-size: 0.85rem; line-height: 1.5; }
.chat-msg.bot .chat-bubble { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); border-bottom-left-radius: 3px; }
.chat-msg.user .chat-bubble { background: linear-gradient(135deg, var(--accent), #0099cc); color: #070d1a; font-weight: 500; border-bottom-right-radius: 3px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.chat-suggestions button { background: rgba(0,200,255,0.08); border: 1px solid rgba(0,200,255,0.22); color: var(--accent); border-radius: 100px; padding: 4px 11px; font-size: 0.73rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.chat-suggestions button:hover { background: rgba(0,200,255,0.18); }
.chat-thinking { display: flex; gap: 4px; align-items: center; padding: 0.65rem 0.9rem; }
.chat-thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }
.chat-thinking span:nth-child(2) { animation-delay: 0.2s; }
.chat-thinking span:nth-child(3) { animation-delay: 0.4s; }
.chat-input-row { display: flex; gap: 0.45rem; padding: 0.9rem; border-top: 1px solid var(--border); }
#chatInput { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 9px; padding: 9px 13px; color: var(--text-primary); font-size: 0.85rem; outline: none; transition: border-color 0.2s; font-family: inherit; }
#chatInput:focus { border-color: var(--accent); }
#chatInput::placeholder { color: var(--text-secondary); }
.chat-send { background: var(--accent); color: #070d1a; border: none; border-radius: 9px; width: 38px; height: 38px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.chat-send:hover { transform: scale(1.06); box-shadow: 0 4px 12px rgba(0,200,255,0.3); }

/* LIGHTBOX */
.hero-avatar { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.hero-avatar:hover { transform: scale(1.05); box-shadow: 0 0 0 3px var(--accent), 0 0 48px rgba(0,217,184,0.4); }

#lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
#lightbox.open { opacity: 1; pointer-events: all; }
#lightbox img {
  width: 420px; height: 420px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent), 0 32px 80px rgba(0,0,0,0.7);
  transform: scale(0.85); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  object-fit: cover; object-position: center center;
}
#lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: white; font-size: 1.5rem; font-weight: 700;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 1rem 2rem; gap: 1rem; z-index: 99; }
  .hamburger { display: block; }
  .hero-quick-stats { flex-direction: column; }
  .qs-divider { width: 70%; height: 1px; margin: 0.5rem auto; }
  .chat-panel { width: calc(100vw - 2rem); right: 1rem; bottom: 5.5rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .timeline { padding-left: 1rem; }
  .timeline-item { padding-left: 1.5rem; }
  .timeline-header { flex-direction: column; }
}
