/* Portfolio v2.0 — Sai Kiran Reddy Tallapureddy */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg-primary: #0F0F0F;
  --bg-secondary: #1A1A1A;
  --bg-card: #1E1E1E;
  --accent-orange: #FF6B2B;
  --accent-orange-glow: rgba(255, 107, 43, 0.25);
  --accent-gray: #8A8A8A;
  --accent-light: #C8C8C8;
  --text-primary: #F5F5F5;
  --text-muted: #5A5A5A;
  --border-subtle: rgba(255,107,43,0.15);
  --gradient-main: linear-gradient(135deg, #FF6B2B 0%, #FF9A5C 100%);
  --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 100%);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

.hidden {
  display: none;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-observe] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22, 1, .36, 1),
              transform 0.7s cubic-bezier(.22, 1, .36, 1);
}

[data-observe].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TAG PILLS
   ============================================================ */
.tag {
  display: inline-block;
  background: rgba(255, 107, 43, 0.08);
  border: 1px solid rgba(255, 107, 43, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-orange);
  margin: 3px;
  white-space: nowrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 107, 43, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(255, 107, 43, 0.45);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
}

.btn-secondary:hover {
  background: rgba(255, 107, 43, 0.08);
}

.btn-outline {
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  display: inline-block;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-outline:hover {
  background: rgba(255, 107, 43, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 0 rgba(255, 107, 43, 0.2);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent-orange);
  text-shadow: 0 0 18px rgba(255, 107, 43, 0.35);
  letter-spacing: 1px;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

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

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

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent-orange);
}

/* --- Mobile Toggle --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--bg-primary);
}

.hero-three {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255, 107, 43, 0.06), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  width: 100%;
  padding: 2rem 1.5rem;
}

.hero-text {
  flex: 0 0 58%;
}

.hero-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.role-ticker {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 1rem 0;
  min-height: 2rem;
}

.typewriter-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent-orange);
}

.cursor {
  display: inline-block;
  color: var(--accent-orange);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-top: 1rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-strip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.social-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 1.2rem;
}

.social-icon:hover {
  color: var(--accent-orange);
  transform: translateY(-2px);
}

#hero-role-canvas {
  width: 320px;
  height: 320px;
  border-radius: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

/* ============================================================
   CAROUSEL (Generic)
   ============================================================ */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.22, 1, .36, 1);
}

.carousel-card {
  min-width: 100%;
  padding: 3rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-align: center;
}

.carousel-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.carousel-card .card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.carousel-card .card-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 107, 43, 0.08);
  border: 1px solid rgba(255, 107, 43, 0.2);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-arrow:hover {
  background: rgba(255, 107, 43, 0.18);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.35;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.carousel-dot.active {
  background: var(--accent-orange);
  opacity: 1;
  transform: scale(1.25);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.stat-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid rgba(255, 107, 43, 0.4);
  box-shadow: 0 0 32px rgba(255, 107, 43, 0.2);
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-inner {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Mini Timeline --- */
.mini-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.mini-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: default;
}

.mini-node::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.mini-node:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.mini-arrow {
  color: rgba(255, 107, 43, 0.4);
  font-size: 1rem;
  padding: 0 4px;
}

/* ============================================================
   SKILLS TABS
   ============================================================ */
.skill-tabs {
  display: flex;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.skill-tabs::-webkit-scrollbar {
  display: none;
}

.skill-tab {
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.skill-tab.active,
.skill-tab:hover {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

.tab-panel {
  display: none;
  animation: fadePanel 0.4s ease;
}

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

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

/* --- Tag Groups --- */
.tag-group {
  margin-bottom: 1.5rem;
}

.tag-group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ============================================================
   SKILLS — ANALYTICS (Canvas)
   ============================================================ */
#analytics-canvas {
  width: 100%;
  max-width: 600px;
  height: 350px;
  display: block;
}

/* ============================================================
   SKILLS — PIPELINE
   ============================================================ */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.pipe-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px 28px;
  text-align: center;
  min-width: 160px;
}

.pipe-box-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  color: var(--accent-orange);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.pipe-connector {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 6px;
}

.pipe-line {
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 1s ease;
}

.pipe-line.drawn {
  width: 48px;
}

.pipe-arrow {
  color: var(--accent-orange);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.5s ease 0.8s;
}

.pipe-arrow.drawn {
  opacity: 1;
}

/* ============================================================
   SKILLS — ML WORKFLOW
   ============================================================ */
.ml-workflow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
}

.ml-stage {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 24px;
  text-align: center;
  width: 100%;
  position: relative;
}

.ml-stage-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.ml-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-orange);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -7px;
  z-index: 2;
}

.ml-connector-line {
  width: 2px;
  height: 0;
  background: var(--accent-orange);
  margin: 0 auto;
  transition: height 0.6s ease;
}

.ml-connector-line.drawn {
  height: 24px;
}

/* ============================================================
   SKILLS — HUB AND SPOKE
   ============================================================ */
.hub-spoke {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 2rem auto;
}

.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
  z-index: 2;
  box-shadow: 0 0 32px rgba(255, 107, 43, 0.35);
}

.spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(.22, 1, .36, 1),
              transform 0.6s cubic-bezier(.22, 1, .36, 1);
  z-index: 1;
}

.spoke.show {
  opacity: 1;
}

.spoke-1.show {
  transform: translate(0, -140px);
}

.spoke-2.show {
  transform: translate(121px, -70px);
}

.spoke-3.show {
  transform: translate(121px, 70px);
}

.spoke-4.show {
  transform: translate(0, 140px);
}

.spoke-5.show {
  transform: translate(-121px, 70px);
}

.spoke-6.show {
  transform: translate(-121px, -70px);
}

/* ============================================================
   SKILLS — DATABASES
   ============================================================ */
.db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.db-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.db-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(255, 107, 43, 0.15);
}

.db-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.db-type {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.db-type.relational {
  background: rgba(255, 107, 43, 0.1);
  color: var(--accent-orange);
}

.db-type.nosql {
  background: rgba(138, 138, 138, 0.15);
  color: var(--accent-gray);
}

.db-type.lakehouse {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.db-use {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   SKILLS — MONITORING
   ============================================================ */
.monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.monitor-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  overflow: hidden;
}

.monitor-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-orange);
}

.monitor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s infinite;
}

.monitor-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--accent-orange);
  margin-bottom: 4px;
}

.monitor-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sparkline-canvas {
  width: 100%;
  height: 40px;
  margin-top: 8px;
  display: block;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.proj-filter {
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
}

.proj-filter.active,
.proj-filter:hover {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
  background: rgba(255, 107, 43, 0.08);
}

.project-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1.5rem;
  padding-bottom: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.project-carousel::-webkit-scrollbar {
  display: none;
}

.project-card {
  min-width: 340px;
  max-width: 420px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 107, 43, 0.15);
}

.project-card.filtered-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  display: none;
}

.project-pattern {
  height: 180px;
  position: relative;
  overflow: hidden;
}

/* --- Pattern: Pipeline --- */
.pattern-pipeline {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 20px,
      rgba(255, 107, 43, 0.08) 20px,
      rgba(255, 107, 43, 0.08) 22px
    ),
    var(--bg-secondary);
}

.pattern-pipeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(255, 107, 43, 0.12) 40px,
    rgba(255, 107, 43, 0.12) 44px
  );
  animation: flowDashes 8s linear infinite;
}

@keyframes flowDashes {
  to {
    transform: translateX(50%);
  }
}

/* --- Pattern: Scatter --- */
.pattern-scatter {
  background:
    radial-gradient(circle 2px, rgba(255, 107, 43, 0.3) 99%, transparent) 0 0 / 24px 24px,
    var(--bg-secondary);
}

/* --- Pattern: Nodes --- */
.pattern-nodes {
  background:
    radial-gradient(circle 3px at 12px 12px, rgba(255, 107, 43, 0.2) 99%, transparent) 0 0 / 36px 36px,
    linear-gradient(60deg, rgba(255, 107, 43, 0.03) 25%, transparent 25%, transparent 75%, rgba(255, 107, 43, 0.03) 75%) 0 0 / 36px 36px,
    var(--bg-secondary);
}

.project-body {
  padding: 1.5rem;
}

.role-pill {
  display: inline-block;
  background: rgba(255, 107, 43, 0.15);
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.project-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.project-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.project-tags {
  margin-bottom: 1rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-impact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}

.impact-pill {
  display: inline-block;
  background: rgba(255, 107, 43, 0.1);
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 6px;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 3rem;
}

.exp-line {
  position: absolute;
  left: 5px;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--accent-orange);
  transition: height 1.2s ease;
}

.exp-line.drawn {
  height: 100%;
}

.exp-dot {
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-orange);
  z-index: 1;
  box-shadow: 0 0 12px rgba(255, 107, 43, 0.3);
}

.exp-entry {
  position: relative;
  padding-bottom: 1rem;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem 2rem;
}

.exp-role-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-orange);
}

.exp-company {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 4px 0;
}

.exp-duration {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
}

.exp-bullets {
  list-style: none;
  padding: 0;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.exp-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
}

.exp-bullets strong {
  color: var(--accent-orange);
}

/* --- Achievement Row --- */
.achievement-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.achievement-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #111;
  border-left: 4px solid var(--accent-orange);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(255, 107, 43, 0.15);
}

.achieve-emoji {
  font-size: 2.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.achievement-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.achieve-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   EDUCATION & CERTS
   ============================================================ */
.certs-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 107, 43, 0.08), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 107, 43, 0.05), transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 107, 43, 0.02) 0px,
      rgba(255, 107, 43, 0.02) 1px,
      transparent 1px,
      transparent 12px
    ),
    #0A0A0A;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}

.edu-degree {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.edu-info {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.edu-cgpa {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.edu-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cert-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  border-bottom: 2px solid var(--accent-orange);
  box-shadow: 0 0 24px rgba(255, 107, 43, 0.2);
}

.cert-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  color: rgba(255, 107, 43, 0.3);
  margin-bottom: 0.5rem;
}

.cert-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cert-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: linear-gradient(180deg, var(--bg-primary), rgba(26, 26, 26, 0.6));
}

.contact-center {
  text-align: center;
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto 2rem auto;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-info-strip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-large {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================================================
   3D AVATAR WIDGET (Real Image)
   ============================================================ */
#avatar-widget {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 110px;
  height: 220px;
  z-index: 999;
  cursor: pointer;
  filter: drop-shadow(0 8px 24px rgba(255, 107, 43, 0.45));
  transition: filter 0.3s ease, transform 0.3s ease;
}

#avatar-widget:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 16px 32px rgba(255, 107, 43, 0.6));
}

#avatar-img {
  width: 110px;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 12px 12px 0 0;
  background: transparent;
  animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.avatar-speech {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: #1E1E1E;
  border: 1px solid rgba(255, 107, 43, 0.3);
  border-radius: 12px 12px 0 12px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.avatar-speech.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.avatar-speech.show {
  opacity: 1;
  transform: translateY(0);
}

#avatar-pulse {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 107, 43, 0.25);
  filter: blur(4px);
  animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scaleX(0.7); }
}

/* ============================================================
   WALKING AGENT
   ============================================================ */
#walking-agent {
  position: fixed;
  bottom: 0;
  left: -160px;
  width: 120px;
  height: 240px;
  z-index: 500;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 8px 20px rgba(255, 107, 43, 0.35));
  transition: transform 0.1s linear;
}

#walking-agent-img {
  width: 120px;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 10px 10px 0 0;
}

#walking-agent-shadow {
  width: 80px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 80%);
  margin: 0 auto;
  border-radius: 50%;
}

.walking-bubble {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: #1E1E1E;
  border: 1px solid rgba(255,107,43,0.3);
  border-radius: 12px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.walking-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #1E1E1E;
}

.walking-bubble.show {
  opacity: 1;
}

/* Walking body bob animation */
@keyframes walkBob {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  25%       { transform: translateY(-3px) rotate(0.5deg); }
  75%       { transform: translateY(2px) rotate(-0.3deg); }
}

#walking-agent.walking #walking-agent-img {
  animation: walkBob 0.5s ease-in-out infinite;
}

#walking-agent.flipped {
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  #walking-agent {
    display: none; /* hide on mobile to avoid clutter */
  }
  #avatar-widget {
    width: 80px;
    height: 160px;
    bottom: 80px;
    right: 12px;
  }
  #avatar-img {
    width: 80px;
    height: 160px;
  }
}

/* ============================================================
   CHATBOT PANEL
   ============================================================ */

/* --- Chat Toggle Button --- */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(255, 107, 43, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: chat-pulse 3s infinite;
  cursor: pointer;
  border: none;
  font-size: 1.4rem;
}

.chat-toggle:hover {
  transform: scale(1.08);
}

@keyframes chat-pulse {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(255, 107, 43, 0.35);
  }
  50% {
    box-shadow: 0 4px 32px rgba(255, 107, 43, 0.55), 0 0 48px rgba(255, 107, 43, 0.2);
  }
}

.chat-icon-close {
  display: none;
}

.chat-toggle.open .chat-icon-open {
  display: none;
}

.chat-toggle.open .chat-icon-close {
  display: block;
}

.chat-toggle.open {
  animation: none;
}

/* --- Chat Panel --- */
.chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  background: #141414;
  border: 1px solid rgba(255, 107, 43, 0.2);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  z-index: 10000;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 107, 43, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

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

/* --- Chat Header --- */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1E1E1E, #161616);
  border-bottom: 1px solid rgba(255, 107, 43, 0.15);
}

.chat-header-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.chat-header-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-header-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.chat-close {
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  background: none;
  border: none;
}

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

/* --- Chat Messages --- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 43, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

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

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 43, 0.3);
  border-radius: 3px;
}

.chat-msg {
  display: flex;
  animation: msgIn 0.35s ease;
}

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

.chat-msg.bot {
  justify-content: flex-start;
}

.chat-msg.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.chat-msg.bot .chat-bubble {
  background: rgba(255, 107, 43, 0.08);
  border: 1px solid rgba(255, 107, 43, 0.15);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
  background: var(--accent-orange);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* --- Typing Indicator --- */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  align-items: center;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-orange);
  animation: typeDot 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

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

/* --- Chat Suggestions --- */
.chat-suggestions {
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.suggestion-chip {
  background: rgba(255, 107, 43, 0.1);
  border: 1px solid rgba(255, 107, 43, 0.25);
  border-radius: 20px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-orange);
  cursor: pointer;
  transition: background 0.25s ease;
}

.suggestion-chip:hover {
  background: rgba(255, 107, 43, 0.2);
}

/* --- Chat Input Area --- */
.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 107, 43, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 107, 43, 0.15);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s ease;
}

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

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

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-send:hover {
  transform: scale(1.05);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   RESPONSIVE — max-width: 768px
   ============================================================ */
@media (max-width: 768px) {
  /* --- Navbar Mobile --- */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(15, 15, 15, 0.96);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }

  /* --- Hero Mobile --- */
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    flex: none;
    width: 100%;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  #hero-role-canvas {
    width: 240px;
    height: 240px;
  }

  .contact-strip {
    text-align: center;
  }

  .social-row {
    justify-content: center;
  }

  /* --- About Mobile --- */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-right {
    order: -1;
  }

  .stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  /* --- Section Headings Mobile --- */
  .section-heading {
    font-size: 2rem;
  }

  /* --- Achievement Row Mobile --- */
  .achievement-row {
    grid-template-columns: 1fr;
  }

  /* --- Cert Row Mobile --- */
  .cert-row {
    grid-template-columns: 1fr;
  }

  /* --- Contact Mobile --- */
  .contact-heading {
    font-size: 2rem;
  }

  /* --- Pipeline Mobile --- */
  .pipeline {
    flex-direction: column;
    align-items: center;
  }

  .pipe-connector {
    transform: rotate(90deg);
    margin: 6px 0;
  }

  /* --- Hub Spoke Mobile --- */
  .hub-spoke {
    transform: scale(0.75);
    transform-origin: center center;
  }

  /* --- Projects Mobile --- */
  .project-carousel {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .project-card {
    min-width: 100%;
    max-width: 100%;
  }

  /* --- Chat Panel Mobile --- */
  .chat-panel {
    width: calc(100vw - 1.5rem);
    max-width: 380px;
    right: 0.75rem;
    bottom: 80px;
    max-height: 70vh;
  }

  /* --- Avatar Widget Mobile --- */
  #avatar-widget {
    bottom: 80px;
    right: 12px;
    width: 80px;
    height: 80px;
  }

  #avatar-canvas {
    width: 80px;
    height: 80px;
  }

  .avatar-speech {
    bottom: 95px;
  }

  /* --- Carousel Mobile --- */
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .carousel-card {
    padding: 2rem 1.5rem;
  }

  .carousel-card .card-title {
    font-size: 1.5rem;
  }

  /* --- Education Card Mobile --- */
  .edu-card {
    padding: 1.5rem;
  }

  /* --- Experience Card Mobile --- */
  .exp-card {
    padding: 1.25rem 1.5rem;
  }

  /* --- DB Grid Mobile --- */
  .db-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* --- Monitor Grid Mobile --- */
  .monitor-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — max-width: 480px (Extra Small)
   ============================================================ */
@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

  .typewriter-text {
    font-size: 1.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-heading {
    font-size: 1.7rem;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

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

  .hub-spoke {
    transform: scale(0.6);
  }

  .carousel-arrow {
    display: none;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.88rem;
  }

  .chat-toggle {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  .chat-panel {
    right: 0.5rem;
    bottom: 72px;
    width: calc(100vw - 1rem);
    max-height: 65vh;
  }
}

/* ============================================================
   PATCH v3.0 — All additional styles
   ============================================================ */

/* === FIX 1: Carousel icon color — force all icons orange === */
.card-icon {
  background: rgba(255, 107, 43, 0.12) !important;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  font-size: 2rem;
}
.card-icon svg {
  fill: var(--accent-orange) !important;
  stroke: var(--accent-orange) !important;
}

/* === FIX 2: Hero canvas fade transition === */
#hero-role-canvas {
  transition: opacity 0.3s ease;
}

/* === FIX 3: About photo real image === */
.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* === FIX 3: New mini-timeline node styles === */
.mini-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.mini-timeline-node {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
  transition: transform 0.2s, border-color 0.2s;
  cursor: default;
}
.mini-timeline-node:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 20px rgba(255,107,43,0.15);
}
.mini-timeline-node .tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text-primary);
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
}
.mini-timeline-node:hover .tooltip {
  display: block;
}
.mini-timeline-connector {
  width: 32px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--accent-orange) 0 4px,
    transparent 4px 8px
  );
  position: relative;
  flex-shrink: 0;
}
.mini-timeline-connector::after {
  content: '\25b8';
  color: var(--accent-orange);
  position: absolute;
  right: -7px;
  top: -9px;
  font-size: 12px;
}

/* === FIX 4: Skill pill animations === */
.tag-pill {
  display: inline-block;
  background: rgba(255,107,43,0.08);
  border: 1px solid rgba(255,107,43,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-orange);
  transition: all 0.2s;
  margin: 3px;
}
.tag-pill:hover {
  background: rgba(255,107,43,0.18);
  transform: translateY(-2px);
}
.tag-category {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}
@keyframes pillFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pill-fade-in {
  animation: pillFadeIn 0.4s ease forwards;
  opacity: 0;
}

/* === FIX 5: Analytics bar chart rows === */
.bar-chart-wrap {
  padding: 1rem 0;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.bar-label {
  width: 110px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}
.bar-track {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, #FF6B2B, #FF9A5C);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-value {
  width: 36px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-orange);
  flex-shrink: 0;
}

/* === FIX 5: Pipeline flowing dashes === */
.pipe-connector-flow {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--accent-orange) 0 6px,
    transparent 6px 12px
  );
  background-size: 24px 100%;
  animation: pipelineFlow 1.5s linear infinite;
  position: relative;
}
.pipe-connector-flow::after {
  content: '\25b8';
  position: absolute;
  right: -6px;
  top: -8px;
  color: var(--accent-orange);
  font-size: 12px;
}
@keyframes pipelineFlow {
  from { background-position: 0 0; }
  to   { background-position: -24px 0; }
}

/* === FIX 5: DB cylinder SVG icon === */
.db-cylinder-icon {
  display: block;
  margin: 0 auto 10px auto;
}

/* === FIX 5: Monitor panel improvements === */
.monitor-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-orange);
  padding-bottom: 6px;
}
.monitor-metric {
  margin: 10px 0 4px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.metric-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--accent-orange);
  line-height: 1;
}
.metric-unit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* === FIX 6: Project carousel wrapper and nav buttons === */
.project-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.project-carousel-wrapper .project-carousel {
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-orange) transparent;
}
.project-carousel-wrapper .project-carousel::-webkit-scrollbar {
  height: 4px;
}
.project-carousel-wrapper .project-carousel::-webkit-scrollbar-track {
  background: transparent;
}
.project-carousel-wrapper .project-carousel::-webkit-scrollbar-thumb {
  background: var(--accent-orange);
  border-radius: 2px;
}
.proj-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 107, 43, 0.1);
  border: 1px solid rgba(255, 107, 43, 0.25);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  z-index: 2;
}
.proj-nav-btn:hover {
  background: rgba(255, 107, 43, 0.22);
  transform: scale(1.05);
}
.project-card {
  width: min(420px, 85vw);
  min-width: unset;
}

/* === FIX 7: Achievement grid (fix missing class names in HTML) === */
.achievement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .achievement-grid {
    grid-template-columns: 1fr;
  }
  .project-carousel-wrapper .proj-nav-btn {
    display: none;
  }
  .mini-timeline {
    gap: 4px;
  }
  .mini-timeline-connector {
    display: none;
  }
}
