﻿/* ==========================================================================
   FUTURISTIC & SCROLL-DRIVEN VISUAL EFFECTS (Pure Pink & Soft Light Pink)
   ========================================================================== */

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.ambient-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.18;
  transition: transform 0.6s ease-out;
}

.glow-orb-1 {
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-orb-2 {
  bottom: 10%;
  left: -150px;
  background: radial-gradient(circle, var(--pink-soft) 0%, transparent 70%);
}

/* Custom Interactive Cursor (Desktop) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--pink-soft);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
  box-shadow: 0 0 14px var(--primary-glow);
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--pink-soft);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  opacity: 0.7;
}

.cursor-hover .custom-cursor {
  transform: translate(-50%, -50%) scale(2.2);
  background-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.cursor-hover .custom-cursor-follower {
  transform: translate(-50%, -50%) scale(1.6);
  border-color: var(--primary);
  opacity: 0.9;
  background: rgba(255, 42, 133, 0.12);
}

@media (max-width: 1024px) {
  .custom-cursor,
  .custom-cursor-follower {
    display: none !important;
  }
}

/* Scroll Morph & Progressive Zoom Classes */
.scroll-zoom-target {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  will-change: transform;
}

.reveal {
  opacity: 0;
  transform: translateY(45px) scale(0.95);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px) scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px) scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom.revealed {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* 3D Tilt Wrapper */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  will-change: transform;
}

/* Sound Waves */
.audio-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.audio-waves span {
  width: 2.5px;
  height: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.audio-active .audio-waves span:nth-child(1) { animation: waveAnim 1s ease-in-out infinite alternate; }
.audio-active .audio-waves span:nth-child(2) { animation: waveAnim 0.8s ease-in-out infinite 0.2s alternate; }
.audio-active .audio-waves span:nth-child(3) { animation: waveAnim 1.2s ease-in-out infinite 0.4s alternate; }

@keyframes waveAnim {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Cake Details Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 5, 9, 0.92);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  width: 100%;
  max-width: 840px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), var(--glow-primary);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  position: relative;
}

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

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #FFF;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.modal-image-col {
  position: relative;
  background: var(--bg-surface-3);
}

.modal-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content-col {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink-soft);
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: #FFF;
}

.modal-details-list {
  list-style: none;
  margin: 18px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-details-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-details-list li i {
  color: var(--pink-soft);
}

@media (max-width: 768px) {
  .modal-container {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-image-col {
    height: 240px;
  }
}