/* Enhanced Styles for Stunning Birthday Website */

/* Import Google Fonts for elegant typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Root variables for the new design */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gold-gradient: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  --dreamy-purple: #6366f1;
  --soft-pink: #ec4899;
  --golden-accent: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Enhanced body with dreamy background */
body {
  font-family: 'Inter', sans-serif;
  background: url('https://kweqdphj.manus.space/assets/dreamy_background.png') center/cover no-repeat fixed;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Animated background overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    rgba(102, 126, 234, 0.1) 0%, 
    rgba(236, 72, 153, 0.1) 25%, 
    rgba(245, 158, 11, 0.1) 50%, 
    rgba(139, 92, 246, 0.1) 75%, 
    rgba(102, 126, 234, 0.1) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -1;
}

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

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #ffd89b, #f59e0b);
  border-radius: 50%;
  animation: float 20s infinite linear;
  opacity: 0.7;
}

/* Enhanced main container with glass morphism */
.main-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

/* Enhanced image container with elegant frame */
.image-container {
  position: relative;
  display: inline-block;
  width: 384px;
  height: 384px;
}

.image-container::before {
  content: \'\';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: url(\'https://kweqdphj.manus.space/assets/elegant_frame.png\') center/contain no-repeat;
  z-index: 2;
  pointer-events: none;
}

.couple-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 25px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block !important;
}

.couple-image:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Enhanced typography */
.main-title {
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

.subtitle {
  font-family: 'Playfair Display', serif;
  color: #6366f1;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-text {
  color: #374151;
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Enhanced button with magical effects */
.unlock-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  padding: 16px 32px;
  font-size: 18px;
  box-shadow: 
    0 10px 25px rgba(102, 126, 234, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

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

.unlock-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 20px 40px rgba(102, 126, 234, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Enhanced puzzle box with glass morphism */
.puzzle-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.puzzle-box::before {
  content: \'\';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(\'./assets/floating_particles.png\') center/cover;
  opacity: 0.1;
  z-index: -1;
}

/* Enhanced input field */
.puzzle-input {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: #1f2937;
  font-size: 16px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.puzzle-input:focus {
  border-color: #667eea;
  box-shadow: 
    0 0 0 3px rgba(102, 126, 234, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* Enhanced submit button */
.submit-button {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  border-radius: 15px;
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
}

/* Enhanced progress indicators */
.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  position: relative;
}

.progress-dot.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
  transform: scale(1.3);
}

.progress-dot.active::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Enhanced final message box */
.final-message {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

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

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.7;
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .main-container {
    margin: 16px;
    border-radius: 20px;
  }
  
  .couple-image {
    border-radius: 20px;
  }
  
  .main-title {
    font-size: 2.5rem;
  }
}

/* Enhanced shake animation for wrong answers */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.animate-shake {
  animation: shake 0.6s ease-in-out;
}

/* Magical sparkle effects */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #ffd89b, #f59e0b);
  border-radius: 50%;
  animation: sparkle 3s infinite;
}

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

