/* ==========================================================================
   Subhankar Pattnaik — Portfolio
   Design System: Cyberpunk Terminal Noir + Gamma Premium Polish
   ========================================================================== */

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #06060f;
  --bg-card: #0d0d1e;
  --bg-hover: #151530;
  --border: #1a1a35;
  --green: #00ff9d;
  --purple: #8b5cf6;
  --orange: #ff6b35;
  --blue: #38bdf8;
  --gold: #fbbf24;
  --text: #e8e8f8;
  --muted: #5a5a7a;

  --font-syne: 'Syne', sans-serif;
  --font-grotesk: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-height: 64px;
  --container-max: 1200px;
  --section-pad: clamp(60px, 10vw, 120px);

  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

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

::selection {
  background: var(--green);
  color: var(--bg-primary);
}

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

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

/* ---- Background Effects ---- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.bg-scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 3px
  );
  pointer-events: none;
  z-index: 0;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.09;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--green), transparent);
  top: -200px;
  right: -150px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple), transparent);
  bottom: 10%;
  left: -200px;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue), transparent);
  top: 50%;
  right: 20%;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 6, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-family: var(--font-syne);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.brand-dot {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green), 0 0 12px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ---- Section Common ---- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: lowercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-syne);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  position: relative;
  z-index: 1;
}

.hero-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 8vw, 80px);
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--green);
}

.hero-name {
  font-family: var(--font-syne);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.name-first {
  display: block;
  color: var(--text);
}

.name-last {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--green);
  text-stroke: 1px var(--green);
}

@supports not (-webkit-text-stroke: 1px var(--green)) {
  .name-last {
    color: var(--green);
    opacity: 0.5;
    text-shadow: none;
  }
}

.hero-subtitle {
  font-family: var(--font-grotesk);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: #b8b8d8;
  margin-bottom: 20px;
  line-height: 1.4;
}

.gradient-text {
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: #a0a0c4;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* CTA Buttons — Clipped Corners */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  clip-path: polygon(
    8px 0, 100% 0, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 0 100%, 0 8px
  );
}

.btn-primary {
  background: linear-gradient(135deg, #00ff9d, #2dd4bf);
  color: var(--bg-primary);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00e68a, #38bdf8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 157, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--green);
  outline: 1px solid var(--green);
}

.btn-secondary:hover {
  background: rgba(0, 255, 157, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 157, 0.1);
}

.btn-arrow {
  transition: transform var(--transition);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  width: clamp(260px, 35vw, 400px);
  padding: 3px;
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(0, 255, 157, 0.5), rgba(56, 189, 248, 0.2) 45%, rgba(139, 92, 246, 0.45));
}

.profile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  position: relative;
  z-index: 2;
  display: block;
  filter: saturate(0.92) contrast(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-glow {
  position: absolute;
  inset: -12px;
  border-radius: 32px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 157, 0.2), transparent 60%), radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.18), transparent 60%);
  z-index: 1;
  filter: blur(24px);
}

.photo-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 16px auto 0;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 9px 16px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.pc-prompt {
  color: var(--green);
}

/* Hero Scroll Indicator */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: clamp(40px, 6vw, 60px);
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}

/* ---- About / Timeline ---- */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-bottom: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--green), var(--border));
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

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

.timeline-marker {
  position: absolute;
  left: -34px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--green);
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.3);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
}

.timeline-content h3 {
  font-family: var(--font-syne);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}

/* Quote */
.quote {
  position: relative;
  padding: 40px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  margin-bottom: 48px;
  max-width: 720px;
}

.quote-mark {
  font-family: var(--font-syne);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--green);
  display: block;
  margin-bottom: 8px;
}

.quote p {
  font-family: var(--font-grotesk);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.quote cite {
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 720px;
}

.stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.stat-number {
  font-family: var(--font-syne);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  display: block;
}

.stat-suffix {
  font-family: var(--font-syne);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  vertical-align: super;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

/* ---- Projects ---- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  transition: width var(--transition);
}

.project-card[data-accent="green"]::before { background: var(--green); }
.project-card[data-accent="purple"]::before { background: var(--purple); }
.project-card[data-accent="blue"]::before { background: var(--blue); }
.project-card[data-accent="gold"]::before { background: var(--gold); }

.project-card:hover {
  transform: translateX(4px);
  border-color: rgba(0, 255, 157, 0.2);
}

.project-card:hover::before {
  width: 5px;
}

.project-number {
  font-family: var(--font-syne);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  align-self: start;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-industry {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 10px;
  background: rgba(0, 255, 157, 0.08);
  color: var(--green);
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
}

.project-complexity {
  font-size: 12px;
  letter-spacing: 2px;
}

.project-title {
  font-family: var(--font-syne);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-hover);
  color: var(--muted);
  border: 1px solid var(--border);
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
}

.project-links {
  margin-top: 4px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  transition: color var(--transition);
}

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

.link-icon {
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ---- Skills ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
}

.skill-cat-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.skill-bar {
  margin-bottom: 18px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name {
  font-family: var(--font-grotesk);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.skill-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 0;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.skill-fill-green {
  background: linear-gradient(90deg, var(--green), #00cc7a);
}

.skill-fill-purple {
  background: linear-gradient(90deg, var(--purple), #a78bfa);
}

.skill-fill-orange {
  background: linear-gradient(90deg, var(--orange), #ff8c5a);
}

.skill-fill-blue {
  background: linear-gradient(90deg, var(--blue), #7dd3fc);
}

/* ---- WAF Pillars ---- */
.waf-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.waf-card {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.waf-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.waf-card[data-accent="green"]::before { background: var(--green); }
.waf-card[data-accent="purple"]::before { background: var(--purple); }
.waf-card[data-accent="orange"]::before { background: var(--orange); }
.waf-card[data-accent="blue"]::before { background: var(--blue); }
.waf-card[data-accent="gold"]::before { background: var(--gold); }

.waf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 157, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.waf-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
  display: block;
}

.waf-title {
  font-family: var(--font-syne);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.waf-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Philosophy ---- */
.principles-list {
  list-style: none;
  counter-reset: principle;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.principle {
  display: flex;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all var(--transition);
}

.principle:hover {
  border-left-color: var(--green);
  background: var(--bg-hover);
}

.principle-bullet {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 8px;
  box-shadow: 0 0 10px var(--green), 0 0 20px var(--green);
}

.principle-content h3 {
  font-family: var(--font-syne);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.principle-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- Contact ---- */
.contact-heading {
  font-family: var(--font-syne);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-heading .gradient-text {
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  font-size: 1.5rem;
  display: block;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-value {
  font-family: var(--font-grotesk);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue);
}

.contact-looking {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  max-width: 640px;
}

.contact-looking h3 {
  font-family: var(--font-syne);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-looking p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.contact-location {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 1px;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .waf-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-grid {
    gap: 36px 28px;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: rgba(6, 6, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    transition: right var(--transition);
    padding: 40px;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-status {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 24px;
  }

  .image-wrapper {
    width: clamp(200px, 60vw, 280px);
  }

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

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

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

  .hero-scroll {
    display: none;
  }

  /* Stats */
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Projects */
  .project-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-number {
    font-size: 2.5rem;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* WAF */
  .waf-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-links {
    grid-template-columns: 1fr;
  }

  /* Quote */
  .quote {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .waf-grid {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    padding: 14px 24px;
  }

  .principles-list {
    gap: 16px;
  }

  .principle {
    padding: 20px;
    gap: 14px;
  }
}

/* ---- Accessibility ---- */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- Print ---- */
@media print {
  .nav,
  .bg-grid,
  .bg-scanlines,
  .bg-orbs,
  .hero-scroll {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 24px 0;
  }
}

/* ==========================================================================
   AI Maturity Dashboard — Matches Cyberpunk Terminal Noir design system
   ========================================================================== */

.ai-maturity {
  --layer-llm: var(--blue);
  --layer-agents: var(--purple);
  --layer-systems: var(--green);
  --layer-infra: var(--gold);
}

/* ── Overview Card ── */
.maturity-overview {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all var(--transition);
  position: relative;
}

.maturity-overview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}

.maturity-ring-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.maturity-ring {
  width: 260px;
  height: 260px;
  filter: drop-shadow(0 0 24px rgba(0, 255, 157, 0.12));
}

.maturity-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.maturity-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.maturity-subtitle a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 157, 0.3);
}

.maturity-subtitle a:hover {
  color: var(--text);
  border-color: var(--green);
}

.maturity-context {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  opacity: 0.8;
}

/* ── Layer Score Cards (matching waf-card style) ── */
.maturity-layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.maturity-layer {
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.maturity-layer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.maturity-layer[data-layer="llms"]::before { background: var(--blue); }
.maturity-layer[data-layer="agents"]::before { background: var(--purple); }
.maturity-layer[data-layer="systems"]::before { background: var(--green); }
.maturity-layer[data-layer="infra"]::before { background: var(--gold); }

.maturity-layer:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 157, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.layer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.layer-icon {
  font-size: 1.25rem;
}

.layer-name {
  font-family: var(--font-syne);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.layer-score {
  font-family: var(--font-syne);
  font-size: 1.75rem;
  font-weight: 800;
}

.maturity-layer[data-layer="llms"] .layer-score { color: var(--blue); }
.maturity-layer[data-layer="agents"] .layer-score { color: var(--purple); }
.maturity-layer[data-layer="systems"] .layer-score { color: var(--green); }
.maturity-layer[data-layer="infra"] .layer-score { color: var(--gold); }

.layer-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
  overflow: hidden;
}

.layer-bar-fill {
  height: 100%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.layer-sub-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.layer-sub-metrics span {
  white-space: nowrap;
}

/* ── Agent Stats ── */
.agent-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.agent-stat {
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.agent-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--green);
  opacity: 0;
  transition: opacity var(--transition);
}

.agent-stat:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.agent-stat:hover::before {
  opacity: 1;
}

.agent-stat-num {
  display: block;
  font-family: var(--font-syne);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 6px;
  line-height: 1;
}

.agent-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── Section Labels (matching .section-label) ── */
.maturity-section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: lowercase;
  margin-bottom: 12px;
}

/* ── Agent Categories (matching waf-grid 5-col) ── */
.agent-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.agent-category {
  padding: 24px 20px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.agent-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--green);
  opacity: 0;
  transition: opacity var(--transition);
}

.agent-category:hover {
  border-color: rgba(0, 255, 157, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.agent-category:hover::before {
  opacity: 1;
}

.cat-icon {
  font-size: 1.25rem;
}

.cat-label {
  font-family: var(--font-syne);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.cat-agents {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Weekly Tracker (matching principle card style) ── */
.weekly-tracker {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  margin-bottom: 48px;
  transition: all var(--transition);
}

.weekly-tracker:hover {
  border-color: rgba(0, 255, 157, 0.2);
}

.tracker-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tracker-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.5); }
}

.tracker-header h3 {
  font-family: var(--font-syne);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.tracker-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tracker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tracker-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  background: rgba(0, 255, 157, 0.06);
  color: var(--green);
  border: 1px solid rgba(0, 255, 157, 0.15);
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
}

/* ── Gaps Grid (matching style) ── */
.gaps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.gap-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
}

.gap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.gap-card[data-severity="done"] {
  border-left: 2px solid var(--green);
}

.gap-card[data-severity="active"] {
  border-left: 2px solid var(--gold);
}

.gap-check {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.gap-content {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.6;
  opacity: 0.8;
}

.gap-content strong {
  font-family: var(--font-syne);
  font-weight: 700;
  color: var(--text);
  opacity: 1;
}

.maturity-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* Responsive: maturity */
@media (max-width: 1024px) {
  .maturity-layers {
    grid-template-columns: repeat(2, 1fr);
  }

  .agent-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .gaps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .maturity-overview {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
  }

  .maturity-layers {
    grid-template-columns: 1fr;
  }

  .agent-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agent-categories {
    grid-template-columns: 1fr;
  }

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