/* General page styles for contrast */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: black;
  color: white;
  font-family: Arial, sans-serif;
}

/* Themed Loading Screen - Matching Website Style */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #2a0a2a 50%, #1a1a1a 75%, #000000 100%);
  background-size: 400% 400%;
  animation: backgroundShift 8s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
  overflow: hidden;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Sparkles matching main website */
.loader-sparkle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.loader-sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  animation: sparkleFloat 6s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.sparkle-1 { top: 10%; left: 15%; animation-delay: 0s; }
.sparkle-2 { top: 20%; left: 85%; animation-delay: 1s; }
.sparkle-3 { top: 70%; left: 10%; animation-delay: 2s; }
.sparkle-4 { top: 60%; left: 90%; animation-delay: 3s; }
.sparkle-5 { top: 30%; left: 50%; animation-delay: 1.5s; }
.sparkle-6 { top: 80%; left: 70%; animation-delay: 2.5s; }
.sparkle-7 { top: 50%; left: 20%; animation-delay: 0.5s; }
.sparkle-8 { top: 90%; left: 60%; animation-delay: 3.5s; }

.loader-content {
  text-align: center;
  z-index: 10;
  position: relative;
  animation: fadeInUp 1.5s ease-out;
  max-width: 90vw;
}

/* Logo and title matching main page exactly */
.loader-title-container {
  transform: scale(1.1);
  margin: 2rem 0;
}

.loader-logo-title-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}

.loader-logo-img {
  width: 80px;
  height: 80px;
  margin-right: 0.1rem;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  animation: logoGlow 3s ease-in-out infinite;
}

.loader-main-title {
  font-family: 'Inknut Antiqua', serif;
  font-size: 3.8rem;
  font-weight: 400;
  margin: 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: titleShimmer 4s ease-in-out infinite;
}

.loader-manthan {
  font-size: 3.2rem !important;
}

.loader-version-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Arial', sans-serif;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 215, 0, 0.4);
  text-shadow: 
    0 0 15px rgba(255, 215, 0, 0.9),
    0 0 30px rgba(255, 215, 0, 0.7),
    0 0 45px rgba(255, 185, 15, 0.5),
    0 0 60px rgba(218, 165, 32, 0.4),
    0 0 80px rgba(255, 223, 0, 0.3),
    0 0 100px rgba(255, 140, 0, 0.2);
  z-index: -1;
  animation: versionGoldGlow 3s ease-in-out infinite alternate;
}

/* Decorative line matching main theme */
.loader-decorative-line {
  width: 200px;
  height: 3px;
  margin: 2rem auto;
  background: transparent;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-line-accent {
  position: absolute;
  top: 0;
  left: -200px;
  width: 200px;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(93, 93, 245, 0.4) 20%,
    rgba(93, 93, 245, 0.8) 60%,
    rgba(255, 255, 255, 1) 100%
  );
  border-radius: 2px;
  animation: lineGlow 3s ease-in-out infinite;
}

.loader-subtitle {
  font-family: 'Inclusive Sans', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 2rem 0;
  letter-spacing: 1px;
  animation: subtitleFade 2s ease-in-out infinite alternate;
}

/* Glass morphism progress container */
.loader-progress-container {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
  width: 320px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.progress-wrapper {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(93, 93, 245, 0.8), 
    rgba(255, 255, 255, 0.9), 
    rgba(93, 93, 245, 0.8)
  );
  background-size: 200% 100%;
  border-radius: 3px;
  transition: width 0.3s ease-out;
  animation: progressShimmer 2s ease-in-out infinite;
}

.progress-glow {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(93, 93, 245, 0.3), transparent);
  border-radius: 5px;
  opacity: 0;
  animation: glowSweep 3s ease-in-out infinite;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-percentage {
  font-family: 'Arial', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(93, 93, 245, 0.5);
}

.progress-status {
  font-family: 'Inclusive Sans', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: opacity 0.3s ease;
}

/* Elegant spinner matching theme colors */
.loader-spinner {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 2rem auto;
}

.spinner-outer {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid rgba(93, 93, 245, 0.8);
  border-radius: 50%;
  animation: spinRotate 2s linear infinite;
}

.spinner-inner {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spinRotate 1.5s linear infinite reverse;
}

.spinner-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.center-pulse {
  width: 8px;
  height: 8px;
  background: rgba(93, 93, 245, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(93, 93, 245, 0.6);
  animation: centerPulse 1.5s ease-in-out infinite;
}

/* Loading message with typing effect */
.loading-message {
  margin-top: 2rem;
  font-family: 'Inclusive Sans', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  min-height: 24px;
}

#typingMessage {
  animation: messageGlow 3s ease-in-out infinite;
}

.typing-cursor {
  color: rgba(93, 93, 245, 0.8);
  animation: cursorBlink 1s linear infinite;
}

/* Keyframe Animations */
@keyframes backgroundShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes sparkleFloat {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 30px rgba(93, 93, 245, 0.8));
    transform: scale(1.05);
  }
}

@keyframes titleShimmer {
  0%, 100% { 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
  }
  50% { 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(93, 93, 245, 0.6);
    color: rgba(255, 255, 255, 0.95);
  }
}

@keyframes versionPulse {
  0%, 100% { 
    color: rgba(93, 93, 245, 0.1);
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    color: rgba(93, 93, 245, 0.15);
    transform: translate(-50%, -50%) scale(1.02);
  }
}

@keyframes lineGlow {
  0% { left: -200px; }
  100% { left: 200px; }
}

@keyframes versionGlow {
  0% {
    color: rgba(112, 46, 188, 0.6);
    text-shadow: 
      0 0 10px rgba(112, 46, 188, 0.8),
      0 0 20px rgba(112, 46, 188, 0.6),
      0 0 30px rgba(112, 46, 188, 0.4),
      0 0 40px rgba(112, 46, 188, 0.3),
      0 0 60px rgba(112, 46, 188, 0.2),
      0 0 80px rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    color: rgba(112, 46, 188, 0.9);
    text-shadow: 
      0 0 15px rgba(112, 46, 188, 1),
      0 0 30px rgba(112, 46, 188, 0.8),
      0 0 45px rgba(112, 46, 188, 0.6),
      0 0 60px rgba(112, 46, 188, 0.4),
      0 0 80px rgba(112, 46, 188, 0.3),
      0 0 100px rgba(255, 255, 255, 0.2),
      0 0 120px rgba(93, 93, 245, 0.2);
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes versionGoldGlow {
  0% {
    color: rgba(255, 215, 0, 0.7);
    text-shadow: 
      0 0 10px rgba(255, 215, 0, 0.9),
      0 0 20px rgba(255, 215, 0, 0.7),
      0 0 30px rgba(255, 185, 15, 0.5),
      0 0 40px rgba(218, 165, 32, 0.4),
      0 0 60px rgba(255, 223, 0, 0.3),
      0 0 80px rgba(255, 140, 0, 0.2);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    color: rgba(255, 215, 0, 1);
    text-shadow: 
      0 0 15px rgba(255, 215, 0, 1),
      0 0 30px rgba(255, 215, 0, 0.9),
      0 0 45px rgba(255, 185, 15, 0.7),
      0 0 60px rgba(218, 165, 32, 0.6),
      0 0 80px rgba(255, 223, 0, 0.4),
      0 0 100px rgba(255, 140, 0, 0.3),
      0 0 120px rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes subtitleFade {
  from { 
    color: rgba(255, 255, 255, 0.8);
    text-shadow: none;
  }
  to { 
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
}

@keyframes progressShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glowSweep {
  0%, 100% { 
    opacity: 0;
    transform: translateX(-100%);
  }
  50% { 
    opacity: 1;
    transform: translateX(100%);
  }
}

@keyframes spinRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes centerPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 10px rgba(93, 93, 245, 0.6);
  }
  50% { 
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(93, 93, 245, 0.8);
  }
}

@keyframes messageGlow {
  0%, 100% { color: rgba(255, 255, 255, 0.8); }
  50% { color: rgba(255, 255, 255, 1); }
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}



/* Navbar styles */
.navbar {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 40px;
  margin: 0;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  min-width: 320px;
  max-width: 90vw;
  text-decoration: none;
  animation: slideDown 1s ease-out;
  transition: all 0.3s ease;
}

.navbar:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.navbar-logo {
  font-size: 20px;
  font-weight: bold;
}
#logo {
  width: auto;
  height: 9rem;
  margin-right: 0;
  margin-bottom: 0;
  display: inline-block;
}

/* Logo and title horizontal layout */
.logo-title-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  margin-bottom: 1rem;
  line-height: 1;
}

.logo-title-wrapper #logo {
  margin-bottom: 0;
  margin-right: 0;
  height: 7rem;
  width: auto;
  vertical-align: baseline;
}

.logo-title-wrapper .main-title {
  margin: 0;
  line-height: 1;
}
.navbar-links {
  list-style: none;
  display: flex;
  gap: 45px;
  margin: 0;
  padding: 0;
}

.navbar-links li a {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  color: rgb(0, 0, 0);
  font-weight: 600;
  font-size: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 22px;
  border-radius: 40px;
  margin: 0 4px;
  display: inline-block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.navbar-links li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.navbar-links li a:hover::before {
  left: 100%;
}

.navbar-links li a:hover {
  color: #000000;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  box-shadow: 
    0 8px 25px rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-3px) scale(1.05);
}

/* GitHub Handle Button - Bottom Right */
.github-handle-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: rgb(255, 255, 255);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-family: 'Inclusive Sans', sans-serif;
}

.github-handle-btn:hover {
  color: #000000;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-color: rgb(0, 0, 0);
}

.github-handle-btn i {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.github-handle-btn span {
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.5s ease;
}

#main-content {
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

#main-content.zoom-out {
  opacity: 0;
  transform: scale(1.15);
  pointer-events: none;
}

/* Full Screen Countdown Section */
.full-screen-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2a0a2a 100%);
  overflow: hidden;
  padding-top: 120px;
  box-sizing: border-box;
}

.full-screen-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(93, 93, 245, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(123, 123, 247, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(93, 93, 245, 0.1) 0%, transparent 50%);
  animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.countdown-container {
  text-align: center;
  color: white;
  z-index: 10;
  animation: fadeInUp 1.5s ease-out;
}

/* Countdown Timer Styling */
#countdown-section {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  margin: 3rem 0 4rem 0;
}

.countdown-timer {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
  box-sizing: border-box;
  transform: scale(1.6);
  transform-origin: center;
  margin: 1rem 0;
}

/* Ensure countdown timer iframe is responsive */
.countdown-timer iframe {
  max-width: 100%;
  width: auto !important;
  height: auto !important;
}

/* Additional mobile override for countdown timer */
@media (max-width: 375px) {
  .countdown-timer {
    transform: scale(1.1);
    transform-origin: center;
  }
}

.main-title-container {
  margin-bottom: 2rem;
  position: relative;
}

/* Version background element */
.version-background {
  position: absolute;
  font-family: 'Arial', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 0, 225, 0.7);
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 0.9),
    0 0 20px rgba(255, 215, 0, 0.7),
    0 0 30px rgba(255, 185, 15, 0.5),
    0 0 40px rgba(218, 165, 32, 0.4),
    0 0 60px rgba(255, 223, 0, 0.3),
    0 0 80px rgba(255, 140, 0, 0.2);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
  animation: versionGoldGlow 3s ease-in-out infinite alternate;
}

.main-title-container .logo-title-wrapper {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 0.1rem !important;
  margin-bottom: 1rem;
  line-height: 1;
  flex-direction: row !important;
}

.main-title-container .logo-title-wrapper #logo {
  margin-bottom: 0;
  margin-right: 0.1rem;
  height: 6.5rem;
  width: auto;
  vertical-align: baseline;
  transform: translateY(-0.2rem);
  animation: fadeInUp 1.5s ease-out 0.2s both;
}

.main-title-container .main-title {
  font-size: 5.5rem;
  margin-bottom: 0;
}

.main-title-container .manthan-title {
  font-size: 5rem;
}

.main-title-container .main-title {
  font-family: 'Inknut Antiqua', serif;
  font-size: 6rem;
  font-weight: 400;
  margin: 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(45deg, #ffffff, #c4c4c4, #ffffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite, fadeInUp 1.5s ease-out 0.4s both;
  line-height: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.countdown-heading {
  font-family: 'Inknut Antiqua', serif;
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(45deg, #ffffff, #c4c4c4, #ffffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite, textGlow 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes textGlow {
  from { 
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
  }
  to { 
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }
}

.countdown-subtitle {
  font-family: 'Inclusive Sans', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: #c4c4c4;
  animation: fadeInUp 1.5s ease-out 0.3s both;
}

@keyframes numberGlow {
  from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
  to { text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(93, 93, 245, 0.4); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #c4c4c4;
  animation: 
    fadeInUp 1.5s ease-out 1.5s both,
    floatUpDown 3s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  color: #ffffff;
  transform: translateX(-50%) scale(1.1);
}

.scroll-indicator span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-arrow {
  font-size: 1.5rem;
  animation: arrowBounce 2s infinite;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes arrowBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Scroll Animation Classes */
.fade-in-section {
  opacity: 0;
  transform: translateY(80px) scale(0.95);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fade-in-element {
  opacity: 0;
  transform: translateY(50px) rotateX(20deg);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

/* Enhanced Staggered animation for timeline items */
.timeline-item:nth-child(1) .fade-in-element { transition-delay: 0.1s; }
.timeline-item:nth-child(2) .fade-in-element { transition-delay: 0.3s; }
.timeline-item:nth-child(3) .fade-in-element { transition-delay: 0.5s; }
.timeline-item:nth-child(4) .fade-in-element { transition-delay: 0.7s; }
.timeline-item:nth-child(5) .fade-in-element { transition-delay: 0.9s; }

/* Timeline item hover effects */
.timeline-item {
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(10px);
}

.timeline-content {
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 40px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-content:hover::before {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-title-container .main-title {
    font-size: 3.5rem !important;
  }
  
  .main-title-container .manthan-title {
    font-size: 3rem !important;
  }
  
  .main-title-container .logo-title-wrapper {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 0.2rem !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  
  .main-title-container .logo-title-wrapper #logo {
    height: 4rem !important;
    width: auto !important;
    transform: translateY(-0.3rem) !important;
    margin-right: 0.2rem !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
  
  .countdown-subtitle {
    font-size: 1.2rem;
  }
  
  /* Countdown Timer Mobile Styling */
  #countdown-section {
    margin: 2rem 0 !important;
    padding: 0 1.5rem;
    overflow: visible;
    width: 100%;
    max-width: 100vw;
  }
  
  .countdown-timer {
    transform: scale(1.4);
    max-width: 100%;
    width: auto !important;
    min-width: 300px;
  }
  
  .navbar {
    padding: 12px 20px;
    margin-top: 1rem;
  }
  
  .navbar-links {
    gap: 20px;
  }
  
  .navbar-links li a {
    font-size: 16px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .main-title-container .main-title {
    font-size: 3rem !important;
  }
  
  .main-title-container .manthan-title {
    font-size: 2.5rem !important;
  }
  
  .main-title-container .logo-title-wrapper {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 0.1rem !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  
  .main-title-container .logo-title-wrapper #logo {
    height: 3.5rem !important;
    width: auto !important;
    transform: translateY(-0.4rem) !important;
    margin-right: 0.1rem !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
  
  .countdown-subtitle {
    font-size: 1rem;
  }
  
  /* Countdown Timer Mobile Styling for Small Screens */
  #countdown-section {
    margin: 1.5rem 0 !important;
    padding: 0 1rem;
    overflow: visible;
    width: 100%;
    max-width: 100vw;
  }
  
  .countdown-timer {
    transform: scale(1.2);
    max-width: 100%;
    width: auto !important;
    min-width: 280px;
    font-size: 0.9rem !important;
  }
}

/* MOBILE LOGO FIX - FORCE HORIZONTAL LAYOUT v2 */
/* Extra small mobile devices */
@media (max-width: 375px) {
  .main-title-container .main-title {
    font-size: 2.5rem !important;
  }
  
  .main-title-container .manthan-title {
    font-size: 2rem !important;
  }
  
  .main-title-container .logo-title-wrapper {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 0.05rem !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  
  .main-title-container .logo-title-wrapper #logo {
    height: 3rem !important;
    width: auto !important;
    transform: translateY(-0.5rem) !important;
    margin-right: 0.05rem !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
}

/* Additional Visual Effects */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 0.3; transform: scale(1); }
}

/* Random floating sparkles */
.sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.floating-sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  animation: floatAndGlow 8s ease-in-out infinite;
}

.sparkle-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.sparkle-2 {
  top: 60%;
  left: 80%;
  animation-delay: 1s;
  animation-duration: 8s;
}

.sparkle-3 {
  top: 30%;
  left: 70%;
  animation-delay: 2s;
  animation-duration: 7s;
}

.sparkle-4 {
  top: 80%;
  left: 15%;
  animation-delay: 0.5s;
  animation-duration: 9s;
}

.sparkle-5 {
  top: 15%;
  left: 60%;
  animation-delay: 1.5s;
  animation-duration: 6.5s;
}

.sparkle-6 {
  top: 70%;
  left: 40%;
  animation-delay: 2.5s;
  animation-duration: 7.5s;
}

.sparkle-7 {
  top: 45%;
  left: 5%;
  animation-delay: 3s;
  animation-duration: 8.5s;
}

.sparkle-8 {
  top: 25%;
  left: 90%;
  animation-delay: 0.8s;
  animation-duration: 7.2s;
}

@keyframes floatAndGlow {
  0%, 100% { 
    opacity: 0; 
    transform: translateY(0px) scale(0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }
  25% { 
    opacity: 0.8; 
    transform: translateY(-10px) scale(1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  }
  50% { 
    opacity: 1; 
    transform: translateY(-5px) scale(1.2);
    text-shadow: 0 0 20px rgba(255, 255, 255, 1);
  }
  75% { 
    opacity: 0.6; 
    transform: translateY(5px) scale(0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
}

/* Sparkle effects */
.main-title-container .main-title::before,
.main-title-container .main-title::after {
  content: '✦';
  position: absolute;
  color: #fff;
  font-size: 1rem;
  animation: sparkle 2s ease-in-out infinite;
  z-index: -1;
}

.main-title-container .main-title::before {
  top: -10px;
  left: -20px;
  animation-delay: 0s;
}

.main-title-container .main-title::after {
  bottom: -10px;
  right: -20px;
  animation-delay: 1s;
}

/* Loading animation for countdown */
.countdown-timer-display.loading {
  animation: loadingPulse 1s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* GitHub Footer */
.github-footer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.github-link:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.github-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.github-link:hover .github-icon {
  transform: scale(1.1);
}

.github-link span {
  font-family: 'Inclusive Sans', sans-serif;
}

/* Decorative line */
.decorative-line {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.line-accent {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(93, 93, 245, 0.8), 
    rgba(255, 255, 255, 0.9), 
    rgba(93, 93, 245, 0.8), 
    transparent
  );
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    opacity: 0.6;
    filter: blur(0px);
  }
  50% {
    opacity: 1;
    filter: blur(1px);
  }
}

/* Remove old bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Animated line below AVISHKAR MANTHAN */
.animated-line-container {
  width: 300px;
  height: 4px;
  background: transparent;
  border-radius: 2px;
  margin: 1.5rem auto;
  overflow: hidden;
  position: relative;
}

.animated-line {
  position: absolute;
  top: 0;
  left: -80px;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(93, 93, 245, 0.4) 20%,
    rgba(93, 93, 245, 0.8) 60%,
    rgba(255, 255, 255, 1) 100%
  );
  border-radius: 2px;
  animation: lineWithTail 3s ease-in-out infinite alternate;
}

@keyframes lineWithTail {
  0% {
    left: -80px;
  }
  100% {
    left: 300px;
  }
}

/* Stunning Animated Register Button */
.stunning-register-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.9) 0%, 
    rgba(255, 185, 15, 1) 25%, 
    rgba(218, 165, 32, 1) 50%, 
    rgba(255, 223, 0, 1) 75%, 
    rgba(255, 140, 0, 0.9) 100%);
  background-size: 300% 300%;
  border: none;
  border-radius: 50px;
  color: #000000;
  font-family: 'Inclusive Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    0 8px 25px rgba(255, 215, 0, 0.4),
    0 4px 15px rgba(255, 185, 15, 0.3),
    inset 0 1px 3px rgba(255, 255, 255, 0.3),
    inset 0 -1px 3px rgba(0, 0, 0, 0.1);
  animation: btnGradientShift 4s ease-in-out infinite, btnGlow 3s ease-in-out infinite alternate;
  z-index: 10;
  min-width: 200px;
  user-select: none;
}

.stunning-register-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    rgba(255, 215, 0, 0.8), 
    rgba(255, 185, 15, 0.9), 
    rgba(218, 165, 32, 0.8), 
    rgba(255, 223, 0, 0.9),
    rgba(255, 140, 0, 0.8));
  background-size: 400% 400%;
  border-radius: 52px;
  z-index: -1;
  animation: btnBorderGlow 3s ease-in-out infinite;
  filter: blur(1px);
}

.stunning-register-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 35px rgba(255, 215, 0, 0.6),
    0 8px 25px rgba(255, 185, 15, 0.4),
    0 0 40px rgba(255, 223, 0, 0.3),
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
  animation-duration: 2s, 1.5s;
}

.stunning-register-btn:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 
    0 6px 20px rgba(255, 215, 0, 0.5),
    0 3px 12px rgba(255, 185, 15, 0.3);
}

/* Button Background Effects */
.btn-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  overflow: hidden;
  z-index: -1;
}

.btn-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: btnRingPulse 2.5s ease-in-out infinite;
}

.btn-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 215, 0, 0.8) 100%);
  border-radius: 50%;
  animation: btnParticleFloat 3s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.btn-particle-1 {
  top: 15%;
  left: 20%;
  animation-delay: 0s;
  animation-duration: 2.8s;
}

.btn-particle-2 {
  top: 80%;
  right: 25%;
  animation-delay: 0.7s;
  animation-duration: 3.2s;
}

.btn-particle-3 {
  top: 30%;
  right: 15%;
  animation-delay: 1.4s;
  animation-duration: 2.5s;
}

.btn-particle-4 {
  bottom: 20%;
  left: 30%;
  animation-delay: 2.1s;
  animation-duration: 3.5s;
}

/* Button Text and Icon */
.btn-text {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-icon {
  font-size: 1.2rem;
  transition: all 0.3s ease;
  animation: btnIconFloat 3s ease-in-out infinite;
}

.stunning-register-btn:hover .btn-icon {
  transform: translateX(3px) rotate(15deg);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.stunning-register-btn:hover .btn-text {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Button Shimmer Effect */
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%);
  border-radius: 50px;
  animation: btnShimmer 3s ease-in-out infinite;
  z-index: 3;
}

/* Keyframe Animations for Button */
@keyframes btnGradientShift {
  0%, 100% { 
    background-position: 0% 50%; 
  }
  50% { 
    background-position: 100% 50%; 
  }
}

@keyframes btnGlow {
  0% {
    box-shadow: 
      0 8px 25px rgba(255, 215, 0, 0.4),
      0 4px 15px rgba(255, 185, 15, 0.3),
      inset 0 1px 3px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 
      0 12px 35px rgba(255, 215, 0, 0.6),
      0 8px 25px rgba(255, 185, 15, 0.5),
      0 0 30px rgba(255, 223, 0, 0.4),
      inset 0 1px 3px rgba(255, 255, 255, 0.4);
  }
}

@keyframes btnBorderGlow {
  0%, 100% { 
    background-position: 0% 50%;
    filter: blur(1px);
  }
  50% { 
    background-position: 100% 50%;
    filter: blur(2px);
  }
}

@keyframes btnRingPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.3;
  }
}

@keyframes btnParticleFloat {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    opacity: 0.8;
  }
  25% { 
    transform: translateY(-15px) scale(1.2);
    opacity: 1;
  }
  50% { 
    transform: translateY(-8px) scale(0.9);
    opacity: 0.6;
  }
  75% { 
    transform: translateY(-20px) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes btnIconFloat {
  0%, 100% { 
    transform: translateY(0px);
  }
  50% { 
    transform: translateY(-2px);
  }
}

@keyframes btnShimmer {
  0% { 
    left: -100%;
    opacity: 0;
  }
  50% { 
    opacity: 1;
  }
  100% { 
    left: 100%;
    opacity: 0;
  }
}

/* Mobile Responsive for Stunning Button */
@media (max-width: 768px) {
  .stunning-register-btn {
    padding: 16px 35px;
    font-size: 1rem;
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .stunning-register-btn {
    padding: 14px 30px;
    font-size: 0.95rem;
    min-width: 160px;
  }
  
  .btn-icon {
    font-size: 1.1rem;
  }
}

/* Extra stunning effect on load */
.stunning-register-btn {
  animation-delay: 0.8s;
  opacity: 0;
  animation: btnGradientShift 4s ease-in-out infinite, 
             btnGlow 3s ease-in-out infinite alternate,
             btnFadeIn 1.2s ease-out 0.8s forwards;
}

@keyframes btnFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Events Section - Gradient Separator */
.events-separator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4rem 0;
  position: relative;
}

.separator-line {
  width: 60%;
  max-width: 600px;
  height: 4px;
  background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(255, 215, 0, 0.9) 15%, 
      rgba(255, 185, 15, 1) 35%, 
      rgba(255, 223, 0, 1) 65%, 
      rgba(218, 165, 32, 0.9) 85%, 
      transparent 100%);
  border-radius: 3px;
  animation: separatorPulse 3s ease-in-out infinite;
  box-shadow: 
      0 0 20px rgba(255, 215, 0, 0.4),
      0 0 40px rgba(255, 185, 15, 0.2);
  position: relative;
}

.separator-line::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(255, 215, 0, 0.3) 15%, 
      rgba(255, 185, 15, 0.3) 35%, 
      rgba(255, 223, 0, 0.3) 65%, 
      rgba(218, 165, 32, 0.3) 85%, 
      transparent 100%);
  border-radius: 5px;
  z-index: -1;
  animation: separatorHalo 3s ease-in-out infinite reverse;
}

@keyframes separatorPulse {
  0%, 100% { 
      opacity: 0.8;
      transform: scaleX(1);
      box-shadow: 
          0 0 20px rgba(255, 215, 0, 0.4),
          0 0 40px rgba(255, 185, 15, 0.2);
  }
  50% { 
      opacity: 1;
      transform: scaleX(1.02);
      box-shadow: 
          0 0 30px rgba(255, 215, 0, 0.6),
          0 0 60px rgba(218, 165, 32, 0.3);
  }
}

@keyframes separatorHalo {
  0%, 100% { 
      opacity: 0.2;
      transform: scaleX(1);
  }
  50% { 
      opacity: 0.4;
      transform: scaleX(1.05);
  }
}
