/* ============================================
   Emergent-style Portfolio — Sahil Chavan
   ============================================ */

:root {
  --bg: #060a0f;
  --bg-card: #0d1117;
  --bg-elevated: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #22d3ee;
  --accent-dim: #06b6d4;
  --accent-glow: rgba(34, 211, 238, 0.5);
  --green: #7ee787;
  --red-dot: #ef4444;
  --border: #30363d;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 1.75rem;
  --space-xl: 2.5rem;
  --space-2xl: 3.5rem;
  --space-3xl: 5rem;
  --radius: 10px;
  --radius-lg: 14px;
  --header-h: 56px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

/* ----- Cyber canvas (moving pentagons + dots) ----- */
.cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ----- Scanlines overlay ----- */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.4;
}

/* ----- Custom crosshair (follows mouse) ----- */
.cursor-crosshair {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  z-index: 9999;
  pointer-events: none;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  opacity: 0.9;
  transition: opacity 0.15s;
}

.cursor-crosshair::before,
.cursor-crosshair::after {
  content: "";
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.cursor-crosshair::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 8px;
  margin-left: -0.5px;
  margin-top: -8px;
}

.cursor-crosshair::after {
  top: 50%;
  left: 0;
  width: 8px;
  height: 1px;
  margin-left: -8px;
  margin-top: -0.5px;
}

body.cyber-hide-cursor .cursor-crosshair {
  opacity: 0;
}

main {
  position: relative;
  z-index: 2;
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  cursor: none;
  height: var(--header-h);
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-dot);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a,
.nav-logo,
.nav-toggle,
button,
a,
input,
textarea {
  cursor: none;
}

.nav-link.active {
  color: var(--text);
  box-shadow: 0 2px 0 0 currentColor;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-icon {
  display: inline-flex;
  opacity: 0.9;
}

.nav-link.active .nav-icon {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ----- Hero background pattern ----- */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  opacity: 1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322d3ee' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto;
  align-items: center;
  justify-items: center;
  gap: var(--space-xl);
  max-width: 1200px;
  width: 100%;
}

.hero-stats-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-self: end;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  min-width: 140px;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.08);
  animation: float 4s ease-in-out infinite;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.stat-card:hover {
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.2);
  border-color: var(--accent);
}

.stat-icon {
  display: inline-flex;
  color: var(--accent);
  flex-shrink: 0;
}

.stat-icon-lightning {
  color: var(--accent);
}

.hero-center {
  text-align: center;
  padding: 0 var(--space-lg);
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 20px var(--accent-glow);
  animation: flicker 3s step-end infinite;
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.85; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

.hero-title {
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(34, 211, 238, 0.25);
  position: relative;
  display: inline-block;
  animation: glitch-loop 2.2s ease-in-out infinite;
}

.hero-title:hover {
  animation: glitch-loop 2.2s ease-in-out infinite, glitch 0.4s ease-in-out;
}

@keyframes glitch-loop {
  0%, 70%, 100% { transform: translate(0); text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(34, 211, 238, 0.25); }
  71% { transform: translate(-2px, 1px); text-shadow: 2px 0 var(--accent), -2px 0 rgba(255,0,100,0.5); }
  72% { transform: translate(2px, -1px); text-shadow: -2px 0 var(--accent), 2px 0 rgba(255,0,100,0.5); }
  73% { transform: translate(-1px, 2px); text-shadow: 1px 0 var(--accent), -1px 0 rgba(255,0,100,0.5); }
  74% { transform: translate(1px, -2px); text-shadow: -1px 0 var(--accent), 1px 0 rgba(255,0,100,0.5); }
  75% { transform: translate(-2px, -1px); text-shadow: 2px 0 var(--accent), -2px 0 rgba(255,0,100,0.5); }
  76% { transform: translate(0); text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(34, 211, 238, 0.25); }
}

@keyframes glitch {
  0% { transform: translate(0); filter: none; }
  15% { transform: translate(-2px, 1px); text-shadow: 2px 0 var(--accent), -2px 0 rgba(255,0,100,0.6); }
  30% { transform: translate(2px, -1px); text-shadow: -2px 0 var(--accent), 2px 0 rgba(255,0,100,0.6); }
  45% { transform: translate(-1px, 2px); text-shadow: 1px 0 var(--accent), -1px 0 rgba(255,0,100,0.6); }
  60% { transform: translate(1px, -2px); text-shadow: -1px 0 var(--accent), 1px 0 rgba(255,0,100,0.6); }
  75% { transform: translate(-2px, -1px); text-shadow: 2px 0 var(--accent), -2px 0 rgba(255,0,100,0.6); }
  100% { transform: translate(0); text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(34, 211, 238, 0.25); }
}

.hero-role {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  line-height: 1.55;
}

.btn-mission {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-mission:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn-mission {
  animation: btn-pulse 2.5s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 24px var(--accent-glow); }
  50% { box-shadow: 0 0 32px var(--accent-glow), 0 0 48px rgba(34, 211, 238, 0.3); }
}

.btn-mission-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(6, 10, 15, 0.3);
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-mission-icon svg {
  width: 10px;
  height: 10px;
  margin-left: 2px;
}

.hero-achievements-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-xl);
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  min-width: 120px;
  justify-self: start;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.08);
  animation: float 5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.achievements-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.achievements-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
}

/* ----- Sections ----- */
.section {
  padding: var(--space-3xl) var(--space-lg);
  border-top: 1px solid var(--border);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xl);
}

/* ----- About ----- */
.about-content {
  margin-bottom: var(--space-xl);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  max-width: 640px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 560px;
}

.about-stat {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.about-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Skills (Tech Arsenal) ----- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.skill-group h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.skill-bar {
  margin-bottom: var(--space-md);
}

.skill-bar:last-child {
  margin-bottom: 0;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.skill-bar-track {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 3px;
  width: 0;
  transition: width 0.8s ease-out;
}

.skill-bar.visible .skill-bar-fill {
  width: var(--pct);
}

/* ----- Experience ----- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.exp-card:hover {
  border-color: var(--accent-dim);
}

.exp-dropdown .exp-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: none;
  transition: background 0.2s;
}

.exp-dropdown .exp-card-header:hover {
  background: rgba(34, 211, 238, 0.06);
}

.exp-card-head-text {
  flex: 1;
  min-width: 0;
}

.exp-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.exp-company {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.exp-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.exp-arrow {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  margin-bottom: 4px;
  transition: transform 0.25s ease;
}

.exp-dropdown.open .exp-arrow {
  transform: rotate(-135deg);
  margin-bottom: 0;
  margin-top: 4px;
}

.exp-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.exp-dropdown.open .exp-card-body {
  max-height: 600px;
}

.exp-card-body .exp-list {
  list-style: none;
  padding: 0 var(--space-lg) var(--space-lg);
  margin: 0;
  border-top: 1px solid var(--border);
}

.exp-card-body .exp-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: var(--space-sm) 0;
  padding-left: 1.25rem;
  position: relative;
}

.exp-card-body .exp-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ----- Project filters ----- */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ----- Project cards ----- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.15);
}

.project-card.hidden {
  display: none;
}

.project-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.project-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.project-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .project-full {
  display: none;
}

.project-card {
  cursor: none;
}

/* ----- Project modal (splash + full description) ----- */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.project-modal-splash {
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  max-width: 560px;
  width: 100%;
}

.project-modal-overlay.is-open .project-modal-splash {
  transform: scale(1);
  opacity: 1;
}

.project-modal-inner {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 40px var(--accent-glow);
  position: relative;
}

.project-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: none;
  transition: color 0.2s;
}

.project-modal-close:hover {
  color: var(--accent);
}

.project-modal-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-sm);
}

.project-modal-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.project-modal-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-modal-body p {
  margin-bottom: var(--space-md);
}

.project-modal-body .project-tags {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.project-modal-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-modal-body ul li {
  padding: var(--space-xs) 0;
  padding-left: 1.25rem;
  position: relative;
}

.project-modal-body ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ----- Contact ----- */
.contact-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.contact-channels {
  margin-bottom: var(--space-xl);
}

.contact-channels a {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  transition: opacity 0.2s;
}

.contact-channels a:hover {
  opacity: 0.9;
}

.contact-location {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form {
  max-width: 480px;
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
}

.form-label:first-of-type {
  margin-top: 0;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

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

.btn-transmit {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  margin-top: var(--space-lg);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-transmit:hover {
  background: var(--accent-dim);
}

.achievements {
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px;
}

.achievement-toast {
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: var(--space-sm);
}

.achievement-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ----- Footer ----- */
.site-footer {
  padding: var(--space-xl);
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Animations / reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-2xl);
  }

  .hero-stats-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    justify-self: center;
  }

  .hero-achievements-box {
    justify-self: center;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
  }

  .nav.open .nav-links a {
    font-size: 1.1rem;
  }

  .nav.open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-stats-cards {
    justify-content: center;
  }

  .stat-card {
    min-width: 120px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  .project-filters {
    flex-wrap: wrap;
  }
}

/* Touch: use system cursor, hide custom crosshair */
@media (hover: none) {
  body,
  .site-header,
  .nav-links a,
  .nav-logo,
  .nav-toggle,
  button,
  a,
  input,
  textarea {
    cursor: auto;
  }
  .cursor-crosshair {
    display: none;
  }
}
