/* --------- Design tokens --------- */
:root{
  --bg: #020617;
  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.08);
  --border: rgba(148,163,184,0.18);

  --text: rgba(226,232,240,0.92);
  --muted: rgba(148,163,184,0.82);
  --muted-2: rgba(148,163,184,0.62);

  --blue: #3b82f6;
  --cyan: #22d3ee;
  --shadow: 0 18px 50px rgba(0,0,0,0.45);

  --container: 1200px;
  --radius: 18px;
}

/* --------- Base --------- */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container{
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* --------- Typography helpers --------- */
.section-title,
.card-title{
  font-family: Sora, Inter, system-ui, sans-serif;
  letter-spacing: -0.03em;
}
p{ color: var(--muted); }

/* --------- Glass utility --------- */
.glass{
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0,0,0,0.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Smooth section anchoring under sticky nav */
section { scroll-margin-top: 88px; }

/* --------- Theme toggle (kept) --------- */
body.theme-light{
  --bg: #f8fafc;
  --text: rgba(15,23,42,0.92);
  --muted: rgba(30,41,59,0.72);
  --muted-2: rgba(30,41,59,0.55);
  --panel: rgba(2,6,23,0.05);
  --panel-2: rgba(2,6,23,0.07);
  --border: rgba(30,41,59,0.14);
  background: var(--bg);
  color: var(--text);
}

body.light #about, body.light #projects {
    background-color: #ffffff;
}

body.light #skills, body.light #contact {
    background-color: #f3f4f6;
}

body.light .project-card {
    background-color: #f3f4f6;
}

body.light .project-card a {
    color: #3b82f6;
}

body.light .bg-gray-800 {
    background-color: #ffffff;
}

body.light input, body.light textarea {
    background-color: #f3f4f6;
    color: #1f2937;
}

body.light footer {
    background-color: #ffffff;
}

body.light footer a {
    color: #1f2937;
}

body.light footer a:hover {
    color: #3b82f6;
}

body.light .skill-category h3 {
    color: #3b82f6;
}

body.light .skill-category h3:hover {
    color: #1d4ed8;
}

.hidden {
    display: none !important;
}

/* Ensure chat overlay always hides when "hidden" is present */
.chat-overlay.hidden{
  display: none !important;
}

input, textarea {
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

/* --------- Navbar (glass) --------- */
.site-nav{
  position: fixed;
  inset: 16px 0 auto 0;
  z-index: 100;
  pointer-events: none;
}
.nav-inner{
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: Sora, Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--cyan), var(--blue));
  box-shadow: 0 0 0 6px rgba(34,211,238,0.08), 0 0 22px rgba(59,130,246,0.25);
}
.brand-text{ opacity: 0.95; }
.nav-actions{ display: inline-flex; align-items: center; gap: 10px; }
.nav-links{
  display: inline-flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a{
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.nav-links a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

/* Ensure legacy nav underline effects don't apply */
.site-nav .nav-links a::after{ content: none !important; }
.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 200ms ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.icon{ width: 18px; height: 18px; }

@media (max-width: 860px){
  .nav-links{ display: none; }
}

/* --------- Hero --------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 110px;
}
.hero-bg{
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(800px 500px at 20% 20%, rgba(34,211,238,0.16), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(59,130,246,0.18), transparent 55%),
    radial-gradient(700px 550px at 50% 85%, rgba(99,102,241,0.10), transparent 60%),
    radial-gradient(1200px 700px at 50% 60%, rgba(0,0,0,0.55), transparent 60%);
  filter: saturate(1.05);
  z-index: 0;
}
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(34,211,238,0.10) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(59,130,246,0.10) 0 1px, transparent 1px),
    radial-gradient(circle at 55% 75%, rgba(34,211,238,0.07) 0 1px, transparent 1px);
  background-size: 110px 110px, 140px 140px, 170px 170px;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
@keyframes drift{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(-12px, 10px, 0); }
}
.hero-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.hero-left{ max-width: 680px; }
.eyebrow{
  margin: 0 0 14px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-title{
  font-family: Sora, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
  font-size: clamp(44px, 5.2vw, 64px);
}
.wave{
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.6s ease-in-out infinite;
}
@keyframes wave{
  0%,100%{ transform: rotate(0deg); }
  10%{ transform: rotate(12deg); }
  20%{ transform: rotate(-8deg); }
  30%{ transform: rotate(10deg); }
  40%{ transform: rotate(-6deg); }
  50%{ transform: rotate(6deg); }
  60%{ transform: rotate(0deg); }
}
.name-gradient{
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(34,211,238,0.16);
}
.hero-subtitle{
  margin: 18px 0 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  max-width: 58ch;
}
.hero-cta{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
  user-select: none;
}
.btn-primary{
  background: linear-gradient(135deg, rgba(34,211,238,0.95), rgba(59,130,246,0.95));
  color: rgba(2,6,23,0.92);
  box-shadow: 0 14px 34px rgba(59,130,246,0.22), 0 6px 18px rgba(34,211,238,0.10);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(59,130,246,0.28), 0 10px 22px rgba(34,211,238,0.14);
}
.btn-secondary{
  background: rgba(255,255,255,0.04);
  border-color: rgba(148,163,184,0.22);
  color: var(--text);
}
.btn-secondary:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(34,211,238,0.35);
  box-shadow: 0 18px 42px rgba(0,0,0,0.30);
}
.hero-meta{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
}
.meta-item{ display: grid; gap: 2px; }
.meta-label{ font-size: 12px; color: var(--muted-2); font-weight: 600; }
.meta-value{ font-size: 14px; color: var(--text); font-weight: 700; }
.meta-divider{
  width: 1px;
  height: 28px;
  background: rgba(148,163,184,0.18);
}

/* Avatar: premium ring + glow + float */
.hero-right{
  display: grid;
  justify-items: end;
}
.avatar-shell{
  position: relative;
  width: min(380px, 76vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  padding: 14px;
  filter: drop-shadow(0 28px 60px rgba(0,0,0,0.55));
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
.avatar-ring{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 15%, rgba(34,211,238,0.65), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(59,130,246,0.65), transparent 48%),
    linear-gradient(135deg, rgba(34,211,238,0.65), rgba(59,130,246,0.55));
  filter: blur(0.1px);
  opacity: 0.9;
}
.avatar-shell::before{
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: rgba(2,6,23,0.9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.avatar-shell::after{
  content: "";
  position: absolute;
  inset: -28px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 45%, rgba(34,211,238,0.18), transparent 55%);
  filter: blur(8px);
  opacity: 0.85;
  z-index: -1;
}
.avatar-img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  transform: translateZ(0);
}
@keyframes float{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(0,-10px,0); }
}

@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; gap: 34px; }
  .hero-right{ justify-items: start; }
  .avatar-shell{ width: min(340px, 82vw); }
}

/* --------- Page-load reveals --------- */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.75,.2,1);
}
body.is-loaded .reveal{
  opacity: 1;
  transform: translateY(0);
}
.hero-left .reveal:nth-child(1){ transition-delay: 80ms; }
.hero-left .reveal:nth-child(2){ transition-delay: 140ms; }
.hero-left .reveal:nth-child(3){ transition-delay: 200ms; }
.hero-left .reveal:nth-child(4){ transition-delay: 260ms; }
.hero-left .reveal:nth-child(5){ transition-delay: 320ms; }
.hero-right .reveal{ transition-delay: 220ms; }

@media (prefers-reduced-motion: reduce){
  .wave, .avatar-shell, .hero::after { animation: none !important; }
  .reveal, body.is-loaded .reveal{ transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* --------- Sections (site-wide spacing + hierarchy) --------- */
.section{
  position: relative;
  padding: 110px 0;
  overflow: hidden;
}
.section-alt{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 30%, rgba(255,255,255,0.02));
}
.section::before{
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(700px 420px at 15% 20%, rgba(59,130,246,0.08), transparent 60%),
    radial-gradient(700px 420px at 85% 60%, rgba(34,211,238,0.07), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.section > .container{ position: relative; z-index: 1; }
.section-header{
  text-align: center;
  margin: 0 auto 46px;
  max-width: 860px;
}
.section-kicker{
  margin: 0 0 12px;
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: rgba(34,211,238,0.95);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-title{
  margin: 0;
  font-weight: 800;
  color: var(--text);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
}
.section-lead{
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 70ch;
}

/* scroll reveal (for non-hero sections) */
.reveal-on-scroll{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.75,.2,1);
}
.reveal-on-scroll.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* --------- About --------- */
.about-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}
.about-card{
  padding: 22px 22px 18px;
}
.about-card p{
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.75;
}
.about-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.chip{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.03);
  color: rgba(226,232,240,0.92);
  font-weight: 700;
  font-size: 13px;
}
.about-side{
  display: grid;
  gap: 14px;
}
.about-avatar{
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.02);
  position: relative;
}
.about-avatar::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 50% 0%, rgba(34,211,238,0.12), transparent 55%);
  pointer-events: none;
}
.about-avatar img{
  width: 100%;
  display: block;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 50% 10%; 
}
.img-fallback{
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(34,211,238,0.22), transparent 55%),
    radial-gradient(900px 420px at 80% 70%, rgba(59,130,246,0.20), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(148,163,184,0.18);
}
.about-avatar img.img-fallback{
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.avatar-img.img-fallback{
  filter: saturate(1.05) contrast(1.02);
}
.mini-cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mini-card{
  padding: 14px 14px 16px;
}
.mini-title{
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 800;
}
.mini-value{
  margin: 10px 0 0;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; }
  .mini-cards{ grid-template-columns: 1fr; }
}

/* --------- Skills --------- */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.skills-grid .skill-category{
  padding: 16px 16px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
}
.skills-grid .skill-category.border-r,
.skills-grid .skill-category.pr-4{
  border-right: none !important;
  padding-right: 16px !important;
}
.skills-grid .skill-category h3{
  font-family: Sora, Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.skills-grid .timeline li span{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
@media (max-width: 1100px){
  .skills-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .skills-grid{ grid-template-columns: 1fr; }
}

/* --------- Contact --------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}
.contact-card{
  padding: 18px;
}
.contact-form{
  display: grid;
  gap: 14px;
}
.field{ display: grid; gap: 8px; }
.field label{
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  letter-spacing: -0.01em;
}
.input{
  width: 100%;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(2,6,23,0.42);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 200ms ease, transform 160ms ease;
}
.input::placeholder{ color: rgba(148,163,184,0.55); }
.input:focus{
  border-color: rgba(34,211,238,0.45);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.10);
}
.textarea{ resize: vertical; min-height: 120px; }
.card-title{
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
}
.card-text{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}
.contact-items{
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}
.contact-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(255,255,255,0.02);
}
.contact-icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.16);
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,0.18), rgba(59,130,246,0.12));
  display: grid;
  place-items: center;
  color: var(--text);
}
.contact-value{
  color: rgba(226,232,240,0.92);
  font-weight: 700;
  font-size: 14px;
}
.social-row{
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.social-btn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.03);
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 180ms ease, background 180ms ease;
}
.social-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(34,211,238,0.35);
  box-shadow: 0 18px 46px rgba(0,0,0,0.30);
  background: rgba(255,255,255,0.05);
}
@media (max-width: 980px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* --------- Footer --------- */
.site-footer{
  padding: 56px 0 22px;
  position: relative;
  overflow: hidden;
}
.site-footer::before{
  content: "";
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(900px 440px at 20% 20%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(900px 440px at 80% 60%, rgba(34,211,238,0.08), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}
.footer-inner{
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
}
.footer-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-name{
  font-family: Sora, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.footer-note{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 48ch;
}
.footer-right{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-link{
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.12);
  background: rgba(255,255,255,0.02);
  font-weight: 700;
  font-size: 14px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.footer-link:hover{
  transform: translateY(-2px);
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: rgba(34,211,238,0.28);
}
.footer-bottom{
  position: relative;
  z-index: 1;
  padding-top: 18px;
  text-align: center;
  color: var(--muted-2);
}
.footer-bottom p{ margin: 0; font-size: 13px; }
@media (max-width: 760px){
  .footer-inner{ flex-direction: column; }
  .footer-right{ justify-content: flex-start; }
}

/* --------- Chatbot (dark glass) --------- */
.chat-toggle-btn{
  background: linear-gradient(135deg, rgba(34,211,238,0.95), rgba(59,130,246,0.95));
  color: rgba(2,6,23,0.92);
  border: 1px solid rgba(34,211,238,0.25);
  box-shadow: 0 18px 50px rgba(59,130,246,0.22);
}
.chat-toggle-btn:hover{
  background: linear-gradient(135deg, rgba(34,211,238,1), rgba(59,130,246,1));
  box-shadow: 0 22px 60px rgba(59,130,246,0.28);
}
.chat-overlay{
  background: rgba(2,6,23,0.72);
  color: var(--text);
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.chat-header{
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(59,130,246,0.10));
  border-bottom: 1px solid rgba(148,163,184,0.14);
  padding: 0.8rem 1rem;
}
.chat-header-left{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.chat-avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
}
.chat-messages{
  background: rgba(2,6,23,0.35);
}
.chat-messages::-webkit-scrollbar{ width: 10px; }
.chat-messages::-webkit-scrollbar-thumb{
  background: rgba(148,163,184,0.18);
  border-radius: 999px;
  border: 3px solid rgba(2,6,23,0.35);
}
.chat-messages::-webkit-scrollbar-thumb:hover{ background: rgba(148,163,184,0.28); }
.msg-content{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.14);
  color: var(--text);
  border-radius: 14px;
}
.msg.user .msg-content{
  background: rgba(34,211,238,0.12);
  border-color: rgba(34,211,238,0.22);
}
.chat-input{
  background: rgba(2,6,23,0.35);
  color: var(--text);
}
.send-btn{ color: rgba(34,211,238,0.95); }
.send-btn:hover{ color: rgba(34,211,238,1); text-shadow: 0 0 10px rgba(34,211,238,0.25); }

.typing-bubble{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
}
.typing-bubble .dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(226,232,240,0.8);
  animation: typingDot 1.2s infinite ease-in-out;
}
.typing-bubble .dot:nth-child(2){ animation-delay: 0.12s; opacity: 0.75; }
.typing-bubble .dot:nth-child(3){ animation-delay: 0.24s; opacity: 0.65; }
@keyframes typingDot{
  0%,100%{ transform: translateY(0); opacity: 0.55; }
  50%{ transform: translateY(-4px); opacity: 1; }
}

/* --------- Projects timeline polish (match new system) --------- */
#projects{
  background: transparent;
}
#projects::before,
#projects::after{
  /* neutralize older heavy timeline section overlays */
  content: none !important;
}
.timeline-line{
  background: linear-gradient(to bottom, rgba(34,211,238,0.35), rgba(59,130,246,0.18), transparent) !important;
  opacity: 0.9 !important;
  border-radius: 999px;
}
.timeline-dot{
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,0.95), rgba(59,130,246,0.95)) !important;
  border-color: rgba(2,6,23,0.88) !important;
}
.project-timeline-card{
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(148,163,184,0.16) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 60px rgba(0,0,0,0.28) !important;
}
.project-timeline-card h3{
  color: var(--text);
  letter-spacing: -0.02em;
}
.project-timeline-card p{
  color: var(--muted);
}
.timeline-date{
  color: rgba(34,211,238,0.95) !important;
  font-weight: 800 !important;
}

.shadow-glow {
    transition: box-shadow 0.3s ease;
}

.shadow-glow:hover {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.timeline li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1rem;
    top: 2.5rem;
    height: calc(100% + 1rem);
    width: 2px;
    background: #1f2937;
}

/* Floating Button */
.chat-toggle-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: #2563eb;
    color: white;
    padding: 1rem;
    border-radius: 9999px;
    box-shadow: 0 0 12px #3b82f6aa;
    transition: all 0.3s ease;
    z-index: 1000;
}
.chat-toggle-btn:hover {
    background-color: #1e40af;
    box-shadow: 0 0 16px #3b82f6ee;
}

/* Chat Overlay */
.chat-overlay {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    width: 350px;
    max-height: 80vh;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    animation: fadeInUp 0.3s ease-out;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Header */
.chat-header {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Close Button */
.close-btn {
    position: relative;
    z-index: 1000;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    pointer-events: auto;
}

.close-btn:hover {
    color: #f87171; /* light red on hover */
    text-shadow: 0 0 8px #f87171;
    transform: scale(1.1);
}


/* Chat Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
}
.chat-messages .msg {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.chat-messages .msg img {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
}
.msg-content {
    background: #e5e7eb;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    max-width: 70%;
    font-size: 0.875rem;
    white-space: pre-wrap;
}
.msg.user .msg-content {
    background-color: #dbeafe;
    align-self: flex-end;
}

/* Placeholder */
.placeholder-text {
    text-align: center;
    color: #9ca3af;
}

/* Input */
.chat-form {
    display: flex;
    border-top: 1px solid #e5e7eb;
}
.chat-input {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.875rem;
    border: none;
    outline: none;
    background-color: white;
    color: #111827;
}
.send-btn {
    padding: 0.75rem;
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    transition: all 0.3s ease;
}
.send-btn:hover {
    color: #1e40af;
    text-shadow: 0 0 6px #3b82f6;
}

/* Lucide Icon */
.lucide-icon {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Base link styling with black outline */
nav ul li a {
  position: relative;
  display: inline-block;
  font-weight: bold;
  color: #8efcff;
  /* real stroke in WebKit browsers: */
  -webkit-text-stroke: 1px #000;
  /* shadow-only fallback outline (4 directions) */
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  padding: 4px 2px;
}

/* Underbar highlight */
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(0, 229, 255, 0.8);
  transition: width 0.25s ease, left 0.25s ease;
}

/* Hover: keep outline + full glow */
nav ul li a:hover {
  color: #8efcff;
  /* first four are the black outline, then the glow layers */
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0   0  4px rgba(142,252,255,0.8),
     0   0  8px rgba(142,252,255,0.6),
     0   0 12px rgba(138,43,226,0.5);
}

nav ul li a:hover::after {
  width: 100%;
  left: 0;
}

/* Theme-toggle button glow (optional) */
.glow-border:hover {
  box-shadow:
    0 0 4px rgba(0, 229, 255, 0.7),
    0 0 8px rgba(138, 43, 226, 0.4);
}
canvas#animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  z-index: 0;
  background: radial-gradient(circle, #0f172a 0%, #0a0f1e 100%);
}
#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
/* Timeline Styles */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    height: calc(100% - 2rem);
    top: 1rem;
}

.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.3s; }

.project-timeline-card {
    transition: all 0.4s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.project-timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.project-timeline-card:hover::before {
    left: 100%;
}

.project-timeline-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.timeline-dot {
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
}

.timeline-item:hover .timeline-dot {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2);
    background-color: #60a5fa;
}

.timeline-date {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.project-buttons {
    margin-top: 1rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.btn-icon {
    font-size: 1rem;
}

/* Light Theme Adjustments */
body.light .timeline-line {
    background-color: #3b82f6;
}

body.light .project-timeline-card {
    background-color: #ffffff;
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body.light .project-timeline-card:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

body.light .timeline-dot {
    border-color: #ffffff;
}

body.light .tech-badge {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.2);
}

body.light .tech-badge:hover {
    background: rgba(59, 130, 246, 0.15);
}

body.light .btn-secondary {
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.3);
}

body.light .btn-secondary:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: #2563eb;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .timeline-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .timeline-line {
        left: 1.5rem;
        transform: none;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-content {
        width: 100% !important;
        margin-left: 3rem !important;
        margin-right: 0 !important;
    }

    .timeline-dot {
        left: 1.5rem !important;
        transform: translateX(-50%) !important;
    }

    .project-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary, .btn-secondary {
        justify-content: center;
        width: 100%;
    }

    .tech-stack {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .timeline-content {
        margin-left: 2.5rem !important;
        padding: 1rem !important;
    }

    .timeline-line {
        left: 1rem;
    }

    .timeline-dot {
        left: 1rem !important;
        width: 12px;
        height: 12px;
    }
}
/* Enhanced Projects Section Background */
#projects {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* Animated background gradient overlay */
#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.03) 0%,
        rgba(99, 102, 241, 0.02) 25%,
        rgba(139, 92, 246, 0.03) 50%,
        rgba(59, 130, 246, 0.02) 75%,
        rgba(99, 102, 241, 0.03) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

/* Floating geometric shapes */
#projects::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    animation: floatingShapes 20s ease-in-out infinite;
    z-index: 0;
}

/* Subtle animated dots pattern */
#projects .container {
    position: relative;
    z-index: 1;
}

#projects .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    animation: dotPattern 25s linear infinite;
    z-index: -1;
}

/* Animation keyframes */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatingShapes {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    33% {
        transform: translateY(-15px) rotate(120deg);
        opacity: 0.6;
    }
    66% {
        transform: translateY(10px) rotate(240deg);
        opacity: 0.9;
    }
}

@keyframes dotPattern {
    0% {
        background-position: 0px 0px;
    }
    100% {
        background-position: 40px 40px;
    }
}

/* Light mode background adjustments */
body.light #projects {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

body.light #projects::before {
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.08) 0%,
        rgba(99, 102, 241, 0.06) 25%,
        rgba(139, 92, 246, 0.08) 50%,
        rgba(59, 130, 246, 0.06) 75%,
        rgba(99, 102, 241, 0.08) 100%
    );
}

body.light #projects::after {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

body.light #projects .container::before {
    background-image: radial-gradient(circle, rgba(105, 158, 244, 0.15) 1px, transparent 1px);
    opacity: 0.4;
}

/* Enhanced timeline positioning */
.timeline-container {
    position: relative;
    z-index: 2;
}

/* Subtle glow effect for timeline cards on hover */
.project-timeline-card:hover {
    background: rgba(55, 65, 81, 0.95);
    backdrop-filter: blur(10px);
}

body.light .project-timeline-card:hover {
    background: rgba(230, 188, 188, 0.95);
    backdrop-filter: blur(10px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #projects::before,
    #projects::after {
        animation-duration: 20s;
    }

    #projects .container::before {
        background-size: 30px 30px;
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    #projects::before {
        opacity: 0.7;
    }

    #projects::after {
        opacity: 0.6;
    }

    #projects .container::before {
        background-size: 25px 25px;
        opacity: 0.2;
    }
}

/* Performance optimization for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    #projects::before,
    #projects::after,
    #projects .container::before {
        animation: none;
    }
}

/* --- Animated expansion for Skills & Technologies --- */
#skills {
  transition: box-shadow 0.5s;
  box-shadow: none;
}
#skills.expanded {
  box-shadow: 0 0 40px 0 rgba(44,77,255,0.35);
}

.skill-category {
  transform: translateY(40px) scale(0.98);
  opacity: 0;
  transition: all 0.7s cubic-bezier(.77,0,.18,1);
}
.skill-category.show-category {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.sub-skills {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.7s cubic-bezier(.7,0,.18,1), opacity 0.6s;
  overflow: hidden;
}

.show-subskills {
  max-height: 500px;
  opacity: 1;
}
.skill-category .glow-border {
  filter: drop-shadow(0 0 5px #3b82f6) drop-shadow(0 0 12px #a78bfa);
  transition: filter 0.4s;
}
.skill-category:hover .glow-border,
.skill-category.show-category .glow-border {
  filter: drop-shadow(0 0 10px #3b82f6) drop-shadow(0 0 20px #a78bfa);
}
.timeline li {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s, transform 0.4s;
}
.show-subskills .timeline li {
  opacity: 1;
  transform: scale(1);
}
.show-subskills .timeline li:nth-child(1) { transition-delay: 0.1s; }
.show-subskills .timeline li:nth-child(2) { transition-delay: 0.2s; }
.show-subskills .timeline li:nth-child(3) { transition-delay: 0.3s; }
.show-subskills .timeline li:nth-child(4) { transition-delay: 0.4s; }
.show-subskills .timeline li:nth-child(5) { transition-delay: 0.5s; }
.show-subskills .timeline li:nth-child(6) { transition-delay: 0.6s; }
.show-subskills .timeline li:nth-child(7) { transition-delay: 0.7s; }
.show-subskills .timeline li:nth-child(8) { transition-delay: 0.8s; }

#skills, .skill-category {
  background: #141926;
  color: #e2e8f0;
}
.skill-category h3 { color: inherit; }
.skill-category .text-blue-500 { color: #3b82f6; }
.skill-category .text-purple-500 { color: #a78bfa; }

/* --- Enhanced glow & motion for skills timeline --- */
.timeline {
  position: relative;
  padding-left: 1.25rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #38bdf8, transparent);
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
.show-subskills .timeline::before {
  opacity: 1;
}
.timeline li img {
  transition: transform 0.4s ease, filter 0.4s ease;
}
.timeline li:hover img {
  transform: scale(1.15) rotate(4deg);
  filter: drop-shadow(0 0 12px #38bdf8) drop-shadow(0 0 24px #a78bfa);
}
.timeline li span {
  transition: color 0.3s ease;
}
.timeline li:hover span {
  color: #8efcff;
}

/* soft glowing pulse for icons (slow) */
.glow-border {
  transition: filter 0.6s ease, transform 0.25s ease;
}
.glow-pulse {
  animation: glowPulse 3.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0% { filter: drop-shadow(0 0 6px rgba(56,189,248,0.12)); transform: translateY(0); }
  50% { filter: drop-shadow(0 0 18px rgba(56,189,248,0.22)); transform: translateY(-3px); }
  100% { filter: drop-shadow(0 0 6px rgba(56,189,248,0.12)); transform: translateY(0); }
}

/* Mobile Responsive tweaks */
@media (max-width: 768px) {
  .timeline::before { left: 1rem; }
  .timeline { padding-left: 1.75rem; }
}

/* --------- Chatbot final overrides (wins over legacy block) --------- */
#chatbotOverlay.chat-overlay{
  background: rgba(2,6,23,0.72) !important;
  color: var(--text) !important;
  border: 1px solid rgba(148,163,184,0.18) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  overflow: hidden !important;
}
#chatbotOverlay .chat-header{
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(59,130,246,0.10)) !important;
  border-bottom: 1px solid rgba(148,163,184,0.14) !important;
  padding: 0.8rem 1rem !important;
  color: var(--text) !important;
}
#chatbotOverlay .chat-messages{
  background: rgba(2,6,23,0.35) !important;
}
#chatbotOverlay .msg-content{
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(148,163,184,0.14) !important;
  color: var(--text) !important;
  border-radius: 14px !important;
}
#chatbotOverlay .msg.user .msg-content{
  background: rgba(34,211,238,0.12) !important;
  border-color: rgba(34,211,238,0.22) !important;
}
#chatbotOverlay .chat-input{
  background: rgba(2,6,23,0.35) !important;
  color: var(--text) !important;
}
#chatbotOverlay .send-btn{
  color: rgba(34,211,238,0.95) !important;
}
#chatbotOverlay .send-btn:hover{
  color: rgba(34,211,238,1) !important;
  text-shadow: 0 0 10px rgba(34,211,238,0.25) !important;
}
#chatbotToggle.chat-toggle-btn{
  background: linear-gradient(135deg, rgba(34,211,238,0.95), rgba(59,130,246,0.95)) !important;
  color: rgba(2,6,23,0.92) !important;
  border: 1px solid rgba(34,211,238,0.25) !important;
  box-shadow: 0 18px 50px rgba(59,130,246,0.22) !important;
}
#chatbotToggle.chat-toggle-btn:hover{
  background: linear-gradient(135deg, rgba(34,211,238,1), rgba(59,130,246,1)) !important;
  box-shadow: 0 22px 60px rgba(59,130,246,0.28) !important;
}
.typing-bubble{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
}
.typing-bubble .dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(226,232,240,0.8);
  animation: typingDot 1.2s infinite ease-in-out;
}
.typing-bubble .dot:nth-child(2){ animation-delay: 0.12s; opacity: 0.75; }
.typing-bubble .dot:nth-child(3){ animation-delay: 0.24s; opacity: 0.65; }
@keyframes typingDot{
  0%,100%{ transform: translateY(0); opacity: 0.55; }
  50%{ transform: translateY(-4px); opacity: 1; }
}

