/* ==========================================================================
   MOHSIN ASHRAF: SENIOR SECURITY ENGINEER PORTFOLIO
   Theme: Clean Obsidian: Refined, minimal, editorial-quality
   ========================================================================== */

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base: #0a0c10;
  --bg-surface: #11141b;
  --bg-elevated: #171c28;
  --bg-card: rgba(17, 20, 27, 0.65);
  --bg-card-hover: rgba(23, 28, 40, 0.85);

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(99, 179, 237, 0.25);

  /* Text */
  --text-primary: #f0f4f8;
  --text-secondary: #8b97a8;
  --text-tertiary: #5a6578;

  /* Accents: subdued cool palette */
  --accent: #63b3ed;
  --accent-soft: rgba(99, 179, 237, 0.12);
  --accent-glow: rgba(99, 179, 237, 0.08);
  --accent-green: #68d391;
  --accent-green-soft: rgba(104, 211, 145, 0.12);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Subtle radial ambient light */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 10%, rgba(99, 179, 237, 0.04) 0%, transparent 100%),
    radial-gradient(ellipse 40% 50% at 80% 70%, rgba(104, 211, 145, 0.03) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ── Section Common ───────────────────────────────────────────────────────── */
section {
  padding: 6rem 0;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 0 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(99, 179, 237, 0.2);
  transition: all var(--duration) var(--ease);
}

.btn-nav-cta:hover {
  background: var(--accent);
  color: var(--bg-base);
  box-shadow: 0 4px 20px rgba(99, 179, 237, 0.25);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--duration);
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
  padding: 7rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.hero-name {
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hero-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2rem;
  text-align: justify;
  text-justify: inter-word;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: var(--bg-base);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--r-md);
  transition: all var(--duration) var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 179, 237, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-md);
  transition: all var(--duration) var(--ease);
}

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

/* Hero stats strip */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1;
}

.proof-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Portrait */
.hero-portrait {
  display: flex;
  justify-content: center;
}

.portrait-wrapper {
  position: relative;
  width: 340px;
  max-width: 100%;
}

.portrait-wrapper img {
  width: 100%;
  border-radius: var(--r-xl);
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.portrait-glow {
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--r-xl) + 3px);
  background: linear-gradient(145deg, rgba(99, 179, 237, 0.25), rgba(104, 211, 145, 0.08), transparent 60%);
  z-index: 1;
  filter: blur(1px);
}

/* ══════════════════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════════════════ */
.about-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
}

.about-label {
  padding-top: 0.3rem;
}

.about-headline {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 640px;
  color: var(--text-primary);
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 1rem;
  text-align: justify;
  text-justify: inter-word;
}

/* ══════════════════════════════════════════════════════════════════════════
   EXPERTISE
   ══════════════════════════════════════════════════════════════════════════ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.expertise-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem 1.6rem;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.expertise-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.expertise-card:hover .card-accent {
  opacity: 1;
}

.expertise-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.expertise-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  text-align: justify;
  text-justify: inter-word;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════════════════════════════════════ */
.projects-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-family: var(--font-sans);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-soft);
  border-color: rgba(99, 179, 237, 0.3);
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.project-region {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-green);
  font-weight: 500;
}

.project-type {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--r-sm);
  background: rgba(99, 179, 237, 0.1);
  color: var(--accent);
  border: 1px solid rgba(99, 179, 237, 0.2);
}

.project-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.project-scope {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 0.8rem;
}

.project-card > p:not(.project-scope) {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  text-align: justify;
  text-justify: inter-word;
}

.project-outcome {
  background: rgba(0, 0, 0, 0.2);
  border-left: 2px solid var(--accent);
  padding: 0.55rem 0.85rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-outcome strong {
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 1.5rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2.5px solid var(--accent);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg-base);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: all var(--duration) var(--ease);
}

.timeline-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.timeline-card ul {
  margin-top: 0.5rem;
}

.timeline-card li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
}

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

/* ══════════════════════════════════════════════════════════════════════════
   CERTIFICATIONS
   ══════════════════════════════════════════════════════════════════════════ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  transition: all var(--duration) var(--ease);
}

.cert-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.cert-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.cert-card p {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.cert-award {
  background: var(--accent-green-soft);
  border-color: rgba(104, 211, 145, 0.2);
}

.cert-award h4 {
  color: var(--accent-green);
}

/* Education */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}

.edu-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.edu-school {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.edu-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.edu-gpa {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  background: var(--accent-green-soft);
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-sm);
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.edu-detail {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════════════════ */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.contact-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
  max-width: 440px;
  text-align: justify;
  text-justify: inter-word;
}

.contact-availability {
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--accent-green-soft);
  border: 1px solid rgba(104, 211, 145, 0.2);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: inline-block;
}

.contact-availability strong {
  color: var(--accent-green);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  transition: all var(--duration) var(--ease);
}

.contact-link:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-link-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 600;
}

.contact-link-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-tertiary);
  transition: color var(--duration);
}

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

/* ══════════════════════════════════════════════════════════════════════════
   AI CHAT WIDGET
   ══════════════════════════════════════════════════════════════════════════ */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.launcher-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  padding: 0.65rem 1.15rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: var(--font-sans);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: all var(--duration) var(--ease);
}

.launcher-btn svg {
  opacity: 0.8;
}

.launcher-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 179, 237, 0.2);
}

.chat-window {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 110px);
  background: rgba(17, 20, 27, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-xl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 179, 237, 0.08);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transition: all var(--duration) var(--ease);
}

.chat-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: rgba(10, 12, 16, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 179, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.chat-header h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-header-actions {
  display: flex;
  gap: 0.3rem;
}

.chat-action-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--r-sm);
  transition: all var(--duration);
  font-family: var(--font-sans);
}

.chat-action-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.chat-messages {
  flex-grow: 1;
  padding: 1.15rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-msg {
  max-width: 88%;
}

.chat-msg.user {
  margin-left: auto;
}

.msg-bubble {
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.chat-msg.agent .msg-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-top-left-radius: 4px;
}

.chat-msg.agent .msg-bubble strong {
  color: var(--text-primary);
}

.chat-msg.user .msg-bubble {
  background: var(--accent);
  color: var(--bg-base);
  border-top-right-radius: 4px;
}

.chat-msg.agent .msg-bubble a {
  color: var(--accent);
  text-decoration: underline;
}

.chat-msg.agent .msg-bubble code {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.chat-suggestions {
  padding: 0.5rem 1.15rem 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-top: 1px solid var(--border);
}

.sugg-chip {
  background: rgba(99, 179, 237, 0.06);
  border: 1px solid rgba(99, 179, 237, 0.15);
  color: var(--accent);
  font-size: 0.73rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--duration);
  font-family: var(--font-sans);
}

.sugg-chip:hover {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
}

.chat-input-bar {
  padding: 0.75rem 1.15rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  background: rgba(10, 12, 16, 0.95);
}

.chat-input-bar input {
  flex-grow: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 0.55rem 0.95rem;
  color: var(--text-primary);
  font-size: 0.84rem;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color var(--duration);
}

.chat-input-bar input::placeholder {
  color: var(--text-tertiary);
}

.chat-input-bar input:focus {
  border-color: var(--accent);
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-base);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 15px rgba(99, 179, 237, 0.3);
}

/* Typing dots */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 2px 4px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: typing 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 typing {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-intro { margin: 0 auto 2rem; max-width: 520px; }
  .hero-ctas { justify-content: center; }
  .hero-proof { justify-content: center; }
  .hero-portrait { order: -1; }
  .portrait-wrapper { width: 280px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .expertise-grid,
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }

  section { padding: 4rem 0; }

  .hero { padding: 4rem 0 3rem; }
  .hero-name { font-size: 2.6rem; }

  .expertise-grid,
  .projects-grid,
  .certs-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .proof-divider { display: none; }

  .contact-text h2 { font-size: 1.7rem; }

  .chat-window {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 72px;
    height: calc(100vh - 90px);
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* Custom scrollbar for chat */
.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}
