/* ══════════════════════════════════════════════════════════════
   SARBORUP SARKAR PORTFOLIO — style.css
   Design tokens, reset, layout, typography
══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --bg:           #0A0A0A;
  --surface:      #111111;
  --surface2:     #1A1A1A;
  --surface3:     #222222;
  --text:         #FFFFFF;
  --text-sec:     #888888;
  --text-mute:    #444444;
  --accent:       #00A3FF;
  --accent-dim:   #0080CC;
  --accent-glow:  rgba(0, 163, 255, 0.25);
  --accent-glow2: rgba(0, 163, 255, 0.08);
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(0, 163, 255, 0.4);

  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  --size-xs:  0.75rem;
  --size-sm:  0.875rem;
  --size-base: 1rem;
  --size-md:  1.125rem;
  --size-lg:  1.5rem;
  --size-xl:  2rem;
  --size-2xl: 3rem;
  --size-3xl: 4rem;
  --size-4xl: 6rem;
  --size-5xl: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --trans-fast: 0.2s ease;
  --trans-med:  0.4s ease;
  --trans-slow: 0.7s cubic-bezier(0.16,1,0.3,1);

  --nav-h: 72px;
  --container-max: 1200px;
  --section-pad: 120px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { background: none; border: none; cursor: none; font-family: inherit; }
input, textarea {
  font-family: var(--font-body);
  font-size: var(--size-base);
}

/* ── Three.js Background Canvas ─────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Container ───────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* ── Section Base ────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 2;
}

/* ── Section Label ───────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.label-number {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--accent);
  letter-spacing: 0.15em;
}
.label-text {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 120px;
}

/* ── Section Heading ─────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 48px;
}
.section-heading em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}
.section-header-row .section-heading { margin-bottom: 0; }
.section-subtext {
  font-size: var(--size-sm);
  color: var(--text-sec);
  max-width: 340px;
  text-align: right;
}

/* ── Typography ──────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-head); }
strong { font-weight: 600; color: var(--text); }

/* ── Text Link ───────────────────────────────────────────────── */
.text-link {
  color: var(--accent);
  font-size: var(--size-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: color var(--trans-fast);
}
.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--trans-med);
}
.text-link:hover::after { width: 100%; }

/* ════════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--trans-med), backdrop-filter var(--trans-med), border-bottom var(--trans-med);
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 101;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  align-self: flex-end;
  margin-bottom: 4px;
  animation: logoPulse 2.5s ease-in-out infinite;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--text-sec);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--trans-fast), background var(--trans-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--trans-med);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
}
.nav-link:hover::after, .nav-link.active::after { width: calc(100% - 28px); }
.nav-link.cta-link {
  background: var(--accent);
  color: var(--bg) !important;
  font-weight: 600;
  margin-left: 8px;
}
.nav-link.cta-link::after { display: none; }
.nav-link.cta-link:hover { background: var(--accent-dim); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--trans-med), opacity var(--trans-med), width var(--trans-med);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-med);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-links { text-align: center; }
.mobile-link {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  color: var(--text-sec);
  padding: 8px 0;
  transition: color var(--trans-fast);
  line-height: 1.2;
}
.mobile-link:hover { color: var(--accent); }
.mobile-socials {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}
.mobile-socials a {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--text-sec);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--trans-fast);
}
.mobile-socials a:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 460px;
  align-items: center;
  padding: var(--nav-h) 40px 60px;
  max-width: var(--container-max);
  margin: 0 auto;
  z-index: 2;
  gap: 20px;
}
.hero-content {
  position: relative;
  z-index: 3;
}

/* Hero 3D canvas wrapper — always fixed, JS interpolates pos+size on scroll */
.hero-3d-wrap {
  position: fixed;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: left, top, width, height;
  transform-origin: center center;
  pointer-events: auto;
  overflow: visible;
}
/* Hero glow aura (fades out as globe shrinks to corner) */
.hero-3d-wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 70% 70% at 50% 50%,
    rgba(0,163,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  animation: glowPulse3d 3s ease-in-out infinite;
  transition: opacity 0.3s ease;
  opacity: 1;
}
/* Ping ring shown only when fully in corner */
.hero-3d-wrap.in-corner::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0,163,255,0.35);
  animation: cornerPing 3s ease-in-out infinite;
  pointer-events: none;
}
.hero-3d-wrap.in-corner::before { opacity: 0; }
#hero-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}
@keyframes glowPulse3d {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%     { opacity: 1.0; transform: scale(1.08); }
}
@keyframes cornerPing {
  0%,100% { transform: scale(1);    opacity: 0.5; }
  50%     { transform: scale(1.12); opacity: 0; }
}
/* Placeholder — always block, holds hero grid column space */
.hero-3d-placeholder {
  width: 100%;
  height: 460px;
  display: block;
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  opacity: 0;
}
.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
}
.eyebrow-text {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 32px;
}
.name-line {
  display: block;
  white-space: nowrap;
}
.name-char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-sec);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  z-index: 5;
}
.scroll-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-dot {
  position: absolute;
  top: -6px;
  left: -2px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: scrollDot 2s ease-in-out infinite;
}

/* Hero badge */
.hero-badge {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--text-mute);
  opacity: 0;
}
.badge-divider { color: var(--border); }
.badge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sec);
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #00FF87;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════════════ */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(0,163,255,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-bio {
  font-size: var(--size-md);
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.about-tag {
  font-size: var(--size-xs);
  font-family: var(--font-mono);
  color: var(--text-sec);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 100px;
  transition: border-color var(--trans-fast), color var(--trans-fast);
}
.about-tag:hover { border-color: var(--accent); color: var(--text); }
.about-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color var(--trans-fast), transform var(--trans-fast);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: inline;
}
.stat-suffix {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 2px;
}
.stat-label {
  display: block;
  font-size: var(--size-xs);
  color: var(--text-sec);
  margin-top: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Education */
.about-education {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.edu-item {}
.edu-degree {
  display: block;
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.edu-school {
  display: block;
  font-size: var(--size-xs);
  color: var(--text-sec);
  font-family: var(--font-mono);
}

/* ════════════════════════════════════════════════════════════════
   SKILLS
════════════════════════════════════════════════════════════════ */
.skills-section {
  background: linear-gradient(180deg, transparent 0%, rgba(0,163,255,0.02) 50%, transparent 100%);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color var(--trans-fast);
}
.skill-group:hover { border-color: var(--border-hover); }
.skill-group-title {
  font-family: var(--font-head);
  font-size: var(--size-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-icon { font-size: 1.1em; }
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  font-size: var(--size-xs);
  font-family: var(--font-mono);
  color: var(--text-sec);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 100px;
  cursor: default;
  transition: color var(--trans-fast), border-color var(--trans-fast), background var(--trans-fast), box-shadow var(--trans-fast);
}
.skill-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow2);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ════════════════════════════════════════════════════════════════
   EXPERIENCE / TIMELINE
════════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline-line {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), transparent);
  transition: height 0.1s linear;
}
.timeline-item {
  position: relative;
  margin-bottom: 56px;
}
.timeline-item[data-side="left"] {
  transform: translateX(30px);
}
.timeline-dot {
  position: absolute;
  left: -38px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  transition: background var(--trans-fast), box-shadow var(--trans-fast);
}
.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  transition: border-color var(--trans-fast), transform var(--trans-fast);
}
.timeline-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--text-sec);
  letter-spacing: 0.05em;
}
.timeline-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-sec);
}
.timeline-badge.current {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow2);
}
.timeline-role {
  font-size: var(--size-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-company {
  font-size: var(--size-sm);
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.timeline-desc {
  list-style: disc;
  padding-left: 16px;
  color: var(--text-sec);
  font-size: var(--size-sm);
  line-height: 1.7;
  margin-bottom: 16px;
}
.timeline-desc li { margin-bottom: 4px; }
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timeline-tags span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-sec);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════════════════════════
   PROJECTS
════════════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--trans-fast), transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow var(--trans-med);
  will-change: transform;
}
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(0,163,255,0.12);
}

.project-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--surface2);
}
.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--surface2) 0%, #1e2a35 100%);
  transition: filter var(--trans-med);
}
.placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.6;
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,163,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--trans-med);
  backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-placeholder { filter: url(#wave-filter); }
.project-view {
  font-family: var(--font-head);
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--text);
  background: var(--accent);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

.project-info { padding: 24px; }
.project-title {
  font-size: var(--size-md);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.project-desc {
  font-size: var(--size-sm);
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 16px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.project-tags span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-sec);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}
.project-link {
  font-size: var(--size-xs);
  font-family: var(--font-mono);
  color: var(--accent);
  transition: color var(--trans-fast);
}
.project-link:hover { color: var(--text); }

.coming-soon-card {
  border-style: dashed;
  opacity: 0;
}
.coming-soon-card .project-placeholder {
  background: var(--surface);
}
.coming-soon-card .placeholder-icon {
  font-size: 2rem;
  color: var(--accent);
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════
   PHOTOGRAPHY — horizontal pin scroll
════════════════════════════════════════════════════════════════ */
.photography-section {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
}

/* ── Pin wrap: full-viewport height, flex row ───────────────── */
.photo-pin-wrap {
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* ── Left intro panel ───────────────────────────────────────── */
.photo-intro {
  flex-shrink: 0;
  width: 300px;
  padding: 0 40px 0 80px;
  z-index: 2;
}
.photo-intro-heading {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 16px 0 20px;
}
.photo-intro-sub {
  font-size: var(--size-sm);
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 32px;
}
.photo-scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.photo-scroll-hint svg { opacity: 0.7; }
.photo-count {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── Track outer: clipped container for the scrolling strip ── */
.photo-track-outer {
  flex: 1;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

/* ── Track: horizontal flex strip ──────────────────────────── */
.photo-track {
  display: flex;
  gap: 18px;
  padding: 0 80px 0 40px;
  align-items: center;
  will-change: transform;
  flex-shrink: 0;
}

/* ── Individual photo card ──────────────────────────────────── */
.photo-card {
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  /* vibrant base brightness */
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.4s ease;
}
/* Alternating sizes — portrait / landscape rhythm */
.photo-track .photo-card:nth-child(4n+1) { width: 290px; height: 420px; }
.photo-track .photo-card:nth-child(4n+2) { width: 370px; height: 310px; }
.photo-track .photo-card:nth-child(4n+3) { width: 260px; height: 480px; }
.photo-track .photo-card:nth-child(4n+4) { width: 340px; height: 355px; }

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle colour enhancement */
  filter: saturate(1.15) contrast(1.02) brightness(1.01);
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.5s ease;
}
.photo-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,163,255,0.18), 0 8px 32px rgba(0,0,0,0.6);
}
.photo-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.3) contrast(1.05) brightness(1.03);
}

/* Overlay gradient on hover */
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.80) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.photo-card:hover .photo-overlay { opacity: 1; }
.photo-caption {
  font-size: var(--size-xs);
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-med);
  backdrop-filter: blur(10px);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner { text-align: center; }
.lightbox-img-wrap {
  width: min(85vw, 1000px);
  max-height: 80vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: 80vh;
  border-radius: var(--radius-lg);
}
.lightbox-caption {
  font-size: var(--size-sm);
  color: var(--text-sec);
  font-family: var(--font-mono);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: var(--text-sec);
  font-size: 1.5rem;
  padding: 12px;
  transition: color var(--trans-fast);
  z-index: 201;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--text); }
.lightbox-close { top: 24px; right: 24px; font-size: 1.2rem; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ════════════════════════════════════════════════════════════════
   INSTAGRAM
════════════════════════════════════════════════════════════════ */
.instagram-section {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

/* ── Profile header ─────────────────────────────────────────── */
.insta-profile {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Avatar with Instagram gradient ring */
.insta-avatar-wrap { flex-shrink: 0; }
.insta-avatar-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 0 24px rgba(220,39,67,0.35);
}
.insta-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.insta-profile-info { flex: 1; }
.insta-username-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}
.insta-handle {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.insta-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-radius: 100px;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
}
.insta-follow-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.insta-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 12px;
}
.insta-stat { display: flex; flex-direction: column; gap: 2px; }
.insta-stat-num {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.insta-stat-label {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.insta-bio {
  font-size: var(--size-sm);
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── 3×3 post grid ──────────────────────────────────────────── */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.insta-post {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}
.insta-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.12) contrast(1.02);
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.4s ease;
}
.insta-post:hover img {
  transform: scale(1.07);
  filter: saturate(1.25) contrast(1.04) brightness(1.02);
}

/* Hover overlay with likes/comments */
.insta-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.insta-post:hover .insta-post-overlay { opacity: 1; }
.insta-post-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}

/* 9th tile — View More CTA */
.insta-post-cta {
  background: linear-gradient(135deg, #1a0a2e 0%, #0d1a2e 100%);
  cursor: pointer;
}
.insta-post-cta a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.insta-view-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
  padding: 20px;
  text-align: center;
}
.insta-view-more svg {
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
  border-radius: 28%;
  padding: 8px;
  box-sizing: content-box;
  filter: drop-shadow(0 0 12px rgba(253,29,29,0.4));
  transition: transform 0.3s, filter 0.3s;
}
.insta-post-cta:hover .insta-view-more svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(253,29,29,0.7));
}
.insta-view-more span {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ── Behold live feed wrapper ───────────────────────────────── */
.insta-behold-wrap {
  display: none; /* shown by JS once widget ID is set */
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ── Setup banner (shown until Behold is connected) ─────────── */
.insta-setup-banner {
  border: 1px dashed rgba(0,163,255,0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0,163,255,0.03);
}
.insta-setup-banner > .insta-setup-icon,
.insta-setup-banner > .insta-setup-text {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px 8px;
}
.insta-setup-banner > .insta-setup-icon {
  padding: 28px 32px 0;
  display: block;
}
.insta-setup-banner > .insta-setup-icon svg {
  background: linear-gradient(45deg,#833ab4,#fd1d1d,#fcb045);
  border-radius: 28%;
  padding: 8px;
  display: block;
  box-sizing: content-box;
}
.insta-setup-text {
  padding: 12px 32px 24px !important;
  flex-direction: column;
  gap: 10px !important;
}
.insta-setup-text h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.insta-setup-text p {
  color: var(--text-sec);
  font-size: var(--size-sm);
  line-height: 1.6;
  margin: 0;
}
.insta-setup-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text-sec);
  font-size: var(--size-sm);
  line-height: 2;
}
.insta-setup-steps a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.insta-setup-steps code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.insta-setup-preview {
  padding: 0;
}
.insta-setup-preview .insta-grid {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0.55;
  filter: blur(1px) saturate(0.7);
  pointer-events: none;
  position: relative;
}
.insta-setup-preview .insta-grid::after {
  content: 'Preview — connect Behold to show your live posts';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════════════ */
.contact-section {
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-desc {
  font-size: var(--size-md);
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 40px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--size-sm);
  color: var(--text-sec);
  transition: color var(--trans-fast);
}
.contact-item:hover { color: var(--text); }
.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--size-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
}
.contact-certifications {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cert-badge {
  font-size: var(--size-xs);
  font-family: var(--font-mono);
  color: var(--text-sec);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: var(--size-xs);
  color: var(--text-mute);
  font-family: var(--font-mono);
}
.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  color: var(--text-mute);
  transition: color var(--trans-fast);
  display: flex;
}
.footer-socials a:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .hero { grid-template-columns: 1fr; }
  .hero-3d-placeholder { height: 320px; order: -1; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .photo-masonry { columns: 2; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; --nav-h: 60px; }
  .container { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: var(--nav-h) 24px 80px; grid-template-columns: 1fr; }
  .hero-3d-placeholder { height: 260px; order: -1; }
  .hero-name { font-size: clamp(3rem, 14vw, 5rem); }
  .projects-grid { grid-template-columns: 1fr; }
  .photo-masonry { columns: 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .section-subtext { text-align: left; max-width: 100%; }
  .hero-scroll-indicator { display: none; }
  .hero-badge { bottom: 24px; right: 24px; font-size: 10px; }
  .timeline { padding-left: 24px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   ENOCH AI CHAT PANEL
════════════════════════════════════════════════════════════════ */

/* ── Brain click hint — hero state ──────────────────────────── */
.enoch-hint {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: enochHintAppear 0.6s ease 2.2s forwards;
}
@keyframes enochHintAppear {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.enoch-hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: enochHintPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes enochHintPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,163,255,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(0,163,255,0); }
}
.enoch-hint-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hide hero hint once brain is in corner */
.in-corner .enoch-hint {
  display: none;
}

/* ── Corner tooltip — shows on hover in corner state ─────────── */
.enoch-corner-tip {
  display: none;
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6,12,26,0.92);
  border: 1px solid rgba(0,163,255,0.35);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(0,163,255,0.18);
  /* Arrow pointing right */
  backdrop-filter: blur(10px);
}
.enoch-corner-tip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right: none;
  border-left-color: rgba(0,163,255,0.35);
}

/* Only show in corner state, on hover */
.in-corner .enoch-corner-tip {
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.in-corner:hover .enoch-corner-tip {
  opacity: 1;
}

/* Brain canvas — clickable cursor */
#hero3dWrap,
#hero-3d-canvas {
  cursor: pointer !important;
}

/* Corner state: sit above nav (100) and scroll-to-top (50) so clicks reach the brain */
.hero-3d-wrap.in-corner {
  z-index: 150;
}

/* ── Backdrop ────────────────────────────────────────────────── */
.enoch-backdrop {
  position: fixed;
  inset: 0;
  z-index: 299;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.enoch-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Panel ───────────────────────────────────────────────────── */
.enoch-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: rgba(6,12,26,0.88);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-left: 1px solid rgba(0,163,255,0.2);
  box-shadow: -6px 0 48px rgba(0,180,255,0.14),
              inset 1px 0 0 rgba(0,255,255,0.05);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
  overflow: hidden;
}
.enoch-panel.open {
  transform: translateX(0);
}

/* ── Header ──────────────────────────────────────────────────── */
.enoch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(0,163,255,0.1);
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg, rgba(0,90,180,0.1) 0%, transparent 100%);
}
.enoch-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00A3FF 40%, #00FFFF 60%, transparent 100%);
  opacity: 0.8;
}

.enoch-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

/* Avatar */
.enoch-avatar {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,163,255,0.08);
  border: 1px solid rgba(0,163,255,0.35);
  border-radius: 50%;
  animation: enochAvatarGlow 3s ease-in-out infinite;
  flex-shrink: 0;
}
.enoch-avatar svg {
  animation: enochOrbit 8s linear infinite;
}
.enoch-avatar-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0,163,255,0.4);
  animation: enochPing 3s ease-out infinite;
}
@keyframes enochAvatarGlow {
  0%,100% { box-shadow: 0 0 10px rgba(0,163,255,0.2); }
  50%      { box-shadow: 0 0 24px rgba(0,212,255,0.5); }
}
@keyframes enochOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes enochPing {
  0%  { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.38); opacity: 0; }
  100%{ transform: scale(1.38); opacity: 0; }
}

.enoch-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.enoch-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.14em;
  text-shadow: 0 0 14px rgba(0,212,255,0.55);
}
.enoch-status {
  display: flex;
  align-items: center;
  gap: 5px;
}
.enoch-status-dot {
  width: 6px; height: 6px;
  background: #00FF87;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes statusPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.enoch-status-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-sec);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Close button */
.enoch-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sec);
  border-radius: var(--radius-sm);
  transition: color var(--trans-fast), background var(--trans-fast);
  cursor: pointer !important;
  flex-shrink: 0;
}
.enoch-close:hover {
  color: var(--accent);
  background: rgba(0,163,255,0.1);
}

/* ── Scan-line decoration ─────────────────────────────────────── */
.enoch-scanline {
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(0,212,255,0.12) 25%,
    rgba(0,255,255,0.4) 50%,
    rgba(0,212,255,0.12) 75%, transparent 100%);
  background-size: 200% 100%;
  animation: enochScan 4s linear infinite;
}
@keyframes enochScan {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Messages area ───────────────────────────────────────────── */
.enoch-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,163,255,0.2) transparent;
}
.enoch-messages::-webkit-scrollbar { width: 3px; }
.enoch-messages::-webkit-scrollbar-track { background: transparent; }
.enoch-messages::-webkit-scrollbar-thumb {
  background: rgba(0,163,255,0.2);
  border-radius: 2px;
}

/* ── Message bubbles ─────────────────────────────────────────── */
.enoch-msg {
  display: flex;
  flex-direction: column;
  max-width: 87%;
  animation: enochMsgIn 0.28s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes enochMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.enoch-msg.from-enoch { align-self: flex-start; }
.enoch-msg.from-user  { align-self: flex-end; }

.enoch-bubble {
  padding: 10px 13px;
  font-size: 0.875rem;
  line-height: 1.62;
  font-family: var(--font-body);
  color: var(--text);
  word-break: break-word;
  white-space: pre-wrap;
}
.from-enoch .enoch-bubble {
  background: rgba(0,163,255,0.07);
  border: 1px solid rgba(0,163,255,0.2);
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 2px 14px rgba(0,163,255,0.05);
}
.from-user .enoch-bubble {
  background: rgba(0,163,255,0.14);
  border: 1px solid rgba(0,163,255,0.32);
  border-radius: 14px 4px 14px 14px;
}

.enoch-msg-meta {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-mute);
  margin-top: 4px;
  padding: 0 3px;
}
.from-user .enoch-msg-meta { text-align: right; }

/* ── Typing indicator ────────────────────────────────────────── */
.enoch-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.enoch-typing.visible {
  opacity: 1;
}
.enoch-typing-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: enochDotBounce 1.25s ease-in-out infinite;
}
.enoch-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.enoch-typing-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes enochDotBounce {
  0%,100% { transform: translateY(0);    opacity: 0.35; }
  50%      { transform: translateY(-6px); opacity: 1; }
}

/* ── Input area ──────────────────────────────────────────────── */
.enoch-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(0,163,255,0.1);
  flex-shrink: 0;
  background: rgba(0,0,0,0.18);
}
.enoch-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,163,255,0.22);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
  cursor: text !important;
}
.enoch-input::placeholder { color: var(--text-mute); }
.enoch-input:focus {
  outline: none;
  border-color: rgba(0,163,255,0.55);
  box-shadow: 0 0 0 3px rgba(0,163,255,0.09);
}
.enoch-send {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #000;
  border-radius: var(--radius-sm);
  cursor: pointer !important;
  transition: background var(--trans-fast), transform var(--trans-fast), box-shadow var(--trans-fast);
  flex-shrink: 0;
}
.enoch-send:hover:not(:disabled) {
  background: #00C8FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,163,255,0.42);
}
.enoch-send:active:not(:disabled) { transform: translateY(0); }
.enoch-send:disabled {
  background: rgba(0,163,255,0.22);
  color: rgba(0,0,0,0.35);
  cursor: not-allowed !important;
  box-shadow: none;
}

/* ── Footer note ─────────────────────────────────────────────── */
.enoch-footer-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-mute);
  padding: 0 14px 10px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

/* ── Mobile: full-width, slides up from bottom ───────────────── */
@media (max-width: 480px) {
  .enoch-panel {
    width: 100%;
    top: auto;
    right: 0; left: 0; bottom: 0;
    height: 86vh;
    border-left: none;
    border-top: 1px solid rgba(0,163,255,0.22);
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -6px 48px rgba(0,180,255,0.14);
  }
  .enoch-panel.open {
    transform: translateY(0);
  }
}
