:root {
      --bg: #f8fafc;
      --bg-soft: #eef2f7;
      --panel: rgba(255, 255, 255, 0.8);
      --panel-strong: rgba(255, 255, 255, 0.92);
      --line: rgba(15, 23, 42, 0.12);
      --text: #0f172a;
      --muted: #475569;
      --accent: #0b2545;
      --accent-soft: #1e3a5f;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--text);
      background:
        radial-gradient(circle at 8% -10%, rgba(30, 64, 175, 0.1), transparent 36%),
        radial-gradient(circle at 92% 12%, rgba(15, 23, 42, 0.08), transparent 34%),
        linear-gradient(180deg, #f9fbff 0%, var(--bg) 45%, var(--bg-soft) 100%);
      font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
      overflow-x: hidden;
    }

    #network-bg {
      position: fixed;
      inset: 0;
      z-index: -1;
      width: 100%;
      height: 100%;
      pointer-events: none;
      opacity: 0.85;
    }

    .glass {
      backdrop-filter: blur(8px);
      background: var(--panel);
      border: 1px solid var(--line);
      box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07);
    }

    .section-card {
      background: var(--panel-strong);
      border: 1px solid var(--line);
      box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    }

    .reveal {
      opacity: 0;
      transform: translateY(12px) scale(0.985);
      filter: blur(6px);
      transition: all 0.55s ease;
      will-change: opacity, transform, filter;
    }

    .reveal.is-visible {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }

    .card-soft {
      transform: translateY(10px);
      filter: none;
      transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .card-soft.is-visible {
      transform: translateY(0);
      filter: none;
    }

    [data-delay="0"] {
      transition-delay: 0ms;
    }

    [data-delay="120"] {
      transition-delay: 120ms;
    }

    [data-delay="240"] {
      transition-delay: 240ms;
    }

    .chip {
      border: 1px solid rgba(30, 58, 95, 0.22);
      background: rgba(255, 255, 255, 0.78);
      color: var(--accent);
      opacity: 0;
      transform: scale(0.96);
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .reveal.is-visible .chip {
      opacity: 1;
      transform: scale(1);
    }

    .chip:nth-child(4n + 1) {
      transition-delay: 0ms;
    }

    .chip:nth-child(4n + 2) {
      transition-delay: 80ms;
    }

    .chip:nth-child(4n + 3) {
      transition-delay: 160ms;
    }

    .chip:nth-child(4n + 4) {
      transition-delay: 240ms;
    }

    .icon-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2.6rem;
      height: 2.6rem;
      border-radius: 0.9rem;
      border: 1px solid rgba(15, 23, 42, 0.18);
      background: rgba(255, 255, 255, 0.86);
      color: #1e293b;
      transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    }

    .icon-link:hover {
      color: #0b2545;
      border-color: rgba(11, 37, 69, 0.35);
      box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
      transform: translateY(-1px);
    }

    .icon-link svg {
      width: 24px;
      height: 24px;
    }

    .hero-actions-group {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
    }

    .hero-actions-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.75rem;
      width: min(100%, 760px);
    }

    .hero-social-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.9rem;
      width: 100%;
    }

    .hero-social-row .icon-link {
      width: 2.6rem;
      height: 2.6rem;
      border-radius: 0.9rem;
      border: 1px solid rgba(15, 23, 42, 0.12);
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
      color: #1b2740;
    }

    .hero-social-row .icon-link:hover {
      color: #0b2545;
      border-color: rgba(11, 37, 69, 0.2);
      box-shadow: 0 18px 36px rgba(15, 23, 42, 0.11), 0 4px 10px rgba(15, 23, 42, 0.06);
      transform: translateY(-2px);
    }

    .hero-social-row .icon-link svg {
      width: 24px;
      height: 24px;
    }


    .contact-icons {
      gap: 16px;
    }

    .contact-icons .icon-link {
      transition: transform 0.2s ease, color 0.2s ease;
    }

    .contact-icons .icon-link:hover {
      transform: scale(1.05);
    }

    .stack-group {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid var(--line);
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    }

    .tech-grid {
      display: grid;
      gap: 0.4rem;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .tech-card {
      display: grid;
      justify-items: center;
      gap: 0.18rem;
      min-height: 72px;
      padding: 0.08rem 0.12rem;
      border-radius: 0.6rem;
      border: 1px solid transparent;
      background: transparent;
      color: #1e293b;
      box-shadow: none;
      transition: transform 0.2s ease;
    }

    .tech-card:hover {
      transform: translateY(-1px);
    }

    .tech-icon {
      font-size: 2rem;
      line-height: 1;
      color: #0b2545;
      flex: 0 0 auto;
    }

    .tech-icon-fallback {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2rem;
      height: 2rem;
      border-radius: 999px;
      border: 1px solid rgba(15, 23, 42, 0.2);
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      flex: 0 0 auto;
    }

    .tech-name {
      font-size: 0.74rem;
      font-weight: 700;
      color: #1f2937;
      text-align: center;
    }

    .tech-level {
      display: inline-flex;
      align-items: center;
      gap: 0.18rem;
      min-height: 0.45rem;
    }

    .tech-dot {
      width: 0.36rem;
      height: 0.36rem;
      border-radius: 999px;
      background: var(--line);
      display: inline-block;
    }

    .tech-dot.is-filled {
      background: var(--accent);
    }

    .tech-card--focus {
      border-color: transparent;
      background: transparent;
      box-shadow: none;
    }

    .tech-card--focus .tech-icon {
      font-size: 2.3rem;
      color: #1e40af;
    }

    .tech-card--focus .tech-name {
      color: #1e40af;
    }

    .tech-card--focus .tech-dot.is-filled {
      background: #1e40af;
    }

    .tech-soon {
      font-size: 0.68rem;
      color: #64748b;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .avatar-placeholder {
      width: 112px;
      height: 112px;
      display: block;
      border-radius: 50%;
      border: 2px solid rgba(30, 58, 95, 0.52);
      background: #f8fafc;
      object-fit: cover;
      filter: none;
      box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
      flex: 0 0 112px;
    }

    .avatar-badge-wrap {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 0.35rem;
    }

    .open-to-work-badge {
      display: block;
      text-align: center;
      margin-top: 6px;
      border: 1px solid rgba(30, 58, 95, 0.22);
      background: rgba(255, 255, 255, 0.78);
      color: var(--accent);
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      border-radius: 999px;
      padding: 2px 10px;
    }

    .projects-shell {
      position: relative;
      overflow: hidden;
      border-radius: 1.2rem;
      isolation: isolate;
      padding: 0.25rem 0;
      padding-bottom: 10px;
      cursor: grab;
      touch-action: pan-y;
    }

    .projects-shell.is-dragging {
      cursor: grabbing;
    }

    .projects-shell::before,
    .projects-shell::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      width: 88px;
      z-index: 3;
      pointer-events: none;
    }

    .projects-shell::before {
      left: 0;
      background: linear-gradient(90deg, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0));
    }

    .projects-shell::after {
      right: 0;
      background: linear-gradient(270deg, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0));
    }

    .projects-track {
      display: flex;
      align-items: stretch;
      gap: 24px;
      width: max-content;
      padding: 0.25rem 0.7rem 0.85rem;
      will-change: transform;
      transform: translate3d(0, 0, 0);
    }

    .projects-nav {
      position: absolute;
      top: 50%;
      z-index: 4;
      width: 2.8rem;
      height: 2.8rem;
      border-radius: 999px;
      border: 1px solid rgba(15, 23, 42, 0.14);
      background: rgba(255, 255, 255, 0.78);
      color: #0f172a;
      font-size: 1.3rem;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transform: translateY(-50%);
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
      backdrop-filter: blur(4px);
      transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
      cursor: pointer;
    }

    .projects-nav:hover {
      background: rgba(255, 255, 255, 0.94);
      border-color: rgba(15, 23, 42, 0.24);
      transform: translateY(-50%) scale(1.03);
      box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    }

    .projects-nav svg {
      width: 20px;
      height: 20px;
      display: block;
    }

    .projects-nav:focus-visible {
      outline: 2px solid #2563eb;
      outline-offset: 2px;
    }

    .projects-nav--prev {
      left: 0.6rem;
    }

    .projects-nav--next {
      right: 0.6rem;
    }

    .project-item {
      flex: none;
      width: 320px;
      min-width: 320px;
      max-width: 320px;
      height: 244px;
      min-height: 244px;
      perspective: 1300px;
    }

    .project-flip {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 1rem;
      transform-style: preserve-3d;
      transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.22, 1);
      box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
    }

    .project-item:hover .project-flip,
    .project-item:focus-within .project-flip {
      transform: rotateY(180deg);
    }

    .project-face {
      position: absolute;
      inset: 0;
      border-radius: 1rem;
      overflow: hidden;
      backface-visibility: hidden;
      border: 1px solid rgba(15, 23, 42, 0.14);
      background: rgba(255, 255, 255, 0.9);
      display: flex;
      flex-direction: column;
    }

    .project-face--front {
      transform: rotateY(0deg);
      position: relative;
      display: grid;
      grid-template-rows: 191.8px 52.2px;
    }

    .project-face--front::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 140px;
      background: linear-gradient(180deg, rgba(11, 37, 69, 0.06), rgba(11, 37, 69, 0.38));
      opacity: 0;
      transition: opacity 0.25s ease;
      pointer-events: none;
      z-index: 1;
    }

    .project-face--back {
      transform: rotateY(180deg);
      padding: 1rem;
      background: linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
      color: #e2e8f0;
      justify-content: space-between;
    }

    .project-cover {
      width: 100%;
      height: 100%;
      min-height: 0;
      object-fit: cover;
    }

    .project-front-body {
      padding: 0.78rem 0.9rem 0.88rem;
      display: grid;
      gap: 0.5rem;
      position: relative;
    }

    .project-title {
      margin: 0;
      font-size: 0.9rem;
      font-weight: 700;
      color: #0f172a;
      line-height: 1.35;
    }

    .project-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      position: absolute;
      left: 0.9rem;
      right: 0.9rem;
      top: -2.25rem;
      z-index: 2;
      opacity: 0;
      transform: translateY(6px);
      transition: opacity 0.25s ease, transform 0.25s ease;
      pointer-events: none;
    }

    .project-badge {
      display: inline-flex;
      align-items: center;
      padding: 0.17rem 0.42rem;
      border-radius: 999px;
      border: 1px solid rgba(248, 250, 252, 0.45);
      background: rgba(11, 37, 69, 0.82);
      font-size: 0.6rem;
      font-weight: 600;
      color: rgba(248, 250, 252, 0.96);
      letter-spacing: 0.02em;
    }

    .project-item:hover .project-face--front::after,
    .project-item:focus-within .project-face--front::after {
      opacity: 1;
    }

    .project-item:hover .project-badges,
    .project-item:focus-within .project-badges {
      opacity: 1;
      transform: translateY(0);
    }

    .project-back-title {
      margin: 0 0 0.45rem;
      font-size: 0.88rem;
      font-weight: 700;
      color: #f1f5f9;
      letter-spacing: 0.01em;
    }

    .project-desc {
      margin: 0;
      font-size: 0.8rem;
      line-height: 1.5;
      color: #cbd5e1;
      max-width: 36ch;
    }

    .project-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem;
    }

    .project-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.34rem 0.62rem;
      border-radius: 0.6rem;
      border: 1px solid rgba(226, 232, 240, 0.42);
      background: rgba(148, 163, 184, 0.12);
      color: #f8fafc;
      text-decoration: none;
      font-size: 0.72rem;
      font-weight: 700;
      transition: background 0.2s ease, border-color 0.2s ease;
    }

    .project-link:hover {
      background: rgba(148, 163, 184, 0.24);
      border-color: rgba(226, 232, 240, 0.8);
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
      }

      .chip {
        opacity: 1;
        transform: none;
        transition: none;
      }

      .icon-link {
        transition: none;
      }

      .project-flip {
        transition: none;
      }

      .project-item:hover .project-flip,
      .project-item:focus-within .project-flip {
        transform: none;
      }

      #network-bg {
        opacity: 0.45;
      }
    }

    @media (max-width: 768px) {
      .projects-shell::before,
      .projects-shell::after {
        width: 34px;
      }

      .projects-nav {
        width: 24px;
        height: 24px;
      }

      .projects-nav--prev {
        left: 0.35rem;
      }

      .projects-nav--next {
        right: 0.35rem;
      }

      .projects-track {
        gap: 18px;
      }

      .project-item {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
      }
    }




