
:root {
  /* Dark Mode Colors (Default) */
  --text-primary: #ffe6f0;
  --text-header: #ff99cc;
  --bg-gradient: linear-gradient(-45deg, #5c2147, #78285f, #8e2c7f, #b34ba0);
  --bg-header: rgba(40, 20, 40, 0.85);
  --accent-pink: #ff66aa;

  --bg-card: rgba(60, 20, 60, 0.7); /* NEW */
  --shadow-card: 0 6px 15px rgba(0,0,0,0.3); /* NEW */
  --shadow-card-hover: 0 10px 25px rgba(255, 150, 200, 0.5); /* NEW */
  --transition-med: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* NEW */
  --bg-card-locked: rgba(80, 30, 60, 0.5); /* NEW */
  --bg-modal-overlay: rgba(50, 10, 50, 0.85); /* NEW */
  --bg-modal-content: rgba(60, 20, 60, 0.9); /* NEW */
  --bg-close-hover: rgba(255, 255, 255, 0.1); /* NEW */
  --text-locked: #d499c4; /* NEW */
  --backdrop-blur: blur(10px); /* NEW */
  --transition-fast: 0.2s ease; /* NEW */
  --transition-slow: 0.4s ease; /* NEW */
}

body.light-mode {
  /* Light Mode Colors */
  --text-primary: #4a4a4a;
  --text-header: #d6508d;
  --bg-gradient: linear-gradient(-45deg, #ffe6f0, #ffd9ec, #ffb3d9, #ff99cc);
  --bg-header: rgba(255, 255, 255, 0.85);
  --accent-pink: #ff66aa;

  --bg-card: rgba(255, 255, 255, 0.7); /* NEW */
  --shadow-card: 0 6px 15px rgba(255, 150, 200, 0.3); /* NEW */
  --shadow-card-hover: 0 10px 25px rgba(255, 150, 200, 0.5); /* NEW */
  --transition-med: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* NEW */
  --bg-card-locked: #fdfcff; /* NEW */
  --bg-modal-content: #ffffff; /* NEW */
  --bg-close-hover: rgba(0, 0, 0, 0.07); /* NEW */
  --text-locked: #ad8ebc; /* NEW */
}

/* ===== General Dark Romantic Theme ===== */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  /* Dark romantic gradient */
  background: linear-gradient(-45deg, #5c2147, #78285f, #8e2c7f, #b34ba0);
  background-size: 400% 400%;
  animation: gradient 20s ease infinite;
  scroll-behavior: smooth;
  cursor: url('../images/cursor/cursor.png'), auto;
  color: #ffe6f0;
}

/* Gradient Animation */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(40, 20, 40, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  box-sizing: border-box;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff99cc;
  text-decoration: none;
}

.logo img {
  width: 40px;         /* <-- This is the most important part! Change this number until it looks right. */
  height: auto;        /* This automatically adjusts the height to prevent stretching */
  margin-right: 10px;
  vertical-align: middle; /* This helps align the image with the text next to it */
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #ffb3d9;
  font-weight: bold;
  white-space: nowrap;
}

nav a:hover {
  color: #ff66aa;
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  text-align: center;
}

.hero h1 {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 3rem;
  color: #ffb3d9;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  animation: pulse 2s infinite;
}

.hero .subheading {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #ffe6f0;
}

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

/* ===== Message Card ===== */
.message-card {
  max-width: 600px;
  margin: 50px auto;
  padding: 25px;
  background: rgba(60, 20, 60, 0.7);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #ffe6f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 150, 200, 0.5);
}

/* ===== Content Sections ===== */
.content-section {
  max-width: 1000px;
  margin: 80px auto;
  padding: 20px;
  text-align: center;
}

.content-section h2 {
  color: #ff99cc;
  margin-bottom: 20px;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.3);
}

/* ===== Gallery Grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

/* Gallery Cards */
.gallery-card {
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.gallery-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 150, 200, 0.5);
  border: 2px solid #ff99cc;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.gallery-card:hover img {
  filter: brightness(1.15);
}

/* ===== Floating Elements ===== */
.balloon-container,
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.balloon-container { z-index: 1; }
.floating-elements { z-index: 2; }

.balloon {
  position: absolute;
  bottom: -150px;
  width: 70px;
  height: auto;
  animation: floatBalloon linear infinite;
  opacity: 0.9;
}

@keyframes floatBalloon {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-120vh) rotate(20deg); opacity: 0.5; }
}

.floating-item {
  position: absolute;
  bottom: -50px;
  font-size: 24px;
  animation: floatEmoji linear infinite;
  opacity: 0.9;
  cursor: pointer;
  transition: transform 0.2s;
}

.floating-item:hover { transform: scale(1.5) rotate(15deg); }

@keyframes floatEmoji {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-110vh) rotate(20deg); opacity: 0; }
}

/* Hover cursor for interactive elements */
a:hover, button:hover, .message-card:hover {
  cursor: url('../images/cursor/hover.png') 16 16, pointer;
}

/* ===== Responsive ===== */
@media (max-width: 500px) {
  header { padding: 10px 15px; }
  .hero h1 { font-size: 2rem; }
}

/* ===== Lightbox Overlay ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(50, 10, 50, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255, 150, 200, 0.6);
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
  position: fixed;
  top: 80px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border: 2px solid rgba(255, 179, 217, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 25px rgba(255, 150, 200, 0.4);
  border-color: #ff99cc;
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  font-size: 28px;
  transition: transform 0.5s ease;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(180deg);
}

/* ===== Light Mode Styles ===== */
body.light-mode {
  background: linear-gradient(-45deg, #ffe6f0, #ffd9ec, #ffb3d9, #ff99cc);
  background-size: 400% 400%;
  animation: gradient 20s ease infinite;
  color: #4a4a4a;
}

body.light-mode header {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(255, 150, 200, 0.2);
}

body.light-mode header .logo {
  color: #d6508d;
}

body.light-mode nav a {
  color: #c0457d;
}

body.light-mode nav a:hover {
  color: #ff66aa;
}

body.light-mode .hero h1 {
  color: #d6508d;
  text-shadow: 2px 2px 10px rgba(255, 150, 200, 0.3);
}

body.light-mode .hero .subheading {
  color: #6d4a5e;
}

body.light-mode .message-card {
  background: rgba(255, 255, 255, 0.7);
  color: #4a4a4a;
  box-shadow: 0 10px 25px rgba(255, 150, 200, 0.3);
}

body.light-mode .message-card:hover {
  box-shadow: 0 15px 35px rgba(255, 150, 200, 0.5);
}

body.light-mode .content-section h2 {
  color: #d6508d;
  text-shadow: 1px 1px 8px rgba(255, 150, 200, 0.2);
}

body.light-mode .gallery-card {
  box-shadow: 0 6px 15px rgba(255, 150, 200, 0.2);
  border: 2px solid transparent;
}

body.light-mode .gallery-card:hover {
  box-shadow: 0 12px 30px rgba(255, 120, 180, 0.4);
  border-color: #ff7aa2;
}

body.light-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: #ff99cc;
}

/* Light mode lightbox */
body.light-mode .lightbox {
  background: rgba(255, 200, 230, 0.8);
  backdrop-filter: blur(8px);
}

body.light-mode .lightbox img {
  box-shadow: 0 0 30px rgba(255, 150, 200, 0.4);
}

/* Adjust floating elements for light mode */
body.light-mode .balloon,
body.light-mode .floating-item {
  opacity: 0.7;
}

/* Dark mode lightbox (default) */
body:not(.light-mode) .lightbox {
  background: rgba(50, 10, 50, 0.8);
  backdrop-filter: blur(10px);
}

body:not(.light-mode) .lightbox img {
  box-shadow: 0 0 40px rgba(255, 150, 200, 0.6);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
  .theme-toggle {
    width: 50px;
    height: 50px;
    top: 70px;
    right: 20px;
  }
  
  .theme-icon {
    font-size: 24px;
  }
}


/* --- Style for .sparkle --- */
.sparkle {
  position: fixed; /* JS sets top/left */
  background: #ffe6f0; /* A light pink/white sparkle */
  border-radius: 50%;
  box-shadow: 0 0 6px #ffe6f0, 0 0 10px #ffe6f0; /* Nice glow */
  animation: twinkle 2.5s ease-in-out; /* Matches your JS remove time */
  pointer-events: none;
  z-index: 998;
}

/* Animation for the sparkle */
@keyframes twinkle {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

