/* ==========================================================================
   Apple "hello" -> "سلام" Cinematic Intro Overlay
   ========================================================================== */

#apple-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #030408;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#apple-intro.intro-dismissed {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

/* Background Soft Atmosphere Glow */
.intro-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, rgba(124, 58, 237, 0.09) 45%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  animation: introGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes introGlowPulse {
  0% { transform: scale(0.9) translate3d(0, 0, 0); opacity: 0.55; }
  100% { transform: scale(1.15) translate3d(0, -10px, 0); opacity: 0.95; }
}

/* Container for the SVG calligraphy */
.intro-stage {
  position: relative;
  width: 90vw;
  max-width: 620px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-svg-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-svg-wrap.fade-out {
  opacity: 0;
  transform: scale(0.94) translateY(-8px);
  pointer-events: none;
}

.intro-svg-wrap.fade-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.intro-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Stroke animations */
.apple-hello-path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 62;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8000;
  stroke-dashoffset: 8000;
  filter: drop-shadow(0 2px 18px rgba(255, 255, 255, 0.45));
}

.apple-salam-path {
  fill: none;
  stroke: #22d3ee;
  stroke-width: 58;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8000;
  stroke-dashoffset: 8000;
  filter: drop-shadow(0 2px 20px rgba(34, 211, 238, 0.55));
}

/* Subtle tagline under the script */
.intro-meta {
  position: absolute;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-meta.meta-in {
  opacity: 1;
  transform: translateY(0);
}

.intro-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
}

/* Skip intro button */
/* .intro-skip removed */ .intro-skip-removed {
  position: absolute;
  top: 28px;
  right: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  z-index: 10;
}

/* .intro-skip removed */ .intro-skip-removed:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
