body { 
  background-color: #f8fafc; 
  color: #1e293b; 
  scroll-behavior: smooth; 
}

/* --- Hero Slider --- */
.hero-wrapper {
  position: relative;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }

.slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 10s ease-out;
}
.slide.active .slide-bg { transform: scale(1); }

/* Text Animation */
.hero-text { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out 0.3s; }
.slide.active .hero-text { opacity: 1; transform: translateY(0); }

/* Thumbnails */
.thumb-nav {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 20;
  display: flex;
  gap: 1rem;
}
.thumb {
  width: 80px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}
.thumb.active { border-color: #f43f5e; opacity: 1; transform: scale(1.1); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- Hover Expand Gallery (Desktop) --- */
.gallery-container {
  display: flex;
  gap: 1rem;
  height: 600px; /* Mobile height for vertical stack */
}
@media (min-width: 768px) {
  .gallery-container {
    height: 400px; /* Desktop height for horizontal row */
  }
}
.gallery-item {
  flex: 1;
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: flex 0.5s ease-in-out;
  cursor: pointer;
}
.gallery-item:hover { flex: 3; }
.gallery-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0.8;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; background: linear-gradient(to top, rgba(49, 46, 129, 0.9), rgba(49, 46, 129, 0.2)); }
.gallery-content {
  transform: translateY(20px);
  transition: transform 0.3s;
}
.gallery-item:hover .gallery-content { transform: translateY(0); }
.gallery-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s ease;
}
.gallery-item:hover .gallery-desc { max-height: 100px; opacity: 1; margin-top: 0.5rem; }

/* --- Myth Cards --- */
.myth-card {
  perspective: 1000px;
  height: 250px;
}
.myth-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
}
.myth-card:hover .myth-inner { transform: rotateY(180deg); }
.myth-front, .myth-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  padding: 1.5rem;
}
.myth-front { background-color: #fff; border: 1px solid #e2e8f0; }
.myth-back { background-color: #312e81; color: white; transform: rotateY(180deg); }

/* --- Animations --- */
.fade-up { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-up.show { opacity: 1; transform: translateY(0); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #6366f1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4f46e5; }
