html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.4s ease;
  /* Ensure body acts as a container for the background layer */
  min-height: 100vh;
}

/* --- DUAL TEXTURE LAYER (CORRECTED Z-INDEX) --- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Sent to back so it doesn't overlap logo/text */
  z-index: -1;
  transition: opacity 0.4s ease, background-image 0.4s ease;
}

/* Light Theme: Technical dot grid */
[data-bs-theme="light"] body::before {
  opacity: 0.15;
  background-image: radial-gradient(#000 0.8px, transparent 0.8px);
  background-size: 24px 24px;
}

/* Dark Theme: Analog digital grain */
[data-bs-theme="dark"] body::before {
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Logo color handling */
.logo-svg {
  color: #333;
}

[data-bs-theme="dark"] .logo-svg {
  color: #f8f9fa;
}

/* Social icons hover effects */
.social-icon i {
  color: var(--bs-secondary-color);
  transition: color 0.3s ease;
}

.youtube-icon:hover i {
  color: #ff0000 !important;
}

.instagram-icon:hover i {
  color: #e1306c !important;
}

.tiktok-icon:hover i {
  color: #69c9d0 !important;
}

.email-icon:hover i {
  color: #0d6efd !important;
}

/* --- HERO SECTION --- */
.hero-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 5vh;
}

.hero-h1 {
  font-size: clamp(2.8rem, 12vw, 6rem);
  font-weight: 900;
  letter-spacing: -3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.rotating-wrapper {
  position: relative;
  height: 2.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.rotating-h2 {
  position: absolute;
  font-size: clamp(0.9rem, 2.8vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  opacity: 0;
  margin: 0;
  animation: rotateFadeText 10s infinite ease-in-out;
}

.rotating-h2:nth-child(1) {
  animation-delay: 0s;
}

.rotating-h2:nth-child(2) {
  animation-delay: 2.5s;
}

.rotating-h2:nth-child(3) {
  animation-delay: 5s;
}

.rotating-h2:nth-child(4) {
  animation-delay: 7.5s;
}

@keyframes rotateFadeText {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(5px);
  }
  5% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  25% {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(5px);
  }
  100% {
    opacity: 0;
  }
}

/* --- LOADER STYLE --- */
.loader-container {
  position: fixed;
  inset: 0;
  background: var(--bs-body-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 10001;
}

.vu-bar {
  width: 8px;
  height: 40px;
  background: var(--bs-secondary-color);
  border-radius: 4px;
  animation: vuPulse 0.8s infinite ease-in-out;
}

.bar1 {
  animation-delay: 0s;
}

.bar2 {
  animation-delay: 0.15s;
}

.bar3 {
  animation-delay: 0.3s;
}

@keyframes vuPulse {
  0%,
  100% {
    height: 20px;
    opacity: 0.6;
  }
  50% {
    height: 60px;
    opacity: 1;
  }
}