/* =========================================================
   Ananya Entertainments — Premium Luxury Theme (Black & Gold)
   ========================================================= */

:root {
  --gold: #c9a227;
  --gold-light: #e8cd6e;
  --black: #0b0b0d;
  --black-soft: #16161a;
  --white: #ffffff;
  --text-muted: #6c6c72;
  --bg: #ffffff;
  --bg-alt: #f7f6f3;
  --text: #1a1a1a;
  --card-bg: #ffffff;
  --border-color: rgba(0,0,0,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 16px;
  --transition: all 0.35s ease;
}

[data-theme="dark"] {
  --bg: #0b0b0d;
  --bg-alt: #131316;
  --text: #f1f1f1;
  --text-muted: #a3a3a8;
  --card-bg: #17171b;
  --border-color: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0b0b0d;
    --bg-alt: #131316;
    --text: #f1f1f1;
    --text-muted: #a3a3a8;
    --card-bg: #17171b;
    --border-color: rgba(255,255,255,0.08);
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: var(--transition);
}

h1, h2, h3, h4, .font-display {
  font-family: 'Playfair Display', serif;
}

a { text-decoration: none; transition: var(--transition); }

.text-gold { color: var(--gold) !important; }
.bg-black { background-color: var(--black) !important; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-spinner {
  width: 54px; height: 54px;
  border: 3px solid rgba(201,162,39,0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Top bar ---------- */
.top-bar {
  background: #f5efdd;
  color: #2b2b2b;
  font-size: 0.78rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.top-bar a { color: #2b2b2b; }
.top-bar-info span { margin-right: 20px; }
.top-bar-info i { color: var(--gold); margin-right: 6px; }
.top-bar-social a { margin-left: 14px; color: #2b2b2b; }
.top-bar-social a:hover { color: var(--gold); }

/* ---------- Header ---------- */
.main-header {
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  transition: var(--transition);
  z-index: 1030;
}
.main-header .navbar {
  padding-top: 0;
  padding-bottom: 0;
}
.main-header.scrolled {
  box-shadow: var(--shadow);
}
.main-header .navbar-brand img {
  height: 80px;
  width: auto;
  transition: var(--transition);
}
.main-header .nav-link {
  color: #f1f1f1;
  font-weight: 500;
  margin: 0 8px;
  position: relative;
}
.main-header .nav-link.active,
.main-header .nav-link:hover { color: var(--gold); }
.main-header .dropdown-toggle::after { color: #f1f1f1; }
.main-header .navbar-toggler {
  border-color: rgba(255,255,255,0.25);
}
.main-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(241,241,241,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.btn-icon {
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: #f1f1f1; border-radius: 50%;
  width: 38px; height: 38px;
}
.btn-icon:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black) !important;
  border: none;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 26px;
  transition: var(--transition);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(201,162,39,0.4); color: var(--black); }

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 50px;
  padding: 10px 26px;
  font-weight: 600;
  background: transparent;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--black); }

/* ---------- Hero Slider ---------- */
.hero-slider { position: relative; }
.hero-slider .carousel-inner {
  overflow: hidden;
  perspective: 2200px;
}
.hero-slider .carousel-item {
  height: 92vh; min-height: 560px;
  background-size: cover; background-position: center;
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: transform 1s cubic-bezier(.65,.05,.36,1);
}
.hero-slider .carousel-item.active {
  position: relative;
  transform: rotateY(0deg);
  z-index: 1;
  animation: heroSlide3D 7s cubic-bezier(.25,.8,.25,1) forwards;
}

/* Incoming panel swinging in from the right (advancing) */
.hero-slider .carousel-item-next:not(.carousel-item-start) {
  transform: rotateY(78deg);
  transform-origin: left center;
  z-index: 3;
}
/* Outgoing panel swinging away to the left (advancing) */
.hero-slider .active.carousel-item-end {
  transform: rotateY(-78deg);
  transform-origin: right center;
  z-index: 2;
}
/* Incoming panel swinging in from the left (going back) */
.hero-slider .carousel-item-prev:not(.carousel-item-end) {
  transform: rotateY(-78deg);
  transform-origin: right center;
  z-index: 3;
}
/* Outgoing panel swinging away to the right (going back) */
.hero-slider .active.carousel-item-start {
  transform: rotateY(78deg);
  transform-origin: left center;
  z-index: 2;
}
/* Both settle flat once the swing completes */
.hero-slider .carousel-item-next.carousel-item-start,
.hero-slider .carousel-item-prev.carousel-item-end {
  transform: rotateY(0deg);
  z-index: 3;
}
@keyframes heroSlide3D {
  0%   { transform: rotateY(0deg) scale(1.1); }
  100% { transform: rotateY(0deg) scale(1); }
}
.hero-slider .carousel-item::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
}
.hero-caption { position: relative; z-index: 2; color: #fff; max-width: 720px; }
.hero-caption h1,
.hero-caption p,
.hero-caption a.btn-gold { opacity: 0; transform: translateY(28px); }
.carousel-item.active .hero-caption h1,
.carousel-item.active .hero-caption p,
.carousel-item.active .hero-caption a.btn-gold {
  animation: heroCaptionIn 0.9s cubic-bezier(.22,1,.36,1) forwards;
}
.carousel-item.active .hero-caption h1 { animation-delay: .25s; }
.carousel-item.active .hero-caption p { animation-delay: .45s; }
.carousel-item.active .hero-caption a.btn-gold { animation-delay: .65s; }
@keyframes heroCaptionIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-caption h1 {
  font-size: 3.4rem; font-weight: 800; line-height: 1.15;
  text-shadow: 0 6px 26px rgba(0,0,0,0.4);
}
.hero-caption p { font-size: 1.2rem; color: #e6e6e6; }

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 52px; height: 52px; top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  opacity: 0.85;
  transition: var(--transition);
}
.hero-slider .carousel-control-prev { left: 30px; }
.hero-slider .carousel-control-next { right: 30px; }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  opacity: 1;
}
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  width: 18px; height: 18px;
}
.hero-slider .carousel-indicators {
  bottom: 28px; margin-bottom: 0;
}
.hero-slider .carousel-indicators [data-bs-target] {
  width: 9px; height: 9px; border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: none; opacity: 1; margin: 0 5px;
  transition: var(--transition);
}
.hero-slider .carousel-indicators .active {
  background-color: var(--gold);
  width: 30px; border-radius: 6px;
}

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-tag {
  display: inline-block; color: var(--gold); font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem;
  margin-bottom: 10px;
}
.section-title { font-weight: 700; font-size: 2.4rem; margin-bottom: 16px; }
.section-alt { background: var(--bg-alt); }

/* ---------- Glass Card ---------- */
.glass-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
}
[data-theme="dark"] .glass-card { background: rgba(23,23,27,0.6); border-color: rgba(255,255,255,0.08); }

/* ---------- Cards ---------- */
.premium-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}
.premium-card:hover { transform: translateY(-8px); box-shadow: 0 20px 45px rgba(201,162,39,0.25); }
.premium-card .card-img-wrap { height: 220px; overflow: hidden; }
.premium-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.premium-card:hover .card-img-wrap img { transform: scale(1.08); }
.premium-card .card-body { padding: 24px; }

.service-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}

/* ---------- Counters ---------- */
.counter-box { text-align: center; }
.counter-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 800; color: var(--gold);
}

/* ---------- Testimonials ---------- */
.testimonial-card { text-align: center; padding: 40px; }
.testimonial-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.testimonial-card .bi-star-fill, .testimonial-card .bi-star { color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
  color: #fff; font-size: 1.8rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- Footer ---------- */
.main-footer { background: var(--black); color: #cfcfcf; padding: 70px 0 0; }
.main-footer .footer-heading { color: #fff; font-weight: 700; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 10px; }
.footer-links a { color: #cfcfcf; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact i { color: var(--gold); margin-right: 8px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; margin-right: 8px;
  background: rgba(255,255,255,0.08); color: #fff;
}
.footer-social a:hover { background: var(--gold); color: var(--black); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin-top: 40px; }
.copyright-text { font-size: 0.9rem; color: #999; }
.footer-legal-links a { color: #999; font-size: 0.9rem; margin-left: 16px; }
.footer-legal-links a:hover { color: var(--gold); }
.text-muted-light { color: #a8a8a8; }

/* ---------- Floating buttons ---------- */
.floating-btn {
  position: fixed; right: 24px; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; box-shadow: var(--shadow); z-index: 1040;
  transition: var(--transition); border: none;
}
.whatsapp-btn { background: #25D366; bottom: 24px; }
.call-btn { background: var(--gold); bottom: 90px; color: var(--black); }
.back-to-top-btn {
  background: var(--black); bottom: 156px; opacity: 0; visibility: hidden; transform: translateY(10px);
}
.back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-btn:hover { transform: scale(1.1); color: #fff; }

/* ---------- Admin bits reused ---------- */
.badge-status-active { background: #1eae4a; }
.badge-status-inactive { background: #a3a3a3; }

/* ---------- Misc ---------- */
.form-control, .form-select {
  border-radius: 10px; padding: 12px 16px; border: 1px solid var(--border-color);
  background: var(--card-bg); color: var(--text);
}
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 0.2rem rgba(201,162,39,0.15); }

@media (max-width: 768px) {
  .hero-caption h1 { font-size: 2.2rem; }
  section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
}
