/* Constellation Theme - 26 Month Anniversary */
:root {
  --primary-bg: #0a0e1a;
  --secondary-bg: #1a1f2e;
  --accent-blue: #60a5fa;
  --accent-pink: #ff6b9d;
  --accent-gold: #f8b500;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --constellation-glow: rgba(96, 165, 250, 0.3);
  --star-twinkle: rgba(255, 255, 255, 0.8);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Canvas Background */
#sky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #0f172a 100%);
}

/* Main Layout */
main {
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1.5s ease-out;
}

.hero-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--accent-pink);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px var(--constellation-glow);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-date {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA Button */
.cta-button {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(96, 165, 250, 0.4);
}

.button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.cta-button:hover .button-glow {
  left: 100%;
}

/* Shooting Star Launcher */
.shooting-star-launcher {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--accent-gold);
  padding: 1rem 2rem;
  border-radius: 50px;
  color: var(--accent-gold);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.shooting-star-launcher:hover {
  background: var(--accent-gold);
  color: var(--primary-bg);
  transform: translateY(-3px);
}

.launcher-icon {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

/* Constellation Initials */
.constellation-initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: var(--accent-blue);
  opacity: 0;
  font-family: "Great Vibes", cursive;
  text-shadow: 0 0 30px var(--constellation-glow);
  animation: constellationPulse 2s ease-in-out infinite;
}

/* Photo Section */
.photo-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 4rem;
  color: var(--text-primary);
  font-weight: 300;
}

.constellation-center {
  text-align: center;
  margin-bottom: 3rem;
}

.center-heart {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: heartBeat 2s ease-in-out infinite;
}

.constellation-title {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.constellation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.photo-container {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo-container:hover {
  transform: translateY(-10px);
}

.photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.photo:hover {
  box-shadow: 0 25px 50px rgba(96, 165, 250, 0.2);
}

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

.photo:hover img {
  transform: scale(1.05);
}

.photo-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1rem 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

/* Photo Story */
.photo-story {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.story-title {
  font-size: 1.8rem;
  color: var(--accent-pink);
  margin-bottom: 1rem;
  font-weight: 500;
}

.story-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Memories Section */
.memories-section {
  padding: 6rem 2rem;
  background: rgba(255, 255, 255, 0.02);
}

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

.memory-orbs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.memory-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  animation: orbFloat 3s ease-in-out infinite;
}

.memory-orb:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 40px var(--constellation-glow);
}

.orb-content {
  text-align: center;
  color: white;
  z-index: 2;
}

.orb-date {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 0.3rem;
}

.orb-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.orb-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: var(--constellation-glow);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.memory-orb:hover .orb-glow {
  opacity: 1;
}

/* Memory Timeline */
.memory-timeline {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: dotPulse 2s ease-in-out infinite;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

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

.sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

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

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

.modal {
  background: var(--secondary-bg);
  border-radius: 20px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  font-size: 1.8rem;
  color: var(--accent-pink);
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-content {
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
}

/* Sound Toggle */
.sound-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 100;
}

.sound-toggle:hover {
  background: var(--accent-blue);
  color: white;
  transform: scale(1.1);
}

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

@keyframes titleGlow {
  from {
    text-shadow: 0 0 20px var(--constellation-glow);
  }
  to {
    text-shadow: 0 0 40px var(--constellation-glow), 0 0 60px var(--accent-pink);
  }
}

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

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

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

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

@keyframes sparkle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .constellation-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .memory-orbs {
    gap: 1rem;
  }

  .memory-orb {
    width: 100px;
    height: 100px;
  }

  .photo-story {
    padding: 2rem;
  }
}

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

  .photo-section,
  .memories-section {
    padding: 3rem 1rem;
  }

  .constellation-grid {
    grid-template-columns: 1fr;
  }

  .memory-orbs {
    flex-direction: column;
    align-items: center;
  }
}

/* Image Modal Styles */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.image-modal-content {
  background: var(--secondary-bg);
  border-radius: 20px;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.5s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.image-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.image-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.image-modal-close:hover {
  color: var(--text-primary);
}

.image-modal-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.image-modal-title {
  font-size: 1.8rem;
  color: var(--accent-pink);
  margin-bottom: 1rem;
  font-weight: 500;
}

.image-modal-description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Memory Modal Styles */
.memory-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.memory-modal-content {
  background: var(--secondary-bg);
  border-radius: 20px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.5s ease;
}

.memory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.memory-date {
  color: var(--accent-blue);
  font-size: 0.9rem;
  font-weight: 500;
}

.memory-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.memory-close:hover {
  color: var(--text-primary);
}

.memory-title {
  font-size: 1.8rem;
  color: var(--accent-pink);
  margin-bottom: 1rem;
  font-weight: 500;
}

.memory-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.memory-emotion {
  text-align: center;
  font-size: 2rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
