/**
 * Premium Cosmic Starfield, Shooting Meteors & Tech Rings Animation
 * Applied globally to .page-title-section across all pages in School ERP
 */

.page-title-section,
.contact-page-banner {
  position: relative !important;
  background: linear-gradient(135deg, #050B1B 0%, #0A1638 45%, #08112C 100%) !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgba(0, 102, 255, 0.3) !important;
  color: #FFFFFF !important;
  text-align: center !important;
}

/* Ensure Text & Breadcrumbs Sit Above Animation */
.page-title-section .container,
.page-title-section .page-title-content,
.contact-page-banner .container,
.contact-page-banner .page-title-content {
  position: relative !important;
  z-index: 5 !important;
}

/* ── Container for All Background Animation Elements ───────────────── */
.banner-anim-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* ── Ambient Glowing Aurora Orbs ───────────────────────────────────── */
.banner-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  pointer-events: none;
}
.banner-glow-orb.orb-left {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.32) 0%, rgba(0, 102, 255, 0) 70%);
  top: -120px;
  left: -60px;
  animation: floatBannerOrbLeft 16s ease-in-out infinite alternate;
}
.banner-glow-orb.orb-right {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.24) 0%, rgba(0, 240, 255, 0) 70%);
  bottom: -140px;
  right: -60px;
  animation: floatBannerOrbRight 18s ease-in-out infinite alternate;
}
.banner-glow-orb.orb-center {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(124, 58, 237, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseCenterOrb 12s ease-in-out infinite alternate;
}

@keyframes floatBannerOrbLeft {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-30px, 70px) scale(0.92); }
}
@keyframes floatBannerOrbRight {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -40px) scale(1.18); }
  100% { transform: translate(40px, -30px) scale(0.9); }
}
@keyframes pulseCenterOrb {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.9; }
}

/* ── Cyber Perspective Tech Grid ───────────────────────────────────── */
.banner-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 50%, transparent 100%);
}

/* ── Concentric Expanding Tech Rings (Sonar Pulse) ─────────────────── */
.banner-tech-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(0, 150, 255, 0.20);
  pointer-events: none;
  z-index: 1;
}
.banner-tech-ring.ring-1 {
  width: 260px;
  height: 260px;
  animation: ringPulse 9s ease-out infinite;
}
.banner-tech-ring.ring-2 {
  width: 480px;
  height: 480px;
  animation: ringPulse 9s ease-out infinite 3s;
}
.banner-tech-ring.ring-3 {
  width: 720px;
  height: 720px;
  animation: ringPulse 9s ease-out infinite 6s;
}
@keyframes ringPulse {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  25% { opacity: 0.6; border-color: rgba(0, 240, 255, 0.35); }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; border-color: rgba(0, 102, 255, 0.05); }
}

/* ── Diagonal Shooting Stars (Meteors with Glowing Tails) ──────────── */
.banner-meteor {
  position: absolute;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, #FFFFFF 0%, #00F0FF 40%, rgba(0, 102, 255, 0.6) 70%, transparent 100%);
  transform: rotate(-35deg);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 6px #00F0FF) drop-shadow(0 0 12px #0066FF);
  z-index: 2;
  will-change: transform, opacity;
}
.banner-meteor.meteor-1 {
  top: 15%;
  right: 20%;
  animation: meteorShoot1 6.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: 0.5s;
}
.banner-meteor.meteor-2 {
  top: 35%;
  right: 55%;
  animation: meteorShoot2 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: 3.2s;
}
.banner-meteor.meteor-3 {
  top: 10%;
  right: 75%;
  animation: meteorShoot3 7s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: 5.1s;
}

@keyframes meteorShoot1 {
  0% { transform: translate(0, 0) rotate(-35deg); opacity: 0; }
  8% { opacity: 1; }
  22% { transform: translate(-220px, 150px) rotate(-35deg); opacity: 0; }
  100% { transform: translate(-220px, 150px) rotate(-35deg); opacity: 0; }
}
@keyframes meteorShoot2 {
  0% { transform: translate(0, 0) rotate(-35deg); opacity: 0; }
  8% { opacity: 1; }
  24% { transform: translate(-240px, 160px) rotate(-35deg); opacity: 0; }
  100% { transform: translate(-240px, 160px) rotate(-35deg); opacity: 0; }
}
@keyframes meteorShoot3 {
  0% { transform: translate(0, 0) rotate(-35deg); opacity: 0; }
  8% { opacity: 1; }
  22% { transform: translate(-200px, 140px) rotate(-35deg); opacity: 0; }
  100% { transform: translate(-200px, 140px) rotate(-35deg); opacity: 0; }
}

/* ── Canvas Starfield ──────────────────────────────────────────────── */
.banner-stars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ── Running Bottom Glow Border Line ───────────────────────────────── */
.banner-bottom-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #0066FF 25%, #00F0FF 50%, #7C3AED 75%, transparent 100%);
  background-size: 200% 100%;
  animation: bannerBorderGlow 7s linear infinite;
  z-index: 3;
}
@keyframes bannerBorderGlow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ══════════════════════════════════════════════════════════════════════
   GLOBAL ON-LOAD INTRO SECTION ENTRANCE ANIMATION (ALL PAGES)
   Triggers immediately as soon as any page opens in browser
   ══════════════════════════════════════════════════════════════════════ */

/* 1. Universal Top Section Container Directly Below Page Banner */
.page-title-section + section,
.page-title-section + div > section:first-of-type,
.page-title-section + div.erp-mod-page > section:first-of-type,
.erp-mod-page > .mod-showcase-section,
.privacy-hero.page-header,
#welcome-to {
  position: relative;
  padding-top: 75px !important;
  padding-bottom: 40px !important;
}

/* 2. Section Headings & Intro Blocks Reveal on Page Load */
.privacy-hero .section-heading-15,
#welcome-to .section-header,
.contact-info-area,
.section-header.reveal {
  animation: pageIntroFadeUp 0.8s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.privacy-hero .heading-titel,
#welcome-to .section-header .section-title,
.main-point-titel-blue {
  animation: pageIntroTitleReveal 0.8s 0.14s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-tag,
.badge-intro-pill {
  animation: pageIntroBadgeBounce 0.75s 0.04s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.section-desc,
.privacy-hero p.benefit_point {
  animation: pageIntroFadeUp 0.8s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pageIntroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageIntroTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes pageIntroBadgeBounce {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


