/* Portfolio Style System - Basit Saeed SPA Layout */

:root[data-theme="dark"] {
  --bg-body: #171923;
  --bg-card: #2d3748;
  --bg-navbar: #1a202c;
  --border-color: #2d3748;
  --text-color: #ffffff;
  --text-muted: #a0aec0;
  
  --accent: #00b5d8;            /* Cyber Cyan */
  --accent-hover: #0987a0;
  --blob-color: #2563eb;        /* Tech Cobalt Blue */
  --btn-primary-bg: #2563eb;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: rgba(255, 255, 255, 0.08);
  --btn-secondary-border: rgba(255, 255, 255, 0.24);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.16);
  --nav-link-color: #e2e8f0;
  --nav-link-hover: #ffffff;
  --card-glow-color: rgba(0, 181, 216, 0.22);
  --cursor-glow-color: rgba(0, 181, 216, 0.05);
}

:root[data-theme="light"] {
  --bg-body: #f7fafc;
  --bg-card: #edf2f7;
  --bg-navbar: #ffffff;
  --border-color: #e2e8f0;
  --text-color: #171923;
  --text-muted: #4a5568;
  
  --accent: #3182ce;            /* Blue.500 */
  --accent-hover: #2b6cb0;
  --blob-color: #3182ce;        /* Tech Blue */
  --btn-primary-bg: #3182ce;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: rgba(0, 0, 0, 0.04);
  --btn-secondary-border: rgba(0, 0, 0, 0.12);
  --btn-secondary-hover-bg: rgba(0, 0, 0, 0.08);
  --nav-link-color: #4a5568;
  --nav-link-hover: #171923;
  --card-glow-color: rgba(49, 130, 206, 0.12);
  --cursor-glow-color: rgba(49, 130, 206, 0.03);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(600px circle at var(--cursor-x, -9999px) var(--cursor-y, -9999px), var(--cursor-glow-color), transparent 80%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  background-color: var(--bg-body);
  color: var(--text-color);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Dark mode image inverts for clean display of black assets */
:root[data-theme="dark"] .theme-invert {
  filter: invert(1);
}

/* Header & Navbar — Floating Glassmorphic Pill */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 24px;
  transition: padding 0.3s ease;
}

/* Scrolled state — tighter padding */
.navbar.scrolled {
  padding: 8px 24px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(23, 25, 35, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 8px 12px 8px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

:root[data-theme="light"] .nav-container {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Brand Logo */
.brand-logo { flex-shrink: 0; }

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 3px rgba(0, 181, 216, 0.2);
  transition: box-shadow 0.25s;
}

.brand-link:hover .brand-initials {
  box-shadow: 0 0 0 5px rgba(0, 181, 216, 0.3);
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-color);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* Desktop nav links */
.nav-menu { display: none; }

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.07);
}

:root[data-theme="light"] .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Active state — pill highlight */
.nav-link.active {
  color: var(--accent);
  background: rgba(0, 181, 216, 0.12);
  font-weight: 600;
}

:root[data-theme="light"] .nav-link.active {
  background: rgba(49, 130, 206, 0.1);
  color: var(--accent);
}

/* Right side actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(15deg);
}

:root[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  padding: 8px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X when open */
.nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Show nav on desktop ── */
@media (min-width: 768px) {
  .nav-menu { display: block; }
  .nav-toggle { display: none; }
}

/* Control visibility of switcher icons */
:root[data-theme="dark"] .icon-sun  { display: block; }
:root[data-theme="dark"] .icon-moon { display: none;  }
:root[data-theme="light"] .icon-sun  { display: none;  }
:root[data-theme="light"] .icon-moon { display: block; }

/* ════════════════════════════════════════
   Mobile Drawer
   ════════════════════════════════════════ */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root[data-theme="dark"] .mobile-drawer {
  background: rgba(22, 28, 42, 0.97);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(0, 0, 0, 0.07);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.mobile-drawer-close:hover { color: var(--text-color); }

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: 14px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s, padding 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(0, 181, 216, 0.06);
  padding-left: 32px;
}


/* Main Container views spacing */
.page-container {
  padding-top: 80px;
  width: 100%;
  min-height: calc(100vh - 80px);
}

/* Scroll Sections spacing */
.scroll-section {
  width: 100%;
  position: relative;
  scroll-margin-top: 80px;
}

.panel-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.border-top-divider {
  border-top: 1px solid var(--border-color);
}

.view-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  text-align: left;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
}

.view-title span {
  color: var(--accent);
}

/* 1. Home View Styling */
.home-grid {
  display: grid;
  grid-template-cols: 1fr;
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: 4rem 1.5rem;
  gap: 3rem;
}

.home-text {
  text-align: center;
  z-index: 10;
}

.home-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -2px;
}

.home-typed {
  font-size: clamp(1.2rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin-top: 0.5rem;
  min-height: 3.5rem;
  color: var(--accent);
}

.cursor {
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
  align-items: center;
}

.btn-primary, .btn-secondary {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  width: 100%;
  max-width: 280px;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover-bg);
  transform: translateY(-2px);
}

/* SVG Morphing Blob */
.blob-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 480px;
}

.blob-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.morphing-path {
  fill: var(--blob-color);
  animation: blob-morph 9s infinite ease-in-out;
  transition: fill 0.3s ease;
}

/* CSS Path Morphing Keyframes (exact paths matching react-spring outputs) */
@keyframes blob-morph {
  0% {
    d: path("M119.2 -215.7C149.3 -189 165.2 -146.7 192.1 -108.2C219 -69.7 257 -34.8 238.2 -10.8C219.5 13.2 143.9 26.3 101 37.2C58.1 48 47.8 56.5 36.4 99.9C25 143.3 12.5 221.7 -17.8 252.5C-48.2 283.4 -96.3 266.9 -126.1 234C-155.8 201.2 -167.1 152.1 -189.7 110.4C-212.3 68.7 -246.1 34.3 -233.7 7.2C-221.3 -20 -162.6 -40 -134.7 -72.5C-106.8 -105 -109.6 -149.9 -92.3 -184.1C-75 -218.2 -37.5 -241.6 3.5 -247.7C44.5 -253.7 89 -242.5 119.2 -215.7Z");
  }
  33% {
    d: path("M109.8 -222.3C125.2 -181.2 108.9 -117.4 130.2 -76.5C151.4 -35.7 210.2 -17.8 218 4.5C225.8 26.8 182.6 53.7 158.4 89.3C134.1 125 128.8 169.4 105.6 168.5C82.3 167.6 41.2 121.3 -1 123C-43.2 124.8 -86.3 174.5 -101.3 170.7C-116.4 166.9 -103.2 109.4 -120.6 72.1C-138 34.7 -186 17.3 -212.9 -15.5C-239.7 -48.3 -245.4 -96.7 -218.8 -118.2C-192.3 -139.7 -133.4 -134.4 -91.5 -160.2C-49.7 -186 -24.8 -243 11.2 -262.4C47.2 -281.7 94.3 -263.4 109.8 -222.3Z");
  }
  66% {
    d: path("M116.3 -207.8C132.6 -192 115.2 -124.3 108.9 -81C102.6 -37.7 107.3 -18.8 114.8 4.3C122.3 27.5 132.6 55 135.3 92.1C138.1 129.2 133.3 175.9 109.5 174.8C85.7 173.7 42.8 124.9 0.2 124.6C-42.5 124.3 -85 172.6 -106.9 172.6C-128.9 172.6 -130.3 124.3 -133 87.5C-135.8 50.7 -139.9 25.3 -128.8 6.4C-117.7 -12.5 -91.3 -25 -75.2 -38.7C-59.1 -52.4 -53.3 -67.3 -42.5 -86.3C-31.7 -105.2 -15.8 -128.1 17.1 -157.7C50 -187.3 100 -223.5 116.3 -207.8Z");
  }
  100% {
    d: path("M119.2 -215.7C149.3 -189 165.2 -146.7 192.1 -108.2C219 -69.7 257 -34.8 238.2 -10.8C219.5 13.2 143.9 26.3 101 37.2C58.1 48 47.8 56.5 36.4 99.9C25 143.3 12.5 221.7 -17.8 252.5C-48.2 283.4 -96.3 266.9 -126.1 234C-155.8 201.2 -167.1 152.1 -189.7 110.4C-212.3 68.7 -246.1 34.3 -233.7 7.2C-221.3 -20 -162.6 -40 -134.7 -72.5C-106.8 -105 -109.6 -149.9 -92.3 -184.1C-75 -218.2 -37.5 -241.6 3.5 -247.7C44.5 -253.7 89 -242.5 119.2 -215.7Z");
  }
}

/* 2. Skills View Styling */
.skills-heading-container {
  margin-top: 5vh;
  margin-bottom: 2rem;
}

.skills-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Interactive rotating circular icon card container */
.skill-icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  cursor: pointer;
  margin: 15px;
}

.skill-icon-img {
  width: 110px;
  height: 110px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hover rotation animation */
.skill-icon-container:hover .skill-icon-img {
  transform: rotate(360deg) scale(1.15);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 181, 216, 0.35);
}

/* Reveal labels on hover */
.skill-icon-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(-12px);
  text-align: center;
  color: var(--text-color);
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-height: 1.2rem;
  width: 140px;
}

.skill-icon-container:hover .skill-icon-label {
  opacity: 1;
  transform: translateY(0);
}

/* Combined Parallel Frontend & Backend Columns */
.skills-categories-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.skills-category-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.skills-category-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  text-align: center;
}

.skills-category-heading span {
  color: var(--accent);
}

.skills-category-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .skills-category-icons {
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  .skills-category-icons .skill-icon-container {
    margin: 0;
  }
}

/* 3. Experience, Education & Achievements Styling */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 1rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3px;
  height: 100%;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-card {
  position: relative;
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 1.8rem;
  border: 1px solid var(--border-color);
  margin-left: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 2.2rem;
  left: -28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-body);
  border: 3px solid var(--accent);
  z-index: 2;
  transition: transform 0.3s ease, background-color 0.3s;
}

.timeline-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.timeline-card:hover::before {
  transform: scale(1.3);
  background-color: var(--accent);
}

.timeline-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  gap: 0.5rem;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
}

.card-role {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-color);
}

.card-org {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
}

.card-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  align-self: flex-start;
  border: 1px solid var(--border-color);
}

:root[data-theme="light"] .card-date {
  background: rgba(0, 0, 0, 0.03);
}

.timeline-points {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-points li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.timeline-points li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.education-details {
  margin-top: 1.2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
}

.education-details strong {
  font-size: 0.85rem;
  color: var(--text-color);
  display: block;
  margin-bottom: 0.6rem;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.panel-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: -1rem;
  margin-bottom: 2rem;
}

/* Achievements Grid Layout */
.achievements-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.8rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 181, 216, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 181, 216, 0.2);
}

:root[data-theme="light"] .achievement-icon {
  background: rgba(37, 99, 235, 0.08);
  color: var(--btn-primary-bg);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.achievement-info {
  display: flex;
  flex-direction: column;
}

.achievement-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-color);
}

.achievement-org {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.achievement-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 4. Projects Redesign Styling */
.projects-grid {
  display: grid;
  grid-template-cols: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  position: relative;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .project-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.project-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), var(--card-glow-color), transparent 70%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.project-card:hover .project-card-glow {
  opacity: 1;
}

.project-card-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(0, 181, 216, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 25px rgba(0, 181, 216, 0.15);
}

:root[data-theme="light"] .project-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(37, 99, 235, 0.1);
}

.project-header {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 181, 216, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 181, 216, 0.2);
}

:root[data-theme="light"] .project-icon {
  background: rgba(37, 99, 235, 0.08);
  color: var(--btn-primary-bg);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.project-meta {
  display: flex;
  flex-direction: column;
}

.project-type {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-color);
}

.project-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-concepts {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
}

:root[data-theme="light"] .project-concepts {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.concepts-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.25rem;
}

.project-concepts p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.2rem;
}

:root[data-theme="light"] .project-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 181, 216, 0.08);
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 181, 216, 0.15);
}

:root[data-theme="light"] .project-tags span {
  background: rgba(37, 99, 235, 0.06);
  color: var(--btn-primary-bg);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.project-links a {
  color: var(--text-muted);
  font-size: 1.35rem;
  transition: color 0.3s;
}

.project-links a:hover {
  color: var(--accent);
}

/* 5. About View Styling */
/* Centered About Me Section */
.about-centered {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.about-title span {
  color: var(--accent);
}

.about-bio-centered {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.about-status-centered {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
}

.about-social-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.social-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.4rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

/* Per-platform brand colors on hover */
.social-circle[aria-label="GitHub"]:hover {
  color: #fff;
  background-color: #24292e;
  border-color: #24292e;
  box-shadow: 0 0 18px rgba(36, 41, 46, 0.4);
  transform: scale(1.18) rotate(-5deg);
}

.social-circle[aria-label="LinkedIn"]:hover {
  color: #fff;
  background-color: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 0 18px rgba(10, 102, 194, 0.4);
  transform: scale(1.18) rotate(5deg);
}

.social-circle[aria-label="X (Twitter)"]:hover {
  color: #fff;
  background-color: #000;
  border-color: #000;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
  transform: scale(1.18) rotate(-5deg);
}

.social-circle[aria-label="Facebook"]:hover {
  color: #fff;
  background-color: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 0 18px rgba(24, 119, 242, 0.4);
  transform: scale(1.18) rotate(5deg);
}

.social-circle[aria-label="Instagram"]:hover {
  color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #dc2743;
  box-shadow: 0 0 18px rgba(220, 39, 67, 0.4);
  transform: scale(1.18) rotate(-5deg);
}

.social-circle[aria-label="Download Resume PDF"]:hover {
  color: #fff;
  background-color: #e53e3e;
  border-color: #e53e3e;
  box-shadow: 0 0 18px rgba(229, 62, 62, 0.4);
  transform: scale(1.18) rotate(5deg);
}


/* Copy Email Button */
.about-email-button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.btn-email-copy {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  width: 100%;
  max-width: 480px;
}

.btn-email-copy:hover {
  transform: translateY(-3px);
  background-color: var(--accent-hover);
  box-shadow: 0 8px 25px rgba(0, 181, 216, 0.45);
}

.btn-email-copy.copied {
  background-color: #10b981 !important; /* Green */
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.about-built-with {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Footer styling */
.footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-navbar);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsiveness media queries */
@media (min-width: 48em) { /* Desktop styles */
  .nav-toggle {
    display: none;
  }
  
  .brand-logo {
    /* Logo on the left */
  }

  .nav-menu {
    display: block !important;
    margin-left: 4.5rem;
  }
  
  .nav-list {
    gap: 2.2rem;
  }
  
  .theme-toggle {
    margin-left: auto;
  }
  
  .navbar {
    padding: 0;
  }
  
  .nav-container {
    padding: 0 4rem;
    display: flex;
    justify-content: flex-start;
  }
  
  .brand-logo a {
    font-size: 1.5rem;
  }
  
  .home-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    gap: 4rem;
  }
  
  .home-text {
    flex: 1;
    text-align: left;
  }
  
  .blob-wrapper {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
  }
  
  .blob-svg {
    max-width: 600px;
  }
  
  .home-actions {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .btn-primary, .btn-secondary {
    width: auto;
    max-width: none;
  }
  
  .projects-grid {
    grid-template-cols: repeat(2, 1fr);
  }
  
  .achievements-grid {
    grid-template-cols: repeat(3, 1fr);
  }
  
  /* Centered About Me needs no desktop overrides */
}

@media (min-width: 62em) {
  .nav-container {
    padding: 0 8rem;
  }
  
  .home-grid {
    padding: 0 8rem;
  }
  
  .panel-container {
    padding: 4rem 4rem;
  }
}

/* Mobile responsive navigation overlay */
@media (max-width: 47.99em) {
  .brand-logo {
    margin-right: auto;
    margin-left: 0.5rem;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    display: none;
  }
  
  .nav-menu.show-menu {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
  }
  
  .nav-link.active {
    background-color: rgba(255, 255, 255, 0.04);
    border-left: 4px solid var(--accent);
  }
  
  .dropdown-menu {
    position: static;
    display: none;
    background-color: rgba(255, 255, 255, 0.02);
    border: none;
    box-shadow: none;
    padding: 0.25rem 0;
    margin-left: 1.5rem;
  }
  
  .dropdown.open .dropdown-menu {
    display: block;
  }
  
  .dropdown-trigger i {
    transition: transform 0.3s;
  }
  
  .dropdown.open .dropdown-trigger i {
    transform: rotate(180deg);
  }
}

/* Timeline logo and header left details */
.timeline-header-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.timeline-logo {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-card:hover .timeline-logo {
  transform: scale(1.05);
  border-color: var(--accent);
}

@media (min-width: 48em) {
  .timeline-header {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Chibi Character & Chatbot Section
   ========================================================================== */

/* Chibi fixed position on the right side */
.chibi-character {
  position: fixed;
  bottom: 0;
  right: 24px;
  width: 110px;
  height: 160px;
  z-index: 9998;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* Hover-activated close button to demolish/hide chibi */
.chibi-demolish-btn {
  position: absolute;
  top: 2px;
  right: -8px;
  width: 22px;
  height: 22px;
  background-color: #ef4444;
  color: #ffffff;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10001;
  line-height: 1;
}

.chibi-character:hover .chibi-demolish-btn {
  opacity: 1;
  transform: scale(1);
}

.chibi-demolish-btn:hover {
  background-color: #dc2626;
  transform: scale(1.2) !important;
}

/* Chibi sprite wrapper takes up full height */
.chibi-sprite-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chibi-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  /* Idle gentle bounce */
  animation: chibi-idle-bob 2.5s infinite ease-in-out;
  transform-origin: bottom center;
  display: block;
  /* Remove white fringing on light backgrounds */
  mix-blend-mode: multiply;
}

/* On dark theme, use normal blend (transparent bg already works) */
:root[data-theme="dark"] .chibi-sprite {
  mix-blend-mode: normal;
}

/* Raised hand pose — stop bobbing, play wave */
.chibi-sprite.waving {
  animation: chibi-wave-tilt 0.5s ease-in-out;
}

@keyframes chibi-idle-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes chibi-wave-tilt {
  0%   { transform: scale(1.05); }
  50%  { transform: scale(1.1) translateY(-4px); }
  100% { transform: scale(1); }
}

/* Floating speech bubble above chibi */
.chibi-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  animation: bubble-float 2.5s infinite ease-in-out;
  z-index: 10000;
}

.chibi-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--accent) transparent transparent transparent;
}

@keyframes bubble-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

/* =============================
   Chatbox Panel — opens LEFT of chibi
   ============================= */
.chibi-chatbox {
  position: fixed;
  bottom: 16px;
  right: 148px; /* chibi width(110) + gap(24) + right(24) = ~158px, give 148 */
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 180px);
  height: 500px;
  max-height: calc(100vh - 80px);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-color);
  transition:
    opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0.3s;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: bottom right;
  pointer-events: auto;
  visibility: visible;
}

:root[data-theme="dark"] .chibi-chatbox {
  background: rgba(22, 28, 42, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .chibi-chatbox {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.chibi-chatbox.hidden {
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  pointer-events: none;
  visibility: hidden;
}

/* Mobile: chatbox goes above chibi */
@media (max-width: 600px) {
  .chibi-character {
    width: 80px;
    height: 120px;
    right: 12px;
    bottom: 0;
  }
  .chibi-chatbox {
    bottom: 130px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 160px);
  }
}

/* ============================= 
   Chatbox Header
   ============================= */
.chibi-chatbox-header {
  padding: 0.85rem 1.2rem;
  background-color: var(--bg-navbar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.chibi-chatbox-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--accent);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chibi-chatbox-avatar img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: top center;
  image-rendering: pixelated;
}

.online-indicator {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border: 2px solid var(--bg-navbar);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.chibi-chatbox-title {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chibi-chatbox-title h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.2;
}

.chibi-chatbox-title span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.chibi-chatbox-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  line-height: 1;
  opacity: 0.55;
  border-radius: 6px;
  transition: opacity 0.2s, background 0.2s;
}

.chibi-chatbox-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.08);
}

/* Messages */
.chibi-chatbox-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.chibi-chatbox-messages::-webkit-scrollbar { width: 5px; }
.chibi-chatbox-messages::-webkit-scrollbar-track { background: transparent; }
.chibi-chatbox-messages::-webkit-scrollbar-thumb { background: rgba(155,155,155,0.2); border-radius: 3px; }
.chibi-chatbox-messages::-webkit-scrollbar-thumb:hover { background: rgba(155,155,155,0.4); }

.chat-message {
  display: flex;
  max-width: 82%;
  animation: msg-appear 0.22s ease-out forwards;
}

@keyframes msg-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-message.bot  { align-self: flex-start; }
.chat-message.user { align-self: flex-end; }

.message-content {
  padding: 0.6rem 0.85rem;
  font-size: 0.83rem;
  line-height: 1.45;
  border-radius: 14px;
}

.chat-message.bot .message-content {
  border-radius: 4px 14px 14px 14px;
  color: var(--text-color);
}

:root[data-theme="dark"] .chat-message.bot .message-content {
  background-color: rgba(255,255,255,0.07);
}

:root[data-theme="light"] .chat-message.bot .message-content {
  background-color: rgba(0,0,0,0.05);
}

.chat-message.user .message-content {
  border-radius: 14px 4px 14px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(0,181,216,0.25);
}

/* Quick Questions */
.chibi-chatbox-quick-questions {
  padding: 0.5rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

:root[data-theme="dark"] .chibi-chatbox-quick-questions { background-color: rgba(15,18,28,0.4); }
:root[data-theme="light"] .chibi-chatbox-quick-questions { background-color: rgba(0,0,0,0.02); }

.quick-question-btn {
  background: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.28rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.18s;
  color: var(--accent);
  border: 1px solid rgba(0,181,216,0.3);
}

.quick-question-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Input row */
.chibi-chatbox-input {
  padding: 0.7rem 1rem;
  display: flex;
  gap: 0.55rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-navbar);
  flex-shrink: 0;
}

.chibi-chatbox-input input {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 0.83rem;
  padding: 0.5rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  outline: none;
  transition: border-color 0.2s;
}

:root[data-theme="dark"] .chibi-chatbox-input input {
  background-color: rgba(15,18,28,0.7);
  color: #ffffff;
}

:root[data-theme="light"] .chibi-chatbox-input input {
  background-color: #ffffff;
  color: var(--text-color);
}

.chibi-chatbox-input input:focus { border-color: var(--accent); }

.chibi-chatbox-input button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(0,181,216,0.3);
}

.chibi-chatbox-input button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0,181,216,0.45);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.5rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: dot-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
