:root {
      --bg-base: #0a0c10;
      --bg-surface: #11141b;
      --bg-elevated: #171b24;
      --border-subtle: rgba(255, 255, 255, 0.08);
      --text-primary: #f3f4f6;
      --text-secondary: #9ca3af;
      --text-muted: #6b7280;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--bg-base);
      color: var(--text-primary);
      margin: 0;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    .font-mono {
      font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    }

    /* Splash Screen Split-Away Animation */
    #splash-screen {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      user-select: none;
    }

    .splash-half {
      position: absolute;
      left: 0;
      right: 0;
      height: 50%;
      background: #07090d;
      transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.85s ease;
      z-index: 1;
    }

    .splash-top {
      top: 0;
      border-bottom: 1px solid rgba(56, 189, 248, 0.22);
    }

    .splash-bottom {
      bottom: 0;
      border-top: 1px solid rgba(168, 85, 247, 0.22);
    }

    #splash-screen.splitting .splash-top {
      transform: translateY(-102%);
    }

    #splash-screen.splitting .splash-bottom {
      transform: translateY(102%);
    }

    #splash-screen.splitting .splash-content {
      opacity: 0;
      transform: scale(1.06);
      filter: blur(6px);
    }

    .splash-content {
      position: relative;
      z-index: 2;
      text-align: center;
      transition: opacity 0.4s ease, transform 0.45s ease, filter 0.45s ease;
      padding: 0 1.5rem;
    }

    @keyframes splashTitleIn {
      0% {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
        letter-spacing: 0.14em;
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: -0.02em;
      }
    }

    .splash-title-anim {
      animation: splashTitleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    @keyframes pulseLine {
      0%, 100% { opacity: 0.35; transform: scaleX(0.85); }
      50% { opacity: 0.9; transform: scaleX(1); }
    }

    .splash-divider {
      height: 2px;
      width: 180px;
      margin: 1rem auto 0.85rem;
      background: linear-gradient(90deg, transparent, #38bdf8, #a855f7, transparent);
      animation: pulseLine 2s ease-in-out infinite;
    }

    /* Page Transitions */
    @keyframes fadeSlideUp {
      from {
        opacity: 0;
        transform: translateY(14px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .view-enter {
      animation: fadeSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* Project Card Tiers */
    .project-card {
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                  box-shadow 0.28s ease,
                  border-color 0.28s ease;
      will-change: transform;
    }

    .project-card:hover {
      transform: scale(1.026) translateY(-3px);
    }

    .tier-gold {
      background: linear-gradient(155deg, rgba(234, 179, 8, 0.11) 0%, rgba(17, 20, 27, 0.96) 55%);
      border: 1px solid rgba(234, 179, 8, 0.32);
    }
    .tier-gold:hover {
      border-color: rgba(250, 204, 21, 0.68);
      box-shadow: 0 18px 40px -15px rgba(234, 179, 8, 0.22);
    }

    .tier-purple {
      background: linear-gradient(155deg, rgba(168, 85, 247, 0.12) 0%, rgba(17, 20, 27, 0.96) 55%);
      border: 1px solid rgba(168, 85, 247, 0.32);
    }
    .tier-purple:hover {
      border-color: rgba(192, 132, 252, 0.68);
      box-shadow: 0 18px 40px -15px rgba(168, 85, 247, 0.24);
    }

    .tier-blue {
      background: linear-gradient(155deg, rgba(59, 130, 246, 0.10) 0%, rgba(17, 20, 27, 0.96) 55%);
      border: 1px solid rgba(59, 130, 246, 0.26);
    }
    .tier-blue:hover {
      border-color: rgba(96, 165, 250, 0.58);
      box-shadow: 0 18px 40px -15px rgba(59, 130, 246, 0.20);
    }

    .tier-grey {
      background: linear-gradient(155deg, rgba(107, 114, 128, 0.11) 0%, rgba(17, 20, 27, 0.97) 55%);
      border: 1px solid rgba(156, 163, 175, 0.20);
    }
    .tier-grey:hover {
      border-color: rgba(156, 163, 175, 0.45);
      box-shadow: 0 18px 40px -15px rgba(0, 0, 0, 0.55);
    }

    /* Avatar Ring Pulse */
    @keyframes ringFloat {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-6px); }
    }
    .avatar-float {
      animation: ringFloat 5s ease-in-out infinite;
    }

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    ::-webkit-scrollbar-track {
      background: #0a0c10;
    }
    ::-webkit-scrollbar-thumb {
      background: #232836;
      border-radius: 9999px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #374151;
    }
