/* =========================================================
   NEW JYOTHI VASTRALAYAM — Premium Luxury Theme
   Black / White / Gold
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Marcellus&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --color-black: #0a0a0a;
  --color-black-soft: #121212;
  --color-black-card: #161616;
  --color-white: #f8f6f2;
  --color-gold: #c9a24b;
  --color-gold-light: #e8cf8a;
  --color-gold-dark: #9a7a2f;
  --font-display: 'Cormorant Garamond', serif;
  --font-heading: 'Marcellus', serif;
  --font-body: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: default;
}

::selection {
  background: var(--color-gold);
  color: #000;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-dark)); border-radius: 10px; }

/* ---------- Typography helpers ---------- */
.font-display { font-family: var(--font-display); }
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

.text-gold { color: var(--color-gold); }
.bg-gold { background-color: var(--color-gold); }
.border-gold { border-color: var(--color-gold); }

.gold-gradient-text {
  background: linear-gradient(120deg, #9a7a2f, #e8cf8a 40%, #c9a24b 60%, #f4e4b8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.divider-gold {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 0 auto;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(201, 162, 75, 0.18);
}

.glass-light {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Navbar ---------- */
#navbar {
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(201, 162, 75, 0.2);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.35s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold), var(--color-gold-dark));
  color: #0a0a0a;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 8px 25px -8px rgba(201, 162, 75, 0.6);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -8px rgba(201, 162, 75, 0.8);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.1rem;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-radius: 2px;
  transition: all 0.35s ease;
  background: transparent;
}
.btn-outline-gold:hover {
  background: var(--color-gold);
  color: #0a0a0a;
  box-shadow: 0 10px 25px -8px rgba(201, 162, 75, 0.6);
}

/* ---------- Product Card ---------- */
.product-card {
  position: relative;
  overflow: hidden;
  background: var(--color-black-card);
  border: 1px solid rgba(201, 162, 75, 0.12);
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.product-card:hover {
  border-color: rgba(201, 162, 75, 0.5);
}
.product-card .img-wrap {
  overflow: hidden;
  position: relative;
}
.product-card img {
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.product-card:hover img {
  transform: scale(1.1);
}
.product-card .quick-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-card:hover .quick-overlay {
  opacity: 1;
}

/* ---------- Image reveal ---------- */
.reveal-wrap {
  position: relative;
  overflow: hidden;
}
.reveal-mask {
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform-origin: left;
  z-index: 5;
}

/* ---------- Category card ---------- */
.category-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.category-card img {
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.6) saturate(0.9);
}
.category-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.75) saturate(1.05);
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.15) 60%);
  z-index: 1;
}

/* ---------- Hero ---------- */
.hero-bg {
  background: radial-gradient(ellipse at 50% 0%, rgba(201,162,75,0.15) 0%, rgba(10,10,10,1) 65%);
}

.hero-title .char {
  display: inline-block;
  will-change: transform, opacity;
}

.floating {
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Parallax ---------- */
.parallax-layer {
  will-change: transform;
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1000;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
  animation: pulseWA 2.4s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
@keyframes pulseWA {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Loader ---------- */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Misc ---------- */
.section-label {
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--color-gold);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.input-underline {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 162, 75, 0.35);
  color: #fff;
  padding: 0.75rem 0.25rem;
  width: 100%;
  transition: border-color 0.3s ease;
}
.input-underline:focus {
  outline: none;
  border-bottom-color: var(--color-gold);
}

.badge-gold {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
  color: #0a0a0a;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--color-gold) !important;
}
.swiper-pagination-bullet {
  background: var(--color-gold) !important;
  opacity: 0.4;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}

/* Mobile menu */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.open {
  transform: translateX(0);
}

/* Fade-up base for JS/AOS fallback */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 18px;
    right: 18px;
  }
}
