/* ==========================================================================
   PRISMORA JEWELS — Custom Luxury Stylesheet
   Theme Colors: #0F4C47 (Deep Emerald) & #FEF4CF (Champagne Ivory / Pale Gold)
   ========================================================================== */

:root {
  --color-emerald: #0F4C47;
  --color-emerald-dark: #093330;
  --color-emerald-light: #166b64;
  --color-ivory: #FEF4CF;
  --color-ivory-soft: #FFFDF5;
  --color-gold: #C8A96A;
  --color-gold-light: #E5CA8F;
  --color-charcoal: #17211E;
  --color-text-body: #4A5552;
  --color-cream: #FAF7F0;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #093330;
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-ivory);
}

/* Base resets & typography */
*, ::before, ::after {
  box-sizing: border-box;
}

img, svg, video, canvas {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden !important;
}

/* Custom Selection */
::selection {
  background-color: var(--color-emerald);
  color: var(--color-ivory);
}

/* SPA Page Transitions */
.page-view {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Keyframe Animations */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(200, 169, 106, 0.2); }
  50% { box-shadow: 0 0 35px rgba(254, 244, 207, 0.5); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

@keyframes sparkRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: sparkRotate 12s linear infinite;
}


/* Glassmorphism Components */
.glass-panel-emerald {
  background: rgba(15, 76, 71, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(254, 244, 207, 0.2);
}

.glass-panel-ivory {
  background: rgba(254, 244, 207, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 169, 106, 0.3);
}

.glass-panel-dark {
  background: rgba(18, 27, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 169, 106, 0.2);
}

/* Shimmer Gold Text */
.gold-shimmer-text {
  background: linear-gradient(120deg, #C8A96A 0%, #FEF4CF 30%, #E5CA8F 60%, #C8A96A 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

/* Navigation Link Styling */
.nav-link {
  color: #FEF4CF !important;
  opacity: 1;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
  color: #C8A96A !important;
  opacity: 1;
}

.nav-link.active {
  color: #C8A96A !important;
  opacity: 1;
  font-weight: 600;
}

/* Diamond Sparkle Effect on Cards */
.diamond-card {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.diamond-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(254, 244, 207, 0.3) 50%,
    transparent 55%
  );
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.diamond-card:hover::after {
  transform: rotate(30deg) translateY(100%);
}

.diamond-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(15, 76, 71, 0.15);
}

/* Image Zoom Effect */
.img-zoom-container {
  overflow: hidden;
  position: relative;
}

.img-zoom-container img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom-container:hover img {
  transform: scale(1.08);
}

/* Custom Navigation Underline */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

/* Intro Sequence Overlay */
#intro-sequence {
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

#intro-sequence.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Custom Interactive Diamond Comparator */
.diamond-tab-btn {
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.diamond-tab-btn.active {
  border-color: var(--color-emerald);
  color: var(--color-emerald);
  font-weight: 600;
}

/* Modal Popup */
.modal-overlay {
  background: rgba(9, 51, 48, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Luxury Button Styling */
.btn-emerald {
  background-color: var(--color-emerald);
  color: #FFFFFF;
  border: 1px solid var(--color-emerald);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-emerald:hover {
  background-color: var(--color-emerald-dark);
  box-shadow: 0 10px 25px -5px rgba(15, 76, 71, 0.4);
  border-color: var(--color-gold);
}

.btn-gold {
  background-color: var(--color-gold);
  color: #FFFFFF;
  border: 1px solid var(--color-gold);
  transition: all 0.4s ease;
}

.btn-gold:hover {
  background-color: #B59556;
  box-shadow: 0 10px 25px -5px rgba(200, 169, 106, 0.4);
}

.btn-outline-dark {
  border: 1px solid var(--color-charcoal);
  color: var(--color-charcoal);
  transition: all 0.4s ease;
}

.btn-outline-dark:hover {
  background-color: var(--color-charcoal);
  color: var(--color-ivory);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #FFFFFF;
  transition: all 0.4s ease;
}

.btn-outline-light:hover {
  background-color: #FFFFFF;
  color: var(--color-charcoal);
}

/* Particle Canvas Container */
#sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 40;
}

/* Notification Toast */
.toast-success {
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
