/* ── LOADER ─────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 280px;
}

.loader-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.loader-logo .mono { color: var(--cyan); }
.loader-name { color: var(--text); }

.loader-bar {
  width: 100%;
  height: 2px;
  background: var(--surface3);
  border-radius: 100px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 100px;
  transition: width 0.1s;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.loader-status {
  font-size: 0.72rem;
  color: var(--text3);
  letter-spacing: 0.1em;
}


/* ── SCROLL REVEAL ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }


/* ── CURSOR ─────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.4);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), width 0.3s, height 0.3s, opacity 0.3s;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 14px;
  height: 14px;
}

body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower {
  width: 56px;
  height: 56px;
  border-color: rgba(0,229,255,0.25);
}


/* ── COUNTER ─────────────────────────── */
.counter { display: inline-block; }


/* ── MISC TRANSITIONS ─────────────────────────── */
section { transition: background 0.3s; }

/* Glow ambient effect on hover cards */
.project-card:hover .project-icon,
.ach-card.ach-featured:hover .ach-icon {
  box-shadow: 0 0 24px var(--cyan-glow);
}
