/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Fredoka", "Noto Sans", sans-serif;
  background: linear-gradient(135deg, #ffb3d9, #ffcce6, #ffe6f2, #f0e6ff, #e6f3ff);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #5a4a6a;
  overflow-x: hidden;
  position: relative;
}

/* Animated gradient background */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating hearts background */
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-hearts::before,
.floating-hearts::after {
  content: '💕';
  position: absolute;
  font-size: 20px;
  animation: floatUp 6s linear infinite;
  opacity: 0.7;
}

.floating-hearts::before {
  left: 10%;
  animation-delay: 0s;
}

.floating-hearts::after {
  left: 80%;
  animation-delay: 3s;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Sparkle effects */
.sparkles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.sparkles::before,
.sparkles::after {
  content: '✨';
  position: absolute;
  font-size: 15px;
  animation: sparkle 3s ease-in-out infinite;
}

.sparkles::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.sparkles::after {
  top: 60%;
  right: 20%;
  animation-delay: 1.5s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

/* Main container */
.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 
    0 20px 40px rgba(255, 182, 193, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-align: center;
  max-width: 600px;
  width: 90%;
  position: relative;
  z-index: 10;
  animation: containerFloat 4s ease-in-out infinite;
  border: 3px solid rgba(255, 192, 203, 0.3);
}

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

/* Header */
.header {
  margin-bottom: 30px;
}

.main-heart {
  font-size: 80px;
  animation: heartBeat 1.5s ease-in-out infinite;
  display: block;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.5));
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.2);
  }
  75% {
    transform: scale(1.1);
  }
}

.title {
  font-size: 2.5em;
  font-weight: 600;
  color: #ff69b4;
  text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
  margin: 0;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% {
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
  }
  100% {
    text-shadow: 2px 2px 8px rgba(255, 105, 180, 0.6);
  }
}

/* Image container */
.image-container {
  margin: 30px 0;
  position: relative;
}

.image-frame {
  position: relative;
  display: inline-block;
  padding: 15px;
  background: linear-gradient(45deg, #ffb3d9, #ffcce6, #ffe6f2);
  border-radius: 50%;
  animation: frameRotate 8s linear infinite;
  box-shadow: 
    0 0 30px rgba(255, 105, 180, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes frameRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.image-container img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.image-container img:hover {
  transform: scale(1.05);
}

.image-sparkles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  animation: sparkleRotate 3s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes sparkleRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.8);
    opacity: 0.7;
  }
}

/* Message container */
.message-container {
  margin: 30px 0;
  position: relative;
}

.message {
  font-size: 1.3em;
  line-height: 1.8;
  color: #6a4c93;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.1), rgba(255, 218, 224, 0.1));
  padding: 25px;
  border-radius: 20px;
  border: 2px solid rgba(255, 182, 193, 0.3);
  margin-bottom: 20px;
  position: relative;
  animation: messagePulse 3s ease-in-out infinite;
}

@keyframes messagePulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 182, 193, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 182, 193, 0.4);
  }
}

.cute-emoji {
  font-size: 2em;
  animation: bounce 2s ease-in-out infinite;
}

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

/* Icons */
.icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.icon-item {
  font-size: 2.5em;
  animation: iconFloat 2s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.3));
}

.icon-item:nth-child(1) { animation-delay: 0s; }
.icon-item:nth-child(2) { animation-delay: 0.2s; }
.icon-item:nth-child(3) { animation-delay: 0.4s; }
.icon-item:nth-child(4) { animation-delay: 0.6s; }
.icon-item:nth-child(5) { animation-delay: 0.8s; }

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

.icon-item:hover {
  transform: scale(1.3) rotate(10deg);
  filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.6));
}

/* Button */
.button-container {
  margin: 30px 0;
}

.button {
  background: linear-gradient(135deg, #ff69b4, #ff1493, #ff69b4);
  background-size: 200% 200%;
  animation: buttonGradient 3s ease infinite;
  color: white;
  border: none;
  padding: 18px 35px;
  font-size: 1.4em;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 10px 25px rgba(255, 105, 180, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  font-family: "Fredoka", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

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

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 15px 35px rgba(255, 105, 180, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.button:active {
  transform: translateY(-1px) scale(1.02);
}

.button-heart {
  animation: heartPulse 1s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Footer */
.footer {
  margin-top: 30px;
}

.small-hearts {
  font-size: 1.5em;
  animation: heartsFloat 3s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes heartsFloat {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* Love popup */
.love-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 182, 193, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: popupFadeIn 0.5s ease;
}

@keyframes popupFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.popup-content {
  background: white;
  padding: 40px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: popupBounce 0.6s ease;
  border: 3px solid rgba(255, 105, 180, 0.3);
  max-width: 400px;
  width: 90%;
}

@keyframes popupBounce {
  0% {
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.popup-heart {
  font-size: 4em;
  margin-bottom: 20px;
  animation: heartBeat 1s ease-in-out infinite;
}

.popup-content p {
  font-size: 1.3em;
  color: #6a4c93;
  margin-bottom: 25px;
  line-height: 1.6;
}

.popup-close {
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.2em;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
  font-family: "Fredoka", sans-serif;
}

.popup-close:hover {
  transform: scale(1.1);
}

/* Snowflakes (keeping original) */
.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1.5em;
  animation: fall linear infinite;
  pointer-events: none;
}

@keyframes fall {
  0% {
    transform: translateY(-100px) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) translateX(30px);
    opacity: 0;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 25px;
    margin: 20px;
  }
  
  .title {
    font-size: 2em;
  }
  
  .message {
    font-size: 1.1em;
    padding: 20px;
  }
  
  .image-container img {
    width: 120px;
    height: 120px;
  }
  
  .image-frame {
    padding: 10px;
  }
  
  .button {
    padding: 15px 25px;
    font-size: 1.2em;
  }
  
  .icons {
    gap: 10px;
  }
  
  .icon-item {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px;
  }
  
  .title {
    font-size: 1.8em;
  }
  
  .message {
    font-size: 1em;
    padding: 15px;
  }
  
  .main-heart {
    font-size: 60px;
  }
  
  .image-container img {
    width: 100px;
    height: 100px;
  }
}