/* Base Reset-ish tweaks (Bootstrap already normalizes) */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent !important;
  color: #e5e7eb;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 1);
  z-index: -2;
  pointer-events: none;
}

/* Ice blue spotlight — base positioning layer */
body::after {
  content: "";
  position: fixed;
  inset: -60%;
  background: radial-gradient(
    ellipse 50% 35% at 50% 50%,
    rgba(135, 206, 250, 0.15) 0%,
    rgba(56, 189, 248, 0.07) 30%,
    transparent 65%
  );
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
}

img {
  object-fit: cover;
}

/* Utility colors */
.text-neon {
  color: #38bdf8;
}

.text-gaming {
  color: #f9fafb;
}

.bg-neon-pill {
  background: linear-gradient(135deg, #b3e5fc, #4fc3f7);
  color: #0b1120;
}

.bg-neon-soft {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.35), rgba(56, 189, 248, 0.35));
}

.border-neon {
  border-color: rgba(56, 189, 248, 0.45) !important;
}

.bg-black-900 {
  background: transparent !important;
}

/* Navbar */
.neon-nav {
  backdrop-filter: blur(18px);
  background: transparent !important;
  border-bottom: 1px solid rgba(135, 206, 250, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 26px rgba(135, 206, 250, 0.2);
}

.brand-badge {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #4fc3f7, #29b6f6 45%, #03a9f4 80%);
  box-shadow: 0 0 14px rgba(79, 195, 247, 0.9);
}

.navbar-nav .nav-link {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5f5;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #29b6f6, #4fc3f7);
  transition: width 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #f9fafb;
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.18), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  width: 100%;
}

.navbar .btn-neon {
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.9);
}

.navbar .btn-neon:hover {
  box-shadow: 0 0 32px rgba(59, 130, 246, 1);
}

/* Hero */
.hero-section {
  background: transparent;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, rgba(15, 23, 42, 0.75) 0, rgba(15, 23, 42, 0.75) 1px, transparent 1px, transparent 7px);
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
}

.text-glow {
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.55), 0 0 36px rgba(129, 140, 248, 0.5);
}

.gradient-text {
  background: linear-gradient(120deg, #4fc3f7, #b3e5fc, #29b6f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-muted-hero {
  color: #e5e7eb;
}

.hero-stats .stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
}

.hero-stats .stat-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-visual {
  max-width: 480px;
  margin-inline: auto;
}

.hero-image-card {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
}

.hero-main-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-carousel-indicators {
  bottom: 1rem;
}

.hero-carousel-indicators button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(79, 195, 247, 0.5);
  border: none;
  opacity: 1;
  transition: background-color 0.3s, transform 0.3s;
}

.hero-carousel-indicators button.active {
  background-color: #4fc3f7;
  transform: scale(1.3);
}

.hero-image-overlay {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(135, 206, 250, 0.3);
}

.hero-thumb {
  position: absolute;
  width: 130px;
  border-radius: 1.25rem;
}

.hero-thumb-top {
  top: -10px;
  right: -10px;
}

.hero-thumb-bottom {
  bottom: -10px;
  left: -10px;
}

.hero-thumb img {
  height: 110px;
}

/* Orbits */
.neon-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
  animation: spinOrbit 18s linear infinite;
}

.neon-orbit-lg {
  width: 115%;
  height: 115%;
  top: -7%;
  left: -7%;
}

.neon-orbit-sm {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  animation-duration: 26s;
  animation-direction: reverse;
}

@keyframes spinOrbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Glass / Cards */
.glass-card {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 1.5rem;
  border: 1px solid rgba(135, 206, 250, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(135, 206, 250, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.01) rotate3d(1, -1, 0, 0.35deg);
  box-shadow: 0 24px 70px rgba(135, 206, 250, 0.2);
  border-color: rgba(135, 206, 250, 0.6);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card-sm {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 1.25rem;
  border: 1px solid rgba(135, 206, 250, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  padding: 0.5rem;
}

.glass-pill {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  border: 1px solid rgba(135, 206, 250, 0.2);
  padding: 0.35rem 0.9rem;
}

/* Buttons */
.btn-neon {
  background: linear-gradient(120deg, #4fc3f7, #29b6f6);
  border: none;
  color: #0b1120;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.7);
  position: relative;
  overflow: hidden;
}

.btn-neon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.3), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn-neon:hover::before {
  opacity: 1;
  transform: translate3d(10%, 10%, 0);
}

.btn-neon:hover,
.btn-neon:focus {
  color: #020617;
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.95);
}

.btn-outline-neon {
  border-radius: 999px;
  border: 1px solid rgba(79, 195, 247, 0.7);
  background: transparent;
  color: #e5e7eb;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-outline-neon:hover {
  background: linear-gradient(120deg, rgba(79, 195, 247, 0.15), rgba(41, 182, 246, 0.2));
  color: #e5e7eb;
}

.btn-ghost-neon {
  border-radius: 999px;
  border: 1px dashed rgba(79, 195, 247, 0.8);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-ghost-neon:hover {
  border-style: solid;
  border-color: rgba(79, 195, 247, 0.9);
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.7);
}

/* Section base */
.section-padding {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.section-title {
  font-weight: 700;
}

.bg-gradient-dark {
  background: transparent !important;
}

.bg-gradient-deep {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

/* About */
.about-gallery {
  position: relative;
}

.about-gallery .image-zoom-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.about-gallery img {
  transition: transform 0.6s ease;
}

.about-gallery .carousel,
.about-gallery .carousel-inner,
.about-gallery .carousel-item {
  height: 400px;
}

.about-gallery .carousel-item img {
  height: 400px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-gallery .carousel,
  .about-gallery .carousel-inner,
  .about-gallery .carousel-item {
    height: 280px;
  }
  .about-gallery .carousel-item img {
    height: 280px;
  }
}

@media (max-width: 576px) {
  .about-gallery .carousel,
  .about-gallery .carousel-inner,
  .about-gallery .carousel-item {
    height: 220px;
  }
  .about-gallery .carousel-item img {
    height: 220px;
  }
}

.about-gallery .image-zoom-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.image-zoom-wrap:hover img {
  transform: scale(1.07);
}

.image-zoom-wrap:hover::before {
  opacity: 1;
}

.img-overlay-text {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  color: #e5e7eb;
  font-size: 0.8rem;
}

.small-overlay {
  bottom: 1.35rem;
  font-size: 0.75rem;
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
}

.mini-feature .icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.5), rgba(15, 23, 42, 1));
  color: #e5e7eb;
  font-size: 0.9rem;
}

.about-thumb-stack {
  position: absolute;
  right: -2.2rem;
  top: 20%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-thumb {
  width: 60px;
  height: 60px;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(135, 206, 250, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.about-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .about-thumb-stack {
    display: none;
  }
}

.about-thumbs-holder {
  display: flex;
  flex-direction: column;
}

/* Features */
.feature-card {
  transform-origin: center;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.35), rgba(15, 23, 42, 1));
  color: #e5e7eb;
  font-size: 1.2rem;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.6);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.03) rotate3d(1, -1, 0, 0.8deg);
}

/* Announcement styles */
.announcement-list .announcement-item {
  padding: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement-list .announcement-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(79, 195, 247, 0.5);
}

.announcement-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.35), rgba(15, 23, 42, 1));
  color: #4fc3f7;
  font-size: 1.1rem;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.5);
}

.text-muted {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* Parallax sections (CSS-only fake parallax) */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
}

.parallax-bg-1 {
  background-image: radial-gradient(circle at 30% 0, rgba(135, 206, 250, 0.15), transparent 50%),
    radial-gradient(circle at 70% 100%, rgba(56, 189, 248, 0.15), transparent 50%);
}

.parallax-bg-2 {
  background-image: radial-gradient(circle at 60% 0, rgba(135, 206, 250, 0.18), transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(34, 211, 238, 0.18), transparent 55%);
}

@keyframes parallaxFloat {
  0% {
    transform: translate3d(0, -10px, 0);
  }
  100% {
    transform: translate3d(0, 10px, 0);
  }
}

/* Gallery */
.gallery-grid {
  perspective: 1200px;
  margin-left: 0;
  margin-right: 0;
}

.gallery-grid > .row {
  margin-left: 0;
  margin-right: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(0, 0, 0, 0.6);
}

.gallery-item img {
  width: 100%;
  height: 160px;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.75rem;
  background: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.75) 100%);
  color: #e5e7eb;
  opacity: 0;
  transform: translateY(10%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-size: 0.75rem;
}

.gallery-item:hover img {
  transform: scale(1.12) rotate3d(1, -1, 0, 3deg);
  filter: blur(1px) brightness(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Rules */
.rule-card {
  position: relative;
}

.rule-number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, #29b6f6, #4fc3f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(79, 195, 247, 0.8);
}

.rule-card:hover {
  transform: translateY(-4px) scale(1.01);
}

/* Join Steps */
.join-steps .step-card {
  min-height: 180px;
}

.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.45), rgba(15, 23, 42, 0.95));
  color: #e5e7eb;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.8);
  margin-bottom: 1rem;
}

.step-arrow .arrow-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #29b6f6, #4fc3f7);
  border-radius: 999px;
  position: relative;
}

.step-arrow .arrow-line::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #4fc3f7;
  border-top: 2px solid #29b6f6;
  transform: translateY(-50%) rotate(45deg);
}

/* Team */
.team-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.7);
}

.team-avatar-wrap {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding: 3px;
  background: conic-gradient(from 180deg, #29b6f6, #4fc3f7, #b3e5fc, #29b6f6);
  animation: none;
}

.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 3px solid rgba(0, 0, 0, 0.75);
}

/* Download / Links */
.discord-widget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.discord-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.4), rgba(15, 23, 42, 1));
  color: #e5e7eb;
  font-size: 1.4rem;
}

.fa-kook {
  font-size: 1.4rem;
}

.connection-string {
  font-size: 0.78rem;
}

/* Footer */
.footer .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.footer .social-icon:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.8);
  color: #e5e7eb;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
}

.scroll-top-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.9);
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.25), rgba(15, 23, 42, 1));
  color: #e5e7eb;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.scroll-top-btn i {
  font-size: 1.2rem;
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(56, 189, 248, 1);
}

/* Scroll indicator */
.scroll-indicator {
  right: 2rem;
  bottom: 2.5rem;
  color: #9ca3af;
}

.scroll-line {
  width: 2px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.4), rgba(56, 189, 248, 0.9));
  position: relative;
  overflow: hidden;
}

.scroll-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), transparent);
  animation: scrollDot 1.4s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* Motion */
.float-up {
  animation: floatUp 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .hero-main-img {
    height: 260px;
  }

  .hero-thumb {
    display: none;
  }

  .section-padding {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }
}

@media (max-width: 767.98px) {
  .gallery-item img {
    height: 140px;
  }

  .footer .social-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 6rem;
  }

  .hero-main-img {
    height: 220px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* ============================================================
   ADVANCED ANIMATIONS - Premium Visual Effects
   ============================================================ */

/* ---- 1. SCROLL PROGRESS INDICATOR ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #4fc3f7, #29b6f6, #b3e5fc);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.9), 0 0 24px rgba(41, 182, 246, 0.7);
  animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
}

/* ---- 2. CURSOR TRACKING SPOTLIGHT ---- */
.cursor-spotlight {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(135, 206, 250, 0.08) 0%,
    rgba(56, 189, 248, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, opacity 0.3s ease;
  mix-blend-mode: screen;
}

/* ---- 3. FLOATING PARTICLE ORBS ---- */
.particles-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: orbFloat linear infinite;
}

.particle-orb:nth-child(1) {
  width: 6px;
  height: 6px;
  background: rgba(135, 206, 250, 0.7);
  top: 15%;
  left: 10%;
  animation-duration: 22s;
  animation-delay: 0s;
  box-shadow: 0 0 12px rgba(135, 206, 250, 0.8), 0 0 24px rgba(135, 206, 250, 0.4);
}

.particle-orb:nth-child(2) {
  width: 4px;
  height: 4px;
  background: rgba(168, 85, 247, 0.6);
  top: 30%;
  left: 80%;
  animation-duration: 18s;
  animation-delay: -3s;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.7), 0 0 20px rgba(168, 85, 247, 0.3);
}

.particle-orb:nth-child(3) {
  width: 8px;
  height: 8px;
  background: rgba(34, 211, 238, 0.5);
  top: 60%;
  left: 20%;
  animation-duration: 28s;
  animation-delay: -6s;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.6), 0 0 32px rgba(34, 211, 238, 0.3);
}

.particle-orb:nth-child(4) {
  width: 3px;
  height: 3px;
  background: rgba(99, 102, 241, 0.8);
  top: 75%;
  left: 60%;
  animation-duration: 16s;
  animation-delay: -9s;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.9), 0 0 16px rgba(99, 102, 241, 0.5);
}

.particle-orb:nth-child(5) {
  width: 5px;
  height: 5px;
  background: rgba(135, 206, 250, 0.6);
  top: 10%;
  left: 50%;
  animation-duration: 25s;
  animation-delay: -12s;
  box-shadow: 0 0 10px rgba(135, 206, 250, 0.7), 0 0 20px rgba(135, 206, 250, 0.3);
}

.particle-orb:nth-child(6) {
  width: 7px;
  height: 7px;
  background: rgba(34, 211, 238, 0.4);
  top: 85%;
  left: 35%;
  animation-duration: 30s;
  animation-delay: -15s;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.5), 0 0 28px rgba(34, 211, 238, 0.2);
}

.particle-orb:nth-child(7) {
  width: 4px;
  height: 4px;
  background: rgba(168, 85, 247, 0.5);
  top: 45%;
  left: 90%;
  animation-duration: 20s;
  animation-delay: -5s;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6), 0 0 20px rgba(168, 85, 247, 0.3);
}

.particle-orb:nth-child(8) {
  width: 6px;
  height: 6px;
  background: rgba(99, 102, 241, 0.5);
  top: 20%;
  left: 70%;
  animation-duration: 24s;
  animation-delay: -8s;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6), 0 0 24px rgba(99, 102, 241, 0.3);
}

.particle-orb:nth-child(9) {
  width: 3px;
  height: 3px;
  background: rgba(135, 206, 250, 0.9);
  top: 55%;
  left: 5%;
  animation-duration: 19s;
  animation-delay: -2s;
  box-shadow: 0 0 8px rgba(135, 206, 250, 1), 0 0 16px rgba(135, 206, 250, 0.6);
}

.particle-orb:nth-child(10) {
  width: 5px;
  height: 5px;
  background: rgba(34, 211, 238, 0.7);
  top: 90%;
  left: 80%;
  animation-duration: 26s;
  animation-delay: -11s;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8), 0 0 20px rgba(34, 211, 238, 0.4);
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  25% {
    transform: translate(80px, -120px) scale(1.3);
  }
  50% {
    transform: translate(-60px, -200px) scale(0.8);
    opacity: 0.8;
  }
  75% {
    transform: translate(100px, -80px) scale(1.1);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(30px, -300px) scale(0.5);
    opacity: 0;
  }
}

/* ---- 4. SCROLL-TRIGGERED REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-rotate {
  opacity: 0;
  transform: rotate(-5deg) scale(0.9);
}

.reveal-rotate.active {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---- 5. ADVANCED 3D TILT HOVER ---- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* ---- 6. MAGNETIC BUTTON EFFECT ---- */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* ---- 7. NEON PULSE GLOW ---- */
@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(135, 206, 250, 0.5), 0 0 10px rgba(135, 206, 250, 0.3), 0 0 20px rgba(135, 206, 250, 0.1);
  }
  50% {
    box-shadow: 0 0 15px rgba(135, 206, 250, 0.9), 0 0 30px rgba(135, 206, 250, 0.6), 0 0 60px rgba(135, 206, 250, 0.3);
  }
}

.neon-pulse {
  animation: neonPulse 2.5s ease-in-out infinite;
}

/* ---- 8. GLITCH TEXT EFFECT ---- */
@keyframes glitch1 {
  0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(0); }
  20% { clip-path: inset(15% 0 70% 0); transform: translate(-3px, 1px); }
  40% { clip-path: inset(50% 0 30% 0); transform: translate(3px, -1px); }
  60% { clip-path: inset(75% 0 10% 0); transform: translate(-2px, 2px); }
  80% { clip-path: inset(30% 0 50% 0); transform: translate(2px, -2px); }
}

@keyframes glitch2 {
  0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(0); }
  20% { clip-path: inset(60% 0 20% 0); transform: translate(3px, -1px); }
  40% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 1px); }
  60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
  80% { clip-path: inset(45% 0 40% 0); transform: translate(-2px, 2px); }
}

.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text:hover::before,
.glitch-text:hover::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

.glitch-text:hover::before {
  color: #ff0080;
  animation: glitch1 0.4s steps(2) infinite;
  mix-blend-mode: screen;
}

.glitch-text:hover::after {
  color: #00ffff;
  animation: glitch2 0.4s steps(2) infinite;
  animation-delay: 0.1s;
  mix-blend-mode: screen;
}

/* ---- 9. SHIMMER / SPARKLE TEXT EFFECT ---- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(
    110deg,
    #4fc3f7 0%,
    #b3e5fc 15%,
    #29b6f6 30%,
    #4fc3f7 45%,
    #b3e5fc 60%,
    #29b6f6 75%,
    #4fc3f7 90%,
    #4fc3f7 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

.shimmer-text-slow {
  background: linear-gradient(
    90deg,
    rgba(79, 195, 247, 0.4) 0%,
    rgba(179, 229, 252, 0.6) 25%,
    rgba(79, 195, 247, 0.4) 50%,
    rgba(41, 182, 246, 0.6) 75%,
    rgba(79, 195, 247, 0.4) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

/* ---- 10. ANIMATED BORDER / GLOW ON CARDS ---- */
@keyframes borderRotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.animated-border-card {
  position: relative;
  border-radius: 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  overflow: hidden;
}

.animated-border-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 2px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 60%,
    rgba(79, 195, 247, 0.9),
    rgba(179, 229, 252, 0.7),
    rgba(41, 182, 246, 0.9),
    transparent 90%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
}

.animated-border-card:hover {
  box-shadow: 0 0 40px rgba(79, 195, 247, 0.4), 0 0 80px rgba(41, 182, 246, 0.2);
}

/* ---- 11. NUMBER COUNTER ANIMATION ---- */
.counter-value {
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s ease;
}

.counter-value.counting {
  animation: counterPop 0.3s ease-out;
}

@keyframes counterPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); color: #38bdf8; }
  100% { transform: scale(1); }
}

/* ---- 13. RIPPLE CLICK EFFECT ---- */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(135, 206, 250, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---- 14. STAR TWINKLE BACKGROUND ---- */
.stars-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: twinkle linear infinite;
}

.star:nth-child(1) { top: 8%; left: 15%; animation-duration: 3s; animation-delay: 0s; }
.star:nth-child(2) { top: 12%; left: 45%; animation-duration: 4s; animation-delay: -1s; }
.star:nth-child(3) { top: 20%; left: 75%; animation-duration: 2.5s; animation-delay: -2s; }
.star:nth-child(4) { top: 35%; left: 25%; animation-duration: 3.5s; animation-delay: -0.5s; }
.star:nth-child(5) { top: 42%; left: 88%; animation-duration: 5s; animation-delay: -3s; }
.star:nth-child(6) { top: 55%; left: 8%; animation-duration: 2.8s; animation-delay: -1.5s; }
.star:nth-child(7) { top: 62%; left: 55%; animation-duration: 3.2s; animation-delay: -4s; }
.star:nth-child(8) { top: 70%; left: 35%; animation-duration: 4.5s; animation-delay: -2.5s; }
.star:nth-child(9) { top: 78%; left: 92%; animation-duration: 3.8s; animation-delay: -0.8s; }
.star:nth-child(10) { top: 85%; left: 18%; animation-duration: 2.9s; animation-delay: -3.5s; }
.star:nth-child(11) { top: 5%; left: 60%; animation-duration: 4.2s; animation-delay: -1.2s; }
.star:nth-child(12) { top: 48%; left: 70%; animation-duration: 3.1s; animation-delay: -2.2s; }
.star:nth-child(13) { top: 25%; left: 5%; animation-duration: 3.6s; animation-delay: -4.5s; }
.star:nth-child(14) { top: 90%; left: 50%; animation-duration: 4.8s; animation-delay: -1.8s; }
.star:nth-child(15) { top: 38%; left: 42%; animation-duration: 2.7s; animation-delay: -3.2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.8); box-shadow: 0 0 6px rgba(135, 206, 250, 1), 0 0 12px rgba(135, 206, 250, 0.5); }
}

/* ---- 15. MORPHING BLORB SHAPE ---- */
@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 70% 30% 60% 40%; }
}

.morph-blob {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.06), rgba(168, 85, 247, 0.04), transparent 70%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  z-index: -1;
  pointer-events: none;
  animation: morphBlob 15s ease-in-out infinite, blobFloat 20s ease-in-out infinite;
  filter: blur(40px);
}

.morph-blob-1 {
  top: -200px;
  right: -200px;
}

.morph-blob-2 {
  bottom: -200px;
  left: -200px;
  animation-delay: -7s;
  animation-duration: 18s, 25s;
  background: radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.05), rgba(99, 102, 241, 0.03), transparent 70%);
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, -60px) scale(0.95); }
  75% { transform: translate(40px, -30px) scale(1.02); }
}

/* ---- 17. BREATHING PULSE ---- */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

.breathe {
  animation: breathe 4s ease-in-out infinite;
}

.breathe-slow {
  animation: breathe 6s ease-in-out infinite;
  animation-delay: -2s;
}

/* ---- 19. MARQUEE / SCROLL TEXT ---- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee-inner {
  display: flex;
  gap: 3rem;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-track:hover .marquee-inner {
  animation-play-state: paused;
}

/* ---- 20. HOLOGRAPHIC SHEEN ---- */
@keyframes holographicSheen {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.holographic {
  position: relative;
  overflow: hidden;
}

.holographic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(79, 195, 247, 0.2) 45%,
    rgba(179, 229, 252, 0.2) 50%,
    rgba(41, 182, 246, 0.2) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: holographicSheen 3s linear infinite;
  pointer-events: none;
}

/* ---- 21. INFINITE ZOOM PULSE ---- */
@keyframes infiniteZoom {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0.6; }
}

.infinite-zoom {
  animation: infiniteZoom 4s ease-in-out infinite;
}

/* ---- 22. TEXT REVEAL CHARACTER ANIMATION ---- */
.char-anim {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotateX(-90deg);
  animation: charReveal 0.5s ease forwards;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* ---- 23. IMAGE REVEAL SLIDE ---- */
.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(135, 206, 250, 0.15);
  transform: translateX(-101%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal:hover::after {
  transform: translateX(101%);
}

/* ---- 24. PAGE TRANSITION ---- */
@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-entrance {
  animation: pageSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---- 26. FLOATING LABELS / TAGS ---- */
@keyframes floatLabel {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.float-label {
  animation: floatLabel 3s ease-in-out infinite;
}

/* ---- 27. DOT GRID BACKGROUND ---- */
.dot-grid-bg {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(135, 206, 250, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

/* ---- 28. ADVANCED CARD HOVER ---- */
.advanced-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.advanced-hover:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(135, 206, 250, 0.2);
}

/* ---- 29. LINK UNDERLINE ANIMATION ---- */
.link-animate {
  position: relative;
  text-decoration: none;
}

.link-animate::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #29b6f6, #4fc3f7);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-animate:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- 30. HERO TEXT STAGGER ---- */
.hero-text-stagger {
  animation: heroFadeSlide 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-text-stagger:nth-child(1) { animation-delay: 0.1s; }
.hero-text-stagger:nth-child(2) { animation-delay: 0.25s; }
.hero-text-stagger:nth-child(3) { animation-delay: 0.4s; }
.hero-text-stagger:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroFadeSlide {
  from { opacity: 0; transform: translateY(30px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---- 31. IMAGE GLOW ON HOVER ---- */
.img-glow:hover {
  box-shadow: 0 0 30px rgba(135, 206, 250, 0.4), 0 0 60px rgba(168, 85, 247, 0.2);
  transition: box-shadow 0.4s ease;
}

/* ---- 32. ROTATING RING DECORATION ---- */
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-ring {
  animation: ringSpin linear infinite;
}

/* ---- 34. DOT PULSE ---- */
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 1; }
}

.dot-pulse {
  animation: dotPulse 2s ease-in-out infinite;
}

/* ---- 35. HERO SECTION ADVANCED ANIMATIONS ---- */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg,
    rgba(135, 206, 250, 0.03) 60deg,
    transparent 120deg,
    rgba(168, 85, 247, 0.03) 180deg,
    transparent 240deg,
    rgba(99, 102, 241, 0.03) 300deg,
    transparent 360deg
  );
  animation: heroConicSpin 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

@keyframes heroConicSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---- 36. FOOTER GLOW LINE ---- */
.footer-glow-line {
  position: relative;
}

.footer-glow-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.9), rgba(179, 229, 252, 0.7), rgba(41, 182, 246, 0.9), transparent);
  animation: glowLine 3s ease-in-out infinite;
}

@keyframes glowLine {
  0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1); box-shadow: 0 0 20px rgba(135, 206, 250, 0.5); }
}

/* ---- 37. ADVANCED BUTTON RIPPLE ---- */
.btn-advanced {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-advanced::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-advanced:hover::before {
  opacity: 1;
}

.btn-advanced::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-advanced:hover::after {
  opacity: 1;
}

/* ---- 38. SCROLL-SPECIFIC SECTION ANIMATIONS ---- */
[data-anim="fade-up"] { animation: fadeUpAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
[data-anim="fade-down"] { animation: fadeDownAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
[data-anim="fade-left"] { animation: fadeLeftAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
[data-anim="fade-right"] { animation: fadeRightAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
[data-anim="zoom-in"] { animation: zoomInAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes fadeUpAnim {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDownAnim {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeftAnim {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRightAnim {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomInAnim {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ---- 39. LAZY LOAD IMAGE BLUR ---- */
img.lazy-loaded {
  animation: lazyReveal 0.6s ease forwards;
}

@keyframes lazyReveal {
  from { opacity: 0; filter: blur(8px); }
  to { opacity: 1; filter: blur(0); }
}

/* ---- 42. SCROLL-SYNCED PROGRESS RING ---- */
.progress-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring-circle-bg {
  fill: none;
  stroke: rgba(135, 206, 250, 0.1);
  stroke-width: 3;
}

.progress-ring-circle-fill {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0, 100;
  transition: stroke-dasharray 0.3s ease;
}

/* ---- 43. ADVANCED GALLERY HOVER ---- */
.gallery-advanced {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(0, 0, 0, 0.6);
}

.gallery-advanced img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.gallery-advanced .gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.15), rgba(41, 182, 246, 0.15));
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 1.25rem;
}

.gallery-advanced:hover img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(0.7);
}

.gallery-advanced:hover .gallery-overlay {
  opacity: 1;
}

/* ---- 44. SECTION BACKGROUND PARTICLES ---- */
.section-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(135, 206, 250, 0.6);
  border-radius: 50%;
  animation: sectionParticleFloat linear infinite;
}

@keyframes sectionParticleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ---- 45. FOCUS RING GLOW ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(135, 206, 250, 0.8);
  outline-offset: 3px;
  box-shadow: 0 0 15px rgba(135, 206, 250, 0.4);
  border-radius: 4px;
}

/* ============================================================
   ADVANCED ANIMATIONS - Enhanced Visual Effects
   ============================================================ */

/* ---- 46. RAINBOW GRADIENT BORDER ---- */
@keyframes rainbowBorder {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  50% { background-position: 100% 50%; filter: hue-rotate(30deg); }
  100% { background-position: 0% 50%; filter: hue-rotate(0deg); }
}

@keyframes rainbowGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(79, 195, 247, 0.5), 0 0 30px rgba(168, 85, 247, 0.3); }
  33% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.6), 0 0 40px rgba(99, 102, 241, 0.4); }
  66% { box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), 0 0 50px rgba(79, 195, 247, 0.3); }
}

.rainbow-border-card {
  position: relative;
  border-radius: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  overflow: hidden;
  animation: rainbowGlow 4s ease-in-out infinite;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.rainbow-border-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 1.5rem;
  background: linear-gradient(90deg, #4fc3f7, #a78bfa, #f472b6, #4fc3f7, #a78bfa, #f472b6);
  background-size: 300% 100%;
  animation: rainbowBorder 6s linear infinite;
  z-index: -1;
  padding: 2px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
}

/* ---- 49. FLOATING ICON BEACONS ---- */
/* (预留，可按需启用) */
@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0.1; }
}

.beacon-wrap {
  position: relative;
}

.beacon-wrap::before,
.beacon-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(79, 195, 247, 0.5);
  transform: translate(-50%, -50%);
  animation: beaconPulse 2s ease-out infinite;
}

.beacon-wrap::after {
  animation-delay: 1s;
}

/* ---- 53. NUMBER COUNTING UP ON SCROLL ---- */
.count-up {
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s ease, color 0.3s ease;
}

.count-up.counting {
  animation: countPop 0.3s ease-out;
}

@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); color: #4fc3f7; }
  100% { transform: scale(1); }
}

/* ---- 54. ADVANCED CARD GLASS SHIMMER ---- */
@keyframes glassShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.glass-shimmer {
  position: relative;
  overflow: hidden;
}

.glass-shimmer::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(79, 195, 247, 0.08) 45%,
    rgba(79, 195, 247, 0.12) 50%,
    rgba(79, 195, 247, 0.08) 55%,
    transparent 60%
  );
  background-size: 200% 200%;
  animation: glassShimmer 4s linear infinite;
  pointer-events: none;
}

/* ---- 55. HOVER MAGNETIC EFFECT ---- */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- 56. SCROLL-VELOCITY PARALLAX ---- */
.parallax-fast { transform: translateY(calc(var(--scroll-y) * 0.3)); }
.parallax-medium { transform: translateY(calc(var(--scroll-y) * 0.15)); }
.parallax-slow { transform: translateY(calc(var(--scroll-y) * 0.05)); }

/* ---- 57. ADVANCED SKELETON LOADING ---- */

/* ---- 58. TYPOGRAPHY GLOW PULSE ---- */
@keyframes typeGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(79, 195, 247, 0.3), 0 0 20px rgba(79, 195, 247, 0.1); }
  50% { text-shadow: 0 0 20px rgba(79, 195, 247, 0.6), 0 0 40px rgba(79, 195, 247, 0.3), 0 0 60px rgba(79, 195, 247, 0.1); }
}

.type-glow {
  animation: typeGlow 3s ease-in-out infinite;
}

/* ---- 60. FLOATING TAG CLOUD ---- */
@keyframes tagFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(2deg); }
  75% { transform: translateY(-4px) rotate(-2deg); }
}

.tag-cloud-item {
  animation: tagFloat ease-in-out infinite;
}

.tag-cloud-item:nth-child(1) { animation-duration: 4s; animation-delay: 0s; }
.tag-cloud-item:nth-child(2) { animation-duration: 5s; animation-delay: -1s; }
.tag-cloud-item:nth-child(3) { animation-duration: 3.5s; animation-delay: -2s; }
.tag-cloud-item:nth-child(4) { animation-duration: 4.5s; animation-delay: -0.5s; }
.tag-cloud-item:nth-child(5) { animation-duration: 6s; animation-delay: -3s; }

/* ---- 61. GLOWING BORDER TRAIL ---- */
@keyframes glowTrail {
  0%, 100% { border-color: rgba(79, 195, 247, 0.3); box-shadow: 0 0 5px rgba(79, 195, 247, 0.1); }
  50% { border-color: rgba(79, 195, 247, 0.9); box-shadow: 0 0 20px rgba(79, 195, 247, 0.4), 0 0 40px rgba(79, 195, 247, 0.2); }
}

.glow-trail {
  animation: glowTrail 3s ease-in-out infinite;
}

/* ---- 62. STAGGERED CHILD REVEAL ---- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.active > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.stagger-children.active > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.stagger-children.active > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.stagger-children.active > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }
.stagger-children.active > *:nth-child(9) { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }
.stagger-children.active > *:nth-child(10) { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }
.stagger-children.active > *:nth-child(n+11) { opacity: 1; transform: translateY(0); transition-delay: 1s; }

/* ---- 64. MOBILE TOUCH PRESS EFFECT ---- */
@media (hover: none) {
  .btn:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
  }

  .glass-card:active {
    transform: scale(0.98) !important;
    transition: transform 0.15s ease !important;
  }
}

/* ---- 65. REDUCED MOTION SUPPORT ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- 66. DARK THEME SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(79, 195, 247, 0.4);
  border-radius: 999px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 195, 247, 0.7);
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

/* ---- 69. FEATURED CARD ACCENT LINE ---- */
@keyframes accentSlide {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  51% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

.accent-line {
  position: relative;
}

.accent-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #4fc3f7, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.accent-line:hover::after {
  animation: accentSlide 2s ease-in-out infinite;
}

/* ---- 70. INTERSECTION DYNAMISM ---- */
.in-view-fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.in-view-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.in-view-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.in-view-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.in-view-blur {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.8s ease, filter 0.8s ease;
}

.in-view-blur.visible {
  opacity: 1;
  filter: blur(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }
.delay-800 { transition-delay: 800ms; }

/* ============================================================
   PERFORMANCE OPTIMIZATIONS
   ============================================================ */

/* ---- MOBILE: Reduce animations on low-end devices ---- */
@media (max-width: 768px) {
  .cursor-spotlight {
    display: none;
  }

  .particles-container {
    display: none;
  }

  .stars-container {
    display: none;
  }

  .dot-grid-bg {
    opacity: 0.15;
  }

  .morph-blob {
    transform: scale(0.5);
    opacity: 0.5;
  }

  .morph-blob-2 {
    display: none;
  }

  .scroll-indicator {
    display: none !important;
  }

  .neon-orbit {
    animation-duration: 30s;
  }

  .neon-orbit-sm {
    animation-duration: 40s;
  }

  .float-up {
    animation-duration: 12s;
  }

  .hero-section::before {
    animation-duration: 60s;
  }
}

/* ---- HIGH PERFORMANCE: Use GPU acceleration on key elements ---- */
.holographic,
.glass-card,
.feature-card,
.rule-card,
.team-card {
  will-change: transform;
}

/* ---- REDUCED DATA: Honor save-data preference ---- */
@media (prefers-reduced-data: reduce) {
  .hero-section::before,
  .morph-blob,
  .stars-container,
  .particles-container,
  .dot-grid-bg {
    display: none;
  }
}
