:root {
  --bg-color: #0f172a;
  --text-color: #f1f5f9;
  --primary-color: #38bdf8;
  --secondary-color: #8b5cf6;
  --accent-color: #22d3ee;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-main: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  transition: all 0.5s ease;
}

body.system-upgraded {
  --primary-color: #00ff9d; /* Neon Green */
  --accent-color: #00ffcc;
  --secondary-color: #00d2ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--bg-color);
}

.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.1) 0%,
    rgba(139, 92, 246, 0.05) 50%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 120px;
}

.hero-content {
  text-align: center;
}

.greeting {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.name {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.name span {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role {
  font-size: 1.5rem;
  color: #94a3b8;
  margin-bottom: 3rem;
}

/* Terminal Styles */
.terminal-container {
  max-width: 700px;
  margin: 0 auto 3rem;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
  text-align: left;
}

.terminal-header {
  background: #334155;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

.terminal-title {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-left: 10px;
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  min-height: 250px;
  background: rgba(15, 23, 42, 0.95);
}

.line {
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.prompt {
  color: #4ade80;
}

.command {
  color: #f8fafc;
}

.response {
  color: #94a3b8;
  margin-bottom: 15px;
  padding-left: 0;
  font-size: 0.95rem;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Sections General */
section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 0 auto;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--glass-border);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--primary-color);
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 1rem;
  cursor: pointer;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: var(--glass-bg);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Infrastructure Status Pulse */
.infra-status-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.2rem;
  max-width: 320px;
  margin: 2rem auto 0;
  box-shadow: var(--card-shadow);
  text-align: left;
  transition: transform 0.3s ease;
}

.infra-status-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #f8fafc;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #27c93f;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-item .label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metric-item .value {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--primary-color);
  font-weight: 600;
}

/* Interactive Skill Constellation */
.skills-visual {
  position: relative;
  width: 100%;
  height: 700px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

/* Three.js Skills Globe */
.skills-visual {
  position: relative;
  width: 100%;
  height: 500px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

#skills-globe-container {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#skills-globe-container:active {
  cursor: grabbing;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-category {
  background: var(--glass-bg);
  padding: 35px;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.skill-category:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
}

.skill-category h3 {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  margin-bottom: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category li::before {
  content: "▹";
  color: var(--primary-color);
}

/* Experience Section (Circuit Timeline) */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--glass-border) 0%, var(--primary-color) 50%, var(--glass-border) 100%);
  opacity: 0.3;
}

/* The Traveling Signal */
.timeline-signal {
  position: absolute;
  left: -2px;
  top: 0;
  width: 6px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
  filter: blur(2px);
  box-shadow: 0 0 15px var(--primary-color);
  z-index: 2;
  border-radius: 10px;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

.timeline-item {
  padding-left: 45px;
  margin-bottom: 60px;
  position: relative;
  transition: all 0.4s ease;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: var(--bg-color);
  border: 2px solid var(--glass-border);
  border-radius: 4px; /* Square electronic look */
  transform: rotate(45deg);
  z-index: 3;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-color);
  transform: rotate(225deg);
}

.timeline-item.active .timeline-dot {
  border-color: var(--primary-color);
  background: var(--primary-color);
  box-shadow: 0 0 20px var(--primary-color);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-family: var(--font-mono);
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.timeline-content h4 {
  color: #94a3b8;
  margin-bottom: 15px;
  font-weight: 400;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--glass-bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
}

.project-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.project-card p {
  color: #94a3b8;
  margin-bottom: 25px;
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-links a {
  text-decoration: none;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: color 0.3s;
}

.contact-links a:hover {
  color: var(--primary-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: white;
  font-family: var(--font-main);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

footer p {
  color: #64748b;
  font-size: 0.9rem;
}

footer i {
  color: #ef4444;
}

/* Responsive */
@media (max-width: 968px) {
  .name {
    font-size: 3rem;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .name {
    font-size: 2.5rem;
  }

  .terminal-container {
    width: 100%;
    margin-bottom: 2rem;
  }

  .terminal-body {
    padding: 15px;
    font-size: 0.85rem;
  }

  .line {
    flex-wrap: wrap;
    gap: 4px;
  }

  .tag-sphere-container {
    height: 300px;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Architecture Sandbox Section */
.sandbox-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

#infra-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.node-bg {
  stroke: var(--glass-border);
  stroke-width: 2;
  fill: rgba(30, 41, 59, 0.7);
  transition: all 0.3s ease;
}

/* Node Colors */
.node-bg.blue { fill: rgba(37, 99, 235, 0.3); stroke: #2563eb; }
.node-bg.orange { fill: rgba(249, 115, 22, 0.3); stroke: #f97316; }
.node-bg.purple { fill: rgba(139, 92, 246, 0.3); stroke: #8b5cf6; }

.node:hover .node-bg {
  filter: url(#glow);
  stroke-width: 3;
}

.node.internet circle {
  fill: rgba(34, 211, 238, 0.2);
  stroke: var(--accent-color);
}

.node-label {
  fill: var(--text-color);
  font-size: 14px;
  font-family: var(--font-mono);
  text-anchor: middle;
  font-weight: 500;
}

.conn-line {
  stroke: var(--glass-border);
  stroke-width: 2;
  stroke-dasharray: 4;
  fill: none;
  transition: stroke 0.3s ease;
}

.node:hover ~ .conn-line, 
.conn-line:hover {
  stroke: var(--primary-color);
  stroke-dasharray: 0;
}

.clickable {
  cursor: pointer;
}

/* Log Window */
.log-window {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 250px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}

.log-window.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.log-header {
  background: rgba(30, 41, 59, 1);
  padding: 8px 15px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-color);
}

.close-logs {
  cursor: pointer;
  font-size: 20px;
  color: #94a3b8;
}

.close-logs:hover {
  color: #ff5f56;
}

.log-body {
  padding: 15px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #d1d5db;
  line-height: 1.6;
}

.log-entry { margin-bottom: 5px; }
.log-entry.info { color: #38bdf8; }
.log-entry.success { color: #00ff9d; }

@media (max-width: 768px) {
  .log-window {
    width: 280px;
    height: 200px;
    bottom: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 2rem;
  }

  .greeting {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .role {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .cursor-glow {
    width: 300px;
    height: 300px;
  }
}

/* System Overdrive (Sudo Upgrade) */
body.system-upgraded::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 9999;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  opacity: 0.3;
}

body.system-upgraded .infra-status-card {
  border-color: #00ff9d;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
}

/* Hack Attack Mode */
body.attack-mode {
  animation: extreme-glitch 0.1s infinite;
  filter: invert(1) hue-rotate(180deg);
}

body.attack-mode .infra-status-card {
  background: #ff0000;
  color: #fff;
}

body.attack-mode .status-text {
  content: "SYSTEM BREACH";
}

@keyframes extreme-glitch {
  0% { transform: translate(2px, 2px); }
  25% { transform: translate(-2px, -2px); }
  50% { transform: translate(2px, -2px); }
  75% { transform: translate(-2px, 2px); }
  100% { transform: translate(0, 0); }
}

#attack-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 0, 0, 0.2);
  color: #ff0000;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  pointer-events: none;
  text-align: center;
}

body.attack-mode #attack-overlay {
  display: flex;
}

/* XP Style Hacked Popups */
.xp-popup {
    position: fixed;
    width: 300px;
    background: #ece9d8;
    border: 3px solid #0055e5;
    border-radius: 4px 4px 0 0;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
    z-index: 10001;
    font-family: 'Tahoma', sans-serif;
    color: #000;
    pointer-events: auto;
}

.xp-header {
    background: linear-gradient(to bottom, #0058e6 0%, #0055e5 10%, #0144dc 50%, #0055e5 90%, #0058e6 100%);
    padding: 3px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.xp-close {
    background: #e61919;
    border: 1px solid white;
    color: white;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    cursor: pointer;
}

.xp-body {
    padding: 20px;
    font-size: 13px;
    text-align: center;
}

.glitch-window {
    animation: window-glitch 0.2s infinite;
}

@keyframes window-glitch {
    0% { transform: translate(1px, 1px); }
    50% { transform: translate(-1px, -1px); opacity: 0.8; }
    100% { transform: translate(0, 0); }
}

/* Deploy Button in Nav */
.deploy-btn {
  background: var(--primary-color);
  color: #0f172a;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 800;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.deploy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  background: #fff;
}

/* Pipeline Overlay */
.pipeline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10005;
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
}

.pipeline-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.1);
}

.pipeline-dashboard {
  width: 600px;
  max-width: 90%;
  background: #1e293b;
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 15px;
}

.pipeline-status {
  padding: 5px 12px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--font-mono);
  border: 1px solid var(--primary-color);
}

.p-step {
  margin-bottom: 25px;
  position: relative;
}

.p-step i {
  color: #64748b;
  margin-right: 15px;
  width: 20px;
}

.p-step span {
  font-family: var(--font-main);
  font-weight: 600;
  color: #94a3b8;
}

.p-progress {
  height: 4px;
  background: rgba(255,255,255,0.05);
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.p-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  transition: width 0.1s linear;
}

.p-step.active i { color: var(--primary-color); }
.p-step.active span { color: #fff; }
.p-step.completed i { color: #00ff9d; }
.p-step.completed .p-progress::after { background: #00ff9d; width: 100% !important; }

.pipeline-logs {
  background: #0f172a;
  border-radius: 10px;
  padding: 15px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
  height: 100px;
  overflow-y: auto;
}

/* Rocket Animation */
.rocket-container {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10006;
  width: 100px;
  height: 150px;
  transition: bottom 2s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.rocket-container.launch {
  bottom: 120vh;
}

.rocket {
  font-size: 80px;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.exhaust {
  width: 30px;
  height: 50px;
  background: linear-gradient(to bottom, #ff9d00, transparent);
  margin-top: -10px;
  border-radius: 50% / 20%;
  filter: blur(5px);
  animation: flicker 0.1s infinite;
  display: none;
}

.launch .exhaust { display: block; }

@keyframes flicker {
  0% { opacity: 0.8; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.2); }
  100% { opacity: 0.8; transform: scaleX(1); }
}

@media (max-width: 768px) {
  .deploy-control-li {
    margin-top: 10px;
  }
}/* Rocket Launch Impacts */
.shake {
  animation: rumble 0.1s infinite;
}

@keyframes rumble {
  0% { transform: translate(0,0); }
  25% { transform: translate(2px, 2px); }
  50% { transform: translate(-2px, -2px); }
  75% { transform: translate(2px, -2px); }
  100% { transform: translate(-2px, 2px); }
}

.launch-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 10008;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.launch-flash.active {
  opacity: 0.8;
  transition: opacity 0.1s ease;
}

/* Site Version Badge */
.site-version {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #64748b;
  background: rgba(15, 23, 42, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  z-index: 1000;
  letter-spacing: 1px;
}

.rocket i {
  filter: drop-shadow(0 0 15px var(--primary-color));
}

/* Security Auditor Styles */
.auditor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10009;
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}

.auditor-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.auditor-window {
  width: 500px;
  background: #0f172a;
  border: 1px solid #22d3ee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.2);
}

.auditor-header {
  background: #1e293b;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  color: #22d3ee;
  font-size: 14px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.close-auditor {
  cursor: pointer;
  font-size: 20px;
  opacity: 0.7;
}

.close-auditor:hover { opacity: 1; color: #ff5f56; }

.auditor-body {
  padding: 25px;
}

.scan-status {
  position: relative;
  height: 50px;
  background: rgba(34, 211, 238, 0.05);
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
  animation: scan-move 2s infinite linear;
}

@keyframes scan-move {
  0% { left: -100%; }
  100% { left: 100%; }
}

.scan-target {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #22d3ee;
  z-index: 1;
  letter-spacing: 2px;
}

.audit-results {
  height: 200px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 15px;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.05);
}

.audit-item {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.audit-item .status { font-weight: bold; }
.audit-item .status.secure { color: #00ff9d; }
.audit-item .status.warn { color: #fbbf24; }

.audit-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.security-score {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

#score-val { color: #22d3ee; }

.audit-status {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(34, 211, 238, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Environment Switcher Themes */

/* DEV MODE: Blueprint / Wireframe */
body.dev-mode {
  background-image: 
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  --primary-color: #38bdf8;
  --accent-color: #22d3ee;
}

body.dev-mode .section-header h2 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 4px;
}

body.dev-mode * {
  border-radius: 0 !important; /* Raw wireframe look */
}

body.dev-mode .glass-card, 
body.dev-mode .sandbox-container {
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed var(--primary-color);
}

/* PROD MODE: Premium / Gold */
body.prod-mode {
  --primary-color: #fbbf24; /* Gold */
  --accent-color: #f59e0b;
  background: #000;
}

body.prod-mode .nav-container {
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

body.prod-mode .logo span {
  color: #fbbf24;
}

body.prod-mode .glass-card {
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 20px rgba(251, 191, 36, 0.05);
}

body.prod-mode .btn-primary {
  background: #fbbf24;
  color: #000;
}

body.prod-mode .btn-secondary {
  border-color: #fbbf24;
  color: #fbbf24;
}

body.prod-mode .infra-status-card {
  border-color: #fbbf24;
}

body.prod-mode .pulse-dot {
  background-color: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
}

/* Transition for theme switching */
body {
  transition: background 0.5s ease, color 0.5s ease;
}
