/* =========================================
   BASE — base.css
   ─────────────────────────────────────────
   Box-model reset, body, particle canvas,
   and the full-bleed hero background.
   ========================================= */

/* ── Reset ────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── Body ─────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background: #060c06;
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  
  /* Prevent text selection globally */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Global Image Styling & Fallback */
img {
  -webkit-user-drag: none;
  user-drag: none;
  position: relative;
  color: transparent; /* Hides default native broken alt text */
}

/* When image fails to load, browsers apply these to cover the broken icon */
img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #111; 
  z-index: 2;
}

img::after {
  content: attr(alt);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 1rem;
  background-color: #111; /* Ensure background covers behind text */
}

/* ── Particle canvas ──────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Hero background ──────────────────── */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  overflow: hidden;
  animation: heroZoom 25s ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
  transform-origin: center center;
  isolation: isolate;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 12, 6, 0.55) 0%,
    rgba(6, 12, 6, 0.25) 30%,
    rgba(6, 12, 6, 0.55) 70%,
    rgba(6, 12, 6, 0.92) 100%
  );
  z-index: 1;
}

/* ── Premium Scrollbar ──────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}
