/* Reset and Base Styles */
* {
  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;
  color: #333;
}

.container {
  position: relative;
  min-height: 100vh;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Floating Hearts Animation */
.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) translateY(100vh);
  animation: float 6s ease-in-out infinite;
  opacity: 0;
}

.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 {
  left: 10%;
  animation-delay: 0s;
}
.heart-2 {
  left: 20%;
  animation-delay: 1s;
}
.heart-3 {
  left: 30%;
  animation-delay: 2s;
}
.heart-4 {
  left: 40%;
  animation-delay: 3s;
}
.heart-5 {
  left: 50%;
  animation-delay: 4s;
}
.heart-6 {
  left: 60%;
  animation-delay: 5s;
}
.heart-7 {
  left: 70%;
  animation-delay: 6s;
}
.heart-8 {
  left: 80%;
  animation-delay: 7s;
}

@keyframes float {
  0% {
    transform: rotate(45deg) translateY(100vh) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: rotate(45deg) translateY(-100px) scale(1.2);
    opacity: 0;
  }
}

/* Main Content */
.content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 1s ease-out;
}

.title {
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
  animation: pulse 2s infinite;
}

.heart-icon {
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.subtitle {
  font-size: 1.2rem;
  color: #fff;
  opacity: 0.9;
  font-weight: 300;
}

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

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

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

/* Message Section */
.message-section {
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.message-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.message-card h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  color: #ff6b9d;
  text-align: center;
  margin-bottom: 20px;
}

.apology-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #555;
  text-align: justify;
}

/* Video Section */
.video-section {
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.video-section h3 {
  text-align: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-family: "Dancing Script", cursive;
}

.video-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#apologyVideo {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Promise Section */
.promise-section {
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.promise-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.promise-card h3 {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  color: #ff6b9d;
  text-align: center;
  margin-bottom: 25px;
}

.promises {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.promise-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #ff6b9d, #ff8fab);
  border-radius: 15px;
  color: white;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.promise-item:hover {
  transform: translateX(10px);
}

.promise-item i {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Final Message */
.final-message {
  animation: fadeInUp 1s ease-out 1.2s both;
}

.final-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

.final-card h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  color: #ff6b9d;
  margin-bottom: 20px;
}

.final-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.love-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.love-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  justify-content: center;
}

.yes-btn {
  background: linear-gradient(135deg, #ff6b9d, #ff8fab);
  color: white;
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

.yes-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.6);
}

.maybe-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.maybe-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Love Overlay */
.love-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 107, 157, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.5s ease-out;
  overflow-y: auto;
}

.love-overlay.show {
  display: flex;
}

.love-message {
  text-align: center;
  color: white;
  animation: scaleIn 0.5s ease-out;
}

.love-message h2 {
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  margin-bottom: 20px;
}

.love-message p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

/* Picture Collage Styles */
.picture-collage {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.collage-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.collage-item {
  flex: 1;
  max-width: 180px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  animation: fadeInScale 0.8s ease-out 0.5s both;
}

.collage-item:hover {
  transform: scale(1.05);
}

.collage-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.collage-item:nth-child(1) {
  animation-delay: 0.6s;
}
.collage-item:nth-child(2) {
  animation-delay: 0.7s;
}
.collage-item:nth-child(3) {
  animation-delay: 0.8s;
}
.collage-item:nth-child(4) {
  animation-delay: 0.9s;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Special Message Styles */
.special-message {
  margin: 25px 0;
  text-align: center;
}

.message-line {
  font-family: "Dancing Script", cursive;
  font-size: 1.4rem;
  margin: 10px 0;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 1s both;
}

.message-line:nth-child(2) {
  animation-delay: 1.2s;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Huh Button Styles */
.huh-btn {
  margin-top: 25px;
  padding: 12px 25px;
  border: 2px solid white;
  background: transparent;
  color: white;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  animation: fadeInUp 0.8s ease-out 1.5s both;
}

.huh-btn:hover {
  background: white;
  color: #ff6b9d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.huh-btn i {
  font-size: 1rem;
}

.love-hearts {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 2rem;
}

.love-hearts span {
  animation: floatHeart 2s ease-in-out infinite;
}

.love-hearts span:nth-child(1) {
  animation-delay: 0s;
}
.love-hearts span:nth-child(2) {
  animation-delay: 0.4s;
}
.love-hearts span:nth-child(3) {
  animation-delay: 0.8s;
}
.love-hearts span:nth-child(4) {
  animation-delay: 1.2s;
}
.love-hearts span:nth-child(5) {
  animation-delay: 1.6s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}

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

@keyframes floatHeart {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.2);
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .title {
    font-size: 2.2rem;
  }

  .message-card,
  .promise-card,
  .final-card {
    padding: 20px;
  }

  .message-card h2,
  .final-card h2 {
    font-size: 2rem;
  }

  .promise-card h3 {
    font-size: 1.5rem;
  }

  .apology-text {
    font-size: 1rem;
  }

  .love-btn {
    padding: 12px 25px;
    font-size: 1rem;
    min-width: 180px;
  }

  .love-message h2 {
    font-size: 2.5rem;
  }

  .love-message p {
    font-size: 1.1rem;
  }

  .love-hearts {
    font-size: 1.5rem;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .message-card h2,
  .final-card h2 {
    font-size: 1.8rem;
  }

  .promise-card h3 {
    font-size: 1.3rem;
  }

  .apology-text {
    font-size: 0.95rem;
  }

  .love-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 160px;
  }

  .love-message h2 {
    font-size: 2rem;
  }

  .love-message p {
    font-size: 1rem;
  }

  /* Mobile collage adjustments */
  .picture-collage {
    max-width: 300px;
  }

  .collage-item {
    max-width: 140px;
  }

  .collage-item img {
    height: 140px;
  }

  .message-line {
    font-size: 1.2rem;
  }

  .huh-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff6b9d, #ff8fab);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff8fab, #ff6b9d);
}
