@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM VARIABLES --- */
:root {
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colors */
  --bg-main: #070a13;
  --bg-card: rgba(16, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 60, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --primary: #00f2fe; /* Neon Cyan */
  --primary-glow: rgba(0, 242, 254, 0.25);
  --success: #00e676; /* Neon Green */
  --success-glow: rgba(0, 230, 118, 0.2);
  --warning: #ffb300; /* Cyber Amber */
  --warning-glow: rgba(255, 179, 0, 0.2);
  --sports: #ff5722; /* Neon Orange */
  --sports-glow: rgba(255, 87, 34, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-shadow: 0 0 15px var(--primary-glow);
}

/* --- RESET & BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 87, 34, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 230, 118, 0.02) 0%, transparent 50%),
    var(--bg-main);
  background-attachment: fixed;
  line-height: 1.6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- REUSABLE COMPONENTS & UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.05);
}

.neon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.neon-btn.primary {
  background: var(--primary);
  color: #020617;
  border: none;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.neon-btn.primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.neon-btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.neon-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--primary-glow);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 9999px;
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1.1); opacity: 0.5; box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* --- HEADER / HERO SECTION --- */
header {
  padding: 3rem 0 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}

.profile-container {
  position: relative;
  width: 140px;
  height: 140px;
}

.profile-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, var(--primary), var(--success));
  border-radius: 50%;
  z-index: 1;
  animation: rotate-glow 8s linear infinite;
}

@keyframes rotate-glow {
  100% { transform: rotate(360deg); }
}

.profile-pic {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-main);
  z-index: 2;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-subtitle .dot-separator {
  color: var(--border-color);
}

.hero-subtitle .arrow {
  color: var(--primary);
  font-weight: 700;
  padding: 0 0.15rem;
}

.hero-bio {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- STATS BAND --- */
.stats-band {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 1.5rem;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- PIPELINE SECTION --- */
.pipeline-section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 0.5rem;
}

/* CI/CD Pipeline Container */
.pipeline-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
  z-index: 2;
}

/* Background connector line */
.pipeline-line-bg {
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: -1;
}

.pipeline-line-progress {
  position: absolute;
  top: 40px;
  left: 10%;
  width: 0%; /* Dynamic width controlled by JS */
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--success));
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  z-index: -1;
  transition: width 0.1s linear;
}

/* Pipeline Node Card */
.pipeline-node {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.pipeline-node:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.pipeline-node.active {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.03);
  box-shadow: 0 0 20px var(--primary-glow);
}

.pipeline-node.success {
  border-color: var(--success);
}

.pipeline-node.running {
  border-color: var(--warning);
  animation: pulse-warning 1.5s infinite alternate;
}

@keyframes pulse-warning {
  0% { box-shadow: 0 0 5px var(--warning-glow); }
  100% { box-shadow: 0 0 20px rgba(255, 179, 0, 0.4); }
}

.node-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: var(--transition);
}

.pipeline-node.active .node-badge {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.pipeline-node.success .node-badge {
  background: rgba(0, 230, 118, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.pipeline-node.running .node-badge {
  background: rgba(255, 179, 0, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

.node-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.node-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pipeline-node.active .node-status {
  color: var(--primary);
}

.pipeline-node.success .node-status {
  color: var(--success);
}

.pipeline-node.running .node-status {
  color: var(--warning);
}

/* --- PIPELINE DETAIL WORKSPACE --- */
.pipeline-workspace {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  min-height: 400px;
}

.workspace-content {
  display: flex;
  flex-direction: column;
}

.pipeline-detail-tab {
  display: none;
  animation: fade-in-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pipeline-detail-tab.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.tab-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tab-header h3 span {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: normal;
}

.tab-header p {
  color: var(--text-secondary);
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(0, 242, 254, 0.05);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

.skill-tag i {
  color: var(--primary);
}

.highlight-box {
  background: rgba(255, 255, 255, 0.01);
  border-left: 3px solid var(--primary);
  padding: 1.25rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.highlight-box strong {
  color: var(--text-primary);
}

/* Project Cards Inside Workspace */
.project-card {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
  transition: var(--transition);
}

.project-card:hover {
  border-color: rgba(0, 230, 118, 0.25);
  background: rgba(0, 230, 118, 0.01);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.project-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.project-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.project-link:hover {
  text-decoration: underline;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tech-span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* --- THE TERMINAL / CONSOLE LOG SYSTEM --- */
.terminal-container {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #020617;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
}

.terminal-header {
  background: #0b0f19;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-controls {
  display: flex;
  gap: 0.4rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a8a29e;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 340px;
}

.terminal-log-line {
  line-height: 1.4;
  word-break: break-all;
}

.terminal-log-line.info {
  color: #38bdf8;
}

.terminal-log-line.success {
  color: var(--success);
}

.terminal-log-line.warn {
  color: var(--warning);
}

.terminal-log-line.cmd {
  color: var(--text-primary);
  font-weight: bold;
}

.terminal-log-line.cmd::before {
  content: "yaroslav@devops:~$ ";
  color: var(--primary);
}

.cursor-blink {
  display: inline-block;
  width: 6px;
  height: 15px;
  background: var(--text-primary);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  from, to { background: transparent }
  50% { background: var(--primary) }
}

/* --- THE "CORE ENGINE" / SPORTS & CHESS SECTION --- */
.core-engine-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(to bottom, transparent, rgba(255, 87, 34, 0.015), transparent);
}

.engine-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.engine-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.engine-card {
  display: flex;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  transition: var(--transition);
}

.engine-card:hover {
  border-color: rgba(255, 87, 34, 0.25);
  background: rgba(255, 87, 34, 0.01);
  transform: translateX(5px);
}

.engine-card.chess:hover {
  border-color: rgba(0, 242, 254, 0.25);
  background: rgba(0, 242, 254, 0.01);
}

.engine-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid rgba(255, 87, 34, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--sports);
  flex-shrink: 0;
}

.engine-card.chess .engine-icon {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--primary);
}

.engine-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.engine-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Custom Video Container */
.video-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #020617;
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 10, 19, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3;
}

.video-overlay:hover {
  background: rgba(7, 10, 19, 0.3);
}

.video-overlay.playing {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sports);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
  transition: var(--transition);
}

.video-play-btn i {
  margin-left: 4px;
}

.video-overlay:hover .video-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 87, 34, 0.6);
}

.video-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- WORK EXPERIENCE & HISTORY --- */
.experience-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
}

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

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

.timeline-dot-indicator {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--text-muted);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item.active .timeline-dot-indicator {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--primary-glow);
  background: rgba(255, 255, 255, 0.015);
}

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

.job-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.company-name {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

.job-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.timeline-bullets {
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-bullets li {
  margin-bottom: 0.5rem;
}

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

/* --- CONTACT & FOOTER --- */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  background: #030712;
  text-align: center;
}

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

.social-grid {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 0 15px var(--primary-glow);
}

.social-link.phone:hover {
  background: var(--success-glow);
  border-color: var(--success);
  color: var(--success);
  box-shadow: 0 0 15px var(--success-glow);
}

.footer-info {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- RESPONSIVE STYLING --- */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .profile-container {
    margin: 0 auto;
  }
  
  .hero-subtitle {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .pipeline-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    margin-bottom: 2rem;
  }
  
  .pipeline-line-bg, .pipeline-line-progress {
    display: block; /* Make horizontal progress line visible on mobile */
    top: 26px;
    left: 8%;
    right: 8%;
    height: 2px;
  }
  
  .pipeline-node {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
    padding: 0.6rem 0.2rem;
    border-radius: 8px;
  }
  
  .node-badge {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .node-title {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
    letter-spacing: 0;
  }
  
  .node-status {
    display: none; /* Hide status text on mobile to avoid vertical overflow */
  }
  
  .pipeline-workspace {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
  }

  .engine-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .section-header {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
  
  .tab-header h3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 1.85rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .glass-card {
    padding: 1.25rem 1rem;
  }
  
  .skills-list {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
  }
  
  .skill-tag {
    padding: 0.5rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }

  .timeline {
    padding-left: 1.25rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .job-date {
    margin-top: 0.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 0.5rem;
    padding: 2rem 1.5rem;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-value {
    font-size: 2rem;
  }
}
