/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body,
html {
  height: 100%;
  overflow: hidden;
  background-color: #121212;
}

/* Base Background Container */
.bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-color: #1a1a2e;
}

/* Overlays (Dark vs Color) */
.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
}
.bg-overlay.color-overlay {
  background: linear-gradient(135deg, #2b1055, #7597de);
}

/* Single Image Background */
.bg-single {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./Image/Single.jpg") center/cover no-repeat;
  z-index: 1;
}

/* Slider Backgrounds */
.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0;
  transition:
    opacity 1.5s ease-in-out,
    transform 6s linear;
  transform: scale(1);
}
.bg-slide.active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 2;
}

/* Video Background */
#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

/* Main Content Layout */
.content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
}

/* Typography & Perfect Typing Layout Lock */
.main-title {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

.typing-container {
  display: flex;
  align-items: center;
  text-align: left;
  min-width: 290px; /* CRITICAL: Locks width so "Welcome to" doesn't wiggle */
}

#typed-text {
  font-weight: 800;
}

/* Restored AweSplash blinking cursor */
.typing-cursor {
  font-weight: 300;
  color: #ffffff;
  font-size: 1.1em;
  line-height: 1;
  margin-left: 4px;
  position: relative;
  top: -3px;
  animation: blink 1s infinite;
}

.subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #ffffff;
  animation: fadeInUp 1s ease-out 0.3s backwards;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Call to Action Button */
.cta-button {
  display: inline-block;
  padding: 16px 45px;
  background-color: #ff5252;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.6s backwards;
  box-shadow: 0 4px 15px rgba(255, 82, 82, 0.3);
}
.cta-button:hover {
  background-color: #ff3333;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 82, 82, 0.5);
}

/* Bottom Navigation Controls */
.bottom-nav {
  position: absolute;
  z-index: 10;
  bottom: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeIn 1.5s ease-out 1s backwards;
}
.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 10px 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  animation: fadeInUp 1s ease-out 0.8s backwards;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  background-color: #ffffff;
  transform: scale(1.3);
}

/* Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
