/* ============================================================
   INTRO ANIMATION CSS — Premium Cinematic v2
   ============================================================ */

/* Lock body during intro */
body.intro-active {
  overflow: hidden;
}

/* ─── Overlay ─── */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg, #05070f);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: clip-path, transform;
}

/* ─── Ambient glow behind text ─── */
#intro-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, #6366f1) 0%, transparent 70%);
  opacity: 0;
  filter: blur(80px);
  pointer-events: none;
  will-change: opacity, transform;
}

/* ─── Particles / Sparkles ─── */
.intro-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent, #6366f1);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ─── Center content ─── */
.intro-text-container {
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ─── Horizontal line ─── */
#intro-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, #6366f1), transparent);
  opacity: 0;
  margin-bottom: 32px;
  will-change: width, opacity;
  box-shadow: 0 0 8px var(--accent, #6366f1);
}

/* ─── Name "ISMET" ─── */
#intro-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--text, #ffffff);
  letter-spacing: 0.15em;
  margin: 0;
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.92) translateY(10px);
  will-change: transform, opacity, filter;
}

/* ─── Subtitle "Nur Fadillah, S.Kom" ─── */
#intro-title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 14px 0 0 0;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px);
  will-change: transform, opacity, filter;
}

/* ─── Decorative corner marks ─── */
.intro-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0;
  will-change: opacity;
}

.intro-corner::before,
.intro-corner::after {
  content: '';
  position: absolute;
  background: var(--accent, #6366f1);
  opacity: 0.4;
}

.intro-corner--tl { top: 15%; left: 15%; }
.intro-corner--tl::before { top: 0; left: 0; width: 28px; height: 1px; }
.intro-corner--tl::after  { top: 0; left: 0; width: 1px; height: 28px; }

.intro-corner--tr { top: 15%; right: 15%; }
.intro-corner--tr::before { top: 0; right: 0; width: 28px; height: 1px; }
.intro-corner--tr::after  { top: 0; right: 0; width: 1px; height: 28px; }

.intro-corner--bl { bottom: 15%; left: 15%; }
.intro-corner--bl::before { bottom: 0; left: 0; width: 28px; height: 1px; }
.intro-corner--bl::after  { bottom: 0; left: 0; width: 1px; height: 28px; }

.intro-corner--br { bottom: 15%; right: 15%; }
.intro-corner--br::before { bottom: 0; right: 0; width: 28px; height: 1px; }
.intro-corner--br::after  { bottom: 0; right: 0; width: 1px; height: 28px; }

/* ─── Bottom tagline ─── */
#intro-tagline {
  position: absolute;
  bottom: 10%;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  opacity: 0;
  will-change: opacity;
}
