* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f9e4e4;
  min-height: 100vh;
  padding: 2rem;
}

/* Password Protection Screen */
.password-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f9e4e4 0%, #ffd4d4 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.password-screen.hidden {
  display: none;
}

.password-container {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(212, 102, 124, 0.3);
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: fadeIn 0.5s ease-in;
}

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

.password-container h2 {
  color: #d4667c;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.password-container p {
  color: #666;
  margin-bottom: 1.5rem;
}

.password-container input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ffd4d4;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.password-container input:focus {
  border-color: #d4667c;
}

.password-container button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #d4667c 0%, #f39bb6 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.password-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 102, 124, 0.4);
}

.password-container button:active {
  transform: translateY(0);
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 1rem;
  min-height: 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.header h1 {
  font-size: 3rem;
  color: #d4667c;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header p {
  color: #666;
  font-style: italic;
}

/* Navigation Styles */
.nav {
  background: white;
  padding: 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-btn {
  border: none;
  background: none;
  color: #d4667c;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-btn:hover,
.nav-btn.active {
  background: #d4667c;
  color: white;
}

/* Sections */
.section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.section.active {
  display: block;
}

/* Scrapbook Grid */
.scrapbook {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.memory-card {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: rotate(-3deg);
  transition: all 0.3s ease;
  cursor: pointer;
}

.memory-card:nth-child(even) {
  transform: rotate(3deg);
}

.memory-card:hover {
  transform: scale(1.05) rotate(0);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.memory-card img {
  width: 335px;
  height: 500px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
}

/* Gallery Styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  background: rgba(212, 102, 124, 0.8);
  color: white;
  padding: 0.5rem;
  transition: bottom 0.3s ease;
}

.gallery-item:hover .overlay {
  bottom: 0;
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: #d4667c;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 1rem;
  position: relative;
  width: 50%;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-content {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #d4667c;
  border-radius: 50%;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-before-after {
  background: linear-gradient(135deg, #fff5f6 0%, #ffe4e8 100%);
  border: 1px solid #f8c8d2;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 0 auto 2.5rem;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(212, 102, 124, 0.18);
}

.timeline-before-after::before,
.timeline-before-after::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 192, 203, 0.4) 0%, rgba(255, 192, 203, 0) 70%);
  filter: blur(12px);
  z-index: 0;
}

.timeline-before-after::before {
  top: -60px;
  left: -40px;
}

.timeline-before-after::after {
  bottom: -80px;
  right: -40px;
}

.before-after-heading {
  text-align: center;
  position: relative;
  z-index: 1;
}

.mini-label {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(212, 102, 124, 0.08);
  color: #d4667c;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.before-after-heading h3 {
  color: #c25570;
  font-size: 1.5rem;
  margin: 0.2rem 0;
  letter-spacing: 0.5px;
}

.mini-desc {
  color: #a66a74;
  font-size: 0.95rem;
  margin: 0;
  font-style: italic;
}

.before-after-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.circle-card {
  text-align: center;
  color: #c25570;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.circle-frame {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #d4667c 0%, #f39bb6 100%);
  position: relative;
  box-shadow: 0 10px 25px rgba(212, 102, 124, 0.25);
}

.circle-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 2;
}

.circle-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 155, 182, 0.3) 0%, rgba(243, 155, 182, 0) 70%);
  filter: blur(6px);
  z-index: 1;
}

.circle-caption {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
}

.circle-before .circle-frame {
  background: linear-gradient(135deg, #ffb3ba 0%, #f39bb6 100%);
}

.circle-after .circle-frame {
  background: linear-gradient(135deg, #d4667c 0%, #c25570 100%);
}

.arrow-bridge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d4667c;
  font-weight: 800;
  letter-spacing: 0.5px;
  min-width: 140px;
}

.arrow-heart {
  font-size: 1.4rem;
}

.arrow-line {
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, rgba(212, 102, 124, 0) 0%, rgba(212, 102, 124, 0.8) 30%, rgba(243, 155, 182, 0.8) 70%, rgba(243, 155, 182, 0) 100%);
  border-radius: 999px;
  position: relative;
}

.arrow-line::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 4px solid #d4667c;
  border-right: 4px solid #d4667c;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
}

/* Hearts Animation */
.hearts {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ff6b81;
  transform: rotate(45deg);
  animation: heartFloat 4s ease-in infinite;
  opacity: 0;
}

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

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

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

/* Music Player */
.music-player {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.music-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #d4667c;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f9e4e4;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

.loading-heart {
  width: 50px;
  height: 50px;
  background: #d4667c;
  transform: rotate(45deg);
  animation: pulse 1s ease infinite;
  position: relative;
}

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

.loading-heart::before {
  left: -25px;
}

.loading-heart::after {
  top: -25px;
}

@keyframes pulse {
  0% {
    transform: rotate(45deg) scale(1);
  }
  50% {
    transform: rotate(45deg) scale(1.2);
  }
  100% {
    transform: rotate(45deg) scale(1);
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: white;
  color: #d4667c;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: #d4667c;
  color: white;
}

/* Share Button */
.share-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #d4667c;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn:hover {
  background: #c55670;
}

.share-popup {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
}

.share-popup.active {
  display: block;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
}

.share-option:hover {
  background: #f5f5f5;
}

/* Animations */
@keyframes heartFloat {
  0% {
    transform: translateY(0) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100vh) rotate(45deg);
    opacity: 0;
  }
}

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

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .nav {
    flex-wrap: wrap;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-before-after {
    padding: 1.25rem;
  }

  .before-after-row {
    flex-direction: column;
    gap: 1rem;
  }

  .circle-frame {
    width: 150px;
    height: 150px;
  }

  .arrow-bridge {
    flex-direction: column;
    min-width: auto;
  }

  .arrow-line {
    width: 4px;
    height: 80px;
    background: linear-gradient(180deg, rgba(212, 102, 124, 0) 0%, rgba(212, 102, 124, 0.8) 40%, rgba(243, 155, 182, 0.8) 80%, rgba(243, 155, 182, 0) 100%);
  }

  .arrow-line::after {
    right: 50%;
    top: 100%;
    transform: translate(50%, -50%) rotate(135deg);
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 21px;
  }
}

/* Birthday Page Styles */
.birthday-container {
  position: relative;
  padding: 2rem 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffd4d4 0%, #ffe4e1 50%, #ffb3ba 100%);
  border-radius: 20px;
  overflow: hidden;
}

.birthday-card {
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(212, 102, 124, 0.3);
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.birthday-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.sparkles {
  position: absolute;
  font-size: 2rem;
  animation: sparkleFloat 2s ease-in-out infinite;
}

.sparkles:nth-child(1) {
  top: 10px;
  left: 20px;
}

.sparkles:nth-child(2) {
  top: 20px;
  right: 20px;
}

.sparkles:nth-child(3) {
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes sparkleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-15px) scale(1.2);
    opacity: 1;
  }
}

.heart-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #d4667c 50%, transparent 100%);
  margin: 1rem auto;
  border-radius: 10px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.birthday-title {
  font-size: 3rem;
  background: linear-gradient(135deg, #d4667c 0%, #f39bb6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  font-weight: 800;
  animation: titleBounce 2s ease-in-out infinite;
  letter-spacing: 2px;
}

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

.birthday-subtitle {
  color: #d4667c;
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.birthday-content {
  position: relative;
}

.birthday-balloons {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  height: 150px;
}

.balloon {
  width: 50px;
  height: 70px;
  border-radius: 50% 50% 50% 0;
  position: relative;
  animation: balloonFloat 3s ease-in-out infinite;
}

.balloon::before {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: #999;
}

.balloon-red {
  background: linear-gradient(135deg, #ff6b81 0%, #ff5c7c 100%);
  animation-delay: 0s;
}

.balloon-pink {
  background: linear-gradient(135deg, #f39bb6 0%, #e374a4 100%);
  animation-delay: 0.3s;
}

.balloon-purple {
  background: linear-gradient(135deg, #d4667c 0%, #c25570 100%);
  animation-delay: 0.6s;
}

@keyframes balloonFloat {
  0%, 100% {
    transform: translateY(0) rotateZ(-2deg);
  }
  50% {
    transform: translateY(-20px) rotateZ(2deg);
  }
}

.cake-emoji {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1rem;;
}

@keyframes cakeSpin {
  0%, 100% {
    transform: rotateZ(0deg);
  }
  50% {
    transform: rotateZ(10deg);
  }
}

.birthday-message-box {
  background: linear-gradient(135deg, #fff0f1 0%, #ffe4e8 100%);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 2rem;
  border: 2px solid #ffc0cb;
}

.birthday-message {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  margin-top: 1rem;
}

.love-quote {
  background: linear-gradient(135deg, #fff5f6 0%, #ffe4e8 100%);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  border-left: 4px solid #d4667c;
  text-align: center;
  box-shadow: 0 5px 15px rgba(212, 102, 124, 0.1);
}

.love-quote p {
  color: #d4667c;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.birthday-wishes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.wish-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(212, 102, 124, 0.1);
  transform: translateY(0);
  transition: all 0.3s ease;
  border-top: 3px solid #d4667c;
}

.wish-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(212, 102, 124, 0.2);
}

.wish-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.wish-card h4 {
  color: #d4667c;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.wish-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.reasons-to-love {
  background: linear-gradient(135deg, #fff5f6 0%, #ffe4e8 100%);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  border: 2px solid #ffc0cb;
}

.reasons-title {
  color: #d4667c;
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.reasons-subtitle {
  color: #b8888a;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2rem;
  font-style: italic;
  letter-spacing: 0.5px;
}

.reasons-grid-25 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.reason-item.reason-flip {
  height: auto;
  min-height: 180px;
}

.reason-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.reason-front {
  display: none;
}

.reason-back {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(212, 102, 124, 0.2);
  text-align: center;
  background: linear-gradient(135deg, #fff5f6 0%, #ffe4e8 100%);
  border: 2px solid #d4667c;
  color: #d4667c;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-item.reason-flip:hover .reason-back {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(212, 102, 124, 0.3);
}

.reason-num {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  color: #d4667c;
  margin-bottom: 0.5rem;
}

.reason-back p {
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.reason-item.reason-flip:nth-child(25) {
  grid-column: 1 / -1;
  max-width: 100%;
}

.reason-item:nth-child(1) .reason-front {
  background: linear-gradient(135deg, #d4667c 0%, #f39bb6 100%);
}

.reason-item:nth-child(2) .reason-front {
  background: linear-gradient(135deg, #ff6b81 0%, #ff5c7c 100%);
}

.reason-item:nth-child(3) .reason-front {
  background: linear-gradient(135deg, #f39bb6 0%, #e374a4 100%);
}

.reason-item:nth-child(4) .reason-front {
  background: linear-gradient(135deg, #ff8fab 0%, #ff6781 100%);
}

.reason-item:nth-child(5) .reason-front {
  background: linear-gradient(135deg, #d4667c 0%, #c25570 100%);
}

.reason-item:nth-child(6) .reason-front {
  background: linear-gradient(135deg, #e374a4 0%, #d4667c 100%);
}

.reason-item:nth-child(7) .reason-front {
  background: linear-gradient(135deg, #ff6b81 0%, #f39bb6 100%);
}

.reason-item:nth-child(8) .reason-front {
  background: linear-gradient(135deg, #f39bb6 0%, #ff8fab 100%);
}

.reason-item:nth-child(9) .reason-front {
  background: linear-gradient(135deg, #c25570 0%, #d4667c 100%);
}

.reason-item:nth-child(10) .reason-front {
  background: linear-gradient(135deg, #d4667c 0%, #ff6b81 100%);
}

.reason-item:nth-child(11) .reason-front {
  background: linear-gradient(135deg, #ff8fab 0%, #f39bb6 100%);
}

.reason-item:nth-child(12) .reason-front {
  background: linear-gradient(135deg, #f39bb6 0%, #c25570 100%);
}

.reason-item:nth-child(13) .reason-front {
  background: linear-gradient(135deg, #d4667c 0%, #ff8fab 100%);
}

.reason-item:nth-child(14) .reason-front {
  background: linear-gradient(135deg, #ff6b81 0%, #d4667c 100%);
}

.reason-item:nth-child(15) .reason-front {
  background: linear-gradient(135deg, #e374a4 0%, #ff8fab 100%);
}

.reason-item:nth-child(16) .reason-front {
  background: linear-gradient(135deg, #f39bb6 0%, #ff6b81 100%);
}

.reason-item:nth-child(17) .reason-front {
  background: linear-gradient(135deg, #d4667c 0%, #e374a4 100%);
}

.reason-item:nth-child(18) .reason-front {
  background: linear-gradient(135deg, #ff8fab 0%, #d4667c 100%);
}

.reason-item:nth-child(19) .reason-front {
  background: linear-gradient(135deg, #f39bb6 0%, #ff6b81 100%);
}

.reason-item:nth-child(20) .reason-front {
  background: linear-gradient(135deg, #c25570 0%, #f39bb6 100%);
}

.reason-item:nth-child(21) .reason-front {
  background: linear-gradient(135deg, #d4667c 0%, #ff8fab 100%);
}

.reason-item:nth-child(22) .reason-front {
  background: linear-gradient(135deg, #e374a4 0%, #d4667c 100%);
}

.reason-item:nth-child(23) .reason-front {
  background: linear-gradient(135deg, #ff6b81 0%, #f39bb6 100%);
}

.reason-item:nth-child(24) .reason-front {
  background: linear-gradient(135deg, #f39bb6 0%, #ff8fab 100%);
}

.reason-item:nth-child(25) .reason-front {
  background: linear-gradient(135deg, #d4667c 0%, #ff6b81 100%);
}

.birthday-personal-message {
  background: linear-gradient(135deg, #fff5f6 0%, #fff0f1 100%);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border: 2px dashed #f39bb6;
}

.birthday-personal-message h3 {
  color: #d4667c;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 1.2rem;
}

.message-subtitle {
  color: #999;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.message-input-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#birthdayMessage {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 2px solid #ffc0cb;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
}

#birthdayMessage:focus {
  border-color: #d4667c;
  box-shadow: 0 0 10px rgba(212, 102, 124, 0.2);
}

.save-message-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #d4667c 0%, #f39bb6 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.save-message-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 102, 124, 0.4);
}

.saved-message {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
  border-left: 4px solid #d4667c;
  animation: slideInUp 0.3s ease;
}

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

.saved-message p {
  color: #333;
  font-style: italic;
  line-height: 1.8;
}

.birthday-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.music-btn-birthday {
  background: linear-gradient(135deg, #ff6b81 0%, #ff5c7c 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(255, 107, 129, 0.3);
}

.music-btn-birthday:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 107, 129, 0.4);
}

.wish-btn {
  background: linear-gradient(135deg, #f39bb6 0%, #e374a4 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(243, 155, 182, 0.3);
}

.wish-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(243, 155, 182, 0.4);
}

.birthday-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid #ffc0cb;
  color: #d4667c;
}

.birthday-footer p:first-child {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.date-display {
  font-size: 0.95rem;
  color: #999;
  font-style: italic;
}

.footer-text {
  font-size: 1.3rem;
  color: #d4667c;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.footer-blessing {
  color: #b8888a;
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Confetti Animation */
.confetti-piece {
  position: fixed;
  pointer-events: none;
  z-index: 5;
}

.confetti-piece::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #ff6b81 0%, #f39bb6 100%);
  border-radius: 50%;
  animation: confettiFall 3s ease-in infinite;
  animation-delay: var(--delay);
  left: var(--x);
  top: -10px;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotateZ(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotateZ(360deg);
    opacity: 0;
  }
}

/* Mobile Responsive Styles for Birthday */
@media (max-width: 768px) {
  .birthday-card {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

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

  .birthday-subtitle {
    font-size: 1rem;
  }

  .heart-line {
    width: 40px;
    height: 2px;
  }

  .love-quote {
    padding: 1.5rem 1rem;
  }

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

  .reasons-grid-25 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .reason-item.reason-flip {
    height: 160px;
  }

  .reason-front,
  .reason-back {
    padding: 1rem;
  }

  .reason-num {
    font-size: 2.5rem;
  }

  .reason-back p {
    font-size: 0.85rem;
  }

  .birthday-balloons {
    gap: 1rem;
    height: 100px;
  }

  .balloon {
    width: 40px;
    height: 55px;
  }

  .cake-emoji {
    font-size: 3rem;
  }

  .birthday-message-box {
    padding: 1.5rem 1rem;
  }

  .birthday-message {
    font-size: 1rem;
  }

  .birthday-wishes-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wish-card {
    padding: 1rem;
  }

  .birthday-personal-message {
    padding: 1.5rem 1rem;
  }

  #birthdayMessage {
    min-height: 100px;
    font-size: 16px;
  }

  .action-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .birthday-footer {
    padding-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .birthday-container {
    padding: 1rem 0;
  }

  .birthday-card {
    padding: 1rem;
    border-radius: 15px;
  }

  .sparkles {
    font-size: 1.5rem;
  }

  .birthday-title {
    font-size: 1.5rem;
  }

  .birthday-subtitle {
    font-size: 0.9rem;
  }

  .heart-line {
    width: 30px;
    height: 2px;
  }

  .love-quote {
    padding: 1rem;
  }

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

  .reasons-subtitle {
    font-size: 0.85rem;
  }

  .reasons-grid-25 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .reason-item.reason-flip {
    height: 140px;
  }

  .reason-front,
  .reason-back {
    padding: 0.8rem;
  }

  .reason-num {
    font-size: 2rem;
  }

  .reason-back p {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .birthday-balloons {
    height: 80px;
  }

  .balloon {
    width: 30px;
    height: 45px;
  }

  .cake-emoji {
    font-size: 2rem;
  }

  .birthday-message {
    font-size: 0.9rem;
  }

  .before-after-heading h3 {
    font-size: 1.25rem;
  }

  .circle-frame {
    width: 130px;
    height: 130px;
  }

  .arrow-line {
    height: 70px;
  }

  .wish-card h4 {
    font-size: 1rem;
  }

  .wish-card p {
    font-size: 0.85rem;
  }

  .message-subtitle {
    font-size: 0.85rem;
  }

  .action-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
