/* ========== BASE & RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
  background: rgba(59, 7, 100, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
  padding-top: 0;
  padding-bottom: 0;
}
#navbar.scrolled .nav-link { color: rgba(255,255,255,0.85); }
#navbar.scrolled .nav-link:hover { color: #fbbf24; }

.nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.25s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fbbf24;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #fbbf24; }

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobile-menu.open {
  max-height: 400px;
  padding: 0.5rem 0;
}
.mobile-link {
  border-bottom-width: 0 !important;
}

/* ========== HERO ========== */
.hero-gradient {
  background: linear-gradient(135deg, #3b0764 0%, #6b21a8 40%, #7e22ce 70%, #581c87 100%);
}
.hero-img {
  opacity: 0.45;
  transition: transform 8s ease;
}
#hero:hover .hero-img {
  transform: scale(1.03);
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(59,7,100,0.6) 0%, rgba(59,7,100,0.4) 50%, rgba(59,7,100,0.8) 100%);
}

.hero-badge {
  animation: fadeInDown 0.8s ease both;
}
.hero-title {
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-subtitle {
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-buttons {
  animation: fadeInUp 0.8s ease 0.5s both;
}
.hero-orb {
  animation: float 6s ease-in-out infinite;
}
.hero-orb-2 { animation-delay: -2s; animation-duration: 8s; }
.hero-orb-3 { animation-delay: -4s; animation-duration: 7s; }
.hero-scroll {
  animation: fadeInUp 0.8s ease 0.8s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #3b0764;
  font-weight: 800;
  font-size: 0.938rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(251,191,36,0.35);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(251,191,36,0.5);
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-weight: 700;
  font-size: 0.938rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* ========== TYPOGRAPHY ========== */
.heading-xl {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: #3b0764;
}
.tag-plum {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7e22ce;
  background: rgba(126,34,206,0.08);
  border: 1px solid rgba(126,34,206,0.15);
  padding: 6px 16px;
  border-radius: 50px;
}
.tag-amber {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
  background: rgba(180,83,9,0.08);
  border: 1px solid rgba(180,83,9,0.15);
  padding: 6px 16px;
  border-radius: 50px;
}

/* ========== ABOUT ========== */
.about-img-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(59,7,100,0.2);
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-img-wrapper:hover .about-img {
  transform: scale(1.03);
}
.about-floating-card {
  animation: float 5s ease-in-out infinite;
}

/* Stats */
.stat-item {
  text-align: left;
}
.stat-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  line-height: 1;
}
.stat-label {
  font-size: 0.813rem;
  color: #7e22ce;
  font-weight: 600;
  margin-top: 2px;
}

/* ========== MENU ========== */
.menu-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(59,7,100,0.06);
  border: 1px solid rgba(59,7,100,0.06);
  transition: all 0.35s ease;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(59,7,100,0.12);
}
.menu-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid rgba(59,7,100,0.06);
}
.menu-card-header--amber {
  border-bottom-color: rgba(251,191,36,0.2);
}
.menu-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(126,34,206,0.1), rgba(168,85,247,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7e22ce;
  flex-shrink: 0;
}
.menu-card-icon--amber {
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.15));
  color: #b45309;
}
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(59,7,100,0.07);
}
.menu-list li:last-child {
  border-bottom: none;
}
.menu-item-name {
  font-weight: 700;
  color: #3b0764;
  font-size: 0.938rem;
}
.menu-item-desc {
  font-size: 0.813rem;
  color: #7e22ce;
  opacity: 0.7;
  text-align: right;
  flex-shrink: 0;
}

/* ========== COMMUNITY ========== */
.community-orb {
  animation: float 10s ease-in-out infinite;
}
.orb-2 { animation-delay: -3s; }

.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.feature-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(251,191,36,0.2);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
}
.feature-icon--amber {
  background: linear-gradient(135deg, rgba(251,191,36,0.25), rgba(245,158,11,0.2));
}

/* ========== GALLERY ========== */
.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(59,7,100,0.1);
  transition: all 0.4s ease;
}
.gallery-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(59,7,100,0.18);
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

/* ========== VISIT ========== */
.visit-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.visit-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(126,34,206,0.08), rgba(168,85,247,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7e22ce;
  flex-shrink: 0;
}

/* ========== CONTACT FORM ========== */
.input-field {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(59,7,100,0.12);
  border-radius: 14px;
  background: rgba(59,7,100,0.02);
  color: #3b0764;
  font-size: 0.938rem;
  transition: all 0.25s ease;
  outline: none;
}
.input-field::placeholder {
  color: #a0aec0;
}
.input-field:hover {
  border-color: rgba(126,34,206,0.3);
  background: rgba(59,7,100,0.04);
}
.input-field:focus {
  border-color: #7e22ce;
  background: white;
  box-shadow: 0 0 0 4px rgba(126,34,206,0.08);
}
select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237e22ce' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ========== SCROLL REVEAL ========== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  .about-floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    max-width: 100%;
  }
  .menu-card {
    padding: 1.5rem;
  }
  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .grid sm:grid-cols-2 {
    grid-template-columns: 1fr;
  }
}
