/* Enhanced styles for index page */
@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Marathi:wght@400;700&family=Crimson+Text:wght@400;600&display=swap');

/* Page-specific styles for index page */
.hero-section {
  position: relative;
  text-align: center;
  padding: 60px 30px;
  background: linear-gradient(135deg, #fff8e7 0%, #ffeaa7 25%, #fdcb6e 50%, #e17055 75%, #d63031 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  border-radius: 25px;
  margin: 30px auto;
  max-width: 1200px;
  box-shadow: 
    0 20px 60px rgba(194, 136, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.welcome-text {
  font-size: 2.5rem;
  color: #2d1810;
  margin: 30px 0;
  text-shadow: 
    2px 2px 4px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 215, 0, 0.5);
  font-family: 'Tiro Devanagari Marathi', serif;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.5s ease forwards 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section img.mahadev-img {
  width: 85%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(194, 136, 0, 0.4);
  transition: all 0.4s ease;
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 2s ease forwards 1s;
  cursor: pointer;
}

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-section img.mahadev-img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(255, 255, 255, 0.4),
    0 0 50px rgba(194, 136, 0, 0.6);
}

.description-text {
  font-size: 1.3rem;
  color: #2d1810;
  margin: 30px auto;
  max-width: 700px;
  line-height: 1.8;
  font-family: 'Tiro Devanagari Marathi', serif;
  opacity: 0;
  animation: fadeIn 2s ease forwards 1.5s;
}

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

.description-text p {
  margin: 15px 0;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.description-text p:hover {
  color: #8b4513;
  transform: translateY(-2px);
}

.divider {
  width: 150px;
  height: 6px;
  background: linear-gradient(90deg, transparent, #c28800, #ffd700, #c28800, transparent);
  margin: 30px auto;
  border-radius: 3px;
  opacity: 0;
  animation: slideIn 1.5s ease forwards 2s;
  position: relative;
  overflow: hidden;
}

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

.divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Enhanced floating elements */
.floating-trishul {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 90px;
  opacity: 0.9;
  animation: floatTrishul 4s infinite ease-in-out;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 5px 15px rgba(194, 136, 0, 0.4));
}

@keyframes floatTrishul {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(2deg); }
  50% { transform: translateY(-15px) rotate(0deg); }
  75% { transform: translateY(-8px) rotate(-2deg); }
}

.floating-trishul:hover {
  transform: scale(1.2) rotate(10deg);
  opacity: 1;
}

/* Floating particles animation */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #ffd700, #ffed4e);
  border-radius: 50%;
  animation: float 15s infinite linear;
  opacity: 0;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* Sacred symbols decoration */
.sacred-symbols {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 2rem;
  color: rgba(194, 136, 0, 0.3);
  animation: pulse 3s infinite;
  z-index: 1;
}

.sacred-symbols::after {
  content: '🕉️';
  position: absolute;
  top: 0;
  right: -40px;
  animation: pulse 3s infinite 1s;
}

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

/* Interactive hover effects */
.hero-section:hover {
  transform: translateY(-5px);
  transition: transform 0.5s ease;
}

/* Loading animation for the entire section */
.hero-section {
  opacity: 0;
  transform: translateY(50px);
  animation: sectionLoad 2s ease forwards;
}

@keyframes sectionLoad {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .welcome-text {
    font-size: 1.8rem;
    margin: 20px 0;
  }
  
  .hero-section {
    margin: 15px;
    padding: 40px 20px;
    border-radius: 20px;
  }
  
  .floating-trishul {
    width: 70px;
    bottom: 25px;
    right: 25px;
  }
  
  .description-text {
    font-size: 1.1rem;
    padding: 0 10px;
  }
  
  .sacred-symbols {
    font-size: 1.5rem;
    top: 15px;
    left: 15px;
  }
}

@media (max-width: 480px) {
  .welcome-text {
    font-size: 1.5rem;
  }
  
  .hero-section {
    margin: 10px;
    padding: 30px 15px;
  }
  
  .floating-trishul {
    width: 60px;
    bottom: 20px;
    right: 20px;
  }
}
