/* =========================================================
   RATUL SHEE — PORTFOLIO DESIGN SYSTEM & ANIMATIONS
   Ultra-Modern Obsidian & Emerald Glassmorphism
   ========================================================= */

:root {
  /* Core Obsidian Dark Palette */
  --bg:            #06090f;
  --bg-alt:        #0a101a;
  --surface:       #0e1726;
  --surface-hi:    #142035;
  --surface-glass: rgba(14, 23, 38, 0.72);
  --border:        rgba(255, 255, 255, 0.08);
  --border-light:  rgba(255, 255, 255, 0.15);
  --border-glow:   rgba(57, 255, 156, 0.35);

  /* High-Contrast Typography */
  --text:          #f1f7f5;
  --text-dim:      #94a3b8;
  --text-faint:    #475569;

  /* Radiant Accents */
  --neon-green:    #39ff9c;
  --neon-green-glow: rgba(57, 255, 156, 0.4);
  --neon-blue:     #38bdf8;
  --neon-blue-glow:  rgba(56, 189, 248, 0.4);
  --neon-purple:   #a855f7;
  --neon-amber:    #f59e0b;

  /* Typography Scales */
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Geometry & Curves */
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-pill:   9999px;
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 861px) {
  body { cursor: none; }
}

::selection {
  background: var(--neon-green);
  color: #030f08;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 3px;
  border-radius: 4px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
svg { width: 1.1em; height: 1.1em; }
p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* =========================================================
   Canvas & Aurora Ambient Lights
   ========================================================= */
#net-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  will-change: transform;
  animation: floatAurora 18s ease-in-out infinite alternate;
}

.blob-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--neon-blue), transparent 70%);
}

.blob-2 {
  bottom: 10%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--neon-green), transparent 70%);
  animation-duration: 24s;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 60%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--neon-purple), transparent 70%);
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes floatAurora {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, -40px) scale(1.15); }
  100% { transform: translate(-50px, 50px) scale(0.95); }
}

/* =========================================================
   Custom Cursor & Glow Follower
   ========================================================= */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(57, 255, 156, 0.45);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, background-color 0.25s, transform 0.08s linear;
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: var(--neon-blue);
  background-color: rgba(56, 189, 248, 0.08);
  backdrop-filter: invert(15%);
}

.cursor-ring.active-click {
  transform: translate(-50%, -50%) scale(0.85);
}

@media (max-width: 860px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* =========================================================
   Top Scroll Progress Bar
   ========================================================= */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue), var(--neon-purple));
  z-index: 10001;
  box-shadow: 0 0 14px var(--neon-green-glow);
  transition: width 0.08s linear;
}

/* =========================================================
   Toast Container & Notifications
   ========================================================= */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10005;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(14, 23, 38, 0.95);
  border: 1px solid var(--neon-green);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(57, 255, 156, 0.2);
  backdrop-filter: blur(14px);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  animation: toastIn 0.35s var(--ease-bounce) forwards;
}

.toast.toast-out {
  animation: toastOut 0.3s var(--ease) forwards;
}

@keyframes toastIn {
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateY(15px) scale(0.9); opacity: 0; }
}

/* =========================================================
   Boot Preloader Screen
   ========================================================= */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #04070b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.boot-screen.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-terminal {
  width: min(92vw, 560px);
  background: #080d16;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(57, 255, 156, 0.1);
  font-family: var(--font-mono);
}

.boot-top {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #0d1624;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.boot-top .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red    { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green  { background: #10b981; }

.boot-title {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-left: 6px;
}

.boot-skip {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 156, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  transition: 0.2s;
}
.boot-skip:hover {
  background: var(--neon-green);
  color: #04070b;
}

.boot-lines {
  padding: 24px 20px 16px;
  font-size: 0.88rem;
  color: var(--neon-green);
  min-height: 120px;
}

.boot-lines p {
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.boot-lines .prompt { color: var(--neon-blue); }
.boot-lines .colon { color: var(--text-dim); margin-right: 6px; }

.boot-progress {
  height: 3px;
  background: #142032;
  margin: 0 20px 12px;
  border-radius: 2px;
  overflow: hidden;
}

.boot-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  box-shadow: 0 0 10px var(--neon-green);
  transition: width 0.08s linear;
}

.boot-status-text {
  padding: 0 20px 18px;
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

/* =========================================================
   Command Palette Modal (Ctrl + K)
   ========================================================= */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(3, 6, 10, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.cmd-palette-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cmd-palette-box {
  width: min(94vw, 620px);
  background: rgba(13, 22, 36, 0.96);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.25s var(--ease);
}

.cmd-palette-backdrop.open .cmd-palette-box {
  transform: translateY(0) scale(1);
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}

.cmd-search-icon {
  width: 20px;
  height: 20px;
  color: var(--neon-blue);
  flex-shrink: 0;
}

.cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
}
.cmd-input::placeholder {
  color: var(--text-faint);
  font-size: 0.95rem;
}

.cmd-kbd-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
}

.cmd-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
}

.cmd-group-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px 4px;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cmd-item:hover, .cmd-item.selected {
  background: rgba(56, 189, 248, 0.1);
  color: var(--text);
}

.cmd-item:hover .cmd-item-title, .cmd-item.selected .cmd-item-title {
  color: var(--neon-green);
}

.cmd-item-icon {
  font-size: 1.1rem;
}

.cmd-item-title {
  flex-grow: 1;
  font-size: 0.92rem;
  font-weight: 500;
}

.cmd-item-key, .cmd-item-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  background: var(--surface-hi);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.cmd-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  background: #080d16;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

.cmd-footer kbd {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--text-dim);
}

/* =========================================================
   Project Details Modal
   ========================================================= */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10003;
  background: rgba(3, 6, 10, 0.85);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

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

.project-modal-card {
  position: relative;
  width: min(94vw, 760px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.9), 0 0 40px rgba(57, 255, 156, 0.12);
  transform: scale(0.94);
  transition: transform 0.3s var(--ease-bounce);
}

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

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 23, 38, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  backdrop-filter: blur(8px);
}
.modal-close-btn:hover {
  background: var(--neon-green);
  color: #04070b;
}

.modal-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #04070c;
}

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

.modal-badge-pill {
  position: absolute;
  bottom: 16px;
  left: 18px;
  background: rgba(6, 9, 15, 0.85);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

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

.modal-title {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.modal-subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

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

.modal-section h4 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.modal-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-features-list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.modal-features-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--neon-green);
  font-weight: bold;
}

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

.modal-stack-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  color: var(--neon-green);
}

.modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* =========================================================
   Top Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 20px 0;
  transition: transform 0.4s var(--ease), background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 9, 15, 0.82);
  backdrop-filter: blur(18px);
  border-color: var(--border);
  padding: 14px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav.hide {
  transform: translateY(-110%);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.logo-bracket { color: var(--neon-blue); }
.logo-name { color: var(--text); }
.logo-accent { color: var(--neon-green); text-shadow: 0 0 12px var(--neon-green-glow); }

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.nav-link {
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}

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

.nav-idx {
  color: var(--neon-green);
  margin-right: 6px;
  font-size: 0.75em;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  box-shadow: 0 0 8px var(--neon-green);
  transition: width 0.3s var(--ease);
}

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

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

/* Command Menu Trigger Button in Navbar */
.cmd-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: 0.25s var(--ease);
}

.cmd-trigger-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--neon-blue);
  color: var(--text);
}

.search-mini-icon {
  width: 14px;
  height: 14px;
  color: var(--neon-blue);
}

.cmd-key-combo {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-faint);
}

/* Sound FX Audio Toggle */
.sound-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: 0.25s;
}

.sound-toggle-btn:hover {
  border-color: var(--neon-green);
  color: var(--text);
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sbar {
  width: 2px;
  height: 3px;
  background: var(--text-faint);
  border-radius: 1px;
  transition: 0.2s;
}

.sound-toggle-btn.sound-on {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.sound-toggle-btn.sound-on .sbar {
  background: var(--neon-green);
  animation: soundEqualizer 0.8s ease-in-out infinite alternate;
}

.sound-toggle-btn.sound-on .sbar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.sound-toggle-btn.sound-on .sbar:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.sound-toggle-btn.sound-on .sbar:nth-child(3) { height: 8px; animation-delay: 0.15s; }
.sound-toggle-btn.sound-on .sbar:nth-child(4) { height: 10px; animation-delay: 0.4s; }

@keyframes soundEqualizer {
  0%   { height: 3px; }
  100% { height: 12px; }
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 20px;
  border: 1px solid var(--neon-green);
  border-radius: var(--radius-pill);
  color: var(--neon-green);
  background: rgba(57, 255, 156, 0.05);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.nav-cta:hover {
  background: var(--neon-green);
  color: #04070b;
  box-shadow: 0 0 25px var(--neon-green-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

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

@media (max-width: 980px) {
  .nav-links, .cmd-trigger-btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 0 20px; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 9, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 28px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
}

/* =========================================================
   Hero Section & Interactive Terminal
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 24px 90px;
  z-index: 1;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(57, 255, 156, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 156, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, black, transparent);
}

.hero-inner {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Status Radar Pill */
.status-radar-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 23, 38, 0.85);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.radar-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
}

.radar-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--neon-green);
  opacity: 0.75;
  animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  75%, 100% { transform: scale(3); opacity: 0; }
}

.status-text {
  color: var(--text);
  font-weight: 500;
}

.location-badge {
  color: var(--neon-blue);
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

/* Interactive Developer Terminal */
.hero-terminal {
  width: min(94vw, 560px);
  text-align: left;
  background: rgba(10, 16, 26, 0.95);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 35px rgba(57, 255, 156, 0.08);
  font-family: var(--font-mono);
  backdrop-filter: blur(16px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hero-terminal:focus-within {
  border-color: var(--neon-green);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 45px rgba(57, 255, 156, 0.2);
}

.term-topbar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #101a2b;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.term-dot.red    { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green  { background: #10b981; }

.term-title {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.term-hint {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--neon-blue);
  opacity: 0.8;
}

.term-body {
  padding: 18px 20px;
  font-size: 0.84rem;
  max-height: 180px;
  overflow-y: auto;
}

.term-line {
  margin-bottom: 6px;
}

.term-line .prompt { color: var(--neon-blue); margin-right: 8px; }
.term-line .cmd-text { color: var(--text); }
.term-response { color: var(--text-dim); margin-bottom: 12px; line-height: 1.5; }
.term-response.text-green { color: var(--neon-green); }

.term-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-input-line .prompt { color: var(--neon-blue); white-space: nowrap; }

.term-input {
  background: transparent;
  border: none;
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  outline: none;
  width: 100%;
}

.term-cursor {
  animation: termBlink 1s step-end infinite;
  color: var(--neon-green);
}
@keyframes termBlink { 50% { opacity: 0; } }

/* Grand Title */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.hero-name-gradient {
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 15%, var(--neon-green) 50%, var(--neon-blue) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: heroShimmer 8s ease-in-out infinite;
}

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

/* Role Badges */
.hero-roles-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  backdrop-filter: blur(8px);
}

.mern-badge { border-color: rgba(57, 255, 156, 0.4); color: var(--neon-green); }
.fullstack-badge { border-color: rgba(56, 189, 248, 0.4); color: var(--neon-blue); }
.ai-badge { border-color: rgba(168, 85, 247, 0.4); color: var(--neon-purple); }

.badge-icon { width: 14px; height: 14px; }

/* Tagline */
.hero-tagline {
  color: var(--text-dim);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  max-width: 680px;
  line-height: 1.7;
}
.hero-tagline strong { color: var(--text); font-weight: 600; }

/* Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.78rem;
}

.btn-primary {
  background: var(--neon-green);
  color: #030f08;
}

.btn-primary:hover {
  box-shadow: 0 0 35px var(--neon-green-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 25px var(--neon-blue-glow);
  transform: translateY(-2px);
}

.btn-glass {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

/* Social Dock */
.hero-socials {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.social-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: 0.3s var(--ease);
}

.social-orb svg { width: 17px; height: 17px; fill: currentColor; }

.social-orb:hover {
  color: #030f08;
  background: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 25px var(--neon-green-glow);
  transform: translateY(-4px);
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.15em;
}

.scroll-line {
  width: 1px;
  height: 38px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  width: 100%;
  height: 10px;
  background: var(--neon-green);
  position: absolute;
  top: -10px;
  animation: scrollAnim 2.2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%   { top: -10px; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 38px; opacity: 0; }
}

/* =========================================================
   Sections General & Reveal
   ========================================================= */
.section {
  position: relative;
  z-index: 1;
  padding: 130px 24px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.01) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.eyebrow .idx { color: var(--neon-blue); }

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 820px;
  line-height: 1.2;
}

.section-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 680px;
  margin-top: 14px;
}

.section-head.center {
  text-align: center;
  margin: 0 auto 64px;
}
.section-head.center h2, .section-head.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.section-head:not(.center) {
  margin-bottom: 60px;
}

.head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

/* Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   About Bento Grid
   ========================================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.bento-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

/* Bento 1: Story */
.bento-hero-story {
  grid-column: span 7;
}

.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bento-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 156, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

.bento-hero-story h3 {
  font-size: 1.65rem;
  margin-bottom: 16px;
}

.bento-hero-story p {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin-bottom: 16px;
}
.bento-hero-story strong { color: var(--text); }

.tech-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
}

/* Bento 2: Holographic Photo */
.bento-photo-card {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.photo-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.photo-ring-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--neon-green), var(--neon-blue), var(--neon-purple), var(--neon-green));
  opacity: 0.6;
  filter: blur(20px);
  animation: photoSpin 10s linear infinite;
}
@keyframes photoSpin { to { transform: rotate(360deg); } }

.photo-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--neon-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.4s, transform 0.4s;
}

.photo-container:hover .photo-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.photo-scanner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(57, 255, 156, 0.25) 50%, transparent 60%);
  animation: scanY 3.5s ease-in-out infinite;
}
@keyframes scanY {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.photo-caption h4 { font-size: 1.25rem; margin-bottom: 2px; }
.caption-sub { font-size: 0.85rem; color: var(--text-dim); }

.status-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-green);
  background: rgba(57, 255, 156, 0.08);
  border: 1px solid rgba(57, 255, 156, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.pulse-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

/* Bento 3: Time Card */
.bento-time-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.time-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.digital-clock {
  font-family: var(--font-mono);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--neon-blue);
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px var(--neon-blue-glow);
}

.time-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
}

.solar-status { color: var(--neon-amber); }

/* Bento 4: Metrics Card */
.bento-metrics-card {
  grid-column: span 4;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: 100%;
  align-content: center;
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--neon-green);
  line-height: 1;
}

.metric-plus {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--neon-blue);
}

.metric-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Bento 5: Activity Card */
.bento-activity-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.activity-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.activity-top h4 { font-size: 1rem; margin-bottom: 4px; }
.activity-top p { font-size: 0.78rem; color: var(--text-dim); }

.streak-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.commit-matrix {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 4px;
}

.matrix-cell {
  aspect-ratio: 1/1;
  border-radius: 2px;
  background: var(--surface-hi);
  transition: transform 0.2s, background 0.2s;
}

.matrix-cell.l1 { background: rgba(57, 255, 156, 0.2); }
.matrix-cell.l2 { background: rgba(57, 255, 156, 0.5); }
.matrix-cell.l3 { background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green-glow); }

.matrix-cell:hover {
  transform: scale(1.4);
  background: var(--neon-blue) !important;
}

@media (max-width: 992px) {
  .bento-hero-story { grid-column: span 12; }
  .bento-photo-card { grid-column: span 12; }
  .bento-time-card   { grid-column: span 6; }
  .bento-metrics-card{ grid-column: span 6; }
  .bento-activity-card{ grid-column: span 12; }
}

@media (max-width: 640px) {
  .bento-time-card   { grid-column: span 12; }
  .bento-metrics-card{ grid-column: span 12; }
}

/* =========================================================
   Interactive MERN Architecture Simulator
   ========================================================= */
.architecture-visualizer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  backdrop-filter: blur(16px);
}

.arch-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.arch-node {
  flex: 1;
  min-width: 220px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  cursor: pointer;
  transition: 0.3s var(--ease);
  position: relative;
}

.arch-node:hover, .arch-node.active {
  border-color: var(--neon-green);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px var(--neon-green-glow);
  transform: translateY(-4px);
}

.node-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.react-glow  { color: var(--neon-blue); border-color: rgba(56, 189, 248, 0.4); }
.express-glow{ color: var(--neon-green); border-color: rgba(57, 255, 156, 0.4); }
.mongo-glow  { color: #10b981; border-color: rgba(16, 185, 129, 0.4); }

.node-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.arch-node h4 { font-size: 1.15rem; margin: 4px 0 6px; }
.arch-node p { font-size: 0.82rem; color: var(--text-dim); }

.arch-wire {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 90px;
  flex-shrink: 0;
}

.wire-line {
  position: relative;
  width: 100%;
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.wire-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.packet {
  position: absolute;
  top: 0;
  left: -20px;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
  box-shadow: 0 0 10px var(--neon-green);
  opacity: 0;
}

.packet.firing {
  animation: firePacket 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes firePacket {
  0%   { left: -20px; opacity: 1; }
  100% { left: 100%; opacity: 1; }
}

@media (max-width: 860px) {
  .arch-wire { display: none; }
  .arch-pipeline { flex-direction: column; }
  .arch-node { width: 100%; }
}

.arch-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #090f1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.arch-status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.arch-detail-drawer {
  background: #080d16;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: 0.3s;
}

.detail-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-green);
  margin-bottom: 8px;
}

.arch-detail-drawer h4 { font-size: 1.2rem; margin-bottom: 8px; }
.arch-detail-drawer p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; }

.arch-code-preview {
  background: #04070c;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  overflow-x: auto;
}

.arch-code-preview code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--neon-green);
  white-space: pre-wrap;
}

/* =========================================================
   Skills Grid & Progress Bars
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.skill-category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(14px);
  transition: 0.3s var(--ease);
}

.skill-category-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cat-icon { font-size: 1.6rem; }
.category-header h3 { font-size: 1.15rem; }
.category-header span { font-size: 0.76rem; color: var(--text-dim); font-family: var(--font-mono); }

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-blue);
}

.progress-track {
  height: 6px;
  background: #121c2c;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  border-radius: 3px;
  box-shadow: 0 0 10px var(--neon-green-glow);
  transition: width 1.2s var(--ease);
}

.skill-category-card.in .progress-bar-fill {
  width: var(--w);
}

/* =========================================================
   Featured Projects Showcase
   ========================================================= */
.project-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--surface);
  transition: 0.25s;
}

.filter-tab:hover, .filter-tab.active {
  border-color: var(--neon-green);
  color: #030f08;
  background: var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.project-card:hover {
  border-color: rgba(57, 255, 156, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.project-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(57, 255, 156, 0.15), transparent 70%);
  transition: opacity 0.3s;
}
.project-card:hover .project-card-glow { opacity: 1; }

.project-preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #05080e;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-preview-wrap:hover .preview-overlay {
  opacity: 1;
}

.project-status-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--neon-green);
  background: rgba(6, 9, 15, 0.85);
  border: 1px solid rgba(57, 255, 156, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

/* Fallback / AI Graphic */
.fallback-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #091322, #040810);
}

.ai-mockup-graphic {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-purple);
}

.ai-matrix-code {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--neon-blue);
  margin-top: 12px;
}

.project-content {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.project-num { color: var(--neon-blue); font-weight: 600; }

.project-content h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.project-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.highlight-item {
  font-size: 0.82rem;
  color: var(--text-dim);
}

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

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
}

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

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

/* =========================================================
   Education & Timeline
   ========================================================= */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 36px;
}

.timeline-path {
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}

.timeline-progress-glow {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--neon-green), var(--neon-blue), var(--neon-purple));
  box-shadow: 0 0 10px var(--neon-green);
}

.timeline-entry {
  position: relative;
  margin-bottom: 48px;
}
.timeline-entry:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--neon-green-glow);
}

.marker-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  transition: 0.3s var(--ease);
}

.timeline-entry:hover .timeline-card {
  border-color: var(--neon-green);
  transform: translateX(6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

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

.entry-dates {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-blue);
  font-weight: 600;
}

.entry-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  background: var(--surface-hi);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.active-badge {
  color: var(--neon-green);
  background: rgba(57, 255, 156, 0.1);
  border: 1px solid rgba(57, 255, 156, 0.3);
}

.timeline-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.entry-degree {
  font-size: 0.92rem;
  color: var(--neon-green);
  font-weight: 500;
  margin-bottom: 10px;
}

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

/* =========================================================
   Contact & Collaboration
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card-modern {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: 0.3s var(--ease);
}

.contact-card-modern:hover {
  border-color: var(--neon-green);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.contact-card-icon { font-size: 1.4rem; }

.contact-card-body {
  flex-grow: 1;
}

.channel-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.channel-value {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.copy-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: 0.2s;
  flex-shrink: 0;
}
.copy-action-btn:hover {
  background: var(--neon-green);
  color: #04070b;
}

.contact-guarantee-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  margin-top: 10px;
}
.guarantee-icon { font-size: 1.3rem; }
.contact-guarantee-box strong { font-size: 0.88rem; color: var(--neon-blue); display: block; }
.contact-guarantee-box p { font-size: 0.78rem; color: var(--text-dim); }

/* Interactive Form */
.glass-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(16px);
}

.form-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.form-title-bar h3 { font-size: 1.3rem; }

.form-dot-live {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-green);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

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

.req { color: var(--neon-green); }

.form-input, .form-textarea {
  width: 100%;
  background: #090f1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px var(--neon-green-glow);
}

.form-char-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  text-align: right;
  margin-top: 4px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
}

.btn-loading-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #030f08;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status-alert {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status-alert.success {
  display: block;
  background: rgba(57, 255, 156, 0.1);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
}
.form-status-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  position: relative;
  z-index: 1;
  background: #04070c;
}

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

.logo-small {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 4px;
}

.cmd-shortcut-hint {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
}
.cmd-shortcut-hint kbd {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-dim);
}

.footer-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--neon-green);
  transition: 0.2s;
}
.footer-top-btn:hover {
  color: var(--text);
  transform: translateY(-3px);
}

/* Magnetic Transition */
.magnetic {
  transition: transform 0.25s var(--ease);
}

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