/* ============================================
   SUNSET PALETTE PORTFOLIO — Avinash Sahu
   Dark / Light mode with smooth transitions
   ============================================ */

/* --- CSS Variables: Dark Theme (Default) --- */
:root,
[data-theme="dark"] {
  --bg:        #1a1020;
  --bg2:       #221530;
  --bg3:       #2a1a3a;
  --card:      #2a1a3a;
  --card-hover:#332244;
  --text:      #f5f0fa;
  --text2:     #c4b5d0;
  --text3:     #8a7a9a;
  --border:    #3d2a55;
  --accent:    #ff6b35;
  --accent2:   #ff8c5a;
  --accent3:   #ffd166;
  --gradient1: #ff6b35;
  --gradient2: #e84393;
  --gradient3: #a855f7;
  --tag-bg:    rgba(255,107,53,0.12);
  --tag-text:  #ff8c5a;
  --glow:      rgba(255,107,53,0.15);
  --shadow:    rgba(0,0,0,0.4);
  --nav-bg:    rgba(26,16,32,0.88);
  --metrics-bg:linear-gradient(135deg,rgba(255,107,53,0.06),rgba(168,85,247,0.06));
}

/* --- CSS Variables: Light Theme --- */
[data-theme="light"] {
  --bg:        #fef7f0;
  --bg2:       #fff5ee;
  --bg3:       #fff0e5;
  --card:      #ffffff;
  --card-hover:#fff5ee;
  --text:      #2d1b0e;
  --text2:     #6b4c35;
  --text3:     #9a7a60;
  --border:    #f0d5c0;
  --accent:    #e05a20;
  --accent2:   #d04a15;
  --accent3:   #c7940a;
  --gradient1: #e05a20;
  --gradient2: #c03080;
  --gradient3: #8b30e0;
  --tag-bg:    rgba(224,90,32,0.08);
  --tag-text:  #c04a15;
  --glow:      rgba(224,90,32,0.08);
  --shadow:    rgba(0,0,0,0.08);
  --nav-bg:    rgba(254,247,240,0.92);
  --metrics-bg:linear-gradient(135deg,rgba(224,90,32,0.04),rgba(139,48,224,0.04));
}

/* --- Base Reset --- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:80px; }
body {
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
  transition:background .4s ease, color .4s ease;
}

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

/* --- Typography --- */
a { text-decoration:none; color:inherit; }
strong { color:var(--accent); font-weight:600; }
ul { list-style:none; }

/* --- Container --- */
.container { max-width:1140px; margin:0 auto; padding:0 1.5rem; }

/* --- Gradient Text --- */
.gradient-text {
  background:linear-gradient(135deg,var(--gradient1),var(--gradient2),var(--gradient3));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  background-size:200% 200%;
  animation:gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* --- Buttons --- */
.btn {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.7rem 1.4rem; border-radius:10px;
  font-weight:600; font-size:.85rem;
  transition:all .3s; cursor:pointer; border:none;
  font-family:inherit; position:relative; overflow:hidden;
}
.btn-primary {
  background:linear-gradient(135deg,var(--gradient1),var(--gradient2));
  color:#fff;
}
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 10px 30px var(--glow); }
.btn-outline {
  border:1px solid var(--border); color:var(--text); background:transparent;
}
.btn-outline:hover { border-color:var(--accent); color:var(--accent); }
.btn-accent {
  background:linear-gradient(135deg,var(--gradient1),var(--gradient2));
  color:#fff; border-radius:8px;
}
.btn-linkedin {
  background:#0077B5; color:#fff; border:none;
}
.btn-linkedin:hover {
  background:#005e93; transform:translateY(-3px);
  box-shadow:0 8px 25px rgba(0,119,181,0.35);
}
.btn-sm { padding:.4rem 1rem; font-size:.8rem; }
.btn-full { width:100%; justify-content:center; }

/* ===========================
   NAVBAR — Sticky + Responsive
   =========================== */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:var(--nav-bg);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  transition:all .3s;
}
.nav.scrolled { box-shadow:0 4px 30px var(--shadow); }
.nav-inner {
  max-width:1140px; margin:0 auto; padding:0 1.5rem;
  display:flex; justify-content:space-between; align-items:center; height:64px;
}
.nav-logo {
  font-size:1.25rem; font-weight:900; white-space:nowrap;
  background:linear-gradient(135deg,var(--gradient1),var(--gradient2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.nav-logo .dot { -webkit-text-fill-color:var(--accent3); }
.nav-menu {
  display:flex; align-items:center; gap:1.8rem; list-style:none;
}
.nav-link {
  color:var(--text2); font-size:.85rem; font-weight:500;
  transition:all .3s; position:relative;
}
.nav-link::after {
  content:''; position:absolute; bottom:-4px; left:0;
  width:0; height:2px; background:var(--accent); transition:width .3s;
}
.nav-link:hover, .nav-link.active { color:var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width:100%; }

/* Nav Right (Theme + Hamburger) */
.nav-right { display:flex; align-items:center; gap:.8rem; }

/* Theme Toggle */
.theme-toggle {
  width:40px; height:40px; border-radius:10px; border:1px solid var(--border);
  background:transparent; cursor:pointer; display:flex; align-items:center;
  justify-content:center; color:var(--text); font-size:1.1rem; transition:all .3s;
}
.theme-toggle:hover { border-color:var(--accent); color:var(--accent); }
[data-theme="dark"] .icon-sun  { display:inline; }
[data-theme="dark"] .icon-moon { display:none; }
[data-theme="light"] .icon-sun  { display:none; }
[data-theme="light"] .icon-moon { display:inline; }

/* Hamburger */
.hamburger {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:4px;
}
.hamburger span {
  display:block; width:24px; height:2px; background:var(--text);
  border-radius:2px; transition:all .3s;
}
.hamburger.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* ===========================
   HERO
   =========================== */
.hero {
  min-height:100vh; display:flex; align-items:center;
  padding:80px 0 40px; position:relative; overflow:hidden;
}
.hero-bg-glow {
  position:absolute; top:-150px; right:-150px; width:600px; height:600px;
  background:radial-gradient(circle,var(--glow) 0%,transparent 70%);
  border-radius:50%; animation:pulse 8s ease-in-out infinite; pointer-events:none;
}
@keyframes pulse {
  0%,100%{transform:scale(1);opacity:.5}
  50%{transform:scale(1.15);opacity:1}
}
.hero-content { max-width:700px; }
.hero-badge {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.4rem 1rem; border-radius:50px;
  background:rgba(34,197,94,0.1); border:1px solid rgba(34,197,94,0.3);
  font-size:.8rem; color:#22c55e; margin-bottom:1.5rem;
}
.pulse-dot {
  width:8px; height:8px; background:#22c55e; border-radius:50%;
  animation:blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero h1 { font-size:3.2rem; font-weight:900; line-height:1.1; margin-bottom:1.5rem; }
.hero-desc { font-size:1.1rem; color:var(--text2); max-width:560px; margin-bottom:2rem; }
.hero-btns { display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:3rem; }
.hero-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
.stat-card {
  background:var(--card); border:1px solid var(--border); border-radius:12px;
  padding:1rem; text-align:center; transition:all .3s;
}
.stat-card:hover { border-color:var(--accent); transform:translateY(-3px); }
.stat-num { font-size:1.8rem; font-weight:800; color:var(--accent); display:block; }
.stat-card small { font-size:.7rem; color:var(--text3); }
.scroll-indicator {
  position:absolute; bottom:2rem; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
  color:var(--text3); font-size:.75rem;
}
.scroll-line {
  width:1px; height:40px; background:linear-gradient(to bottom,var(--accent),transparent);
  animation:scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%,100%{transform:scaleY(1);opacity:1}
  50%{transform:scaleY(.5);opacity:.4}
}

/* ===========================
   METRICS BAR
   =========================== */
.metrics-bar {
  background:var(--metrics-bg);
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:3rem 0;
}
.metrics-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:1.5rem; }
.metric { text-align:center; }
.metric .stat-num { font-size:2.5rem; }
.metric small { font-size:.8rem; color:var(--text3); display:block; margin-top:.2rem; }

/* ===========================
   SECTIONS
   =========================== */
.section { padding:5rem 0; }
.section-alt { background:var(--bg2); }
.section-header { text-align:center; margin-bottom:3.5rem; }
.section-badge {
  display:inline-block; padding:.25rem .9rem;
  background:var(--tag-bg); border:1px solid rgba(255,107,53,0.2);
  border-radius:50px; font-size:.75rem; color:var(--tag-text);
  letter-spacing:1px; text-transform:uppercase; margin-bottom:.8rem;
}
.section-title { font-size:2.4rem; font-weight:900; margin-bottom:.5rem; }
.section-sub { color:var(--text3); font-size:.95rem; max-width:550px; margin:0 auto; }

/* ===========================
   ABOUT
   =========================== */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:start; }
.about-text p { color:var(--text2); margin-bottom:1rem; font-size:.95rem; }
.about-cards { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.highlight-card {
  background:var(--card); border:1px solid var(--border); border-radius:16px;
  padding:1.5rem; transition:all .4s; position:relative; overflow:hidden;
}
.highlight-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,var(--gradient1),var(--gradient2));
  transform:scaleX(0); transition:transform .4s; transform-origin:left;
}
.highlight-card:hover::before { transform:scaleX(1); }
.highlight-card:hover {
  border-color:var(--accent); transform:translateY(-5px);
  box-shadow:0 15px 30px var(--shadow);
}
.highlight-icon {
  font-size:1.6rem; margin-bottom:.6rem; display:inline-block; color:var(--accent);
}
.highlight-card h4 { font-size:.95rem; margin-bottom:.3rem; }
.highlight-card p { font-size:.8rem; color:var(--text3); }

/* ===========================
   SKILLS
   =========================== */
.skills-wrap { max-width:900px; margin:0 auto; }
.skill-group-label {
  font-size:.8rem; color:var(--accent); font-weight:600;
  letter-spacing:1px; text-transform:uppercase;
  padding:.6rem 0; margin-top:1.5rem; margin-bottom:.8rem;
  border-bottom:1px solid var(--border);
}
.skill-group-label:first-child { margin-top:0; }
.skills-row { display:flex; flex-wrap:wrap; gap:.6rem; }
.skill-chip {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.55rem 1rem; background:var(--card); border:1px solid var(--border);
  border-radius:10px; font-size:.82rem; font-weight:500;
  transition:all .3s; cursor:default;
}
.skill-chip i { color:var(--accent); font-size:.9rem; }
.skill-chip:hover {
  border-color:var(--accent); transform:translateY(-3px);
  box-shadow:0 8px 20px var(--shadow);
}

/* ===========================
   PROJECTS
   =========================== */
.filter-bar {
  display:flex; justify-content:center; gap:.5rem;
  margin-bottom:2.5rem; flex-wrap:wrap;
}
.filter-btn {
  padding:.4rem 1rem; border:1px solid var(--border); border-radius:50px;
  background:transparent; color:var(--text2); font-size:.8rem;
  cursor:pointer; transition:all .3s; font-family:inherit;
}
.filter-btn.active, .filter-btn:hover {
  background:var(--accent); color:#fff; border-color:var(--accent);
}
.projects-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:1.5rem;
}
.project-card {
  background:var(--card); border:1px solid var(--border); border-radius:18px;
  padding:1.8rem; transition:all .4s; position:relative;
}
.project-card:hover {
  border-color:var(--accent); transform:translateY(-6px);
  box-shadow:0 20px 40px var(--shadow);
}
.project-tag {
  display:inline-block; padding:.15rem .6rem; border-radius:6px;
  font-size:.7rem; font-weight:700; margin-bottom:1rem;
}
.tag-aws   { background:rgba(249,165,27,0.15); color:#f9a51b; }
.tag-gcp   { background:rgba(66,133,244,0.15); color:#4285f4; }
.tag-azure { background:rgba(0,120,212,0.15); color:#0078d4; }
.tag-cicd  { background:rgba(34,197,94,0.15); color:#22c55e; }
.tag-ai    { background:rgba(168,85,247,0.15); color:#a855f7; }
.project-card h3 { font-size:1.05rem; margin-bottom:.5rem; }
.project-card p { font-size:.83rem; color:var(--text3); margin-bottom:1rem; line-height:1.6; }
.project-tech { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1rem; }
.project-tech span {
  font-size:.65rem; padding:.2rem .5rem; background:var(--bg);
  border-radius:4px; color:var(--text2);
}
.project-link {
  color:var(--accent); font-size:.82rem; font-weight:600;
  display:inline-flex; align-items:center; gap:.4rem; transition:all .3s;
}
.project-link:hover { gap:.6rem; color:var(--accent2); }
.projects-more { text-align:center; margin-top:2.5rem; }

/* ===========================
   EXPERIENCE TIMELINE
   =========================== */
.timeline { max-width:750px; margin:0 auto; position:relative; }
.timeline::before {
  content:''; position:absolute; left:28px; top:0; bottom:0;
  width:2px;
  background:linear-gradient(to bottom,var(--gradient1),var(--gradient2),var(--gradient3));
}
.timeline-item { position:relative; padding-left:68px; margin-bottom:2.5rem; }
.timeline-dot {
  position:absolute; left:19px; top:8px; width:20px; height:20px;
  border-radius:50%; border:3px solid var(--bg); z-index:2;
  background:var(--accent); transition:all .3s;
}
.timeline-dot.active {
  background:#22c55e; box-shadow:0 0 15px rgba(34,197,94,0.5);
}
.timeline-dot.cert {
  background:var(--accent3); box-shadow:0 0 15px rgba(255,209,102,0.4);
}
.timeline-card {
  background:var(--card); border:1px solid var(--border); border-radius:16px;
  padding:1.5rem; transition:all .3s;
}
.timeline-card:hover {
  border-color:var(--accent); box-shadow:0 10px 25px var(--shadow);
}
.timeline-top {
  display:flex; justify-content:space-between; align-items:start;
  flex-wrap:wrap; gap:.5rem; margin-bottom:.5rem;
}
.timeline-card h3 { font-size:1.05rem; }
.timeline-company { font-size:.85rem; color:var(--text2); }
.timeline-date {
  font-size:.72rem; color:#fff; padding:.2rem .8rem; border-radius:50px; font-weight:600;
  background:linear-gradient(135deg,var(--gradient1),var(--gradient2));
}
.timeline-card ul { list-style:disc; padding-left:1.2rem; margin:.8rem 0; }
.timeline-card li { font-size:.85rem; color:var(--text2); margin-bottom:.4rem; }
.timeline-tags { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.8rem; }
.timeline-tags span {
  font-size:.65rem; padding:.2rem .5rem;
  background:var(--tag-bg); border:1px solid rgba(255,107,53,0.15);
  border-radius:4px; color:var(--tag-text);
}

/* ===========================
   CONTACT
   =========================== */
.contact-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1.5rem;
}
.contact-card {
  background:var(--card); border:1px solid var(--border); border-radius:18px;
  padding:2rem; text-align:center; transition:all .4s; display:block;
}
.contact-card:hover {
  border-color:var(--accent); transform:translateY(-5px);
  box-shadow:0 15px 30px var(--shadow);
}
.contact-card i { font-size:2rem; color:var(--accent); margin-bottom:.8rem; display:block; }
.contact-card h4 { margin-bottom:.3rem; }
.contact-card p { font-size:.82rem; color:var(--text3); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  text-align:center; padding:2.5rem 1.5rem; border-top:1px solid var(--border);
  color:var(--text3); font-size:.82rem;
}
.footer-socials {
  display:flex; justify-content:center; gap:1rem; margin-bottom:1rem;
}
.footer-social {
  width:42px; height:42px; border-radius:50%;
  border:1px solid var(--border); display:flex; align-items:center;
  justify-content:center; color:var(--text2); font-size:1rem;
  transition:all .3s;
}
.footer-social:hover {
  border-color:var(--accent); color:#fff; background:var(--accent);
  transform:translateY(-3px);
}
.footer-text { margin-bottom:.3rem; }
.footer-sub { font-size:.78rem; }
.footer-sub a {
  color:var(--accent); font-weight:600; transition:color .3s;
}
.footer-sub a:hover { color:var(--accent2); }

/* ===========================
   LINKEDIN — Article Cards
   =========================== */
.article-grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1.8rem;
}
.article-card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  transition:all .4s cubic-bezier(.25,.8,.25,1);
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
}
.article-card:hover {
  transform:translateY(-8px);
  border-color:var(--accent);
  box-shadow:0 20px 50px rgba(0,0,0,0.25);
}

/* Cover / Banner */
.article-cover {
  height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.article-cover-icon {
  font-size:3.5rem;
  color:rgba(255,255,255,0.25);
  transition:transform .5s;
}
.article-card:hover .article-cover-icon {
  transform:scale(1.2) rotate(5deg);
}

/* Body */
.article-body {
  padding:1.4rem 1.5rem 1.2rem;
  display:flex;
  flex-direction:column;
  flex:1;
}
.article-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:.8rem;
}
.article-badge {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  font-size:.7rem;
  font-weight:600;
  color:var(--accent);
  background:var(--tag-bg);
  padding:.25rem .7rem;
  border-radius:6px;
}
.article-date {
  font-size:.68rem;
  color:var(--text3);
  display:flex;
  align-items:center;
  gap:.3rem;
}
.article-title {
  font-size:1.05rem;
  font-weight:700;
  line-height:1.4;
  margin-bottom:.7rem;
  color:var(--text);
}
.article-excerpt {
  font-size:.82rem;
  color:var(--text2);
  line-height:1.6;
  margin-bottom:1rem;
  flex:1;
}
.article-tags {
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
  margin-bottom:1.2rem;
}
.article-tags span {
  font-size:.62rem;
  padding:.15rem .5rem;
  background:rgba(0,119,181,0.08);
  color:#0077B5;
  border-radius:4px;
  font-weight:500;
}

/* Footer */
.article-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:.8rem;
  border-top:1px solid var(--border);
}
.article-author {
  display:flex;
  align-items:center;
  gap:.5rem;
  font-size:.78rem;
  font-weight:500;
  color:var(--text2);
}
.article-author-avatar {
  width:28px;
  height:28px;
  border-radius:50%;
  background:#0077B5;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:.7rem;
}
.article-read {
  font-size:.78rem;
  font-weight:600;
  color:var(--accent);
  display:flex;
  align-items:center;
  gap:.35rem;
  transition:gap .3s;
}
.article-card:hover .article-read {
  gap:.6rem;
}

/* CTA */
.linkedin-cta {
  display:flex;
  justify-content:center;
  gap:1rem;
  margin-top:2.5rem;
  flex-wrap:wrap;
}

/* ===========================
   AI CHATBOT
   =========================== */

/* --- FAB Button --- */
.chatbot-fab {
  position:fixed;
  bottom:2rem;
  right:2rem;
  z-index:9998;
  width:62px;
  height:62px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color:#fff;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.6rem;
  box-shadow:0 6px 25px rgba(255,107,53,0.4);
  transition:transform .3s, box-shadow .3s;
}
.chatbot-fab:hover {
  transform:scale(1.12);
  box-shadow:0 10px 35px rgba(255,107,53,0.5);
}
.fab-pulse {
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  border-radius:50%;
  border:2px solid var(--accent);
  animation:fabPulse 2s ease-out infinite;
  pointer-events:none;
}
@keyframes fabPulse {
  0%   { transform:scale(1);   opacity:.6; }
  100% { transform:scale(1.6); opacity:0;  }
}

/* --- Chat Window Container --- */
.chatbot-window {
  position:fixed;
  bottom:7rem;
  right:2rem;
  z-index:9999;
  width:380px;
  height:500px;
  border-radius:20px;
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:0 25px 60px rgba(0,0,0,0.35);
  overflow:hidden;
  /* Hidden by default */
  visibility:hidden;
  opacity:0;
  transform:translateY(20px) scale(0.95);
  transition:visibility .3s, opacity .3s ease, transform .3s ease;
  /* Flex layout */
  display:flex;
  flex-direction:column;
}
.chatbot-window.open {
  visibility:visible;
  opacity:1;
  transform:translateY(0) scale(1);
}

/* --- Chat Header --- */
.chatbot-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 1.2rem;
  background:linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color:#fff;
  flex-shrink:0;
}
.chatbot-header-info {
  display:flex;
  align-items:center;
  gap:.8rem;
}
.chatbot-avatar {
  width:40px;
  height:40px;
  border-radius:50%;
  background:rgba(255,255,255,0.2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.2rem;
}
.chatbot-header h4 {
  font-size:.92rem;
  font-weight:700;
}
.chatbot-status {
  font-size:.72rem;
  opacity:.85;
  display:flex;
  align-items:center;
  gap:.35rem;
}
.status-dot {
  width:7px;
  height:7px;
  background:#22c55e;
  border-radius:50%;
  display:inline-block;
  animation:blink 2s infinite;
}
.chatbot-close {
  background:none;
  border:none;
  color:#fff;
  font-size:1.2rem;
  cursor:pointer;
  opacity:.8;
  transition:opacity .2s;
  padding:4px;
}
.chatbot-close:hover { opacity:1; }

/* --- Chat Messages Area --- */
.chatbot-messages {
  flex:1;
  overflow-y:auto;
  padding:1rem 1rem;
  display:flex;
  flex-direction:column;
  gap:.7rem;
  background:var(--bg);
}
.chatbot-messages::-webkit-scrollbar { width:4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background:var(--border); 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:82%;
  padding:.65rem 1rem;
  border-radius:16px;
  font-size:.82rem;
  line-height:1.55;
  word-wrap:break-word;
}
.chat-msg.bot .chat-bubble {
  background:var(--card);
  color:var(--text);
  border:1px solid var(--border);
  border-bottom-left-radius:4px;
}
.chat-msg.user .chat-bubble {
  background:linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color:#fff;
  border-bottom-right-radius:4px;
}
.chat-bubble a {
  color:var(--accent);
  text-decoration:underline;
}
.chat-msg.user .chat-bubble a {
  color:#fff;
  text-decoration:underline;
}

/* --- Suggestion Chips --- */
.chat-suggestions {
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  padding:.3rem 0;
}
.suggestion-btn {
  padding:.35rem .75rem;
  border-radius:20px;
  font-size:.72rem;
  font-weight:500;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text2);
  cursor:pointer;
  transition:all .2s;
  font-family:inherit;
}
.suggestion-btn:hover {
  border-color:var(--accent);
  color:var(--accent);
  background:var(--tag-bg);
  transform:translateY(-1px);
}

/* --- Chat Input Bar --- */
.chatbot-input {
  display:flex;
  padding:.7rem .8rem;
  border-top:1px solid var(--border);
  gap:.5rem;
  background:var(--card);
  flex-shrink:0;
}
.chatbot-input input {
  flex:1;
  padding:.6rem .9rem;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--bg);
  color:var(--text);
  font-size:.82rem;
  font-family:inherit;
  outline:none;
  transition:border-color .3s;
}
.chatbot-input input:focus {
  border-color:var(--accent);
}
.chatbot-input input::placeholder {
  color:var(--text3);
}
.chatbot-input button {
  width:40px;
  height:40px;
  border-radius:12px;
  border:none;
  background:linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.95rem;
  transition:transform .2s, box-shadow .2s;
  flex-shrink:0;
}
.chatbot-input button:hover {
  transform:scale(1.08);
  box-shadow:0 4px 15px var(--glow);
}

/* --- Typing Dots --- */
.typing-dots {
  display:flex;
  gap:5px;
  padding:4px 0;
  align-items:center;
}
.typing-dots span {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--text3);
  animation:typingBounce .6s infinite alternate;
}
.typing-dots span:nth-child(2) { animation-delay:.2s; }
.typing-dots span:nth-child(3) { animation-delay:.4s; }
@keyframes typingBounce {
  from { opacity:.3; transform:translateY(0); }
  to   { opacity:1;  transform:translateY(-5px); }
}

/* ===========================
   REVEAL ANIMATION
   =========================== */
.reveal {
  opacity:0; transform:translateY(30px);
  transition:all .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ===========================
   RESPONSIVE — Mobile First
   =========================== */
@media (max-width:768px) {
  .nav-menu {
    display:none; position:absolute; top:64px; left:0; right:0;
    background:var(--nav-bg); backdrop-filter:blur(20px);
    flex-direction:column; padding:1.5rem 2rem; gap:1rem;
    border-bottom:1px solid var(--border);
  }
  .nav-menu.open { display:flex; }
  .hamburger { display:flex; }
  .hero h1 { font-size:2.2rem; }
  .hero-stats { grid-template-columns:repeat(2,1fr); }
  .hero-btns { justify-content:center; }
  .hero-content { text-align:center; }
  .hero-desc { margin-left:auto; margin-right:auto; }
  .hero-badge { margin-left:auto; margin-right:auto; }
  .about-grid { grid-template-columns:1fr; }
  .about-cards { grid-template-columns:1fr 1fr; }
  .metrics-grid { grid-template-columns:repeat(2,1fr); gap:1.5rem; }
  .metrics-grid .metric:last-child { grid-column:span 2; }
  .projects-grid { grid-template-columns:1fr; }
  .filter-bar { gap:.4rem; }
  .section { padding:3rem 0; }
  .section-title { font-size:1.8rem; }
  .scroll-indicator { display:none; }
  .article-grid { grid-template-columns:1fr; }
  .chatbot-window {
    width:calc(100vw - 1.5rem);
    right:.75rem;
    bottom:5rem;
    height:70vh;
    max-height:480px;
    border-radius:16px;
  }
  .chatbot-fab {
    bottom:1rem; right:1rem;
    width:54px; height:54px; font-size:1.3rem;
  }
}

@media (max-width:480px) {
  .about-cards { grid-template-columns:1fr; }
  .hero-stats { grid-template-columns:1fr 1fr; gap:.8rem; }
  .stat-num { font-size:1.4rem; }
  .metric .stat-num { font-size:1.8rem; }
}
