/* ═══════════════════════════════════════════════════════════
   ANUJ PANGARE — PORTFOLIO STYLESHEET
   Glassmorphism · Slate/Blue/Indigo · Full Responsive
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* Colors */
  --bg-base:       #f1f5f9;
  --bg-mid:        #e2e8f0;
  --surface:       rgba(255,255,255,0.7);
  --surface-hover: rgba(255,255,255,0.85);
  --border:        rgba(148,163,184,0.25);
  --border-hover:  rgba(99,102,241,0.3);
  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --blue:          #3b82f6;
  --indigo:        #6366f1;
  --purple:        #8b5cf6;
  --teal:          #14b8a6;
  --green:         #10b981;
  --pink:          #ec4899;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.07);
  --shadow-md:     0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.12);
  --shadow-glass:  0 8px 32px rgba(99,102,241,.12);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --transition:    all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --nav-h:         72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── 3D CANVAS BACKGROUND ───────────────────────────────────── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── GLASS CARD ─────────────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.glass-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glass), var(--shadow-md);
  transform: translateY(-4px);
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(241,245,249,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none;
  font-weight: 700; font-size: 1.05rem;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: white;
  flex-shrink: 0;
}

/* Links */
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: .92rem; font-weight: 500;
  padding: .45rem .85rem;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--indigo);
  background: rgba(99,102,241,.08);
}

/* Actions */
.nav-actions {
  display: flex; align-items: center; gap: .75rem;
  flex-shrink: 0;
}
.btn-ask-ai {
  display: flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .45rem 1.1rem;
  font-size: .88rem; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-ask-ai:hover {
  color: var(--indigo);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.85);
}
.btn-connect {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  padding: .5rem 1.25rem;
  font-size: .9rem; font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(99,102,241,.3);
}
.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero-section {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-container {
  max-width: 1280px; margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
}
.hero-left { z-index: 2; }

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .82rem; font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* Heading */
.hero-heading {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Animated gradient name */
.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4, #3b82f6, #a855f7);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: 1.15rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .75rem;
  line-height: 1.4;
}
.hero-description {
  font-size: .97rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Buttons */
.hero-buttons {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: white;
  text-decoration: none;
  border: none; cursor: pointer;
  border-radius: 50px;
  padding: .75rem 1.75rem;
  font-size: .95rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
  transition: var(--transition);
  font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,.45);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  border-radius: 50px;
  padding: .75rem 1.75rem;
  font-size: .95rem; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,.9);
  transform: translateY(-2px);
  color: var(--indigo);
}

/* Stats */
.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
}
.stat-item {
  display: flex; flex-direction: column;
}
.stat-number {
  font-size: 1.65rem; font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.stat-plus, .stat-percent {
  font-size: 1.2rem; font-weight: 700;
  color: var(--indigo);
  display: inline;
}
.stat-text {
  font-size: 1.1rem; font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.stat-label {
  font-size: .78rem; color: var(--text-muted);
  margin-top: .25rem; font-weight: 500;
}
.stat-divider {
  width: 1px; height: 36px;
  background: var(--border);
}

/* Code Card (right side) */
.hero-right { z-index: 2; display: flex; justify-content: center; }
.code-card {
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}
.code-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(248,250,252,0.6);
}
.window-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #27c93f; }
.code-card-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: var(--text-muted);
}
.code-card-body { padding: 1.5rem; }
.code-block {
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem;
  line-height: 1.85;
  color: var(--text-primary);
  white-space: pre;
  overflow-x: auto;
}
/* Syntax colors */
.code-keyword { color: #8b5cf6; font-weight: 600; }
.code-var     { color: #3b82f6; }
.code-op      { color: #64748b; }
.code-key     { color: #0f172a; }
.code-string  { color: #16a34a; }

.code-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.2rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
  background: rgba(248,250,252,0.6);
}
.status-dot-green {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  display: inline-block; margin-right: .45rem;
  animation: pulse-dot 2s infinite;
}
.footer-right { margin-left: auto; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  z-index: 2;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(99,102,241,.35);
  border-radius: 11px;
  display: flex; justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--indigo);
  border-radius: 3px;
  animation: scroll-anim 1.8s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ── SECTIONS COMMON ────────────────────────────────────────── */
.section { position: relative; z-index: 1; padding: 7rem 0; }
.section-container {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
}
.section-header {
  text-align: center; margin-bottom: 3.5rem;
}
.section-eyebrow {
  display: block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em;
  color: var(--indigo);
  margin-bottom: .75rem;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .85rem;
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: .97rem;
  color: var(--text-secondary);
  max-width: 580px; margin: 0 auto;
  line-height: 1.7;
}

/* Cards Grid */
.cards-grid {
  display: grid; gap: 1.5rem;
}
.three-col { grid-template-columns: repeat(3, 1fr); }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about-card { padding: 1.75rem; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.icon-blue   { background: rgba(59,130,246,.12); color: var(--blue); }
.icon-purple { background: rgba(139,92,246,.12); color: var(--purple); }
.icon-indigo { background: rgba(99,102,241,.12); color: var(--indigo); }
.icon-green  { background: rgba(16,185,129,.12); color: var(--green); }

.card-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .65rem;
}
.card-desc {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── SKILLS ─────────────────────────────────────────────────── */
.skill-card { padding: 1.5rem; }
.skill-card-header {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
}
.skill-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,.1);
  color: var(--blue);
  flex-shrink: 0;
}
.skill-icon-wrap.icon-purple { background: rgba(139,92,246,.1); color: var(--purple); }
.skill-icon-wrap.icon-green  { background: rgba(16,185,129,.1); color: var(--green); }
.skill-category-title {
  font-size: .95rem; font-weight: 700;
  color: var(--text-primary);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tag {
  background: rgba(99,102,241,.07);
  border: 1px solid rgba(99,102,241,.15);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: .3rem .75rem;
  font-size: .8rem; font-weight: 500;
  transition: var(--transition);
  cursor: default;
}
.skill-tag:hover {
  background: rgba(99,102,241,.15);
  color: var(--indigo);
  border-color: rgba(99,102,241,.35);
}

/* ── PROJECTS ───────────────────────────────────────────────── */
.project-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 0; }
.project-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1rem;
}
.project-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.project-type-badge {
  font-size: .73rem; font-weight: 600;
  padding: .28rem .75rem;
  border-radius: 50px;
}
.badge-blue   { background: rgba(59,130,246,.1);  color: var(--blue);   border: 1px solid rgba(59,130,246,.25); }
.badge-purple { background: rgba(139,92,246,.1);  color: var(--purple); border: 1px solid rgba(139,92,246,.25); }
.badge-green  { background: rgba(16,185,129,.1);  color: var(--green);  border: 1px solid rgba(16,185,129,.25); }

.project-title {
  font-size: 1.1rem; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .65rem; line-height: 1.3;
}
.project-title-teal { color: #0d9488; }
.project-desc {
  font-size: .88rem; color: var(--text-secondary);
  line-height: 1.65; margin-bottom: 1rem; flex: 1;
}
.project-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.project-tag {
  background: rgba(248,250,252,0.8);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: .25rem .65rem;
  font-size: .77rem; font-weight: 500;
}
.project-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.project-footer-label {
  font-size: .78rem; color: var(--text-muted); font-weight: 500;
}
.project-link {
  font-size: .85rem; font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.project-link:hover { opacity: .75; }
.project-link-blue   { color: var(--blue); }
.project-link-purple { color: var(--purple); }
.project-link-teal   { color: #0d9488; }

/* Highlight card subtle border */
.project-card-highlight { border-color: rgba(16,185,129,.25); }

/* ── GALLERY ────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  border-radius: var(--radius-md);
  aspect-ratio: 3/4;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item:hover { transform: translateY(-6px) scale(1.02); }
.gallery-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.gallery-purple { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.gallery-green  { background: linear-gradient(135deg, #10b981, #047857); }
.gallery-pink   { background: linear-gradient(135deg, #ec4899, #9f1239); }

.gallery-content {
  position: relative; z-index: 2;
  padding: 1.25rem;
  display: flex; flex-direction: column;
}
.gallery-label {
  font-size: 1rem; font-weight: 700;
  color: white;
}
.gallery-sublabel {
  font-size: .75rem; color: rgba(255,255,255,.75); margin-top: .25rem;
}
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-text {
  color: white; font-weight: 700; font-size: .9rem;
  letter-spacing: .05em;
}

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  align-items: start;
}
.contact-card { padding: 2rem; }
.contact-form-card { padding: 2rem; }
.contact-card-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.contact-item {
  display: flex; align-items: flex-start; gap: .9rem;
  margin-bottom: 1.25rem;
}
.contact-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(99,102,241,.1);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: .75rem; font-weight: 500;
  color: var(--text-muted);
  margin-bottom: .15rem;
}
.contact-value {
  display: block;
  font-size: .88rem; font-weight: 500;
  color: var(--text-primary);
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .82rem; font-weight: 600;
  color: var(--text-primary);
}
.form-group input,
.form-group textarea {
  background: rgba(248,250,252,0.8);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .7rem 1rem;
  font-size: .9rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--indigo);
  background: white;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-submit { width: 100%; justify-content: center; }
.form-success {
  text-align: center;
  color: var(--green);
  font-weight: 600; font-size: .9rem;
  padding: .75rem;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 10px;
  margin-top: .5rem;
}
.hidden { display: none !important; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 1;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-container {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .95rem;
  color: var(--text-primary);
}
.footer-copy {
  font-size: .83rem; color: var(--text-muted);
  flex: 1; text-align: center;
}
.footer-links {
  display: flex; gap: 1.25rem;
}
.footer-links a {
  font-size: .85rem; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--indigo); }

/* ── AI CHAT WIDGET ─────────────────────────────────────────── */
.ai-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(99,102,241,.45);
  transition: var(--transition);
}
.ai-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(99,102,241,.55);
}
.fab-icon-close { display: none !important; }
.fab-icon-close.visible { display: flex !important; }
.fab-icon-ai.hidden-fab { display: none !important; }

/* Chat Modal */
.chat-modal {
  position: fixed;
  bottom: 5.5rem; right: 2rem;
  z-index: 901;
  width: 380px;
  max-height: 80vh;
  animation: chat-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes chat-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.chat-modal-inner {
  display: flex; flex-direction: column;
  max-height: 75vh;
  overflow: hidden;
}

/* Chat Header */
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(99,102,241,.08));
}
.chat-header-info { display: flex; align-items: center; gap: .75rem; }
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-title { font-size: .9rem; font-weight: 700; color: var(--text-primary); }
.chat-subtitle { font-size: .73rem; color: var(--text-muted); }
.chat-close-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  padding: .3rem; border-radius: 8px;
  transition: var(--transition);
}
.chat-close-btn:hover { color: var(--text-primary); background: rgba(0,0,0,.05); }

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .75rem;
  max-height: 320px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chat-msg {
  display: flex; align-items: flex-start; gap: .55rem;
}
.chat-msg-user {
  flex-direction: row-reverse;
}
.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.msg-bubble {
  max-width: 80%;
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .87rem;
  line-height: 1.55;
}
.chat-msg-ai .msg-bubble {
  background: rgba(248,250,252,0.9);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}
.chat-msg-user .msg-bubble {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: white;
  border-top-right-radius: 4px;
}
.msg-typing { color: var(--text-muted); font-style: italic; }

/* API Notice */
.chat-api-notice {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(254,252,232,0.8);
  display: flex; flex-direction: column; gap: .5rem;
}
.api-notice-inner {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; color: #92400e;
}
.api-key-field {
  background: white;
  border: 1.5px solid #fbbf24;
  border-radius: 8px;
  padding: .45rem .75rem;
  font-size: .82rem;
  width: 100%; outline: none;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.api-key-field:focus { border-color: var(--indigo); }
.btn-save-key {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: white; border: none; cursor: pointer;
  border-radius: 8px;
  padding: .45rem .9rem;
  font-size: .82rem; font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
  align-self: flex-end;
}
.btn-save-key:hover { opacity: .85; }

/* Input */
.chat-input-wrap {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
}
.chat-input-row {
  display: flex; gap: .5rem;
  margin-bottom: .5rem;
}
.chat-input {
  flex: 1;
  background: rgba(248,250,252,0.8);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .6rem .9rem;
  font-size: .88rem;
  color: var(--text-primary);
  font-family: inherit; outline: none;
  transition: var(--transition);
}
.chat-input:focus {
  border-color: var(--indigo);
  background: white;
}
.chat-send-btn {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: white; border: none; cursor: pointer;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { transform: scale(1.05); opacity: .9; }
.chat-send-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Quick prompts */
.quick-prompts { display: flex; gap: .4rem; flex-wrap: wrap; }
.quick-btn {
  background: rgba(99,102,241,.07);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 50px;
  padding: .28rem .7rem;
  font-size: .75rem; font-weight: 500;
  color: var(--indigo);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.quick-btn:hover { background: rgba(99,102,241,.15); }

/* ── SCROLL REVEAL ANIMATIONS ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  transform: translateX(-30px);
}
.reveal-left.visible {
  transform: translateX(0);
}
.reveal-right {
  transform: translateX(30px);
}
.reveal-right.visible {
  transform: translateX(0);
}

/* ── MOBILE MENU ────────────────────────────────────────────── */
.mobile-menu-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(241,245,249,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  gap: .35rem;
  animation: menu-drop 0.25s ease;
  z-index: 999;
}
@keyframes menu-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .three-col { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-ask-ai { display: none; }
  .hamburger { display: flex; }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-right { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-badge { margin: 0 auto 1.25rem; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .three-col { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .chat-modal { width: calc(100vw - 2rem); right: 1rem; }
  .hero-heading { font-size: 2.1rem; }
  .footer-container { flex-direction: column; text-align: center; }
  .footer-copy { flex: none; }
}
@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
