/* --- BUBBLE BACKGROUND LAYER (Restored Images) --- */
.bubble-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.9;
}

.bubble {
  top: 5rem;
  left: -15rem;
  position: absolute;
  height: 5rem;
  z-index: 1;
  animation: bubble 30s infinite linear;
  opacity: 1;
}

.bubble1 {
  top: 50rem;
  right: -5rem;
  position: absolute;
  z-index: 5;
  height: 10rem;
  animation: bubble1 35s infinite linear;
  opacity: 1;
}

.bubble2 {
  top: -20rem;
  right: -10rem;
  position: absolute;
  z-index: 5;
  height: 19rem;
  animation: bubble2 50s infinite linear;
  opacity: 1;
}

.bubble3 {
  top: -8rem;
  left: 5rem;
  position: absolute;
  z-index: 2;
  height: 9rem;
  animation: bubble3 20s infinite linear;
  opacity: 0.7;
}

.bubble4 {
  top: 55rem;
  left: -8rem;
  position: absolute;
  height: 19rem;
  animation: bubble4 45s infinite linear;
  opacity: 0.9;
}

@keyframes bubble {
  to {
    top: 35rem;
    left: 35rem;
    transform: rotate(180deg);
    opacity: 0;
  }
}

@keyframes bubble1 {
  to {
    top: 3rem;
    right: 50rem;
    transform: rotate(-200deg);
    opacity: 0;
  }
}

@keyframes bubble2 {
  to {
    top: 60rem;
    right: 60rem;
    transform: rotate(-360deg);
    opacity: 0;
  }
}

@keyframes bubble3 {
  to {
    top: 20rem;
    left: 20rem;
    transform: rotate(200deg);
    opacity: 0;
  }
}

@keyframes bubble4 {
  to {
    top: 10rem;
    left: 20rem;
    transform: rotate(200deg);
    opacity: 0;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.happy-text {
  animation: fadeUp 1.2s ease-out forwards;
}

.anni-text {
  opacity: 0;
  animation: fadeUp 1.2s ease-out forwards;
  animation-delay: 0.4s;
}


/* Custom Configurations & Color Palette */
:root {
  --primary-pink: #ff4b72;
  --secondary-pink: #ff7eb3;
  --accent-gold: #e8b26a;
  --text-dark: #2d3748;
}

/* Animated Gradient Background */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(-45deg, #ffe6ea, #fddce3, #fff0f3, #f6bdcf);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow-x: hidden;
  color: var(--text-dark);
  min-height: 100vh;
}

.anniversary-root {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
}

.anniversary-root,
.anniversary-root *,
.anniversary-root *::before,
.anniversary-root *::after {
  box-sizing: border-box;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Typography Classes */
.font-cursive {
  font-family: 'Dancing Script', cursive;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Premium Glassmorphism Effect - Slightly softened for a better look */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 35px rgba(255, 117, 140, 0.12);
  border-radius: 28px;
}

/* Animations */
@keyframes zoomFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-zoom-fade {
  animation: zoomFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatUpDown {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.floating-element {
  animation: floatUpDown 4s ease-in-out infinite;
}

/* Glowing Image Frame */
.glow-image-frame {
  position: relative;
  border-radius: 12px;
  padding: 6px;
  /* Slightly thinner padding for elegance */
  background: linear-gradient(45deg, var(--primary-pink), var(--accent-gold), var(--secondary-pink));
  animation: rotateGradient 4s linear infinite;
  display: inline-block;
}

@keyframes rotateGradient {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

/* Golden Dust Effect */
.dust-speck {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #fff3b0 0%, #f59e0b 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px #f59e0b, 0 0 12px #f59e0b;
  opacity: 0;
  animation: riseAndFade 3s infinite ease-out;
}

@keyframes riseAndFade {
  0% {
    transform: translate(0, 0) scale(0.2);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.5);
    opacity: 0;
  }
}

/* Floating Hearts Particles */
.heart-particle {
  position: fixed;
  color: rgba(255, 75, 114, 0.5);
  pointer-events: none;
  animation: floatUp linear infinite;
  z-index: 0;
  filter: drop-shadow(0 0 5px rgba(255, 117, 140, 0.4));
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-10vh) scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

/* Page Structure */
.page {
  display: none;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  overflow-x: hidden;
}

.page.active {
  display: flex;
}

/* Polaroid Enhanced Hover Style */
.polaroid {
  background: #fff;
  padding: 8px 8px 20px 8px;
  /* Adjusted padding for better scaling */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .polaroid {
    padding: 10px 10px 25px 10px;
  }
}

.polaroid:hover {
  box-shadow: 0 20px 40px rgba(255, 75, 114, 0.25);
  z-index: 50 !important;
}

/* Romantic Button */
.btn-romantic {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--secondary-pink) 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 75, 114, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-romantic::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.5s ease;
}

.btn-romantic:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(255, 75, 114, 0.5);
}

.btn-romantic:hover::after {
  left: 150%;
}

/* Custom image masking */
.img-blob {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morphBlob 8s ease-in-out infinite;
}

@keyframes morphBlob {

  0%,
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }

  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .glass-card {
    max-width: 100%;
  }
}
