* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  overflow: hidden;
  height: 100vh;
  background: #000;
}

/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  animation: videoFadeInOut 12s ease-in-out 0.5s infinite;
}

@keyframes videoFadeInOut {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.video-background iframe,
.video-background video,
#youtube-player {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.77vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: cover;
}

/* Audio Control Button */
.audio-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.9),
    rgba(59, 130, 246, 0.9)
  );
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
  animation: pulseButton 2s ease-in-out infinite;
}

.audio-control:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.7);
}

.audio-control.muted {
  background: linear-gradient(
    135deg,
    rgba(100, 100, 100, 0.9),
    rgba(60, 60, 60, 0.9)
  );
  animation: none;
}

@keyframes pulseButton {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
  }
  50% {
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.8),
      0 0 50px rgba(139, 92, 246, 0.4);
  }
}

/* Animated gradient background as fallback */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    125deg,
    #0f172a 0%,
    #1e1b4b 25%,
    #312e81 50%,
    #1e1b4b 75%,
    #0f172a 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -1;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animated stars/dots effect */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      rgba(255, 255, 255, 0.8),
      transparent
    ),
    radial-gradient(2px 2px at 40px 70px, rgba(147, 51, 234, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(59, 130, 246, 0.8), transparent),
    radial-gradient(
      1px 1px at 160px 120px,
      rgba(255, 255, 255, 0.5),
      transparent
    );
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: starsMove 60s linear infinite;
}

@keyframes starsMove {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-200px);
  }
}

/* Galaxy Core */
.galaxy-core {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  z-index: 1;
  pointer-events: none;
}

.galaxy-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(167, 139, 250, 0.9) 20%,
    rgba(139, 92, 246, 0.6) 40%,
    rgba(99, 102, 241, 0.3) 60%,
    transparent 80%
  );
  border-radius: 50%;
  animation: pulseCore 4s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(167, 139, 250, 0.8),
    0 0 120px rgba(139, 92, 246, 0.6), 0 0 200px rgba(99, 102, 241, 0.4);
}

@keyframes pulseCore {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

/* Orbital Rings */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid;
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit-1 {
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border-color: rgba(167, 139, 250, 0.3);
  animation: orbit1 20s linear infinite;
  transform: rotateX(70deg) rotateZ(0deg);
}

.orbit-2 {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-color: rgba(99, 102, 241, 0.25);
  animation: orbit2 30s linear infinite reverse;
  transform: rotateX(75deg) rotateZ(20deg);
}

.orbit-3 {
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-color: rgba(139, 92, 246, 0.2);
  animation: orbit3 40s linear infinite;
  transform: rotateX(68deg) rotateZ(-15deg);
}

.orbit-4 {
  width: 550px;
  height: 550px;
  margin: -275px 0 0 -275px;
  border-color: rgba(59, 130, 246, 0.15);
  animation: orbit4 50s linear infinite reverse;
  transform: rotateX(72deg) rotateZ(35deg);
}

@keyframes orbit1 {
  from {
    transform: rotateX(70deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(70deg) rotateZ(360deg);
  }
}

@keyframes orbit2 {
  from {
    transform: rotateX(75deg) rotateZ(20deg);
  }
  to {
    transform: rotateX(75deg) rotateZ(380deg);
  }
}

@keyframes orbit3 {
  from {
    transform: rotateX(68deg) rotateZ(-15deg);
  }
  to {
    transform: rotateX(68deg) rotateZ(345deg);
  }
}

@keyframes orbit4 {
  from {
    transform: rotateX(72deg) rotateZ(35deg);
  }
  to {
    transform: rotateX(72deg) rotateZ(395deg);
  }
}

/* Orbiting Planets/Objects */
.orbiter {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 20px currentColor;
}

.orbiter-1 {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: rgba(167, 139, 250, 0.8);
  top: -4px;
  left: 50%;
  animation: orbiterGlow 2s ease-in-out infinite alternate;
}

.orbiter-2 {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #818cf8, #4f46e5);
  color: rgba(99, 102, 241, 0.8);
  top: 50%;
  right: -3px;
  animation: orbiterGlow 2.5s ease-in-out infinite alternate;
}

.orbiter-3 {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
  color: rgba(139, 92, 246, 0.8);
  bottom: -5px;
  left: 30%;
  animation: orbiterGlow 3s ease-in-out infinite alternate;
}

.orbiter-4 {
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #93c5fd, #3b82f6);
  color: rgba(59, 130, 246, 0.8);
  top: 25%;
  left: -2px;
  animation: orbiterGlow 1.8s ease-in-out infinite alternate;
}

@keyframes orbiterGlow {
  0% {
    box-shadow: 0 0 10px currentColor;
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 25px currentColor, 0 0 40px currentColor;
    transform: scale(1.2);
  }
}

/* Nebula Effect */
.nebula {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.nebula-cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: nebulaFloat 30s ease-in-out infinite;
}

.nebula-1 {
  width: 500px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(139, 92, 246, 0.4) 0%,
    transparent 70%
  );
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.nebula-2 {
  width: 600px;
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(59, 130, 246, 0.3) 0%,
    transparent 70%
  );
  bottom: 5%;
  right: -15%;
  animation-delay: -10s;
}

.nebula-3 {
  width: 400px;
  height: 350px;
  background: radial-gradient(
    ellipse,
    rgba(167, 139, 250, 0.35) 0%,
    transparent 70%
  );
  top: 40%;
  right: 20%;
  animation-delay: -20s;
}

@keyframes nebulaFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -20px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 30px) scale(0.95);
  }
  75% {
    transform: translate(-30px, -15px) scale(1.05);
  }
}

/* Enhanced Twinkling Stars */
.twinkle-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  }
}

/* Shooting Stars */
.shooting-star {
  position: fixed;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
  transform: rotate(-45deg);
  animation: shoot 3s ease-out infinite;
  opacity: 0;
  z-index: 1;
}

.shooting-star::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  left: 0;
  top: -2px;
  box-shadow: 0 0 10px white, 0 0 20px rgba(167, 139, 250, 0.8);
}

.shooting-star-1 {
  top: 10%;
  left: 80%;
  animation-delay: 0s;
}

.shooting-star-2 {
  top: 30%;
  left: 60%;
  animation-delay: 4s;
}

.shooting-star-3 {
  top: 50%;
  left: 90%;
  animation-delay: 8s;
}

@keyframes shoot {
  0% {
    transform: translateX(0) translateY(0) rotate(-45deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  20% {
    transform: translateX(-300px) translateY(300px) rotate(-45deg);
    opacity: 0;
  }
  100% {
    transform: translateX(-300px) translateY(300px) rotate(-45deg);
    opacity: 0;
  }
}

/* Dark Overlay matching video theme */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(30, 41, 59, 0.65) 50%,
    rgba(15, 23, 42, 0.75) 100%
  );
  z-index: 2;
}

/* Full Screen Content */
.content {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.logo-container {
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 50px rgba(147, 51, 234, 0.5),
    0 0 100px rgba(59, 130, 246, 0.3), 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.1);
  animation: logoGlow 3s ease-in-out infinite alternate;
}

/* Header Name Image */
.header-name {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  text-align: center;
}

.header-name-img {
  width: 180px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

/* Top Center Logo */
.logo-wrapper {
  margin-bottom: 2rem;
  text-align: center;
}

.top-logo {
  width: 250px;
  height: auto;
  object-fit: contain;
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes logoGlow {
  0% {
    box-shadow: 0 0 50px rgba(147, 51, 234, 0.5),
      0 0 100px rgba(59, 130, 246, 0.3), 0 20px 40px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 30px rgba(147, 51, 234, 0.6))
      drop-shadow(0 0 60px rgba(59, 130, 246, 0.4));
  }
  100% {
    box-shadow: 0 0 70px rgba(147, 51, 234, 0.7),
      0 0 120px rgba(59, 130, 246, 0.5), 0 25px 50px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 0 40px rgba(147, 51, 234, 0.8))
      drop-shadow(0 0 80px rgba(59, 130, 246, 0.6));
  }
}

.brand-name {
  margin-left: 30px;
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(147, 51, 234, 0.8),
    0 0 40px rgba(59, 130, 246, 0.5);
  letter-spacing: 2px;
}

h1 {
  color: #ffffff;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(147, 51, 234, 0.6),
    0 0 60px rgba(59, 130, 246, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 1200px;
  animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.6),
      0 0 60px rgba(59, 130, 246, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  100% {
    text-shadow: 0 0 40px rgba(147, 51, 234, 0.8),
      0 0 80px rgba(59, 130, 246, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
}

/* Attempt Imtihaan Button */
.attempt-btn-container {
  margin-top: 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  position: relative;
}

.attempt-btn-container.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.attempt-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 20px 50px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.9) 0%,
    rgba(99, 102, 241, 0.9) 50%,
    rgba(59, 130, 246, 0.9) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 60px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5),
    0 0 80px rgba(99, 102, 241, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
  animation: buttonPulse 3s ease-in-out infinite;
  transition: all 0.4s ease;
}

.attempt-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.attempt-btn:hover::before {
  left: 100%;
}

.attempt-btn:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.7),
    0 0 100px rgba(99, 102, 241, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.attempt-btn:active {
  transform: scale(1.02) translateY(-2px);
}

.attempt-btn i {
  font-size: 1.6rem;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5),
      0 0 80px rgba(99, 102, 241, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.7),
      0 0 100px rgba(99, 102, 241, 0.5),
      inset 0 0 25px rgba(255, 255, 255, 0.15);
  }
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

/* Button sparkle effect */
.attempt-btn .sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.attempt-btn .sparkle:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.attempt-btn .sparkle:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 0.5s;
}
.attempt-btn .sparkle:nth-child(3) {
  bottom: 15%;
  left: 20%;
  animation-delay: 1s;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Decorative Elements */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: float 10s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* Corner decorations */
.corner {
  position: fixed;
  width: 200px;
  height: 200px;
  z-index: 5;
  border: 2px solid;
  border-image: linear-gradient(
      45deg,
      rgba(147, 51, 234, 0.8),
      rgba(59, 130, 246, 0.6),
      rgba(147, 51, 234, 0.8)
    )
    1;
}

.top-left {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.top-right {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

.bottom-left {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}

.bottom-right {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .brand-name {
    font-size: 2.5rem;
    margin-left: 20px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .logo {
    width: 100px;
    height: 100px;
  }

  .corner {
    width: 100px;
    height: 100px;
  }

  .galaxy-core {
    width: 400px;
    height: 400px;
  }

  .galaxy-center {
    width: 50px;
    height: 50px;
  }

  .orbit-1 {
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
  }

  .orbit-2 {
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
  }

  .orbit-3 {
    width: 260px;
    height: 260px;
    margin: -130px 0 0 -130px;
  }

  .orbit-4 {
    width: 350px;
    height: 350px;
    margin: -175px 0 0 -175px;
  }

  .nebula-cloud {
    filter: blur(60px);
  }

  .audio-control {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }

  .attempt-btn {
    padding: 16px 35px;
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .attempt-btn i {
    font-size: 1.3rem;
  }

  .top-logo {
    width: 200px;
  }

  .logo-wrapper {
    margin-bottom: 1.5rem;
  }

  .header-name-img {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .top-logo {
    width: 160px;
  }

  .header-name-img {
    width: 80px;
  }

  .header-name {
    top: 15px;
  }

  .logo-wrapper {
    margin-bottom: 1rem;
  }

  .attempt-btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    gap: 10px;
  }

  .attempt-btn i {
    font-size: 1.1rem;
  }

  .attempt-btn-container {
    margin-top: 2rem;
  }
  .logo-container {
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .brand-name {
    margin-left: 0;
    margin-top: 1rem;
    font-size: 2rem;
  }

  h1 {
    font-size: 1.8rem;
  }
}
