* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ff6b9d;
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite;
  opacity: 0.7;
}

.heart:before,
.heart:after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ff6b9d;
  border-radius: 50%;
}

.heart:before {
  top: -10px;
  left: 0;
}

.heart:after {
  top: 0;
  left: -10px;
}

.heart-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.heart-2 {
  top: 20%;
  left: 80%;
  animation-delay: 1s;
}
.heart-3 {
  top: 60%;
  left: 20%;
  animation-delay: 2s;
}
.heart-4 {
  top: 80%;
  left: 70%;
  animation-delay: 3s;
}
.heart-5 {
  top: 30%;
  left: 50%;
  animation-delay: 4s;
}
.heart-6 {
  top: 70%;
  left: 90%;
  animation-delay: 5s;
}
.heart-7 {
  top: 40%;
  left: 5%;
  animation-delay: 2.5s;
}
.heart-8 {
  top: 90%;
  left: 30%;
  animation-delay: 1.5s;
}
.heart-9 {
  top: 15%;
  left: 60%;
  animation-delay: 2.2s;
}
.heart-10 {
  top: 75%;
  left: 15%;
  animation-delay: 3.3s;
}
.heart-11 {
  top: 45%;
  left: 85%;
  animation-delay: 4.1s;
}
.heart-12 {
  top: 85%;
  left: 55%;
  animation-delay: 5.2s;
}

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

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

.sparkle {
  position: absolute;
  font-size: 20px;
  animation: sparkleFloat 8s ease-in-out infinite;
  opacity: 0.8;
}

.sparkle-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}
.sparkle-2 {
  top: 30%;
  left: 70%;
  animation-delay: 1.5s;
}
.sparkle-3 {
  top: 60%;
  left: 30%;
  animation-delay: 3s;
}
.sparkle-4 {
  top: 80%;
  left: 80%;
  animation-delay: 4.5s;
}
.sparkle-5 {
  top: 40%;
  left: 10%;
  animation-delay: 6s;
}
.sparkle-6 {
  top: 70%;
  left: 90%;
  animation-delay: 7.5s;
}

@keyframes sparkleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-15px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-15px) rotate(270deg);
    opacity: 1;
  }
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  width: 100%;
}

/* Real-time Countdown */
.realtime-countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-out 0.5s both;
}

.realtime-countdown .countdown-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 120px;
}

.realtime-countdown .countdown-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
}

.realtime-countdown .countdown-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #ff6b9d;
  font-family: "Dancing Script", cursive;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.realtime-countdown .countdown-label {
  font-size: 0.9rem;
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.anniversary-badge {
  background: linear-gradient(45deg, #ff6b9d, #ff8fab);
  border-radius: 50px;
  padding: 1rem 2rem;
  display: inline-block;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.anniversary-badge .number {
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  display: block;
  line-height: 1;
}

.anniversary-badge .text {
  font-size: 1.2rem;
  color: white;
  font-weight: 500;
}

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

.main-title {
  margin-bottom: 3rem;
}

.main-title .line-1,
.main-title .line-2,
.main-title .line-3 {
  display: block;
  font-family: "Dancing Script", cursive;
  font-size: 4rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: slideInUp 1s ease-out forwards;
}

.main-title .line-1 {
  animation-delay: 0.2s;
}
.main-title .line-2 {
  animation-delay: 0.4s;
}
.main-title .line-3 {
  animation-delay: 0.6s;
}

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

.love-message {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 1s ease-out 0.8s both;
}

.message-text {
  font-size: 1.3rem;
  color: white;
  line-height: 1.6;
  font-weight: 300;
}

.pride-prejudice-quote {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border-left: 4px solid #ff6b9d;
  animation: fadeIn 1s ease-out 1s both;
}

.pride-prejudice-quote blockquote {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
  color: #ff6b9d;
  font-style: italic;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.pride-prejudice-quote cite {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
}

/* Photo Gallery */
.photo-gallery {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  animation: fadeIn 1s ease-out 1.2s both;
}

.photo-container {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  cursor: pointer;
}

.photo-container:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 30px 60px rgba(255, 107, 157, 0.3);
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.photo-container:hover .photo {
  transform: scale(1.1);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 107, 157, 0.8),
    rgba(255, 143, 171, 0.6)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.photo-container:hover .photo-overlay {
  opacity: 1;
}

.photo-heart {
  font-size: 3rem;
  animation: heartBeat 1.5s ease-in-out infinite;
}

.photo-left {
  animation: slideInLeft 1s ease-out 1.4s both;
}

.photo-right {
  animation: slideInRight 1s ease-out 1.6s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

.invitation-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 3rem;
  margin-bottom: 3rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: slideInUp 1s ease-out 1s both;
}

.invitation-title {
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.invitation-text {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.special-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.plan-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0); /* Hardware acceleration */
}

.plan-item:hover {
  transform: translateY(-5px) translateZ(0);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
}

.plan-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.plan-item:hover::before {
  left: 100%;
}

.plan-icon {
  font-size: 2rem;
}

.plan-text {
  font-size: 1.1rem;
  color: white;
  font-weight: 500;
  flex: 1;
}

.plan-time {
  font-size: 0.9rem;
  color: #ff6b9d;
  font-weight: 600;
  background: rgba(255, 107, 157, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 157, 0.3);
}

.cta-container {
  margin-bottom: 3rem;
  animation: fadeIn 1s ease-out 1.2s both;
}

.cta-button {
  background: linear-gradient(45deg, #ff6b9d, #ff8fab);
  border: none;
  border-radius: 50px;
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  margin: 0 1rem 1rem 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
  transform: translateZ(0); /* Hardware acceleration */
}

.cta-button:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
}

.cta-button:active {
  transform: translateY(-1px) translateZ(0);
  transition: all 0.1s ease;
}

.cta-button.secondary {
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.button-hearts {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button:hover .button-hearts {
  opacity: 1;
}

.mini-heart {
  display: inline-block;
  margin: 0 0.2rem;
  animation: bounce 0.6s ease-in-out infinite;
}

.mini-heart:nth-child(2) {
  animation-delay: 0.1s;
}
.mini-heart:nth-child(3) {
  animation-delay: 0.2s;
}

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

.response-message {
  display: none;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  animation: slideInUp 0.5s ease-out;
}

.response-message.show {
  display: block;
}

/* Interactive Timeline */
.timeline-container {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 3rem;
  margin-bottom: 3rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: slideInUp 1s ease-out 1.5s both;
}

.timeline-title {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #ff6b9d, #ff8fab, #4facfe);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  animation: timelineSlideIn 0.8s ease-out forwards;
}

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

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 60%;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 60%;
  margin-right: 0;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  background: #ff6b9d;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 4px solid white;
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
  z-index: 10;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 30px rgba(255, 107, 157, 0.8);
  background: #ff8fab;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.timeline-content h4 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

@keyframes timelineSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.response-title {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.response-text {
  font-size: 1.2rem;
  color: white;
}

.celebration-effects {
  position: relative;
  height: 100px;
  margin-top: 1rem;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ff6b9d;
  animation: confettiFall 3s ease-in-out infinite;
}

.confetti:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.confetti:nth-child(2) {
  left: 30%;
  animation-delay: 0.5s;
}
.confetti:nth-child(3) {
  left: 50%;
  animation-delay: 1s;
}
.confetti:nth-child(4) {
  left: 70%;
  animation-delay: 1.5s;
}
.confetti:nth-child(5) {
  left: 90%;
  animation-delay: 2s;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100px) rotate(360deg);
    opacity: 0;
  }
}

.footer-message {
  animation: fadeIn 1s ease-out 1.6s both;
}

.footer-message p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .realtime-countdown {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .realtime-countdown .countdown-item {
    min-width: 80px;
    padding: 0.8rem 1rem;
  }

  .realtime-countdown .countdown-number {
    font-size: 1.5rem;
  }

  .photo-gallery {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .photo-container {
    width: 250px;
    height: 250px;
  }

  .main-title .line-1,
  .main-title .line-2,
  .main-title .line-3 {
    font-size: 2.5rem;
  }

  .invitation-title {
    font-size: 2rem;
  }

  .special-plans {
    grid-template-columns: 1fr;
  }

  .cta-button {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Large Screen Optimizations */
@media (min-width: 1920px) {
  .main-title .line-1,
  .main-title .line-2,
  .main-title .line-3 {
    font-size: 5rem;
  }

  .invitation-title {
    font-size: 4rem;
  }

  .message-text {
    font-size: 1.5rem;
  }

  .invitation-text {
    font-size: 1.4rem;
  }

  .anniversary-badge .number {
    font-size: 4rem;
  }

  .anniversary-badge .text {
    font-size: 1.5rem;
  }
}

/* Additional Interactive Animations */
@keyframes heartFall {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

.plan-item:hover .plan-icon {
  animation: bounce 0.6s ease-in-out infinite;
}

.timeline-container.show {
  display: block;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes heartFloat {
  0% {
    transform: translateY(0) scale(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-50px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0);
    opacity: 0;
  }
}

@keyframes sparkleFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-30px) rotate(180deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-60px) rotate(360deg) scale(0);
    opacity: 0;
  }
}
