/* ==========================================================================
   NOVAFORGE // Modern Dark & Neon Glassmorphism Portfolio
   ========================================================================== */

:root {
  --bg-deep: #05070e;
  --bg-surface: rgba(13, 17, 30, 0.62);
  --bg-surface-strong: rgba(16, 21, 38, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 240, 255, 0.42);

  --cyan: #00f0ff;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --emerald: #10b981;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  border-radius: 999px;
}

/* ==========================================================================
   Background Canvas, Ambient Orbs & Cursor Spotlight
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  box-shadow: 0 0 14px var(--cyan);
  z-index: 1000;
  transition: width 0.08s linear;
}

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.24;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: var(--cyan);
  top: -160px;
  left: -120px;
}

.orb-2 {
  width: 560px;
  height: 560px;
  background: var(--purple);
  top: 30%;
  right: -180px;
  animation-delay: -6s;
}

.orb-3 {
  width: 440px;
  height: 440px;
  background: var(--pink);
  bottom: -140px;
  left: 28%;
  opacity: 0.16;
  animation-delay: -11s;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(45px, -35px) scale(1.12);
  }
}

.cursor-spotlight {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(0, 240, 255, 0.09) 0%,
    rgba(139, 92, 246, 0.05) 35%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   Layout Utilities & Typography
   ========================================================================== */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

.mono {
  font-family: var(--font-mono);
}

.text-emerald {
  color: var(--emerald);
}

.gradient-text {
  background: linear-gradient(120deg, var(--cyan) 0%, #7dd3fc 35%, var(--purple) 70%, var(--pink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 7s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.section-header {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   Glass Card & Mouse-Tracking Border Glow
   ========================================================================== */
.glass-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 240, 255, 0.11),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 28px rgba(0, 240, 255, 0.12);
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.86rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #05070e;
  font-weight: 700;
}

.btn-glow {
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.28), 0 8px 24px rgba(139, 92, 246, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(0, 240, 255, 0.45), 0 12px 30px rgba(139, 92, 246, 0.35);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(0, 240, 255, 0.09);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.18);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(5, 7, 14, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.16);
}

.brand-tag {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.25s ease;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Toggle Pill */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.lang-option {
  position: relative;
  z-index: 2;
  padding: 5px 11px;
  transition: color 0.25s ease;
}

.lang-option.active {
  color: #05070e;
}

.lang-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.lang-toggle[data-active="en"] .lang-pill {
  transform: translateX(100%);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 150px 0 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 54px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title span {
  display: block;
}

.hero-role-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--cyan);
  margin-bottom: 22px;
  min-height: 1.7em;
}

.mono-prefix {
  color: var(--purple);
  font-weight: 600;
}

.typed-cursor {
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Interactive HUD Card */
.hero-visual {
  position: relative;
}

.hud-card {
  padding: 0;
  overflow: visible;
  transform-style: preserve-3d;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hud-dots {
  display: flex;
  gap: 7px;
}

.hud-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hud-dots span:nth-child(1) { background: #ef4444; }
.hud-dots span:nth-child(2) { background: #f59e0b; }
.hud-dots span:nth-child(3) { background: #10b981; }

.hud-filename {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hud-fps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
}

.fps-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.hud-body {
  padding: 24px;
}

.hud-code {
  font-size: 0.88rem;
  line-height: 1.75;
  overflow-x: auto;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(5, 7, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.c-purple { color: #c084fc; }
.c-cyan { color: #22d3ee; }
.c-blue { color: #60a5fa; }
.c-green { color: #34d399; }
.c-pink { color: #f472b6; }
.c-muted { color: #94a3b8; }

.hud-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.telemetry-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
}

.telemetry-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.telemetry-val {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
}

.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 0.78rem;
  background: rgba(11, 15, 28, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.14);
  backdrop-filter: blur(12px);
  animation: chipFloat 5s ease-in-out infinite alternate;
}

.chip-1 {
  top: -18px;
  right: 22px;
}

.chip-2 {
  bottom: -18px;
  left: 24px;
  border-color: rgba(139, 92, 246, 0.4);
  animation-delay: -2.5s;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.chip-dot.cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chip-dot.purple { background: var(--purple); box-shadow: 0 0 10px var(--purple); }

@keyframes chipFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-9px); }
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.stats-strip {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  padding: 26px 22px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

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

/* ==========================================================================
   Projects Section
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(0, 240, 255, 0.35);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(139, 92, 246, 0.22));
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

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

.project-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: #0b0f1c;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-media img {
  transform: scale(1.07);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 14, 0.08) 0%, rgba(5, 7, 14, 0.72) 100%);
  pointer-events: none;
}

.project-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.16);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #a5f3fc;
}

.badge-status {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

.project-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.lang-chip {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #ddd6fe;
  font-weight: 600;
  white-space: nowrap;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
}

.project-footer .arrow {
  transition: transform 0.25s ease;
}

.project-card:hover .project-footer .arrow {
  transform: translateX(5px);
}

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

.skill-card {
  padding: 28px;
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.skill-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.skill-card[data-accent="purple"] .skill-icon {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.35);
}
.skill-card[data-accent="pink"] .skill-icon {
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(236, 72, 153, 0.35);
}
.skill-card[data-accent="emerald"] .skill-icon {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 7px;
}

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

.skill-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-card[data-accent="purple"] .skill-fill {
  background: linear-gradient(90deg, var(--purple), var(--pink));
}
.skill-card[data-accent="pink"] .skill-fill {
  background: linear-gradient(90deg, var(--pink), #fb7185);
}
.skill-card[data-accent="emerald"] .skill-fill {
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

/* ==========================================================================
   About & Timeline
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.about-card,
.timeline-card {
  padding: 34px;
}

.about-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pillars-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.pillar-icon {
  font-size: 1.3rem;
  line-height: 1;
  padding-top: 2px;
}

.pillar-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.pillar-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.timeline {
  position: relative;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.timeline-year {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 6px;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 2px;
}

.timeline-org {
  font-size: 0.88rem;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
}

.contact-info,
.contact-form {
  padding: 34px;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.contact-info-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  margin-bottom: 24px;
}

.email-label {
  display: block;
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.email-address {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  word-break: break-all;
}

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

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.social-card:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

.social-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.social-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}

.social-handle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(5, 7, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.14);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border-subtle);
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 6px;
}

/* ==========================================================================
   Project Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(3, 5, 11, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface-strong);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 7, 14, 0.78);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: rotate(90deg);
}

.modal-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-media-overlay {
  position: absolute;
  left: 20px;
  bottom: 16px;
  display: flex;
  gap: 8px;
}

.modal-body {
  padding: 28px 32px 32px;
}

.modal-meta {
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.modal-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.modal-section {
  margin-bottom: 22px;
}

.modal-section-title {
  font-size: 0.78rem;
  color: var(--purple);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.modal-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-highlights li {
  position: relative;
  padding-left: 18px;
  color: #e2e8f0;
  font-size: 0.94rem;
}

.modal-highlights li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ==========================================================================
   Toast & Reveal Animations
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1100;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(11, 16, 30, 0.94);
  border: 1px solid var(--cyan);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 22px rgba(0, 240, 255, 0.25);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.info-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  flex: 1;
}

.info-card .tech-tags {
  margin-bottom: 0;
}

.info-card[data-accent="purple"] .skill-icon {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.35);
}

.info-card[data-accent="pink"] .skill-icon {
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(236, 72, 153, 0.35);
}

.footer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 125px;
  }

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 4%;
    right: 4%;
    flex-direction: column;
    padding: 22px;
    gap: 18px;
    background: rgba(10, 14, 26, 0.96);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .form-row,
  .social-grid,
  .hud-telemetry {
    grid-template-columns: 1fr;
  }

  .floating-chip {
    display: none;
  }

  .section {
    padding: 80px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
