/* ============================================================
   PDE Performance — Base & Reset (glass-effect2 system)
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) var(--bg);
}

/* Custom scrollbar */
::-webkit-scrollbar         { width: 6px; }
::-webkit-scrollbar-track   { background: var(--bg); }
::-webkit-scrollbar-thumb   { background: rgba(255,255,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #E41E26; }

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

img    { display: block; max-width: 100%; }
a      { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; background: none; }
::selection { background: var(--red); color: #fff; }

/* ── Noise Overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ── Glass Panel ── */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border-t);
  border-left: 1px solid var(--border-s);
  border-right: 1px solid var(--border-s);
  border-bottom: 1px solid var(--border-b);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
}

/* Shimmer sweep on hover */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: 0.5s;
  pointer-events: none;
  z-index: 20;
}
.glass-panel:hover {
  background: var(--glass-hover);
  border-top-color: rgba(255,255,255,0.30);
  border-left-color: rgba(255,255,255,0.20);
  border-right-color: rgba(255,255,255,0.20);
  border-bottom-color: rgba(255,255,255,0.10);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);  /* pure dark — no colored glow */
}
.glass-panel:hover::before {
  left: 100%;
  transition: 0.7s ease-in-out;
}

/* ── Liquid Blob ── */
.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
  animation: float 10s infinite alternate;
}

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--red), var(--red-s));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.teal-gradient {
  background: linear-gradient(135deg, var(--teal), var(--teal-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
