/* ══════════════════════════════════════════════════════════
   ABHISHEK KANANI — PORTFOLIO CSS
   Pixel-perfect recreation of jayesh-pf.me aesthetic
   ══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:         #FAFAFA;
  --bg-card:    #ffffff;
  --text:       #0f172a;
  --text-2:     #475569;
  --text-3:     #94a3b8;
  --border:     #e2e8f0;
  --border-2:   #cbd5e1;

  --accent:     #6366f1;   /* indigo */
  --accent-2:   #4f46e5;
  --accent-dim: rgba(99,102,241,0.08);

  /* dark section */
  --dark-bg:    #0d1117;
  --dark-card:  #161b27;
  --dark-border: rgba(255,255,255,0.07);
  --dark-text:  #e2e8f0;
  --dark-text-2:#94a3b8;

  --font: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

/* ── BACKGROUND BLOBS ───────────────────────────────────── */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

/* Top-left: lavender/indigo */
.blob-tl {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(167,169,254,0.28) 0%, rgba(196,181,253,0.12) 50%, transparent 75%);
  top: -200px; left: -200px;
  animation: blob-drift-1 24s ease-in-out infinite alternate;
}

/* Top-right: peach/orange */
.blob-tr {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(251,191,144,0.25) 0%, rgba(253,230,138,0.1) 50%, transparent 75%);
  top: -150px; right: -150px;
  animation: blob-drift-2 20s ease-in-out infinite alternate;
}

/* Bottom-left: light teal */
.blob-bl {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,243,208,0.18) 0%, transparent 70%);
  bottom: 0; left: 0;
  animation: blob-drift-3 30s ease-in-out infinite alternate;
}

@keyframes blob-drift-1 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px, 80px) scale(1.08); }
}
@keyframes blob-drift-2 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-50px, 60px) scale(0.95); }
}
@keyframes blob-drift-3 {
  0%   { transform: translate(0,0); }
  100% { transform: translate(40px, -40px); }
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,250,250,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.logo-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo-dot { color: var(--accent); }

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero-section {
  padding: 160px 2rem 5rem;
  text-align: center;
}

.hero-section .container {
  max-width: 1240px;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto 5rem;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6.5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-name {
  color: var(--accent);
}

/* Blinking cursor */
.cursor {
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
  font-weight: 300;
  margin-left: 0.35rem;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* ── HERO NIGHT QUOTE ────────────────────────────────────── */
.hero-night-quote {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-3);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ── WORD OF SUPREME (inside about card) ────────────────── */
.about-featured {
  margin: 0.75rem 0 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background: rgba(99,102,241,0.02);
}

.about-featured:hover {
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 2px 12px rgba(99,102,241,0.06);
}

.about-featured-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
}

.about-featured-emoji {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.about-featured-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}


.about-featured-text {
  flex: 1;
  min-width: 0;
}

.about-featured-title {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about-featured-title em {
  font-style: normal;
  color: var(--accent);
}

.about-featured-desc {
  font-size: 0.7rem;
  color: var(--text-3);
  line-height: 1.3;
  margin-top: 0.1rem;
}

.about-featured-links {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.af-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.af-link-web {
  background: white;
  color: var(--text-2);
}

.af-link-web:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.af-link-ios {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.af-link-ios:hover {
  background: #334155;
  border-color: #334155;
}


/* Black pill button */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.75rem;
  background: #000000;
  color: #ffffff;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transition: background 0.3s ease, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-dark:hover {
  background: #1a1a1a;
  transform: scale(1.035);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

/* Ghost pill button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.75rem;
  background: transparent;
  color: var(--text-2);
  border: none;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-outline:hover {
  color: var(--text);
  background: #e2e8f0;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  transform: scale(1.035);
}

/* ── SLASH LABEL (/ ABOUT ME ──────────────) ─────────────── */
.slash-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* Extending rule line after the label */
.slash-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  display: block;
}

/* ── ABOUT SECTION ──────────────────────────────────────── */


.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2.5rem;
  align-items: start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  text-align: left;
}

.about-heading {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 400;
  font-family: var(--font-serif);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.75rem;
  position: relative;
}

/* ── PREMIUM HEADING ROW (shared) ──────────────────────────
   Each section heading sits in a flex row. After the text,
   a flex:1 pseudo-element draws a line that fades via a
   gradient from the current colour → transparent.
──────────────────────────────────────────────────────────── */
.proj-heading-row,
.skills-heading-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* Left fading line */
.skills-heading-row::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-2));
  display: block;
}

/* Right fading line */
.skills-heading-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--border-2));
  display: block;
}

/* Dark sections (projects) */
.proj-heading-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.12), transparent);
  display: block;
}



.about-heading em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 400;
}

.about-body {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.tech-section { margin-bottom: 1rem; }

.tech-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
}

.tech-item {
  font-size: 0.82rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.about-quote {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-2);
  border-left: 2px solid var(--border-2);
  padding-left: 0.85rem;
  line-height: 1.6;
  margin-top: 1.25rem;
}

/* Profile photo */
.about-card-right {
  position: sticky;
  top: 2rem;
}

.about-photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f1f5f9;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  transition: transform 0.7s var(--ease);
}

.about-photo-frame:hover .about-photo { transform: scale(1.03); }

/* ── AI CHATBOT SECTION ──────────────────────────────────── */
.chatbot-section {
  background: transparent;
  padding: 5rem 0;
  overflow: hidden;
}

/* Edge-aligned to container, same as About Me section */
.chatbot-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: center;
}

/* Left Panel */
.chatbot-left .slash-label {
  margin-bottom: 1rem;
}

.chatbot-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.chatbot-heading em {
  font-style: italic;
  color: var(--accent);
}

.chatbot-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.chatbot-online {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Right panel: transparent grid cell — terminal is the visual element */
.chatbot-right {
  display: flex;
  flex-direction: column;
}

/* Terminal Window fills the entire right column */
.chatbot-terminal {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 24px 64px rgba(0,0,0,0.45),
    0 8px 24px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  height: 460px;
  background: rgba(10, 14, 26, 0.97);
}

/* Messages Area — clean CSS gradient, no canvas */
.terminal-messages {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  background: #030410;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}

/* Soft glow orbs via pseudo-element — subtle, not busy */
.terminal-messages::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(80, 40, 180, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse at 80% 70%, rgba(30, 80, 200, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 10%, rgba(130, 30, 160, 0.18) 0%, transparent 45%);
  animation: orb-breathe 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes orb-breathe {
  0%   { opacity: 0.6; transform: scale(1)    translate(0%,  0%); }
  50%  { opacity: 0.9; transform: scale(1.04) translate(-1%, 2%); }
  100% { opacity: 0.7; transform: scale(1)    translate(2%, -1%); }
}

/* Window Chrome */
.terminal-bar {
  background: rgba(22, 26, 44, 0.98);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.terminal-dots {
  display: flex;
  gap: 0.38rem;
}

.tdot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.tdot-red    { background: #ff5f57; }
.tdot-yellow { background: #ffbd2e; }
.tdot-green  { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal-count {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Messages Area — semi-transparent so aurora glows through */
.terminal-messages {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(4, 5, 18, 0.72);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}

.terminal-messages::-webkit-scrollbar { width: 4px; }
.terminal-messages::-webkit-scrollbar-track { background: transparent; }
.terminal-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }


/* Chat messages */
.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  animation: msgFadeIn 0.35s ease-out both;
  width: 100%;
}

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

/* Bot: flush LEFT */
.chat-msg--bot {
  justify-content: flex-start;
}

/* User: flush RIGHT */
.chat-msg--user {
  flex-direction: row-reverse;
  justify-content: flex-start; /* flex-start in row-reverse = right edge */
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99,102,241,0.25);
  border: 1px solid rgba(99,102,241,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  flex-shrink: 0;
  overflow: hidden;
}

/* Bot avatar — image fills the circle */
.chat-avatar--bot {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.18);
  padding: 0;
}

.chat-avatar--bot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* center the logo icon */
  display: block;
  border-radius: 50%;
}

.chat-msg--user .chat-avatar {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
}

.chat-bubble {
  max-width: 75%;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.55;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  white-space: pre-wrap;
}

.chat-msg--user .chat-bubble {
  background: rgba(99,102,241,0.22);
  border-color: rgba(99,102,241,0.35);
  color: rgba(255,255,255,0.92);
  border-radius: 12px 12px 4px 12px;
}

.chat-msg--bot .chat-bubble {
  border-radius: 12px 12px 12px 4px;
}

/* Typing indicator */
.chat-typing {
  padding: 0.5rem 1.25rem;
  background: #020c18;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: rgba(99,102,241,0.6);
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Input bar */
.terminal-input-bar {
  background: #111827;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255,255,255,0.8);
  font-size: 0.83rem;
  font-family: var(--font);
  placeholder-color: rgba(255,255,255,0.3);
}

.terminal-input::placeholder {
  color: rgba(255,255,255,0.28);
}

.terminal-send {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.terminal-send:hover {
  background: var(--accent-2);
  transform: scale(1.08);
}

.terminal-send:disabled {
  background: rgba(99,102,241,0.3);
  cursor: not-allowed;
  transform: none;
}

/* ── EXPERIENCE SECTION ──────────────────────────────────── */

.exp-section {
  background: transparent;
  position: relative;
}

/* Decorative subtle grid lines like Jayesh */
.exp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.slash-lg {
  display: none; /* now replaced by exp-heading-row */
}

/* ── EXPERIENCE HEADING ROW (/ experience ──────) ───────── */
.exp-heading-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.exp-heading-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-2), transparent);
  display: block;
  margin-left: 0.5rem;
}

.exp-slash {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.exp-big-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  flex-shrink: 0;
}

.exp-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 2.5rem;
  align-items: start;
}

/* Sidebar tabs */
.exp-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 80px;
}

.exp-tab {
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  border-left: 2px solid var(--border);
  transition: all 0.2s ease;
  line-height: 1.4;
}

.exp-tab:hover { color: var(--text-2); border-left-color: var(--border-2); }

.exp-tab.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
  font-weight: 600;
}

/* Content panels */
.exp-content { min-height: 280px; }

.exp-panel {
  display: none;
  animation: fade-in 0.3s ease;
}

.exp-panel.active { display: block; }

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

.exp-role-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.exp-company-link {
  color: var(--accent);
  font-weight: 600;
  display: inline;
}

.exp-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.exp-bullets li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.925rem;
  color: var(--text-2);
  line-height: 1.6;
}

.exp-bullets .arrow {
  margin-top: 1px;
}

/* ── PROJECTS (DARK SECTION) ─────────────────────────────── */
.projects-section {
  background: radial-gradient(circle at 50% 50%, #0e152e 0%, #04060f 100%);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

/* Subtle dark blobs inside projects */
.projects-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 65%);
  top: -200px; right: -100px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.projects-section::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 65%);
  bottom: -100px; left: -50px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.projects-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.projects-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 400;
  font-family: var(--font-serif);
  color: var(--dark-text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.projects-heading-accent { color: var(--accent); }

.projects-sub {
  font-size: 0.875rem;
  color: var(--dark-text-2);
  margin-top: 0.3rem;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.2rem;
  background: transparent;
  color: var(--dark-text);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-outline-light:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
  transform: scale(1.035);
}

/* Project card grid — 3 columns */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.proj-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.proj-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.proj-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.proj-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.35;
}

.proj-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dark-text-2);
  margin-top: 0.3rem;
}

.proj-icon {
  color: var(--dark-text-2);
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.65;
}

.proj-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.proj-bullets li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--dark-text-2);
  line-height: 1.55;
}

.proj-arrow {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.proj-stats {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.proj-stat {
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(99, 102, 241, 0.8);
  letter-spacing: 0.02em;
}

.proj-actions {
  display: flex;
  gap: 0.5rem;
}

.proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark-text-2);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.proj-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, 0.28);
}


/* ── SKILLS / ACCORDION ──────────────────────────────────── */
.skills-section {
  background: white;
  text-align: center;
}

.skills-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.skills-sub {
  font-size: 0.925rem;
  color: var(--text-3);
  margin-bottom: 3rem;
  text-align: center;
}

.accordion {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.acc-item {
  border-bottom: 1px solid var(--border);
}

.acc-item:first-child {
  border-top: 1px solid var(--border);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: color 0.2s ease;
}

.acc-trigger:hover { color: var(--accent); }
.acc-trigger.active { color: var(--accent); }

.acc-chevron {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.3s var(--ease);
}

.acc-trigger.active .acc-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease;
  opacity: 0;
}

.acc-body.open {
  max-height: 300px;
  opacity: 1;
}

.acc-content {
  padding-bottom: 1.25rem;
}

.acc-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.acc-pill {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-2);
  background: white;
  transition: all 0.2s ease;
}

.acc-pill.accent {
  background: var(--accent-dim);
  border-color: rgba(99,102,241,0.25);
  color: var(--accent);
  font-weight: 600;
}

.acc-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #111827;
  padding: 3.5rem 0 2rem;
}

.footer-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-cta {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 400;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  transform: translateY(-3px);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.85rem;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  padding: 0.55rem 1.4rem;
  transition: all 0.3s ease, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-email:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.035);
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.footer-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.07);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.footer-icon:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #475569;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 1.75rem;
  }

  .about-card-right {
    max-width: 300px;
    margin: 0 auto;
  }

  .exp-layout {
    grid-template-columns: 1fr;
  }

  .exp-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    gap: 0.25rem;
    margin-bottom: 2rem;
    border-left: none;
  }

  .exp-tab {
    border: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
  }

  .exp-tab.active {
    background: var(--accent-dim);
    border-color: var(--accent);
  }

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

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 58px; left: 0; right: 0;
    background: rgba(250,250,250,0.97);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    z-index: 999;
    backdrop-filter: blur(12px);
  }

  .proj-grid { grid-template-columns: 1fr; }

  .projects-header { flex-direction: column; }

  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .chatbot-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .chatbot-terminal { height: 360px; }
  .footer-right { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .hero-sub br { display: none; }
}

/* ── SCROLL REVEAL (minimal) ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════
   SNAKE GAME MODE STYLES
   ══════════════════════════════════════════════ */

/* 1. Navbar Left Container */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Toggle Button in Navbar */
.btn-game-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 9999px;
  padding: 0.35rem 0.8rem;
  color: var(--text-2);
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.btn-game-toggle:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-game-toggle:active {
  transform: translateY(0);
}

/* Scoreboard in Navbar */
.game-scoreboard {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.05);
}


.game-toggle-dot {
  width: 7px;
  height: 7px;
  background: #64748b; /* Slate grey for OFF */
  border-radius: 50%;
  margin-right: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Game mode active state */
.game-mode-active .game-toggle-dot {
  background: #10b981; /* Green for ON */
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Disable body scroll when game active */
body.game-mode-active {
  overflow: hidden !important;
}

/* 2. Obstacle outlines */
body.game-mode-active .game-obstacle {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.01)) !important;
  outline: 1.5px solid rgba(239, 68, 68, 0.35) !important;
  outline-offset: 4px;
  box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.03);
  transition: outline 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  border-radius: 4px;
}

/* 3. Canvas */
#gameCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  pointer-events: none;
  background: transparent;
  display: none;
}

/* 4. Overlay & Modal */
.game-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 4, 16, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-overlay.active {
  opacity: 1;
  visibility: visible;
}

.game-modal {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  text-align: center;
  max-width: 380px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #0f172a;
}

.game-overlay.active .game-modal {
  transform: scale(1);
}

.game-modal-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #ef4444; /* Vermilion red */
}

.game-modal-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #475569; /* Slate grey */
  margin-bottom: 1.75rem;
}

.game-modal-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.game-modal-btn:hover {
  background: #1e293b;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-modal-btn:active {
  transform: translateY(0);
}

/* Responsive adjustment for Game Mode button */
@media (max-width: 768px) {
  .btn-game-toggle {
    margin-left: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
  }
}

