/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Quicksand:wght@400;700&family=Tangerine:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  font-family: 'Quicksand', Arial, sans-serif;
  background: linear-gradient(135deg, #ffe6f7 0%, #f9c6e0 50%, #e0c3fc 100%);
  min-height: 100vh;
  color: #6d326d;
  transition: background 1s;
  overflow-x: hidden;
}

body.login-active {
  overflow: hidden;
}

/* ===== Music Play Button ===== */
.music-play-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #e75480, #e0c3fc);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(231, 84, 128, 0.3);
  z-index: 1000;
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
  .music-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(231, 84, 128, 0.4);
  }
}

/* Mobile touch effect */
.music-play-btn.touched {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(231, 84, 128, 0.4);
}

.music-play-btn:active {
  transform: scale(0.95);
}

/* ===== Music Modal ===== */
.music-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.music-modal.active {
  opacity: 1;
  visibility: visible;
}

.music-modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(231, 84, 128, 0.2);
  border: 2px solid rgba(231, 84, 128, 0.3);
  max-width: 400px;
  width: 90%;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.music-modal.active .music-modal-content {
  transform: scale(1);
}

.close-music-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(231, 84, 128, 0.2);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #e75480;
  transition: all 0.3s ease;
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
  .close-music-btn:hover {
    background: rgba(231, 84, 128, 0.3);
    transform: scale(1.1);
  }
}

/* Mobile touch effect */
.close-music-btn.touched {
  background: rgba(231, 84, 128, 0.3);
  transform: scale(1.1);
}

.music-player {
  font-family: 'Quicksand', sans-serif;
}

.music-info {
  text-align: center;
  margin-bottom: 15px;
}

.song-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e75480;
  margin-bottom: 2px;
}

.song-artist {
  font-size: 0.8rem;
  color: #8a3d8a;
  opacity: 0.8;
}

.music-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.music-btn {
  background: linear-gradient(45deg, #e75480, #e0c3fc);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(231, 84, 128, 0.3);
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
  .music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(231, 84, 128, 0.4);
  }
}

/* Mobile touch effect */
.music-btn.touched {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(231, 84, 128, 0.4);
}

.music-btn:active {
  transform: scale(0.95);
}

.play-btn {
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.volume-icon {
  font-size: 1.2rem;
  color: #e75480;
}

.volume-slider {
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e75480, #e0c3fc);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e75480;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(231, 84, 128, 0.3);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e75480;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(231, 84, 128, 0.3);
}

/* Music Menu Panel */
.music-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(231, 84, 128, 0.2);
  border: 1px solid rgba(231, 84, 128, 0.2);
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.music-menu-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.music-menu-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e75480;
  margin-bottom: 15px;
  text-align: center;
}

.song-list {
  margin-bottom: 15px;
}

.song-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 5px;
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
  .song-item:hover {
    background: rgba(231, 84, 128, 0.1);
  }
}

/* Mobile touch effect */
.song-item.touched {
  background: rgba(231, 84, 128, 0.1);
}

.song-item.active {
  background: linear-gradient(45deg, rgba(231, 84, 128, 0.2), rgba(224, 195, 252, 0.2));
  color: #e75480;
  font-weight: 600;
}

.song-name {
  font-size: 0.9rem;
}

.song-duration {
  font-size: 0.8rem;
  opacity: 0.7;
}

.music-menu-footer {
  text-align: center;
}

.close-btn {
  background: #e75480;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
  .close-btn:hover {
    background: #d63e6b;
    transform: translateY(-1px);
  }
}

/* Mobile touch effect */
.close-btn.touched {
  background: #d63e6b;
  transform: translateY(-1px);
}

/* Night mode for music controls */
body.night .music-player {
  background: rgba(20, 24, 45, 0.95);
  border-color: rgba(91, 78, 161, 0.3);
}

body.night .song-title {
  color: #e6def8;
}

body.night .song-artist {
  color: #b8a9d9;
}

body.night .music-menu-panel {
  background: rgba(20, 24, 45, 0.95);
  border-color: rgba(91, 78, 161, 0.3);
}

body.night .music-menu-header {
  color: #e6def8;
}

/* Desktop hover effect for night mode */
@media (hover: hover) and (pointer: fine) {
  body.night .song-item:hover {
    background: rgba(91, 78, 161, 0.2);
  }
}

/* Mobile touch effect for night mode */
body.night .song-item.touched {
  background: rgba(91, 78, 161, 0.2);
}

body.night .song-item.active {
  background: linear-gradient(45deg, rgba(91, 78, 161, 0.3), rgba(231, 84, 128, 0.2));
  color: #e6def8;
}

/* Night mode for music modal */
body.night .music-modal-content {
  background: rgba(20, 24, 45, 0.95);
  border-color: rgba(91, 78, 161, 0.3);
}

body.night .close-music-btn {
  background: rgba(91, 78, 161, 0.2);
  color: #e6def8;
}

/* Desktop hover effect for night mode */
@media (hover: hover) and (pointer: fine) {
  body.night .close-music-btn:hover {
    background: rgba(91, 78, 161, 0.3);
  }
}

/* Mobile touch effect for night mode */
body.night .close-music-btn.touched {
  background: rgba(91, 78, 161, 0.3);
}

body.night .music-menu-panel {
  background: rgba(20, 24, 45, 0.95);
  border-color: rgba(91, 78, 161, 0.3);
}

/* Mobile responsiveness for music */
@media (max-width: 768px) {
  .music-play-btn {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
  
  .music-modal-content {
    max-width: 350px;
    padding: 25px;
    margin: 20px;
  }
  
  .music-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .play-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .volume-slider {
    width: 100px;
  }
}


/* ===== Login Access Gate ===== */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(800px 400px at 50% 40%, #fff8fb 0%, #ffe6f7 40%, #e0c3fc 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(231, 84, 128, 0.2);
  border: 2px solid rgba(231, 84, 128, 0.3);
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.login-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  color: #e75480;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.login-subtitle {
  color: #8a3d8a;
  font-size: 1.1rem;
  margin: 0 0 30px 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.login-form .form-group label {
  color: #8a3d8a;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
}

.login-form .password-input {
  padding: 12px 16px;
  border: 2px solid #e0c3fc;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.login-form .password-input:focus {
  outline: none;
  border-color: #e75480;
  box-shadow: 0 0 0 3px rgba(231, 84, 128, 0.1);
}

.login-btn {
  background: linear-gradient(90deg, #e75480 0%, #e0c3fc 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 14px 28px;
  font-size: 1.2rem;
  font-family: 'Dancing Script', cursive;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(231, 84, 128, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 700;
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
  .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(231, 84, 128, 0.4);
  }
}

/* Mobile touch effect */
.login-btn.touched {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(231, 84, 128, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.login-error {
  color: #e75480;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 15px 0;
  animation: shake 0.5s ease-in-out;
}

.login-note {
  color: #8a3d8a;
  font-size: 0.9rem;
  margin: 20px 0 0 0;
  font-style: italic;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Night mode for login */
body.night .login-overlay {
  background: radial-gradient(800px 400px at 50% 40%, #0b1020 0%, #090d1a 40%, #060913 100%);
}

body.night .login-container {
  background: rgba(20, 24, 45, 0.95);
  border-color: rgba(91, 78, 161, 0.5);
}

body.night .login-title {
  color: #e6def8;
}

body.night .login-subtitle {
  color: #b8a9d9;
}

body.night .login-form .form-group label {
  color: #b8a9d9;
}

body.night .login-form .password-input {
  background: rgba(30, 35, 55, 0.9);
  border-color: #5b4ea1;
  color: #e6def8;
}

body.night .login-form .password-input:focus {
  border-color: #e75480;
  box-shadow: 0 0 0 3px rgba(231, 84, 128, 0.2);
}

body.night .login-note {
  color: #b8a9d9;
}

/* Mobile responsiveness for login */
@media (max-width: 768px) {
  .login-container {
    padding: 30px 20px;
    margin: 20px;
    max-width: 90%;
    width: calc(100% - 40px);
    border-radius: 20px;
  }
  
  .login-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  
  .login-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .login-form {
    gap: 15px;
  }
  
  .login-form .password-input {
    padding: 14px 16px;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  
  .login-btn {
    padding: 16px 32px;
    font-size: 1.3rem;
    border-radius: 20px;
  }
  
  .login-note {
    font-size: 0.85rem;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 25px 15px;
    margin: 15px;
    width: calc(100% - 30px);
    border-radius: 16px;
  }
  
  .login-title {
    font-size: 1.8rem;
  }
  
  .login-subtitle {
    font-size: 0.95rem;
  }
  
  .login-form .password-input {
    padding: 12px 14px;
    font-size: 1rem;
  }
  
  .login-btn {
    padding: 14px 28px;
    font-size: 1.2rem;
  }
}

/* ===== Preloader ===== */
.preloader {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(800px 400px at 50% 40%, #fff8fb 0%, #ffe6f7 40%, #e0c3fc 100%);
  z-index: 1000; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.ring { width: 120px; height: 120px; border-radius: 50%; position: relative; display:flex; align-items:center; justify-content:center; }
.ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, #d4af37, #f9e79f, #b8860b); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 1.8s linear infinite; }
.ring .logo { font-family: 'Dancing Script', cursive; font-size: 2rem; color: #b8860b; letter-spacing: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 4px 24px rgba(220, 120, 180, 0.13);
  border-bottom: 1px solid rgba(249, 198, 224, 0.7);
  border-radius: 0 0 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  z-index: 100;
  animation: fadeInNav 1.2s;
  transition: background 0.5s, border-color 0.5s, padding 0.3s;
}

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

.logo {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  color: #e75480;
  letter-spacing: 2px;
}

.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 50px;
}

.navbar a {
  text-decoration: none;
  color: #8a3d8a;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.25s, background 0.25s, transform 0.2s;
  position: relative;
  padding: 10px 14px;
  border-radius: 12px;
}

.navbar a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(231,84,128,0.18) 0%, rgba(224,195,252,0.18) 100%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
  .navbar a:hover {
    color: #e75480;
    background: rgba(255, 230, 247, 0.6);
  }

  .navbar a:hover::after {
    width: 100%;
  }
}

/* Mobile touch effect */
.navbar a.touched {
  color: #e75480;
  background: rgba(255, 230, 247, 0.6);
}

.navbar a.touched::after {
  width: 100%;
}

.menu-icon {
  display: none;
  font-size: 1.6rem;
  color: #e75480;
  cursor: pointer;
  background: rgba(255, 230, 247, 0.9);
  border: none;
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(220, 120, 180, 0.10);
  transition: background 0.3s, transform 0.2s;
}

/* Night mode toggle always visible */
#nightToggle {
  display: inline-flex !important;
}

.menu-icon:hover { background: #e0c3fc; }
.menu-icon:active { transform: scale(0.96); }

@media (max-width: 800px) {
  header { padding: 10px 12px; }
  .logo { font-size: 1.8rem; position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }
  .menu-icon { display: inline-flex; align-items: center; justify-content: center; }
  .navbar { position: absolute; top: 100%; left: 0; right: 0; z-index: 120; }
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 10px 12px 16px 12px;
    margin: 8px 8px 0 8px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(220,120,180,0.18);
    border: 1px solid rgba(249,198,224,0.8);
    animation: fadeIn 0.3s ease;
  }
  .navbar .nav-links.active { display: flex; }
  .navbar a { width: 100%; }
}

@media (min-width: 801px) {
  .navbar .nav-links { display: flex; }
}

/* ===== Sections ===== */
.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.85);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(220, 120, 180, 0.08);
  margin-bottom: 40px;
  animation: fadeIn 1.2s;
  position: relative;
  z-index: 1; /* Normal z-index for content */
}

.section.home {
  margin-top: 40px;
}

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

h1, h2 {
  font-family: 'Dancing Script', cursive;
  color: #e75480;
  margin-bottom: 18px;
}

/* Flipbook */
.flipbook {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.flip-btn {
  background: linear-gradient(180deg, #e0c3fc 0%, #ffe6f7 100%);
  color: #8a3d8a;
  border: none;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(220, 120, 180, 0.13);
  transition: transform 0.2s, background 0.3s;
}

.flip-btn:hover { transform: scale(1.06); }

.page {
  position: relative;
  flex: 1 1 520px;
  max-width: 620px;
  min-height: 180px;
  background: radial-gradient(circle at 70% 20%, #fff 0%, #ffe6f7 100%);
  border: 2px solid #e75480;
  border-radius: 16px;
  padding: 22px 18px 40px 18px;
  box-shadow: 0 8px 32px rgba(220, 120, 180, 0.15);
  transform-origin: left center;
}

.page-number {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 0.9rem;
  color: #a259a2;
}

.page-content {
  font-size: 1.1rem;
  line-height: 1.6;
}

.page.turn-right { animation: pageTurnRight 420ms ease; }
.page.turn-left  { animation: pageTurnLeft  420ms ease; }

@keyframes pageTurnRight {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(-12deg); }
  100% { transform: rotateY(0deg); }
}
@keyframes pageTurnLeft {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(12deg); }
  100% { transform: rotateY(0deg); }
}

/* ===== Gallery ===== */
.gallery {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(220, 120, 180, 0.13);
  transition: transform 0.3s;
  margin-top: 16px; /* Added margin top */
}

.gallery img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(220, 120, 180, 0.18);
}

/* ===== Timeline ===== */
.timeline {
  list-style: none;
  padding: 0;
}

.timeline li {
  margin-bottom: 18px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 28px;
}

.timeline li::before {
  content: '💞';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 24px 0;
  background: linear-gradient(90deg, #e0c3fc 0%, #ffe6f7 100%);
  color: #a259a2;
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  border-top: 1px solid #f9c6e0;
}

/* ===== Header Buttons Container ===== */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* ===== Easter Egg Heart Button ===== */
.easter-egg-heart {
  background: linear-gradient(135deg, #ff9ec7, #e75480);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(231, 84, 128, 0.3);
}

.easter-egg-heart:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(231, 84, 128, 0.4);
}

.easter-egg-heart:active {
  transform: scale(0.95);
}

/* ===== Easter Egg Modal ===== */
.easter-egg-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.easter-egg-modal.active {
  opacity: 1;
  visibility: visible;
}

.easter-egg-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 182, 193, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.easter-egg-modal.active .easter-egg-content {
  transform: scale(1);
}

.close-easter-egg-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-easter-egg-btn:hover {
  background: rgba(231, 84, 128, 0.8);
  color: white;
  transform: scale(1.1);
}

.easter-egg-message {
  text-align: center;
  position: relative;
}

.easter-egg-hearts {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.floating-heart {
  font-size: 24px;
  animation: float 2s ease-in-out infinite;
}

.floating-heart:nth-child(2) {
  animation-delay: 0.5s;
}

.floating-heart:nth-child(3) {
  animation-delay: 1s;
}

.easter-egg-message h3 {
  font-size: 24px;
  color: #e75480;
  margin: 30px 0 20px 0;
  font-weight: 600;
}

.easter-egg-message p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin: 20px 0;
  font-style: italic;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid #e75480;
}

.easter-egg-signature {
  font-size: 16px;
  color: #e75480;
  margin-top: 20px;
  font-weight: 500;
}

/* Night mode for easter egg */
body.night .easter-egg-content {
  background: linear-gradient(135deg, rgba(20, 24, 45, 0.95), rgba(60, 20, 45, 0.9));
  border: 2px solid rgba(255, 255, 255, 0.2);
}

body.night .easter-egg-message h3 {
  color: #ff9ec7;
}

body.night .easter-egg-message p {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

body.night .easter-egg-signature {
  color: #ff9ec7;
}

body.night .close-easter-egg-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

body.night .close-easter-egg-btn:hover {
  background: rgba(255, 158, 199, 0.8);
}

/* Night mode for flipbook */
body.night .page {
  background: transparent;
  border: 2px solid #ff9ec7;
  color: #ffffff;
}

body.night .page-content {
  color: #ffffff;
}

body.night .page-number {
  color: #ff9ec7;
}

/* Night mode for story quote */
body.night .story-quote {
  color: #ffffff;
}

/* ===== Floating Hearts ===== */
.hearts {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100vw; 
  height: 100vh;
  pointer-events: none;
  z-index: -1; /* Behind all content */
  overflow: hidden;
}

.heart {
  position: absolute;
  bottom: -50px;
  animation: floatUp 8s linear forwards;
  opacity: 0.8;
  font-size: 24px;
  z-index: -1; /* Behind all content */
  color: #e75480;
}

@keyframes floatUp {
  0% { 
    bottom: -50px; 
    opacity: 0.8;
    transform: translateX(0px) rotate(0deg);
  }
  10% { 
    opacity: 1;
  }
  90% { 
    opacity: 1;
  }
  100% { 
    bottom: 100vh; 
    opacity: 0;
    transform: translateX(20px) rotate(360deg);
  }
}

/* ===== Play Button ===== */
#playButton {
  background: linear-gradient(90deg, #e75480 0%, #f9c6e0 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  font-size: 1.2rem;
  font-family: 'Dancing Script', cursive;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(220, 120, 180, 0.13);
  transition: background 0.3s, transform 0.2s;
  position: relative;
  outline: none;
  margin-top: 20px;
}

#playButton:hover {
  background: linear-gradient(90deg, #e75480 0%, #e0c3fc 100%);
  transform: scale(1.07);
}

#playButton::after {
  content: '💖';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  opacity: 0.7;
  pointer-events: none;
}

/* Playlist iframe styling */
iframe {
  border: none;
  box-shadow: 0 4px 16px rgba(220, 120, 180, 0.13);
  border-radius: 18px;
  margin-top: 18px;
}

/* Starry Night Mode */
body.night {
  background: radial-gradient(1200px 600px at 50% 0%, #0b1020 0%, #090d1a 40%, #060913 100%);
  color: #e6def8;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: none;
}

body.night #stars { display: block; }
body.night header { background: rgba(15, 18, 32, 0.8); border-color: rgba(100, 80, 160, 0.5); }
body.night .section { background: rgba(20, 24, 45, 0.6); box-shadow: 0 8px 32px rgba(0,0,0,0.25); }

/* ===== Enhanced Hero Section ===== */
.hero-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 400px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #e75480, #e0c3fc, #f9e79f);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  margin-bottom: 20px;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(231, 84, 128, 0.1);
  border-radius: 16px;
  border: 2px solid rgba(231, 84, 128, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(231, 84, 128, 0.2);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #e75480;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-btn.primary {
  background: linear-gradient(45deg, #e75480, #e0c3fc);
  color: white;
  box-shadow: 0 4px 15px rgba(231, 84, 128, 0.3);
}

.hero-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231, 84, 128, 0.4);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #e75480;
  border: 2px solid #e75480;
}

.hero-btn.secondary:hover {
  background: #e75480;
  color: white;
  transform: translateY(-3px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-floating-hearts {
  position: relative;
  width: 200px;
  height: 200px;
}

.hero-heart {
  position: absolute;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

.hero-heart-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-heart-2 {
  top: 60%;
  right: 10%;
  animation-delay: 0.5s;
}

.hero-heart-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 1s;
}

.hero-heart-4 {
  top: 30%;
  right: 30%;
  animation-delay: 1.5s;
}

/* ===== Enhanced Story Section ===== */
.story-header {
  text-align: center;
  margin-bottom: 40px;
}

.story-title {
  font-size: 2.5rem;
  color: #e75480;
  margin-bottom: 10px;
}

.story-date {
  font-size: 1.1rem;
  color: #666;
  font-style: italic;
}

.story-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.story-quote {
  font-size: 1.4rem;
  font-style: italic;
  color: #555;
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(231, 84, 128, 0.05);
  border-radius: 16px;
  border-left: 4px solid #e75480;
}

.story-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

.highlight-card {
  text-align: center;
  padding: 35pxx 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  border: 2px solid rgba(231, 84, 128, 0.1);
  transition: all 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(231, 84, 128, 0.15);
  border-color: rgba(231, 84, 128, 0.3);
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.highlight-card h3 {
  font-size: 1.2rem;
  color: #e75480;
  margin-bottom: 10px;
}

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

.story-cta {
  text-align: center;
}

.story-btn {
  background: linear-gradient(45deg, #e75480, #e0c3fc);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(231, 84, 128, 0.3);
}

.story-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231, 84, 128, 0.4);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.story-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.story-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 300px;
}

.timeline-dots {
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(231, 84, 128, 0.3);
  border: 3px solid rgba(231, 84, 128, 0.5);
  transition: all 0.3s ease;
}

.dot.active {
  background: #e75480;
  border-color: #e75480;
  box-shadow: 0 0 20px rgba(231, 84, 128, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #e75480, #e0c3fc);
  transform: translateX(-50%);
}

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

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

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

/* ===== Medium Screen Responsiveness ===== */
@media (max-width: 992px) and (min-width: 769px) {
  .story-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .highlight-card {
    padding: 20px;
  }
  
  .highlight-card h3 {
    font-size: 1.1rem;
  }
  
  .highlight-card p {
    font-size: 0.9rem;
  }
}

/* ===== Mobile Responsiveness for Enhanced Sections ===== */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-visual {
    order: -1; /* Move visual to top on mobile */
  }
  
  .hero-floating-hearts {
    width: 150px;
    height: 150px;
  }
  
  .hero-heart {
    font-size: 1.5rem;
  }
  
  /* Story Section Mobile Fixes */
  .story-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .story-header {
    margin-bottom: 30px;
  }
  
  .story-title {
    font-size: 2.2rem;
  }
  
  .story-date {
    font-size: 1rem;
  }
  
  .story-quote {
    font-size: 1.2rem;
    padding: 15px;
    margin-bottom: 30px;
  }
  
  .story-highlights {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .highlight-card {
    padding: 20px;
  }
  
  .highlight-card h3 {
    font-size: 1.1rem;
  }
  
  .highlight-card p {
    font-size: 0.9rem;
  }
  
  .story-visual {
    height: 200px;
    order: -1; /* Move visual to top */
  }
  
  .timeline-dots {
    gap: 40px;
  }
  
  .dot {
    width: 16px;
    height: 16px;
  }
  
  .story-cta {
    margin-top: 20px;
  }
  
  .story-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .stat-item {
    padding: 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .hero-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  .story-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .story-date {
    font-size: 0.95rem;
  }
  
  .story-quote {
    font-size: 1.1rem;
    padding: 12px;
    margin-bottom: 25px;
  }
  
  .highlight-card {
    padding: 15px;
  }
  
  .highlight-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .highlight-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .highlight-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .story-visual {
    height: 150px;
  }
  
  .timeline-dots {
    gap: 30px;
  }
  
  .dot {
    width: 14px;
    height: 14px;
  }
  
  .story-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  
  /* Easter Egg Mobile Responsiveness */
  .easter-egg-heart {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .easter-egg-content {
    padding: 30px 20px;
    max-width: 400px;
    width: 95%;
  }
  
  .easter-egg-message h3 {
    font-size: 20px;
    margin: 25px 0 15px 0;
  }
  
  .easter-egg-message p {
    font-size: 16px;
    padding: 15px;
  }
  
  .easter-egg-signature {
    font-size: 14px;
  }
}
body.night h1, body.night h2 { color: #e6def8; }
body.night .navbar a { color: #8a3d8a; }
/* Desktop hover effect for night mode */
@media (hover: hover) and (pointer: fine) {
  body.night .navbar a:hover { 
    color: #e75480; 
    background: rgba(255, 230, 247, 0.2); 
  }
}

/* Mobile touch effect for night mode */
body.night .navbar a.touched { 
  color: #e75480; 
  background: rgba(255, 230, 247, 0.2); 
}
body.night .menu-icon { background: rgba(45, 27, 61, 0.8); color: #e6def8; border: 1px solid #4a3c5a; }
body.night .logo { color: #e6def8; }

/* Redesigned SumOne Gallery Cards */
.sumone-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.sumone-img-frame {
  background: radial-gradient(circle at 70% 20%, #ffe6f7 0%, #e0c3fc 100%);
  border: 2.5px solid #e75480;
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(220, 120, 180, 0.18);
  padding: 18px 18px 54px 18px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px;
  min-height: 220px;
  background-clip: padding-box;
}

.sumone-img-frame.special {
  width: 340px;
  min-height: 280px;
  margin-bottom: 32px;
  border-radius: 26px;
}

.sumone-img-frame img {
  width: 96%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(220, 120, 180, 0.13);
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  object-fit: contain;
  z-index: 2;
  position: relative;
}

.sumone-img-frame:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 16px 56px rgba(220, 120, 180, 0.28);
  border-color: #a259a2;
}

.sumone-img-frame img:hover {
  transform: scale(1.10) rotate(-2deg);
  box-shadow: 0 24px 64px rgba(220, 120, 180, 0.28);
}

.sumone-label {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #e75480 0%, #e0c3fc 100%);
  color: #fff;
  font-family: 'Dancing Script', cursive;
  font-size: 1.15rem;
  padding: 6px 22px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(220, 120, 180, 0.10);
  opacity: 0.97;
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 3;
  border: 2px solid #fff;
}

.sumone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  justify-items: center;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .sumone-gallery {
    gap: 18px;
    max-width: 100vw;
    padding: 0 2vw;
  }
  .sumone-img-frame,
  .sumone-img-frame.special {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    min-height: 100px;
    padding: 8px 4px 28px 4px;
    border-radius: 12px;
  }
  .sumone-img-frame img {
    width: 100%;
    border-radius: 8px;
  }
  .sumone-label {
    font-size: 0.95rem;
    padding: 3px 8px;
    border-radius: 6px;
    bottom: 4px;
  }
  .sumone-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100vw;
    margin: 0;
  }
}

/* ===== Story Button ===== */
.story-btn {
  background: linear-gradient(90deg, #e75480 0%, #e0c3fc 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-size: 1.05rem;
  font-family: 'Dancing Script', cursive;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(220, 120, 180, 0.13);
  transition: background 0.3s, transform 0.2s;
  margin-left: 8px;
}

.story-btn:hover {
  background: linear-gradient(90deg, #e75480 0%, #e0c3fc 100%);
  transform: scale(1.07);
}
