/* =============================================================
   SKY GLOW LIGHT THEME — Professional Cloud & AI Architect
   Light page, soft blue glow, dark terminal window as contrast
   ============================================================= */

/* ---------- Color Variables ---------- */
:root {
  /* Light page */
  --bg-primary: #f6f9fc;
  --bg-secondary: #eef3f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f6ff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-dim: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(37, 99, 235, 0.18);
  --accent-green: #1d4ed8;   /* hover shade (kept name for compat) */
  --accent-purple: #7c3aed;
  --border-color: #e2e8f0;
  --card-glow: 0 8px 30px rgba(37, 99, 235, 0.10);
  --card-glow-strong: 0 12px 40px rgba(37, 99, 235, 0.16);

  /* Dark terminal island */
  --terminal-bg: #0d1526;
  --terminal-border: #2a3b5a;
  --term-text: #e8edf5;
  --term-text-soft: #9fb0c7;
  --term-accent: #60a5fa;
  --term-green: #34d399;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(37, 99, 235, 0.12);
}

/* Professional typeface */
body, p, li, .nav-menu a, .section-title p {
  font-family: "Inter", "Open Sans", sans-serif;
}
h1, h2, h3, h4, h5 {
  font-family: "Inter", "Raleway", sans-serif;
  letter-spacing: -0.01em;
}

/* ---------- Global Overrides ---------- */
html, body {
  overflow-x: hidden;
}
body {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

a {
  color: var(--accent) !important;
}
a:hover {
  color: var(--accent-hover) !important;
}

/* ---------- Hero Gradient Orbs (floating movement) ---------- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
}
.hero-orb-1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, #60a5fa, transparent 70%);
  top: 8%; left: 12%;
  animation: orbFloatY 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #a78bfa, transparent 70%);
  bottom: 10%; right: 8%;
  animation: orbFloatX 11s ease-in-out infinite;
}
.hero-orb-3 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  top: 55%; left: 55%;
  animation: orbFloatXY 13s ease-in-out infinite;
}
@keyframes orbFloatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-45px); }
}
@keyframes orbFloatX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(55px); }
}
@keyframes orbFloatXY {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-35px, 25px); }
  66% { transform: translate(25px, -35px); }
}

/* ---------- Tech Marquee (horizontal movement) ---------- */
.tech-marquee {
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  white-space: nowrap;
}
.tech-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.tech-marquee-track span:nth-child(4n+1) { color: var(--accent); }
.tech-marquee-track span:nth-child(8n+3) { color: var(--accent-purple); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tech-marquee:hover .tech-marquee-track {
  animation-play-state: paused;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .tech-marquee-track, .avail-dot, .ai-chat-toggle,
  .float-chip, .grad-text, .section-title h2 {
    animation: none !important;
  }
}

/* ---------- Availability Badge ---------- */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #059669 !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.avail-badge:hover {
  background: rgba(16, 185, 129, 0.18);
  color: #047857 !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: availPulse 2s ease-in-out infinite;
}
@keyframes availPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

/* ---------- Hire Me / Services Cards ---------- */
.services .icon-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px 24px !important;
  margin-bottom: 24px;
  box-shadow: var(--card-glow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.services .icon-box:hover {
  box-shadow: var(--card-glow-strong);
  transform: translateY(-4px);
}
.services .icon-box .icon {
  background: var(--accent-dim) !important;
  border-radius: 10px;
}
.services .icon-box .icon i {
  color: var(--accent) !important;
}
.services .icon-box:hover .icon {
  background: var(--accent) !important;
}
.services .icon-box:hover .icon i {
  color: #ffffff !important;
}
.services .icon-box h4,
.services .icon-box h4 a {
  color: var(--text-primary) !important;
}
.services .icon-box .description {
  color: var(--text-secondary) !important;
}

/* ---------- Facts / Impact Counters ---------- */
.facts .count-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--card-glow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.facts .count-box:hover {
  box-shadow: var(--card-glow-strong);
  transform: translateY(-3px);
}
.facts .count-box i {
  color: var(--accent) !important;
}
.facts .count-box span {
  color: var(--text-primary) !important;
}
.facts .count-box p {
  color: var(--text-secondary) !important;
}
.facts .count-box p strong {
  color: var(--text-primary);
}

/* ---------- Hero CTA Buttons ---------- */
.btn-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  background: var(--bg-card);
  transition: all 0.3s ease;
}
.btn-cta:hover {
  color: var(--accent-hover) !important;
  border-color: var(--accent-hover);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-cta-solid {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  background-size: 200% 200%;
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: all 0.3s ease, background-position 0.5s ease;
}
.btn-cta-solid:hover {
  background-position: 100% 100%;
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.3);
}

/* ---------- Sidebar ---------- */
#header {
  background: #ffffff !important;
  border-right: 1px solid var(--border-color);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
}

#header .profile img {
  border-color: var(--accent) !important;
  box-shadow: 0 0 24px var(--accent-glow);
}

#header .profile h1,
#header .profile h1 a,
#header .profile h1 a:hover {
  color: var(--text-primary) !important;
}

#header .profile .social-links a {
  background: var(--bg-primary) !important;
  color: var(--accent) !important;
  border: 1px solid var(--border-color);
}
#header .profile .social-links a:hover {
  background: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-menu a, .nav-menu a:focus {
  color: var(--text-secondary) !important;
}
.nav-menu a i, .nav-menu a:focus i {
  color: var(--text-secondary) !important;
}
.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  color: var(--text-primary) !important;
}
.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i,
.nav-menu li:hover>a i {
  color: var(--accent) !important;
}

/* ---------- Hero / Terminal ---------- */
#hero {
  background: var(--bg-primary) !important;
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 4%;
  margin-left: 300px;
  width: calc(100% - 300px) !important;
}
.tech-marquee {
  margin-left: 300px;
}
@media (max-width: 1199px) {
  #hero, .tech-marquee {
    margin-left: 0;
  }
  #hero {
    width: 100% !important;
  }
}
#hero .hero-sub {
  color: var(--text-secondary) !important;
}
#hero:before {
  background: none !important;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 7px 16px;
  margin-bottom: 20px;
}

#hero .hero-headline {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 18px;
}
.grad-text {
  background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientSlide 8s linear infinite;
}

.hero-sub {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 26px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-cta .btn-cta {
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}
.hero-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}
.hero-stat span {
  font-size: 12.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Floating tool chips around terminal */
.hero-visual {
  position: relative;
}
.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  pointer-events: none;
  animation: chipFloat 6s ease-in-out infinite;
}
.float-chip i {
  font-size: 17px;
  color: var(--accent);
}
.chip-1 { top: -18px; left: 6%;   animation-delay: 0s; }
.chip-2 { top: 12%;  right: -14px; animation-delay: 1.1s; }
.chip-3 { bottom: 28%; left: -22px; animation-delay: 2.2s; }
.chip-4 { bottom: -16px; right: 12%; animation-delay: 0.6s; }
.chip-4 i { color: var(--accent-purple); }
.chip-5 { top: 46%; right: -30px; animation-delay: 3.1s; }
.chip-6 { bottom: -20px; left: 22%; animation-delay: 1.8s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 1199px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  #hero {
    height: auto;
    padding: 110px 6% 70px;
  }
  .hero-sub { max-width: none; }
}
@media (max-width: 768px) {
  #hero .hero-headline { font-size: 32px; }
  .hero-stats { gap: 22px; }
  .float-chip { font-size: 11.5px; padding: 6px 12px; }
  .chip-2 { right: -4px; }
  .chip-3 { left: -6px; }
  .chip-5 { right: -8px; }
}

/* Soft grid + radial glow background */
#hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(37, 99, 235, 0.08), transparent),
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
  opacity: 0.6;
  z-index: 0;
}

.terminal-container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  width: 100%;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25), 0 0 50px var(--accent-glow);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.terminal-header {
  background: #161b22;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--terminal-border);
}
.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
  flex: 1;
  text-align: center;
  color: var(--term-text-soft);
  font-size: 13px;
}

.terminal-body {
  padding: 20px;
  min-height: 220px;
  color: var(--term-text);
  font-size: 15px;
  line-height: 1.8;
}
.terminal-body .prompt {
  color: var(--term-green);
}
.terminal-body .command {
  color: var(--term-text);
}
.terminal-body .output {
  color: var(--term-text-soft);
  padding-left: 0;
}
.terminal-body .output .highlight {
  color: var(--term-accent);
}
.terminal-body .output a {
  color: var(--term-accent) !important;
}
.terminal-body .cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--term-accent);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-input-line {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.terminal-input-line .prompt {
  color: var(--term-green);
  margin-right: 8px;
  white-space: nowrap;
}
.terminal-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--term-text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  caret-color: var(--term-accent);
}

/* ---------- Sections ---------- */
section {
  background: var(--bg-primary) !important;
}
.section-bg {
  background: var(--bg-secondary) !important;
}

.section-title h2 {
  background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4, #2563eb);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent) !important; /* fallback */
  animation: gradientSlide 8s linear infinite;
  display: inline-block;
}
@keyframes gradientSlide {
  from { background-position: 0% 50%; }
  to { background-position: 300% 50%; }
}
.section-title h2::after {
  background: linear-gradient(90deg, #2563eb, #7c3aed) !important;
}
.section-title p {
  color: var(--text-secondary) !important;
}
.section-title a {
  color: var(--accent) !important;
}

/* ---------- About ---------- */
.about .content h3 {
  color: var(--accent) !important;
}
.about .content ul li {
  color: var(--text-secondary) !important;
}
.about .content ul strong {
  color: var(--text-primary) !important;
}
.about .content ul i {
  color: var(--accent) !important;
}
.about .content p,
.about p {
  color: var(--text-secondary) !important;
}
.about .content .fst-italic {
  color: var(--text-secondary) !important;
}

/* ---------- Skills (Tag Cloud) ---------- */
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
  cursor: default;
}
.skill-tag:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-2px);
}
.skill-tag .skill-level {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.skill-tag i {
  font-size: 18px;
  color: var(--accent);
}

/* Category labels */
.skill-category {
  width: 100%;
  text-align: center;
  margin: 20px 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---------- Resume / Timeline ---------- */
.resume .resume-title {
  color: var(--accent) !important;
}
.resume .resume-item {
  border-left-color: var(--accent) !important;
  border-left-width: 2px;
}
.resume .resume-item::before {
  background: var(--bg-primary) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 8px var(--accent-glow);
}
.resume .resume-item h4 {
  color: var(--text-primary) !important;
}
.resume .resume-item h5 {
  background: var(--accent-dim) !important;
  color: var(--accent) !important;
  border-radius: 4px;
}
.resume .resume-item p,
.resume .resume-item ul li {
  color: var(--text-secondary) !important;
}
.resume .resume-item p em {
  color: var(--accent-purple) !important;
}

/* ---------- Projects ---------- */
#Projects .section-title ul li {
  color: var(--text-secondary) !important;
}

/* ---------- Contact ---------- */
.contact .info {
  background: var(--bg-card) !important;
  box-shadow: var(--card-glow) !important;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.contact .info i {
  background: var(--accent-dim) !important;
  color: var(--accent) !important;
}
.contact .info h4 {
  color: var(--text-primary) !important;
}
.contact .info p {
  color: var(--text-secondary) !important;
}
.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: var(--accent) !important;
  color: #ffffff !important;
}

.contact .php-email-form {
  background: var(--bg-card) !important;
  box-shadow: var(--card-glow) !important;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.contact .php-email-form label {
  color: var(--text-secondary) !important;
}
.contact .php-email-form input,
.contact .php-email-form textarea {
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 10px var(--accent-glow) !important;
}
.contact .php-email-form button[type=submit] {
  background: var(--accent) !important;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.contact .php-email-form button[type=submit]:hover {
  background: var(--accent-hover) !important;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.contact iframe {
  border-radius: 8px;
  border: 1px solid var(--border-color) !important;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  background: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.back-to-top i {
  color: #ffffff !important;
}
.back-to-top:hover {
  background: var(--accent-hover) !important;
}

/* ---------- Mobile nav toggle ---------- */
.mobile-nav-toggle {
  background-color: var(--accent) !important;
  color: #ffffff !important;
}

/* ---------- AI Chat Widget ---------- */
.ai-chat-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  border: none;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all 0.3s ease;
  animation: chatPulse 2s ease-in-out infinite;
}
.ai-chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 99, 235, 0.35);
}
.ai-chat-toggle svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25); }
  50% { box-shadow: 0 4px 30px rgba(37, 99, 235, 0.45); }
}

.ai-chat-window {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 380px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  z-index: 10001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}
.ai-chat-window.open {
  display: flex;
}

.ai-chat-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-chat-header .ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ai-chat-header h4 {
  margin: 0;
  font-size: 15px;
  color: #ffffff;
  font-weight: 600;
}
.ai-chat-header .status {
  font-size: 11px;
  color: #d1fae5;
}
.ai-chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
.ai-chat-close:hover {
  color: #ffffff;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
}

.ai-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.ai-msg.bot {
  align-self: flex-start;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}
.ai-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}
.ai-msg.user a {
  color: #ffffff !important;
  text-decoration: underline;
}

.ai-chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-primary);
}
.ai-chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.ai-chat-input:focus {
  border-color: var(--accent);
}
.ai-chat-input::placeholder {
  color: var(--text-secondary);
}
.ai-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.ai-chat-send:hover {
  background: var(--accent-hover);
}
.ai-chat-send svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.ai-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
}
.ai-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: typingDot 1.4s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

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

/* ---------- Google Fonts for Terminal ---------- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .terminal-container {
    width: 95%;
    margin: 0 auto;
  }
  .terminal-body {
    font-size: 13px;
    padding: 15px;
    min-height: 180px;
  }
  .ai-chat-window {
    width: calc(100vw - 30px);
    right: 15px;
    bottom: 90px;
  }
  .skills-tags {
    gap: 8px;
  }
  .skill-tag {
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* ---------- Footer ---------- */
#footer {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-color);
}
