/* =====================================================
   MINDI ATTAR'S — ANIMATIONS & MICRO-INTERACTIONS
   ===================================================== */

/* ── Particle System ─────────────────────────────── */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat linear infinite;
}

.particle-gold {
  background: radial-gradient(circle, rgba(201,168,76,0.8) 0%, transparent 70%);
}

.particle-crimson {
  background: radial-gradient(circle, rgba(139,26,26,0.5) 0%, transparent 70%);
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ── Shimmer Text ────────────────────────────────── */
.shimmer-text {
  background: linear-gradient(90deg,
    var(--gold-dark) 0%,
    var(--gold-light) 30%,
    #FFF8DC 50%,
    var(--gold-light) 70%,
    var(--gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Gold Border Glow ────────────────────────────── */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--gold), transparent, var(--gold));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-border:hover::before {
  opacity: 1;
}

/* ── Floating Card Animation ─────────────────────── */
.float-card {
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ── Hover Lift ──────────────────────────────────── */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ── Pulse Ring ──────────────────────────────────── */
.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid var(--gold);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0%   { transform: scale(1);    opacity: 0.6; }
  100% { transform: scale(1.2);  opacity: 0; }
}

/* ── Page Transition ─────────────────────────────── */
.page-transition-enter {
  animation: pageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* ── Hero Bottle Float ───────────────────────────── */
.hero-bottle {
  animation: bottleFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(201,168,76,0.3));
}

@keyframes bottleFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-20px) rotate(2deg); }
}

/* ── Liquid Fill ─────────────────────────────────── */
.liquid-fill {
  position: relative;
  overflow: hidden;
}

.liquid-fill::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(0deg, rgba(201,168,76,0.2) 0%, transparent 100%);
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-fill:hover::after {
  height: 100%;
}

/* ── Stagger Children ────────────────────────────── */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.animated > *:nth-child(1)  { animation: fadeUp 0.5s 0.0s ease forwards; }
.stagger-children.animated > *:nth-child(2)  { animation: fadeUp 0.5s 0.1s ease forwards; }
.stagger-children.animated > *:nth-child(3)  { animation: fadeUp 0.5s 0.2s ease forwards; }
.stagger-children.animated > *:nth-child(4)  { animation: fadeUp 0.5s 0.3s ease forwards; }
.stagger-children.animated > *:nth-child(5)  { animation: fadeUp 0.5s 0.4s ease forwards; }
.stagger-children.animated > *:nth-child(6)  { animation: fadeUp 0.5s 0.5s ease forwards; }
.stagger-children.animated > *:nth-child(7)  { animation: fadeUp 0.5s 0.6s ease forwards; }
.stagger-children.animated > *:nth-child(8)  { animation: fadeUp 0.5s 0.7s ease forwards; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Spotlight Effect ────────────────────────────── */
.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.2s;
  opacity: 0;
}

.spotlight:hover::before {
  opacity: 1;
}

/* ── Number Counter ──────────────────────────────── */
.counter-value {
  display: inline-block;
  transition: all 0.1s ease;
}

/* ── Underline Expand ────────────────────────────── */
.underline-expand {
  position: relative;
  display: inline-block;
}

.underline-expand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--gold);
  transition: left 0.3s ease, right 0.3s ease;
}

.underline-expand:hover::after {
  left: 0;
  right: 0;
}

/* ── Image Parallax ──────────────────────────────── */
.parallax-img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Notification Toast ──────────────────────────── */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--space-md));
  right: var(--space-lg);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 340px;
}

.toast {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  box-shadow: var(--shadow-dark);
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.toast--success::before { background: #4CAF50; }
.toast--error::before   { background: #ff6b6b; }
.toast--info::before    { background: var(--gold); }

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

.toast__icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast--success .toast__icon { color: #4CAF50; }
.toast--error   .toast__icon { color: #ff6b6b; }
.toast--info    .toast__icon { color: var(--gold); }

.toast__content {
  flex: 1;
}

.toast__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast__message {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.toast__close {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  padding: 2px;
  background: none;
  border: none;
  transition: var(--transition-fast);
}

.toast__close:hover { color: var(--text-primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); max-height: 100px; }
  to   { opacity: 0; transform: translateX(100%); max-height: 0; padding: 0; margin: 0; }
}

/* ── Ripple Effect ───────────────────────────────── */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  width: 10px;
  height: 10px;
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

@keyframes rippleAnim {
  to { transform: translate(-50%, -50%) scale(20); opacity: 0; }
}

/* ── Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--black-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  font-size: 1rem;
}

.modal-close:hover {
  background: var(--glass-gold);
  color: var(--gold);
}

/* ── Zoom Lens ───────────────────────────────────── */
.zoom-container {
  position: relative;
  overflow: hidden;
}

.zoom-lens {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  pointer-events: none;
  display: none;
  background: rgba(201,168,76,0.05);
}

/* ── Search Suggestions ──────────────────────────── */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  z-index: 500;
  max-height: 400px;
  overflow-y: auto;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--black-border);
}

.search-suggestion-item:last-child { border-bottom: none; }

.search-suggestion-item:hover {
  background: var(--glass-gold);
}

.search-suggestion-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.search-suggestion-name {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.search-suggestion-price {
  font-size: 0.8rem;
  color: var(--gold);
}

/* ── Video Section ───────────────────────────────── */
.video-section {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  max-height: 70vh;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--glass-black-md);
  border: 2px solid rgba(201,168,76,0.6);
  color: var(--gold);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-spring);
  backdrop-filter: blur(10px);
  padding-left: 4px;
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: rgba(201,168,76,0.2);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold-lg);
}

/* ── Fragrance Journey ───────────────────────────── */
.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.journey-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.journey-step {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding: var(--space-xl) 0;
}

.journey-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-gold-md);
  border: 1px solid rgba(201,168,76,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
  z-index: 1;
}

.journey-step__content {
  padding-top: var(--space-sm);
}

.journey-step__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.journey-step__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Instagram Gallery ───────────────────────────── */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

@media (max-width: 900px) { .instagram-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .instagram-grid { grid-template-columns: repeat(2, 1fr); } }

.instagram-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instagram-item:hover img {
  transform: scale(1.1);
}

.instagram-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.instagram-item:hover .instagram-item__overlay {
  opacity: 1;
}

.instagram-item__icon {
  font-size: 1.5rem;
  color: var(--white);
}
