/* ==========================================================================
   PRAKHAR SRIVASTAVA — DEVOPS & CLOUD ENGINEER PORTFOLIO
   Design System: Engineering Control Plane / Infrastructure Dashboard
   ========================================================================== */

:root {
  /* Surface & Base Colors */
  --bg-primary: #080c14;
  --bg-surface: #0d1422;
  --bg-elevated: #131c2e;
  --bg-card: #0f1728;
  --bg-card-hover: #162035;
  --bg-overlay: rgba(8, 12, 20, 0.88);

  /* Border & Dividers */
  --border-subtle: #192538;
  --border-medium: #22324b;
  --border-active: #38bdf8;
  --border-light: rgba(255, 255, 255, 0.08);

  /* Accents & Brand */
  --accent-cyan: #38bdf8;
  --accent-cyan-hover: #7dd3fc;
  --accent-cyan-bg: rgba(56, 189, 248, 0.08);
  --accent-cyan-glow: rgba(56, 189, 248, 0.16);

  /* Status Colors */
  --status-green: #10b981;
  --status-green-bg: rgba(16, 185, 129, 0.1);
  --status-green-border: rgba(16, 185, 129, 0.3);
  --status-amber: #f59e0b;
  --status-amber-bg: rgba(245, 158, 11, 0.1);
  --status-amber-border: rgba(245, 158, 11, 0.3);
  --status-red: #ef4444;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #080c14;

  /* Fonts */
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.65);
  --shadow-cyan: 0 0 24px -4px rgba(56, 189, 248, 0.15);

  /* Transitions */
  --ease-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Engineering Grid Backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle Topology Radial Gradient */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease-fast);
}

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

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

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Section Shared */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 2.75rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section-eyebrow::before {
  content: '//';
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-desc {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 620px;
  line-height: 1.6;
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--ease-fast);
}

.site-header.scrolled {
  border-bottom-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Brand ID */
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.brand-node-status {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--status-green);
  box-shadow: 0 0 8px var(--status-green);
  flex-shrink: 0;
}

.brand-node-status::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--ease-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-subtle);
}

.header-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all var(--ease-fast);
}

.header-action-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.header-action-link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-bg);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-surface);
}

.mobile-toggle:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Mobile Menu Backdrop & Drawer */
.mobile-drawer {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

/* Hero Left Column */
.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: var(--accent-cyan-bg);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-green);
  box-shadow: 0 0 6px var(--status-green);
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-role::before {
  content: '>';
  color: var(--text-muted);
}

.hero-desc {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 1.75rem;
}

/* Capability Line */
.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #cbd5e1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  width: fit-content;
}

.capability-item {
  display: inline-flex;
  align-items: center;
}

.capability-sep {
  color: var(--accent-cyan);
  opacity: 0.7;
  margin-left: 0.85rem;
}

/* Hero CTA Row */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-cyan);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  border: 1px solid var(--accent-cyan);
  transition: all var(--ease-fast);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  background: var(--accent-cyan-hover);
  border-color: var(--accent-cyan-hover);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--border-medium);
  transition: all var(--ease-fast);
}

.btn-secondary svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

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

/* Hero Right Column: Refined Portrait Control Card */
.hero-portrait-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  transition: border-color var(--ease-smooth);
}

.hero-portrait-card:hover {
  border-color: var(--border-active);
}

/* Card Control Plane Bar */
.portrait-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.bar-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--status-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bar-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-green);
}

.bar-meta {
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Portrait Image Wrapper */
.portrait-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: var(--bg-primary);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.04) brightness(0.98);
  transition: transform 0.4s ease;
}

.hero-portrait-card:hover .portrait-img {
  transform: scale(1.02);
}

/* Subtle Control Plane Overlay Markers */
.portrait-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.05) 0%, rgba(8, 12, 20, 0.4) 100%);
  pointer-events: none;
}

.corner-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 2;
}

.corner-tl { top: 12px; left: 12px; border-top: 1.5px solid var(--accent-cyan); border-left: 1.5px solid var(--accent-cyan); }
.corner-tr { top: 12px; right: 12px; border-top: 1.5px solid var(--accent-cyan); border-right: 1.5px solid var(--accent-cyan); }
.corner-bl { bottom: 12px; left: 12px; border-bottom: 1.5px solid var(--accent-cyan); border-left: 1.5px solid var(--accent-cyan); }
.corner-br { bottom: 12px; right: 12px; border-bottom: 1.5px solid var(--accent-cyan); border-right: 1.5px solid var(--accent-cyan); }

/* Portrait Telemetry Footer */
.portrait-telemetry-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.75rem 0.9rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-align: center;
  gap: 0.5rem;
}

.telemetry-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.telemetry-cell-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.58rem;
}

.telemetry-cell-value {
  color: var(--accent-cyan);
  font-weight: 500;
}

/* ==========================================================================
   ENGINEERING SNAPSHOT SECTION
   ========================================================================== */
.snapshot-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 20, 34, 0.4);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.snapshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--ease-fast);
}

.snapshot-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.snapshot-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--accent-cyan-bg);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.snapshot-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.snapshot-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

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

/* ==========================================================================
   PROJECTS SECTION (Selected Engineering Work)
   ========================================================================== */
.projects-section {
  padding: 5.5rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* Project Card */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--ease-smooth);
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-md), var(--shadow-cyan);
  transform: translateY(-3px);
}

/* Project Card Top Bar */
.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.project-id-type {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
}

.project-type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-subtle);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 3px;
}

.status-badge.active {
  color: var(--status-green);
  background: var(--status-green-bg);
  border: 1px solid var(--status-green-border);
}

.status-badge.in-progress {
  color: var(--status-amber);
  background: var(--status-amber-bg);
  border: 1px solid var(--status-amber-border);
}

.status-badge.verified {
  color: var(--accent-cyan);
  background: var(--accent-cyan-bg);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-dot-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Project Card Body */
.project-card-body {
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Visual Motif Preview Inside Card */
.project-visual-motif {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-secondary);
  overflow-x: auto;
}

.motif-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.motif-prompt {
  color: var(--accent-cyan);
  user-select: none;
}

.motif-success {
  color: var(--status-green);
}

.motif-warning {
  color: var(--status-amber);
}

.motif-tag {
  color: var(--accent-cyan);
}

/* Pipeline Stage Flow in Card */
.pipeline-flow-mini {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pipeline-node-mini {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  color: var(--text-secondary);
}

.pipeline-node-mini.active-gate {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  background: var(--accent-cyan-bg);
}

.pipeline-sep {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Technical Tags Container */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--ease-fast);
}

.project-card:hover .tech-tag {
  border-color: var(--border-medium);
}

/* Card Action Footer */
.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.project-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 500;
  transition: color var(--ease-fast);
}

.project-action-link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.project-action-link:hover {
  color: var(--accent-cyan-hover);
  text-decoration: underline;
}

/* Private Repository Notice Pill */
.private-repo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  cursor: default;
}

.private-repo-pill svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.card-expand-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--ease-fast);
}

.project-card:hover .card-expand-hint {
  color: var(--accent-cyan);
}

/* ==========================================================================
   TECH STACK SECTION
   ========================================================================== */
.tech-stack-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.stack-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.stack-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease-fast);
}

.stack-category-card:hover {
  border-color: var(--border-medium);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.category-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.category-indicator {
  width: 4px;
  height: 14px;
  background-color: var(--accent-cyan);
  border-radius: 1px;
}

.category-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #e2e8f0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  transition: all var(--ease-fast);
}

.stack-chip:hover {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.4);
  background: var(--accent-cyan-bg);
  transform: translateY(-1px);
}

/* ==========================================================================
   CERTS SECTION
   ========================================================================== */
.certs-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all var(--ease-fast);
}

.cert-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.cert-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.cert-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--status-green);
}

.cert-icon-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
}

.cert-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.cert-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.cert-id {
  color: var(--text-muted);
}

.cert-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-cyan);
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: var(--accent-cyan-bg);
  transition: all var(--ease-fast);
}

.cert-verify-link svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.cert-verify-link:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan-hover);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

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

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

.contact-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Contact Links List */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  transition: all var(--ease-fast);
}

.channel-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateX(3px);
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.channel-icon {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.channel-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.channel-meta {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.channel-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

.channel-action-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.channel-card:hover .channel-action-hint {
  color: var(--accent-cyan);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2rem;
}

.form-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.form-header-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-header-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: all var(--ease-fast);
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--accent-cyan);
}

.form-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-cyan);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
  transition: all var(--ease-fast);
}

.form-submit-btn:hover:not(:disabled) {
  background: var(--accent-cyan-hover);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

.form-submit-btn:disabled {
  background: var(--border-medium);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-alert {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 1rem;
}

.form-alert.success {
  background: var(--status-green-bg);
  border: 1px solid var(--status-green-border);
  color: var(--status-green);
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--status-red);
}

/* ==========================================================================
   MINIMAL FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

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

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  transition: color var(--ease-fast);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ==========================================================================
   PROJECT DETAIL MODAL
   ========================================================================== */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ease-smooth);
}

.project-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.project-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  transform: scale(0.95) translateY(10px);
  transition: all var(--ease-smooth);
  position: relative;
}

.project-modal-backdrop.open .project-modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all var(--ease-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.modal-close-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-note-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 4px 4px 0;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   SCROLL REVEAL & MOTION
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Copy notification toast */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--ease-smooth);
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-portrait-card {
    max-width: 480px;
    margin: 0 auto;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

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

  .mobile-toggle {
    display: flex;
  }

  .header-actions {
    padding-left: 0.75rem;
    border-left: none;
  }

  /* Mobile Drawer Menu */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-medium);
    padding: 1.5rem;
    gap: 1.25rem;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--ease-smooth);
    box-shadow: var(--shadow-lg);
  }

  .mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-drawer .nav-link {
    font-size: 0.95rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

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

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .hero-capabilities {
    font-size: 0.75rem;
    gap: 0.35rem 0.6rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .stack-categories-grid,
  .certs-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
  }

  .brand-node-status::after {
    animation: none !important;
  }
}
