/* Import Premium Modern Typography */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Core Tokens & Dynamic Design Variables */
:root {
  /* Common System Settings */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: rgba(0, 0, 0, 0.4);
}

/* DEVELOPER LENS: Deep dark, cyan, violet */
body.dev-mode {
  --bg-primary: #080b11;
  --bg-secondary: rgba(13, 20, 32, 0.7);
  --bg-tertiary: #131b2e;
  --bg-terminal: #05070a;
  
  --accent-primary: #00f2fe;
  --accent-secondary: #c259ff;
  --accent-rgb: 0, 242, 254;
  --accent-secondary-rgb: 194, 89, 255;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #4b5563;
  
  --glow-color: rgba(0, 242, 254, 0.15);
  --grid-line-color: rgba(0, 242, 254, 0.03);
}

/* OPERATIONS LENS: Sleek slate, amber gold, emerald green */
body.ops-mode {
  --bg-primary: #0f172a;
  --bg-secondary: rgba(30, 41, 59, 0.7);
  --bg-tertiary: #1e293b;
  --bg-terminal: #090d16;
  
  --accent-primary: #f59e0b;
  --accent-secondary: #10b981;
  --accent-rgb: 245, 158, 11;
  --accent-secondary-rgb: 16, 185, 129;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --glow-color: rgba(245, 158, 11, 0.15);
  --grid-line-color: rgba(245, 158, 11, 0.03);
}

/* CSS RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition: var(--transition-smooth);
}

/* DYNAMIC METROPOLIS GRID BACKGROUND */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition-smooth);
}

.grid-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, transparent 20%, var(--bg-primary) 80%);
  transition: var(--transition-smooth);
}

/* SCROLLBAR CUSTOMIZATION */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
  transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
  transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* GLASSMORPHISM UTILITY CARD */
.glass-card {
  background: var(--bg-secondary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 12px 40px var(--glow-color);
  transform: translateY(-4px);
}

/* GLOW ACCENT ELEMENT */
.glow-accent {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

/* LAYOUT CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* PREMIUM NAVIGATION BAR */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(var(--bg-primary), 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span.logo-highlight {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-smooth);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  transition: var(--transition-fast);
}

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

/* DUAL LENS TOGGLE CONTROLLER */
.lens-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 6px 12px;
  border-radius: 50px;
  position: relative;
}

.lens-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  user-select: none;
  transition: var(--transition-fast);
}

.lens-label.active {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

.toggle-btn {
  width: 50px;
  height: 26px;
  background: var(--bg-tertiary);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.toggle-circle {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

body.ops-mode .toggle-circle {
  transform: translateX(23px);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent-primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  width: fit-content;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-title span {
  display: block;
}

.hero-title .name {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .title-mode {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-smooth);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #000000;
  color: var(--bg-primary); /* Blend with dark bg */
  color: #05070a;
  border: none;
  box-shadow: 0 4px 20px var(--glow-color);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* INTERACTIVE PATEL TERMINAL */
.terminal-wrapper {
  perspective: 1000px;
}

.terminal-box {
  width: 100%;
  height: 400px;
  background: var(--bg-terminal);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.terminal-box:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: 0 25px 60px rgba(var(--accent-rgb), 0.1);
}

.terminal-header {
  height: 36px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  justify-content: space-between;
  user-select: none;
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.t-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.t-btn.red { background: #ff5f56; }
.t-btn.yellow { background: #ffbd2e; }
.t-btn.green { background: #27c93f; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.terminal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #10b981; /* Default retro green */
  color: var(--accent-primary);
  transition: var(--transition-smooth);
}

.terminal-log-line {
  word-break: break-all;
  white-space: pre-wrap;
}

.terminal-system-text {
  color: var(--text-secondary);
}

.terminal-prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-prompt-sym {
  color: var(--accent-secondary);
  font-weight: bold;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  caret-color: var(--accent-primary);
}

.terminal-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.terminal-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.terminal-chip:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* GENERAL SECTIONS */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent-primary);
  transition: var(--transition-smooth);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 580px;
  margin-top: 8px;
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SKILLS MATRIX */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skills-category {
  padding: 2.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.skills-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skills-category-icon {
  width: 44px;
  height: 44px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.skills-category-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-name {
  color: var(--text-primary);
}

.skill-pct {
  color: var(--accent-primary);
  font-weight: bold;
  transition: var(--transition-smooth);
}

.skill-bar-outer {
  height: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-inner {
  height: 100%;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
  width: 0; /* Animated dynamically */
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* PORTFOLIO TIMELINE (EXPERIENCE) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--glass-border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 50px 40px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  z-index: 10;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px var(--glow-color);
}

.timeline-item.left .timeline-dot {
  right: -10px;
}

.timeline-item.right .timeline-dot {
  left: -10px;
}

.timeline-content {
  padding: 2rem;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  transition: var(--transition-smooth);
}

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

.timeline-org {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* PROJECTS SECTION */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  height: 480px;
  display: flex;
  flex-direction: column;
}

.project-preview {
  height: 180px;
  position: relative;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-preview-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  opacity: 0.3;
  transition: var(--transition-smooth);
}

.project-card:hover .project-preview-icon {
  opacity: 0.8;
  transform: scale(1.1);
}

.project-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.project-content {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.project-footer {
  border-top: 1px solid var(--glass-border);
  padding: 1rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
}

.project-link {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.project-link:hover {
  color: var(--accent-primary);
}

/* DYNAMIC METRIC GAUGES IN OPERATIONS LENS */
.project-metrics {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  flex: 1;
}

body.ops-mode .project-metrics {
  display: flex;
}

body.ops-mode .project-desc-standard {
  display: none;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.metric-lbl {
  color: var(--text-secondary);
}

.metric-val {
  font-weight: bold;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  transition: var(--transition-smooth);
}

/* CONTACT SECTION */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.3rem;
  transition: var(--transition-smooth);
}

.contact-details h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-details p,
.contact-details a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
  transition: var(--transition-fast);
}

.contact-details a:hover {
  color: var(--accent-primary);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* CONTACT FORM */
.contact-form {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.1);
  background: rgba(0, 0, 0, 0.25);
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

/* FORM SUBMIT NOTIFICATION SYSTEM */
.form-status {
  display: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

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

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-copy span {
  color: var(--accent-primary);
  transition: var(--transition-smooth);
}

/* INTERSECTION OBSERVER ANIMATIONS (SCROLL-REVEAL) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  
  .hero-tag {
    margin: 0 auto;
  }
  
  .hero-desc {
    margin: 0 auto 1.5rem auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .terminal-box {
    max-width: 580px;
    margin: 0 auto;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .timeline::before {
    left: 40px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 0;
    text-align: left !important;
  }
  
  .timeline-item.left {
    left: 0;
  }
  
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-dot {
    left: 30px !important;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none; /* Can toggle in JS or keep simple for maximum desktop/mobile layout */
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* ========================================================
   PROJECT DETAIL PAGES STYLING
   ======================================================== */
.project-detail-hero {
  padding-top: 140px;
  padding-bottom: 50px;
  position: relative;
}

.project-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.project-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.project-content-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.project-content-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-content-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-content-section p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wow-card {
  padding: 2rem;
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.04);
}

body.dev-mode .wow-card {
  border-color: rgba(194, 89, 255, 0.25);
  box-shadow: 0 8px 32px rgba(194, 89, 255, 0.04);
}

.wow-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wow-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.project-metrics-box {
  padding: 2rem;
}

.project-metrics-box h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-section {
  margin-top: 4rem;
}

.code-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-window {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.code-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.code-body {
  background: #05070a;
  padding: 25px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.code-body pre {
  margin: 0;
}

/* Syntax Highlighting */
.code-keyword { color: #f43f5e; font-weight: 600; }
.code-string { color: #10b981; }
.code-number { color: #f59e0b; }
.code-comment { color: #64748b; font-style: italic; }
.code-builtin { color: #00f2fe; }

/* DEV MODE / OPS MODE CONDITIONAL DISPLAY */
.dev-only, .ops-only {
  transition: opacity 0.3s ease;
}

body.dev-mode .ops-only { display: none !important; }
body.ops-mode .dev-only { display: none !important; }

@media (max-width: 768px) {
  .project-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* OPERATIONS HUB / REVENUE AUDITOR SECTION */
.operations-hub-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.operations-hub-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.auditor-control-panel {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.auditor-control-panel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.auditor-control-panel p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.auditor-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: auto;
}

.auditor-stat-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-smooth);
}

.auditor-stat-box:hover {
  background: rgba(var(--accent-rgb), 0.03);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.auditor-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.auditor-stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.auditor-screen-card {
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 380px;
  background: rgba(5, 7, 10, 0.6);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.auditor-manifest-table-wrapper {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  position: relative;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Glowing laser scanner bar animation */
.scanner-laser-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  box-shadow: 0 0 15px var(--accent-primary), 0 0 30px var(--accent-primary);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.scanner-laser-bar.active {
  animation: laserScan 2.5s ease-in-out forwards;
}

@keyframes laserScan {
  0% {
    top: 0%;
    opacity: 0.8;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.auditor-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.auditor-table th {
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.auditor-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.auditor-table tr {
  transition: var(--transition-smooth);
}

.auditor-table tr.auditing-now {
  background: rgba(var(--accent-rgb), 0.05);
}

.auditor-table tr.audited-success {
  background: rgba(16, 185, 129, 0.03);
}

.auditor-table tr.audited-discrepancy {
  background: rgba(245, 158, 11, 0.05);
}

.auditor-table tr.audited-success td {
  color: #10b981;
}

.auditor-table tr.audited-discrepancy td {
  color: #f59e0b;
}

.audit-status {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.audit-status.pending {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.audit-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.audit-status.flagged {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.audit-status.scanning {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  animation: pulseGlow 1s infinite alternate;
}

@keyframes pulseGlow {
  from { opacity: 0.6; box-shadow: 0 0 5px rgba(var(--accent-rgb), 0.2); }
  to { opacity: 1; box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.4); }
}

@media (max-width: 992px) {
  .operations-hub-layout {
    grid-template-columns: 1fr;
  }
  
  .auditor-control-panel {
    height: auto;
  }
}

/* ========================================================
   CONVEYOR BELT SORTATION MINI-GAME CUSTOM STYLES
   ======================================================== */
.conveyor-game-container {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-overlay-screen {
  transition: opacity 0.4s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.report-stat {
  padding: 8px;
  text-align: center;
}

.conveyor-game-track {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
}

.gate-receptor {
  position: absolute;
  top: 0;
  width: 20%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
  opacity: 0.2;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.gate-receptor.receptor-left {
  left: 0;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.08), transparent);
  border-right: 1px dashed rgba(245, 158, 11, 0.3);
  color: var(--accent-primary);
}

.gate-receptor.receptor-right {
  right: 0;
  background: linear-gradient(to left, rgba(0, 242, 254, 0.08), transparent);
  border-left: 1px dashed rgba(0, 242, 254, 0.3);
  color: var(--accent-secondary);
}

.gate-receptor.active {
  opacity: 0.9;
  background: linear-gradient(to right, rgba(16, 185, 129, 0.15), transparent);
}

.conveyor-belt-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 32px;
  background: #0d131f;
  border-top: 2px solid #2d3b55;
  border-bottom: 2px solid #2d3b55;
  transform: translateY(-50%);
  z-index: 5;
}

.conveyor-belt-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 15px, transparent 15px, transparent 30px);
  animation: conveyorSlide 2s linear infinite;
  animation-play-state: paused;
}

.conveyor-game-track.game-active .conveyor-belt-line::after {
  animation-play-state: running;
}

@keyframes conveyorSlide {
  from { background-position-x: 0px; }
  to { background-position-x: 300px; }
}

.scanning-bracket {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 140px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: rgba(0, 242, 254, 0.02);
  border-radius: 12px;
  z-index: 8;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.05);
  animation: laserBreathing 2s infinite alternate;
}

@keyframes laserBreathing {
  0% { box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.02); border-color: rgba(var(--accent-rgb), 0.2); }
  100% { box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.08); border-color: rgba(var(--accent-rgb), 0.5); }
}

.scanning-laser-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
  box-shadow: 0 0 8px var(--accent-primary), 0 0 16px var(--accent-primary);
  transform: translateX(-50%);
}

.conveyor-game-track.shake-error {
  animation: shakeRed 0.4s ease-in-out;
  border-color: rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15) !important;
}

@keyframes shakeRed {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.conveyor-game-track.flash-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 185, 129, 0.1);
  pointer-events: none;
  z-index: 25;
  animation: flashGreen 0.4s ease-out forwards;
}

@keyframes flashGreen {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.package-card {
  position: absolute;
  top: 50%;
  width: 130px;
  height: 90px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: left 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  z-index: 15;
  pointer-events: none;
  font-family: var(--font-mono);
}

.package-card.entering {
  left: -150px;
  transform: translate(0, -50%) scale(0.85);
  opacity: 0;
}

.package-card.scanning {
  left: 50%;
  transform: translate(-50%, -50%) scale(1.05);
  opacity: 1;
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.15);
}

.package-card.routed-left {
  left: -200px;
  transform: translate(0, -50%) rotate(-20deg) scale(0.7);
  opacity: 0;
}

.package-card.routed-right {
  left: calc(100% + 200px);
  transform: translate(0, -50%) rotate(20deg) scale(0.7);
  opacity: 0;
}

.package-tag {
  align-self: flex-start;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.package-tag.priority {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.package-tag.ground {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-secondary);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.package-weight-lbl {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.package-id-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
}

