  /* Full-page animated gradient background */
    body {
      margin: 0;
      min-height: 100vh;
      background: radial-gradient(circle at top, #1f2933, #020617);
      background-size: 200% 200%;
      animation: bgShift 12s ease-in-out infinite;
      color: #f9fafb;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    @keyframes bgShift {
      0%   { background-position: 0% 0%; }
      50%  { background-position: 100% 100%; }
      100% { background-position: 0% 0%; }
    }

    /* Subtle glowing pulse behind the page */
    .glow-circle {
      position: fixed;
      inset: auto auto -12rem -12rem;
      width: 34rem;
      height: 34rem;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(45, 212, 191, 0.20), transparent 60%);
      filter: blur(2px);
      z-index: 0;
      animation: glowPulse 6s ease-in-out infinite alternate;
      pointer-events: none;
    }

    @keyframes glowPulse {
      from { transform: scale(1); opacity: 0.55; }
      to   { transform: scale(1.12); opacity: 0.85; }
    }

    /* Card style (glass look) */
    .panel-card {
      position: relative;
      z-index: 1;
      padding: 1.6rem 1.6rem;
      border-radius: 1.4rem;
      background: rgba(15, 23, 42, 0.72);
      border: 1px solid rgba(148, 163, 184, 0.40);
      backdrop-filter: blur(14px);
      box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.65),
        0 0 0 1px rgba(15, 23, 42, 0.55);
      transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    .panel-card:hover {
      transform: translateY(-3px);
      border-color: rgba(45, 212, 191, 0.45);
      box-shadow:
        0 22px 65px rgba(15, 23, 42, 0.72),
        0 0 0 1px rgba(45, 212, 191, 0.18);
    }

    .panel-title {
      font-size: 0.9rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #9ca3af;
      margin-bottom: 0.9rem;
    }

    .muted { color: rgba(226, 232, 240, 0.82); }

    /* Sticky nav */
    .site-nav {
      position: sticky;
      top: 0;
      z-index: 10;
      backdrop-filter: blur(14px);
      background: rgba(2, 6, 23, 0.55);
      border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    }

    .brand { font-weight: 700; letter-spacing: 0.02em; }

    /* Terminal-green status dot */
    .status-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      display: inline-block;
      margin-left: 10px;
      background: #00ff66;
      box-shadow: 0 0 10px rgba(0, 255, 102, 0.55);
      animation: statusPulse 2.8s ease-in-out infinite;
      vertical-align: middle;
    }

    @keyframes statusPulse {
      0%   { background: #00ff66; box-shadow: 0 0 12px rgba(0, 255, 102, 0.60); transform: scale(1); }
      50%  { background: #0a3d1f; box-shadow: 0 0 6px rgba(0, 255, 102, 0.15); transform: scale(0.92); }
      100% { background: #00ff66; box-shadow: 0 0 12px rgba(0, 255, 102, 0.60); transform: scale(1); }
    }

    /* Small pills (tags) */
    .tag {
      display: inline-block;
      padding: 0.22rem 0.55rem;
      border-radius: 999px;
      background: rgba(45, 212, 191, 0.12);
      border: 1px solid rgba(45, 212, 191, 0.28);
      color: rgba(226, 232, 240, 0.95);
      font-size: 0.82rem;
      margin: 0.15rem 0.15rem 0 0;
      white-space: nowrap;
    }

    /* Anchor offset so headings don't hide behind sticky nav */
    .anchor-offset { scroll-margin-top: 90px; }

    /* Buttons */
    .btn-soft {
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: rgba(15, 23, 42, 0.35);
      color: #f9fafb;
    }

    .btn-soft:hover {
      border-color: rgba(45, 212, 191, 0.45);
      background: rgba(15, 23, 42, 0.50);
      color: #f9fafb;
    }

    /* Lists */
    .panel-card ul { padding-left: 1.1rem; margin-bottom: 0; }
    .panel-card li { margin-bottom: 0.45rem; }

    /* Reduce spacing on small screens */
    @media (max-width: 576px) {
      .panel-card { padding: 1.25rem; }
    }

    /* Navy mini-card for each project */
    .project-card {
      padding: 1rem 1rem;
      border-radius: 1rem;
      background: rgba(2, 6, 23, 0.30);
      border: 1px solid rgba(148, 163, 184, 0.16);
    }

    .justify { text-align: justify; text-justify: inter-word; }

    /* Qualifications list with logo pills */
    .qual-list { list-style: none; padding-left: 0; margin: 0; }

    .qual-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 0.65rem;
    }

    .qual-logo {
      display: inline-flex;
      align-items: center;
      padding: 0.55rem 0.9rem;
    }

    .qual-logo img {
      height: 34px;
      width: auto;
      display: block;
      opacity: 0.9;
    }

    .qual-logo:hover img { opacity: 1; }

    /* Feature card accent */
    .feature-card {
      border: 1px solid rgba(0, 255, 102, 0.22) !important;
      box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(0, 255, 102, 0.12);
    }

    .feature-card .panel-title,
    .feature-card .muted { opacity: 0.95; }

    /* Carousel image sizing: ~25% taller, crop nicely */
    .carousel-img {
      width: 100%;
      height: 360px;         /* bump this up/down if needed */
      object-fit: cover;
      display: block;
    }

    @media (max-width: 576px) {
      .carousel-img { height: 300px; }
    }

    /* ---------------- Intro overlay + "lock-on" dot animation ---------------- */

    /* We keep your background vibe. Overlay sits on top until finished. */
    #introOverlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at top, #1f2933, #020617);
      background-size: 200% 200%;
      animation: bgShift 12s ease-in-out infinite;
    }

    #introOverlay.is-fading {
      animation: introFadeOut 650ms ease forwards;
    }

    @keyframes introFadeOut {
      to { opacity: 0; visibility: hidden; }
    }

    /* Intro dot inside the pill */
    .intro-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      display: inline-block;
      background: #00ff66;
      box-shadow: 0 0 12px rgba(0, 255, 102, 0.60);
      animation: introDotPulse 2.2s ease-in-out infinite;
    }

    @keyframes introDotPulse {
      0%   { background: #00ff66; box-shadow: 0 0 12px rgba(0,255,102,.60); transform: scale(1); }
      50%  { background: #0a3d1f; box-shadow: 0 0 6px rgba(0,255,102,.15);  transform: scale(0.92); }
      100% { background: #00ff66; box-shadow: 0 0 12px rgba(0,255,102,.60); transform: scale(1); }
    }

    /* The flying dot (a separate fixed element so we can land exactly on the nav dot) */
    #flyDot {
      position: fixed;
      left: 0;
      top: 0;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #00ff66;
      box-shadow: 0 0 12px rgba(0, 255, 102, 0.60);
      z-index: 10000;
      pointer-events: none;
      opacity: 0;
    }

    /* Portfolio starts hidden until intro ends */
    #portfolio {
      opacity: 0;
      visibility: hidden;
    }

    #portfolio.is-visible {
      visibility: visible;
      animation: portfolioFadeIn 700ms ease forwards;
    }

    @keyframes portfolioFadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* Respect reduced-motion */
    @media (prefers-reduced-motion: reduce) {
      body { animation: none; }
      .glow-circle { animation: none; }
      .status-dot { animation: none; }
      .intro-dot { animation: none; }
      #introOverlay { animation: none; }
      #portfolio.is-visible { animation: none; opacity: 1; }
    }