:root {
      --bg: #0f172a;
      --bg-soft: #111c34;
      --card: rgba(255, 255, 255, 0.08);
      --line: rgba(255, 255, 255, 0.12);
      --text: #e5ecff;
      --muted: #9fb0d9;
      --primary: #6ea8fe;
      --accent: #8b5cf6;
      --success: #34d399;
      --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
      --bg-layer-1: rgba(110, 168, 254, 0.18);
      --bg-layer-2: rgba(139, 92, 246, 0.16);
      --bg-gradient-start: #08101f;
      --bg-gradient-end: #0f172a;
      --topbar-bg: rgba(8, 16, 31, 0.72);
      --topbar-border: rgba(255, 255, 255, 0.08);
      --mouse-glow-bg: radial-gradient(circle, rgba(110, 168, 254, 0.16) 0%, rgba(139, 92, 246, 0.10) 35%, transparent 70%);
      --particle-bg: rgba(255, 255, 255, 0.7);
      --particle-shadow: 0 0 12px rgba(147, 197, 253, 0.35);
    }

    body[data-time-theme="dawn"] {
      --card: rgba(255, 255, 255, 0.14);
      --line: rgba(255, 255, 255, 0.18);
      --text: #f4f7ff;
      --muted: #d6def5;
      --primary: #f59e0b;
      --accent: #fb7185;
      --bg-layer-1: rgba(251, 191, 36, 0.22);
      --bg-layer-2: rgba(244, 114, 182, 0.18);
      --bg-gradient-start: #261327;
      --bg-gradient-end: #4b2b39;
      --topbar-bg: rgba(47, 23, 40, 0.74);
      --topbar-border: rgba(255, 255, 255, 0.12);
      --mouse-glow-bg: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, rgba(244, 114, 182, 0.14) 35%, transparent 70%);
      --particle-bg: rgba(255, 244, 214, 0.8);
      --particle-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
    }

    body[data-time-theme="day"] {
      --card: rgba(255, 255, 255, 0.2);
      --line: rgba(255, 255, 255, 0.2);
      --text: #f8fbff;
      --muted: #d8e6ff;
      --primary: #38bdf8;
      --accent: #7c3aed;
      --bg-layer-1: rgba(56, 189, 248, 0.22);
      --bg-layer-2: rgba(99, 102, 241, 0.15);
      --bg-gradient-start: #10335d;
      --bg-gradient-end: #17477f;
      --topbar-bg: rgba(15, 44, 82, 0.7);
      --topbar-border: rgba(255, 255, 255, 0.14);
      --mouse-glow-bg: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(125, 211, 252, 0.12) 35%, transparent 70%);
      --particle-bg: rgba(255, 255, 255, 0.82);
      --particle-shadow: 0 0 12px rgba(125, 211, 252, 0.45);
    }

    body[data-time-theme="sunset"] {
      --card: rgba(255, 255, 255, 0.12);
      --line: rgba(255, 255, 255, 0.16);
      --text: #fff2eb;
      --muted: #f1cfc2;
      --primary: #fb7185;
      --accent: #f97316;
      --bg-layer-1: rgba(251, 113, 133, 0.22);
      --bg-layer-2: rgba(249, 115, 22, 0.18);
      --bg-gradient-start: #28132d;
      --bg-gradient-end: #5d2b2b;
      --topbar-bg: rgba(42, 19, 33, 0.74);
      --topbar-border: rgba(255, 255, 255, 0.12);
      --mouse-glow-bg: radial-gradient(circle, rgba(251, 113, 133, 0.18) 0%, rgba(249, 115, 22, 0.14) 35%, transparent 70%);
      --particle-bg: rgba(255, 230, 220, 0.82);
      --particle-shadow: 0 0 12px rgba(251, 146, 60, 0.4);
    }

    body[data-time-theme="night"] {
      --card: rgba(255, 255, 255, 0.08);
      --line: rgba(255, 255, 255, 0.12);
      --text: #e5ecff;
      --muted: #9fb0d9;
      --primary: #6ea8fe;
      --accent: #8b5cf6;
      --bg-layer-1: rgba(110, 168, 254, 0.18);
      --bg-layer-2: rgba(139, 92, 246, 0.16);
      --bg-gradient-start: #08101f;
      --bg-gradient-end: #0f172a;
      --topbar-bg: rgba(8, 16, 31, 0.72);
      --topbar-border: rgba(255, 255, 255, 0.08);
      --mouse-glow-bg: radial-gradient(circle, rgba(110, 168, 254, 0.16) 0%, rgba(139, 92, 246, 0.10) 35%, transparent 70%);
      --particle-bg: rgba(255, 255, 255, 0.7);
      --particle-shadow: 0 0 12px rgba(147, 197, 253, 0.35);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top right, var(--bg-layer-1), transparent 28%),
        radial-gradient(circle at top left, var(--bg-layer-2), transparent 26%),
        linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
      overflow-x: hidden;
      transition:
        background 0.8s ease,
        color 0.5s ease;
    }

    body.nav-open {
      overflow: hidden;
    }

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

    button,
    input,
    textarea {
      font: inherit;
    }

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    [tabindex]:focus-visible {
      outline: 2px solid rgba(147, 197, 253, 0.9);
      outline-offset: 3px;
    }

    .skip-link {
      position: fixed;
      left: 16px;
      top: 16px;
      z-index: 80;
      padding: 10px 14px;
      border-radius: 14px;
      background: rgba(8, 16, 31, 0.96);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.12);
      transform: translateY(-160%);
      transition: transform 0.2s ease;
    }

    .skip-link:focus {
      transform: translateY(0);
    }

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

    .mouse-glow {
      position: absolute;
      width: 420px;
      height: 420px;
      left: 0;
      top: 0;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      background: var(--mouse-glow-bg);
      filter: blur(18px);
      opacity: 0.9;
      transition: background 0.8s ease;
    }

    #particles {
      position: absolute;
      inset: 0;
    }

    .particle {
      position: absolute;
      border-radius: 50%;
      background: var(--particle-bg);
      box-shadow: var(--particle-shadow);
      animation: floatParticle linear infinite;
    }

    .container {
      width: min(1120px, calc(100% - 32px));
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(14px);
      background: var(--topbar-bg);
      border-bottom: 1px solid var(--topbar-border);
      transition: background 0.5s ease, border-color 0.5s ease;
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 0;
    }

    .logo {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: 1px;
    }

    .nav-links {
      display: flex;
      gap: 18px;
      color: var(--muted);
      font-size: 14px;
    }

    .nav-toggle,
    .nav-backdrop {
      display: none;
    }

    .nav-toggle {
      width: 48px;
      height: 48px;
      padding: 0;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
    }

    .nav-toggle span {
      width: 18px;
      height: 2px;
      border-radius: 999px;
      background: currentColor;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .hero {
      padding: 88px 0 48px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 28px;
      align-items: stretch;
    }

    .hero-card,
    .panel,
    .timeline-item,
    .project-card,
    .contact-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 24px;
      box-shadow: var(--shadow);
      transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease;
    }

    .hero-card {
      padding: 42px;
    }

    .tag {
      display: inline-block;
      padding: 8px 14px;
      border-radius: 999px;
      background: rgba(110, 168, 254, 0.12);
      color: #bcd4ff;
      font-size: 13px;
      margin-bottom: 18px;
    }

    .typing-wrap {
      min-height: 28px;
      margin-bottom: 18px;
      color: #c9d8ff;
      font-size: 15px;
    }

    .typing-text {
      display: inline-block;
      border-right: 2px solid rgba(255, 255, 255, 0.85);
      padding-right: 6px;
      animation: blink 0.8s step-end infinite;
    }

    h1 {
      font-size: clamp(36px, 7vw, 56px);
      line-height: 1.1;
      margin: 0 0 18px;
    }

    .gradient {
      background: linear-gradient(90deg, #93c5fd, #c4b5fd);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .lead {
      color: var(--muted);
      font-size: 18px;
      line-height: 1.9;
      margin-bottom: 28px;
    }

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

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 20px;
      border-radius: 14px;
      font-weight: 600;
      transition: 0.25s ease;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      color: white;
    }

    .btn-secondary {
      border: 1px solid var(--line);
      color: var(--text);
      background: rgba(255, 255, 255, 0.03);
    }

    .btn:hover {
      transform: translateY(-2px);
      opacity: 0.95;
    }

    .hero-side {
      display: grid;
      gap: 18px;
    }

    .panel {
      padding: 24px;
    }

    .panel h3,
    .section-head h2 {
      margin-top: 0;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-top: 18px;
    }

    .stat {
      padding: 18px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stat strong {
      display: block;
      font-size: 26px;
      margin-bottom: 6px;
      color: white;
    }

    .section {
      padding: 28px 0;
    }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 22px;
    }

    .section-head p {
      margin: 0;
      color: var(--muted);
    }

    .cards-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .feature-card,
    .project-card,
    .contact-card {
      padding: 24px;
    }

    .feature-card {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--line);
      border-radius: 22px;
    }

    .feature-card,
    .project-card,
    .contact-card,
    .panel,
    .timeline-item,
    .hero-card {
      transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
    }

    .feature-card:hover,
    .project-card:hover,
    .contact-card:hover,
    .panel:hover,
    .timeline-item:hover,
    .hero-card:hover {
      transform: translateY(-8px) scale(1.01);
      border-color: rgba(147, 197, 253, 0.35);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 24px rgba(110, 168, 254, 0.12);
      background: rgba(255, 255, 255, 0.1);
    }

    .feature-card h3,
    .project-card h3,
    .contact-card h3 {
      margin-top: 12px;
      margin-bottom: 12px;
    }

    .icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(110, 168, 254, 0.22), rgba(139, 92, 246, 0.18));
      font-size: 22px;
    }

    .feature-card p,
    .project-card p,
    .timeline-item p,
    .contact-card p,
    .panel p,
    li {
      color: var(--muted);
      line-height: 1.8;
    }

    .skill-list,
    .contact-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .skill-list li,
    .contact-list li {
      padding: 12px 0;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    }

    .skill-list li:last-child,
    .contact-list li:last-child {
      border-bottom: none;
    }

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

    .project-card.expandable {
      cursor: pointer;
      user-select: none;
    }

    .project-tag {
      display: inline-block;
      margin-bottom: 10px;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(52, 211, 153, 0.12);
      color: #9ef1d1;
      font-size: 12px;
    }

    .project-hint {
      margin-top: 16px;
      color: #c7d6fb;
      font-size: 13px;
      opacity: 0.85;
    }

    .project-note {
      margin-top: 16px;
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #d8e5ff;
      line-height: 1.8;
    }

    .project-details {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
      margin-top: 0;
    }

    .project-card.open .project-details {
      max-height: 260px;
      opacity: 1;
      margin-top: 14px;
    }

    .project-card.open .project-hint {
      color: #9ef1d1;
    }

    .timeline {
      display: grid;
      gap: 16px;
    }

    .timeline-item {
      padding: 22px;
    }

    .timeline-item strong {
      display: block;
      margin-bottom: 8px;
      font-size: 18px;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 20px;
      margin-bottom: 64px;
    }

    .donate-grid {
      display: grid;
      grid-template-columns: 0.95fr 1.05fr;
      gap: 20px;
    }

    .donate-card {
      padding: 24px;
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 24px;
      box-shadow: var(--shadow);
      transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
    }

    .donate-card:hover {
      transform: translateY(-8px) scale(1.01);
      border-color: rgba(147, 197, 253, 0.35);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 24px rgba(110, 168, 254, 0.12);
      background: rgba(255, 255, 255, 0.1);
    }

    .donate-price-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 18px;
    }

    .donate-price {
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      border-radius: 18px;
      padding: 16px 10px;
      text-align: center;
      cursor: pointer;
      transition: 0.25s ease;
    }

    .donate-price strong {
      display: block;
      font-size: 22px;
      margin-bottom: 6px;
    }

    .donate-price.active,
    .donate-price:hover {
      border-color: rgba(147, 197, 253, 0.35);
      background: rgba(110, 168, 254, 0.12);
      transform: translateY(-2px);
    }

    .donate-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 18px;
    }

    .donate-methods {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
      margin-bottom: 16px;
    }

    .donate-method {
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.04);
      color: var(--muted);
      cursor: pointer;
      transition: 0.25s ease;
    }

    .donate-method.active,
    .donate-method:hover {
      color: white;
      border-color: rgba(147, 197, 253, 0.35);
      background: rgba(110, 168, 254, 0.12);
    }

    .donate-panel {
      display: none;
    }

    .donate-panel.active {
      display: block;
    }

    .qr-placeholder {
      min-height: 240px;
      border-radius: 24px;
      border: 1px dashed rgba(255, 255, 255, 0.16);
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        repeating-linear-gradient(
          45deg,
          rgba(255, 255, 255, 0.03),
          rgba(255, 255, 255, 0.03) 12px,
          rgba(255, 255, 255, 0.01) 12px,
          rgba(255, 255, 255, 0.01) 24px
        );
      display: grid;
      place-items: center;
      text-align: center;
      padding: 20px;
      color: #cddcff;
    }

    .donate-link-box {
      padding: 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      word-break: break-all;
      color: #d9e6ff;
      margin-bottom: 14px;
    }

    .donate-note-list {
      list-style: none;
      padding: 0;
      margin: 18px 0 0;
    }

    .donate-note-list li {
      padding: 10px 0;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    }

    .donate-note-list li:last-child {
      border-bottom: none;
    }

    .donate-modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(3, 8, 17, 0.72);
      backdrop-filter: blur(10px);
      z-index: 60;
    }

    .donate-modal.show {
      display: flex;
    }

    .donate-modal-card {
      width: min(760px, 100%);
      max-height: calc(100vh - 36px);
      overflow: auto;
      padding: 24px;
      background: rgba(9, 19, 37, 0.94);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 28px;
      box-shadow: var(--shadow);
    }

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

    .modal-close {
      width: 40px;
      height: 40px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      cursor: pointer;
      flex-shrink: 0;
    }

    .showcase-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr 0.8fr;
      gap: 20px;
    }

    .showcase-card,
    .faq-item {
      padding: 24px;
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 24px;
      box-shadow: var(--shadow);
      transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
    }

    .showcase-card:hover,
    .faq-item:hover {
      transform: translateY(-8px) scale(1.01);
      border-color: rgba(147, 197, 253, 0.35);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 24px rgba(110, 168, 254, 0.12);
      background: rgba(255, 255, 255, 0.1);
    }

    .showcase-card.large {
      min-height: 320px;
      position: relative;
      overflow: hidden;
    }

    .showcase-card.large::after {
      content: "";
      position: absolute;
      width: 220px;
      height: 220px;
      right: -60px;
      bottom: -70px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 70%);
      pointer-events: none;
    }

    .showcase-bars {
      margin-top: 18px;
      display: grid;
      gap: 12px;
    }

    .showcase-bar {
      height: 14px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.06);
      overflow: hidden;
    }

    .showcase-bar span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, rgba(110, 168, 254, 0.95), rgba(34, 211, 238, 0.95));
    }

    .faq-list {
      display: grid;
      gap: 16px;
    }

    .faq-question {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      font-weight: 700;
      cursor: pointer;
    }

    .faq-plus {
      width: 32px;
      height: 32px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.08);
      transition: transform 0.25s ease;
      flex-shrink: 0;
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
      margin-top: 0;
    }

    .faq-item.open .faq-answer {
      max-height: 180px;
      opacity: 1;
      margin-top: 14px;
    }

    .faq-item.open .faq-plus {
      transform: rotate(45deg);
    }

    .contact-highlights {
      display: grid;
      gap: 14px;
      margin-top: 20px;
    }

    .contact-highlight {
      padding: 16px 18px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-top: 16px;
    }

    .field {
      display: grid;
      gap: 8px;
    }

    .field.full {
      grid-column: 1 / -1;
    }

    .field input,
    .field textarea {
      width: 100%;
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      outline: none;
      transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .field input:focus,
    .field textarea:focus {
      border-color: rgba(147, 197, 253, 0.35);
      box-shadow: 0 0 0 4px rgba(110, 168, 254, 0.1);
    }

    .form-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      margin-top: 18px;
    }

    .form-note {
      font-size: 14px;
      color: var(--muted);
    }

    .back-top {
      position: fixed;
      right: 18px;
      bottom: 18px;
      width: 48px;
      height: 48px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      background: rgba(9, 19, 37, 0.84);
      color: var(--text);
      display: grid;
      place-items: center;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
      transition: 0.25s ease;
      backdrop-filter: blur(10px);
      z-index: 40;
    }

    .back-top.show {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 24px;
      transform: translate(-50%, 20px);
      padding: 14px 18px;
      border-radius: 16px;
      background: rgba(7, 14, 28, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: white;
      box-shadow: var(--shadow);
      opacity: 0;
      pointer-events: none;
      transition: 0.25s ease;
      z-index: 50;
    }

    .toast.show {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    footer {
      padding: 24px 0 40px;
      color: var(--muted);
      text-align: center;
      font-size: 14px;
    }

    .reveal {
      opacity: 0;
      transform: translateY(26px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    @keyframes blink {
      50% {
        border-color: transparent;
      }
    }

    @keyframes floatParticle {
      from {
        transform: translateY(0) scale(1);
        opacity: 0.15;
      }
      50% {
        opacity: 0.8;
      }
      to {
        transform: translateY(-120px) scale(1.25);
        opacity: 0.1;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

@media (max-width: 900px) {
      .hero-grid,
      .cards-3,
      .project-grid,
      .contact-grid,
      .showcase-grid,
      .form-grid {
        grid-template-columns: 1fr;
      }

      .nav {
        gap: 12px;
      }

      .nav-links {
        position: fixed;
        right: 16px;
        top: 78px;
        width: min(320px, calc(100vw - 32px));
        padding: 18px;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(8, 16, 31, 0.96);
        box-shadow: var(--shadow);
        display: grid;
        gap: 10px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 70;
      }

      .nav-toggle {
        display: inline-flex;
        margin-left: auto;
      }

      .nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 65;
        border: 0;
        background: rgba(3, 8, 17, 0.56);
        padding: 0;
      }

      .nav-backdrop:not([hidden]) {
        display: block;
      }

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

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

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

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

      .nav-links a {
        justify-content: flex-start;
      }

      .hero-card,
      .panel,
      .feature-card,
      .project-card,
      .timeline-item,
      .contact-card {
        padding: 20px;
      }
    }

/* --- multi-page additions --- */
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.feature-card .btn,
.project-card .btn,
.contact-card .btn,
.panel .btn {
  margin-top: 18px;
}

.hero-card .contact-list,
.panel .contact-list {
  margin: 18px 0 0;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.site-footer-links a {
  color: var(--muted);
}

.site-footer-links a:hover {
  color: white;
}

.embed-shell {
  min-height: 720px;
  overflow: hidden;
  padding: 0;
}

.embed-frame {
  width: 100%;
  min-height: 720px;
  border: 0;
  display: block;
  background: rgba(255, 255, 255, 0.02);
}

.embed-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.code-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe8ff;
  word-break: break-all;
}

.console-shell {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(110, 168, 254, 0.18);
  background: linear-gradient(180deg, rgba(7, 13, 25, 0.96), rgba(8, 16, 31, 0.9));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.console-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.console-toolbar-left,
.console-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.console-dots {
  display: flex;
  gap: 8px;
}

.console-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.console-dots span:nth-child(1) { background: #fb7185; }
.console-dots span:nth-child(2) { background: #fbbf24; }
.console-dots span:nth-child(3) { background: #34d399; }

.console-title {
  font-size: 14px;
  color: #dbe8ff;
  letter-spacing: 0.4px;
}

.console-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe8ff;
}

.console-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.65);
}

.console-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
}

.console-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 22px;
}

.console-main {
  min-width: 0;
}

.console-section {
  margin-bottom: 20px;
}

.console-section:last-child {
  margin-bottom: 0;
}

.console-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8fa7d8;
}

.console-metrics {
  display: grid;
  gap: 12px;
}

.console-metric {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.console-metric strong {
  display: block;
  margin-bottom: 6px;
  color: white;
}

.console-metric span {
  color: var(--muted);
  font-size: 14px;
}

.console-command-list {
  display: grid;
  gap: 10px;
}

.console-command {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 13px;
  color: #c9dcff;
  word-break: break-all;
}

.console-frame-wrap {
  padding: 18px;
}

.console-frame-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.console-frame-head h3 {
  margin: 0;
}

.console-frame-sub {
  font-size: 13px;
  color: var(--muted);
}

.console-terminal {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 18, 0.88);
}

.console-terminal-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 13px;
  color: #9fb0d9;
}

.console-terminal-body {
  padding: 0;
}

.console-status-line {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.theme-switcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 19, 37, 0.84);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
}

.theme-toggle-btn::before {
  content: "◐";
  font-size: 14px;
}

.theme-menu {
  position: absolute;
  left: 0;
  bottom: 60px;
  width: min(280px, calc(100vw - 36px));
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 31, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.theme-menu[hidden] {
  display: none;
}

.theme-menu-title {
  margin: 4px 4px 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.theme-menu-options {
  display: grid;
  gap: 8px;
}

.theme-option {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: 0.25s ease;
}

.theme-option:hover,
.theme-option.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.theme-menu-note {
  margin: 12px 4px 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.theme-menu-note a {
  color: #bcd4ff;
}

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

  .console-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .theme-switcher {
    left: 12px;
    bottom: 12px;
  }

  .theme-toggle-btn {
    padding: 10px 14px;
    font-size: 14px;
  }
}
