/* Custom CSS — only for behavior/animations Tailwind utility classes can't express
   (JS-toggled state classes, custom cursor, canvas particles, keyframe animations,
   floating labels, and gradient-driven gallery tiles). Everything else uses Tailwind. */

:root {
  --gold: #f2c14e;
  --gold-light: #f8dd93;
  --purple: #7c1f12;
  --purple-light: #b23b1c;
  --text-muted: #c9ab7f;
  --bg-dark: #1a0e07;
  --bg-darker: #120906;
  --bg-panel: #2a1610;
  --ink: #f4e8ce;
  --line: #5c3f1e;
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html { scroll-behavior: smooth; }
body { cursor: none; }
::selection { background: var(--gold); color: #1a0e07; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ==================== Custom Cursor ==================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--gold);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  opacity: 0.6;
}

/* ==================== Loader ==================== */
.loader {
  position: fixed; inset: 0;
  background: var(--bg-darker);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  gap: 1.5rem;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-mandala {
  width: 70px; height: 70px;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-bottom-color: var(--purple-light);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== Scroll Progress ==================== */
.scroll-progress { transition: width 0.1s ease-out; }

/* ==================== Navbar ==================== */
.navbar.scrolled {
  background: color-mix(in srgb, var(--bg-panel) 88%, transparent);
  backdrop-filter: blur(12px);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.nav-link {
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after { width: 100%; }

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-link:hover { color: var(--gold); padding-left: 4px; }

/* Stand-in for images not yet supplied by the client */
.image-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 20px;
  border: 2px dashed var(--line);
  background: color-mix(in srgb, var(--gold) 4%, var(--bg-panel));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}


.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(75%, 320px);
    height: 100vh;
    background: color-mix(in srgb, var(--bg-panel) 97%, transparent);
    backdrop-filter: blur(14px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.5s ease;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex !important; }
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a0e07;
  box-shadow: 0 10px 25px color-mix(in srgb, var(--gold) 30%, transparent);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px color-mix(in srgb, var(--gold) 45%, transparent);
}
.btn-ghost {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  color: var(--ink);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.btn-loader {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(26, 14, 7, 0.3);
  border-top-color: #1a0e07;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.contact-form.sending .btn-text { opacity: 0.5; }
.contact-form.sending .btn-loader { display: inline-block; }

/* ==================== Hero ==================== */
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 720px; height: 720px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent) 0%, transparent 45%),
    radial-gradient(circle, color-mix(in srgb, var(--purple) 40%, transparent) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
.mouse {
  width: 24px; height: 38px;
  border: 1px solid var(--gold);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.wheel {
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-wheel 1.6s infinite;
}
@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ==================== About ==================== */
.mandala-ring {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: 50%;
  animation: rotate-ring linear infinite;
}
.ring-1 { width: 90%; height: 90%; animation-duration: 40s; border-style: dashed; }
.ring-2 { width: 65%; height: 65%; animation-duration: 30s; border-color: color-mix(in srgb, var(--purple) 35%, transparent); }
.ring-3 { width: 40%; height: 40%; animation-duration: 20s; }
@keyframes rotate-ring { to { transform: rotate(360deg); } }
.mandala-core { filter: drop-shadow(0 0 20px color-mix(in srgb, var(--gold) 50%, transparent)); }

/* ==================== Practice Cards ==================== */
.practice-card {
  background: linear-gradient(160deg, var(--bg-panel), color-mix(in srgb, var(--gold) 6%, transparent));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.4rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.practice-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.practice-card:hover {
  transform: translateY(-10px);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.practice-card:hover::before { opacity: 1; }
.card-link { transition: letter-spacing 0.3s; }
.card-link:hover { letter-spacing: 1px; }

/* ==================== Gallery ==================== */
.gallery-item {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  transition: var(--transition);
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,9,6,0.85) 0%, rgba(18,9,6,0.15) 45%, transparent 70%);
  opacity: 0.55;
  transition: opacity 0.4s;
}
.gallery-item span {
  position: relative;
  z-index: 1;
  font-family: 'Marcellus', serif;
  font-size: 1rem;
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
}
.gallery-item:hover::after { opacity: 0.9; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover span { opacity: 1; transform: translateY(0); }

/* Touch devices can't hover — always reveal captions and card accents */
@media (hover: none), (pointer: coarse) {
  .gallery-item span { opacity: 1; transform: translateY(0); }
  .practice-card::before { opacity: 1; }
}

/* ==================== Videos ==================== */
.video-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  background: var(--bg-panel);
  aspect-ratio: 16 / 9;
  transition: var(--transition);
}
.video-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(18,9,6,0.15), rgba(18,9,6,0.55));
  transition: opacity 0.4s;
}
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 92%, transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  z-index: 1;
  transition: var(--transition);
}
.video-play::before {
  content: '';
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #1a0e07;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.video-card:hover img { transform: scale(1.06); }
.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--gold);
}

/* ==================== Image Lightbox ==================== */
.gallery-item { cursor: pointer; }

.img-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(10, 5, 3, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.img-modal.open { opacity: 1; visibility: visible; }
.img-modal-inner {
  margin: 0;
  max-width: min(1000px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.img-modal.open .img-modal-inner { transform: scale(1); }
.img-modal-inner img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  object-fit: contain;
}
.img-modal-inner figcaption {
  font-family: 'Marcellus', serif;
  color: var(--gold-light);
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-align: center;
}
.img-modal-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a0e07;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: var(--transition);
  z-index: 1;
}
.img-modal-close:hover { transform: rotate(90deg); }
.img-modal-nav {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-panel) 85%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.img-modal-nav:hover { background: var(--gold); color: #1a0e07; }
@media (max-width: 640px) {
  .img-modal { padding: 0.75rem; }
  .img-modal-nav {
    position: absolute;
    bottom: 1rem;
    z-index: 1;
  }
  .img-modal-prev { left: 1rem; }
  .img-modal-next { right: 1rem; }
}

/* ==================== Testimonials ==================== */
.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.testimonial.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.testimonial-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}
.testimonial-dots span.active { background: var(--gold); width: 26px; border-radius: 6px; }

/* ==================== Contact Form ==================== */
.form-group {
  position: relative;
  margin-bottom: 1.6rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent);
}
.form-group label {
  position: absolute;
  left: 1rem; top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition);
  background: var(--bg-panel);
  padding: 0 0.3rem;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.55rem;
  left: 0.7rem;
  font-size: 0.75rem;
  color: var(--gold);
}
.form-error {
  display: block;
  color: #e07b7b;
  font-size: 0.75rem;
  margin-top: 0.3rem;
  min-height: 1em;
}
.form-group.invalid input, .form-group.invalid textarea { border-color: #e07b7b; }
.form-success {
  display: none;
  margin-top: 1.2rem;
  color: var(--gold-light);
  text-align: center;
  font-size: 0.9rem;
}
.form-success.show { display: block; }

.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: var(--gold);
}
.social-link:hover {
  background: var(--gold);
  color: var(--bg-panel);
  transform: translateY(-4px);
}

/* ==================== Footer ==================== */
.to-top {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
@media (min-width: 640px) {
  .to-top { bottom: 2rem; right: 2rem; width: 46px; height: 46px; }
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: var(--bg-panel); }

/* ==================== Scroll Reveal ==================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
