/* ============================================================
   Taste-Skill Enhancement v3
   Reading this as: Personal portfolio for a market strategy
   professional → premium-understated dark theme.

   Strategy: Keep original color palette. Upgrade ONLY:
   font, card surfaces, texture, typography, interactions.

   Dials: VARIANCE=6 / MOTION=4 / DENSITY=3
   ============================================================ */

/* =================================================================
   LAYER 1: FONT UPGRADE
   Inter → Geist. The #1 most visible taste improvement.
   ================================================================= */

body {
  font-family: 'Geist', 'Geist Fallback', 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =================================================================
   LAYER 2: CARD SURFACE UPGRADE
   Target actual DOM elements: divs with backdrop-blur + rounded
   (these are the card-like elements in the compiled React app).
   Keeps original colors, improves surface quality.
   ================================================================= */

div[class*="backdrop-blur"][class*="rounded"] {
  /* Slightly richer surface than flat glassmorphism */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.06) 100%
  ) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

div[class*="backdrop-blur"][class*="rounded"]:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.08) 100%
  ) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  transform: translateY(-1px);
}

/* =================================================================
   LAYER 3: TYPOGRAPHY HIERARCHY
   ================================================================= */

h1, h2, h3,
[class*="text-5xl"],
[class*="text-4xl"],
[class*="text-8xl"] {
  letter-spacing: -0.025em !important;
  font-weight: 600 !important;
}

p {
  line-height: 1.75;
}

/* =================================================================
   LAYER 4: INTERACTION POLISH
   ================================================================= */

button:active:not(:disabled),
[role="button"]:active:not(:disabled),
a:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}

*:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5) !important;
  outline-offset: 2px;
  border-radius: 2px;
}

/* =================================================================
   LAYER 5: SCROLLBAR
   ================================================================= */

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.10) !important;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.20) !important;
}

/* =================================================================
   LAYER 6: SELECTION
   ================================================================= */

::selection {
  background: rgba(150, 180, 220, 0.25);
  color: #e8edf2;
}

/* =================================================================
   End Enhancement Layer v3
   ================================================================= */
