/* ================= Ojha Salon — Custom Styles ================= */

:root {
  --ink: #111111;
  --pearl: #ffffff;
  --gold: #D4AF37;
  --gold-light: #e6c766;
  --mist: #f5f5f5;
  --smoke: #ececec;
}

* {
  cursor: default;
}

html.dark body {
  background: var(--ink);
  color: var(--pearl);
}

html.dark #services,
html.dark #pricing,
html.dark #instagram {
  background: #161616 !important;
}

html.dark #gallery,
html.dark #testimonials,
html.dark #faq {
  background: #1a1a1a !important;
  color: #eee;
}

html.dark .form-input {
  color: #fff;
}

/* ---------- Typography ---------- */
.font-serif { font-family: 'Playfair Display', serif; }
.font-sans { font-family: 'Poppins', sans-serif; }

/* ---------- Loading Screen ---------- */
#loading-screen { transition: opacity .6s ease, visibility .6s ease; }
#loading-screen.hidden-screen { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-fill { transition: width 1.4s cubic-bezier(.65,0,.35,1); }

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(212,175,55,.6); transition: transform .15s ease, opacity .3s; }

/* ---------- Navbar ---------- */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(17,17,17,0.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 4px 30px rgba(0,0,0,.2);
}
.nav-link {
  position: relative;
  color: rgba(255,255,255,.85);
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

.burger-line {
  width: 20px; height: 2px; background: #fff; margin: 2px 0;
  transition: all .3s ease;
}
#mobile-menu-btn.open .burger-line:nth-child(1) { transform: translateY(4px) rotate(45deg); }
#mobile-menu-btn.open .burger-line:nth-child(2) { opacity: 0; }
#mobile-menu-btn.open .burger-line:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

#mobile-menu.open { transform: translateX(0); }
.mobile-link { transition: color .3s ease; }
.mobile-link:hover { color: var(--gold); }

/* ---------- Glass ---------- */
.glass-btn {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
}
.glass-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.modal-card { animation: modalIn .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Hero ---------- */
.hero-gradient {
  background: linear-gradient(120deg, #0d0d0d, #1a1a12 40%, #0d0d0d 80%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-vignette {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.6) 100%);
}
#hero-canvas { opacity: .7; }

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.animate-bounce-slow { animation: bounceSlow 2s ease-in-out infinite; }

/* ---------- Buttons ---------- */
.ripple-btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: scale(0);
  animation: rippleAnim .6s linear;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(3); opacity: 0; } }

/* ---------- Form ---------- */
.form-label { display:block; font-size:.75rem; letter-spacing:.05em; color: rgba(255,255,255,.5); margin-bottom:.4rem; text-transform: uppercase; }
#booking-form .form-label { color: rgba(255,255,255,.5); }
#services .form-label, #pricing .form-label { color: rgba(0,0,0,.5); }
.form-input {
  width: 100%;
  padding: .85rem 1.1rem;
  border-radius: .9rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: .9rem;
  transition: border-color .3s ease, background .3s ease;
}
.form-input::placeholder { color: rgba(255,255,255,.35); }
.form-input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.08); }
.form-input option { color: #111; }

/* ---------- Service / Team / Pricing Cards ---------- */
.service-card, .team-card, .pricing-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
.service-card:hover, .pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0,0,0,.12);
}
.team-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.team-card:hover { transform: translateY(-10px); border-color: var(--gold); }

.pricing-card.featured {
  background: linear-gradient(160deg, #171717, #0b0b0b);
  color: #fff;
  border: 1px solid var(--gold);
  transform: scale(1.04);
}

/* ---------- Gallery ---------- */
.masonry-grid {
  columns: 1;
  column-gap: 1.25rem;
}
@media (min-width: 640px) { .masonry-grid { columns: 2; } }
@media (min-width: 1024px) { .masonry-grid { columns: 3; } }
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.masonry-item img {
  width: 100%; display: block;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.masonry-item:hover img { transform: scale(1.08); }
.masonry-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 50%);
  opacity: 0; transition: opacity .4s ease;
  display: flex; align-items: flex-end; padding: 1rem;
  color: #fff; font-size: .85rem;
}
.masonry-item:hover .overlay { opacity: 1; }
.masonry-item.filtered-out { display: none; }

.filter-btn {
  padding: .5rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  font-size: .8rem;
  transition: all .3s ease;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- Testimonials ---------- */
.testimonial-track { position: relative; min-height: 240px; }
.testimonial-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(30px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.testimonial-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.testimonial-slide .quote-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
  text-align: center;
}

/* ---------- Stats ---------- */
.stat-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  display: flex; flex-direction: column; gap: .25rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-icon { transition: transform .3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 1.5rem;
  color: rgba(0,0,0,.6);
  font-size: .9rem;
}
.faq-item.open .faq-answer { max-height: 240px; padding: 0 1.5rem 1.25rem; }

/* ---------- Instagram ---------- */
.insta-item {
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insta-item:hover img { transform: scale(1.1); }

/* ---------- Social Icons ---------- */
.social-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  font-size: .7rem;
  transition: all .3s ease;
}
.social-icon:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- WhatsApp Pulse ---------- */
.wa-pulse { animation: waPulse 2.5s ease-in-out infinite; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}

/* ---------- Reveal Animations (GSAP handles the actual keyframe motion, this is fallback state) ---------- */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; }

/* ---------- Toast ---------- */
.toast {
  background: rgba(17,17,17,.95);
  color: #fff;
  padding: .9rem 1.4rem;
  border-radius: .9rem;
  font-size: .85rem;
  border-left: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  animation: toastIn .4s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- Checkmark ---------- */
.checkmark-circle {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: circleDraw .6s ease forwards;
}
.checkmark-check {
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkDraw .4s .5s ease forwards;
}
@keyframes circleDraw { to { stroke-dashoffset: 0; } }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
