/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0a0a1a 0%, #050510 40%, #000000 100%);
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  height: 100vh;
  width: 100vw;
}

/* ===== PARTICLES BACKGROUND ===== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -3;
}

/* ===== MAIN LAYOUT ===== */
.banner {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  overflow: hidden;
}

/* ===== ENERGY ORBIT RING ===== */
.slider {
  position: absolute;
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  animation: rotate 80s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotateY(0deg) rotateX(10deg); }
  to { transform: rotateY(360deg) rotateX(10deg); }
}

.slider .item {
  position: absolute;
  width: 150px; /* Fixed typo: was 150x */
  height: 150px;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
  transform:
    rotateY(calc((var(--position) - 1) * (360deg / var(--quantity))))
    translateZ(500px);
}

.slider .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.4;
  filter: blur(1px) brightness(1.3) saturate(1.2);
  mix-blend-mode: screen;
  box-shadow: 0 0 60px rgba(255, 180, 0, 0.4);
  transition: opacity 0.3s ease;
}

.slider .item:hover img {
  opacity: 0.9;
  filter: blur(0) brightness(1.5) saturate(1.4);
  box-shadow: 0 0 80px rgba(255, 215, 0, 0.7);
}

/* ===== DIVINE AURA ===== */
.aura {
  position: absolute;
  width: 75vh;
  height: 75vh;
  background: radial-gradient(
    circle at center,
    rgba(255, 215, 0, 0.5) 0%,
    rgba(255, 140, 0, 0.3) 35%,
    rgba(255, 215, 0, 0.15) 55%,
    rgba(255, 215, 0, 0.05) 75%,
    transparent 85%
  );
  border-radius: 50%;
  z-index: -1;
  animation: pulse 6s ease-in-out infinite;
  filter: blur(12px);
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.1); opacity: 0.95; }
}

/* ===== RISHI IMAGE ===== */
.saint-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.saint-image {
  width: min(55vw, 500px);
  max-height: 80vh;
  object-fit: contain;
  animation: float 8s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(255, 200, 0, 0.85));
  transition: filter 0.3s ease;
}

.saint-image:hover {
  filter: drop-shadow(0 0 60px rgba(255, 215, 0, 1));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(0.5deg); }
  75% { transform: translateY(10px) rotate(-0.3deg); }
}

/* ===== EXPLORE BUTTON ===== */
.explore-btn {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) scale(0.98);
  padding: 18px 50px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #ff9933 0%, #ffd700 50%, #ffaa33 100%);
  border-radius: 50px;
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.3),
    0 0 30px rgba(255, 215, 0, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.explore-btn.ready {
  opacity: 1;
  pointer-events: auto;
  animation: buttonGlow 2s ease-in-out infinite alternate;
}

@keyframes buttonGlow {
  from { box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 30px rgba(255, 215, 0, 0.6); }
  to { box-shadow: 0 6px 25px rgba(0,0,0,0.4), 0 0 50px rgba(255, 215, 0, 0.9); }
}

.explore-btn:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 
    0 8px 30px rgba(0,0,0,0.4),
    0 0 70px rgba(255, 215, 0, 1),
    inset 0 1px 0 rgba(255,255,255,0.4);
  background: linear-gradient(135deg, #ffaa33 0%, #ffed4e 50%, #ff9933 100%);
}

.explore-btn:active {
  transform: translateX(-50%) scale(0.98);
  transition-duration: 0.1s;
}

/* ===== REDIRECT HINT (Optional) ===== */
.redirect-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  z-index: 5;
  text-align: center;
  animation: fadeIn 1s ease 24s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===== LOGO FLOATING FIELD - PROFESSIONAL UPGRADE ===== */
.logo-field {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.logo-float {
  position: absolute;
  opacity: 0;
  filter: brightness(0) invert(1);
  will-change: transform, opacity;
  animation-name: floatLogoOrganic;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}

/* Organic floating animation with drift */
@keyframes floatLogoOrganic {
  0% {
    transform: translate(var(--start-x, 0), var(--start-y, 100vh)) rotate(var(--start-rot, 0deg)) scale(var(--start-scale, 0.8));
    opacity: 0;
  }
  10% {
    opacity: var(--peak-opacity, 0.15);
  }
  50% {
    transform: translate(
      calc(var(--start-x, 0) + var(--drift-x, 0px)), 
      calc(var(--start-y, 100vh) + var(--drift-y, -120vh))
    ) rotate(calc(var(--start-rot, 0deg) + var(--spin, 180deg))) scale(var(--mid-scale, 1));
  }
  90% {
    opacity: var(--peak-opacity, 0.15);
  }
  100% {
    transform: translate(
      calc(var(--start-x, 0) + var(--drift-x, 0px) * 1.5), 
      calc(var(--start-y, 100vh) + var(--drift-y, -120vh) * 1.2)
    ) rotate(calc(var(--start-rot, 0deg) + var(--spin, 180deg) * 2)) scale(var(--end-scale, 0.6));
    opacity: 0;
  }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .slider {
    width: 220px;
    height: 220px;
  }
  .slider .item {
    width: 110px;
    height: 110px;
    transform:
      rotateY(calc((var(--position) - 1) * (360deg / var(--quantity))))
      translateZ(350px);
  }
  .aura {
    width: 90vh;
    height: 90vh;
  }
  .saint-image {
    width: 85vw;
    max-height: 70vh;
  }
  .explore-btn {
    padding: 16px 40px;
    font-size: 18px;
    bottom: 40px;
  }
  .redirect-hint {
    font-size: 13px;
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .slider { display: none; } /* Hide complex orbit on small screens */
  .aura { 
    width: 100vh; 
    height: 100vh;
    filter: blur(15px);
  }
  .explore-btn {
    width: 90%;
    max-width: 320px;
    bottom: 30px;
    padding: 14px 30px;
    font-size: 17px;
  }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .logo-float { display: none; }
}

/* Smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}