:root {
  --bg-dark: #0a0e17;
  --bg-darker: #05070a;
  --med-blue: #89CFF0;
  --med-green: #98FF98;
  --neon-cyan: #00ffff;
  --rose: #ff007f;
  --glass-bg: rgba(10, 14, 23, 0.65);
  --glass-border: rgba(0, 255, 255, 0.15);
  --glass-border-rose: rgba(255, 0, 127, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  background-image: url('../assets/images/global-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #f0f4f8;
  overflow-x: hidden;
}

h1, h2, h3, .poem, .cinematic-title, .proposal-title {
  font-family: 'Playfair Display', serif;
}

/* Typography Utility */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.flex-col-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.highlight-cyan { color: var(--neon-cyan); }
.glow-text { text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
.highlight-rose { color: var(--rose); text-shadow: 0 0 10px rgba(255, 0, 127, 0.5); }
.passionate-text { font-size: 1.25rem; font-style: italic; color: var(--med-blue); margin-bottom: 1rem; }
.poem { font-size: 1.1rem; line-height: 1.8; color: #d0d8e0; font-style: italic; }

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(5,7,10,0.9) 0%, transparent 100%);
  backdrop-filter: blur(5px);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.nav-links a {
  color: var(--med-blue);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* Sections */
.panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem;
}

.content-wrapper {
  max-width: 1000px;
  width: 100%;
  z-index: 10;
}

.section-title {
  font-size: 3rem;
  color: var(--med-blue);
  margin-bottom: 4rem;
  text-align: center;
  text-shadow: 0 0 15px rgba(137, 207, 240, 0.3);
}

/* Hero Section */
#hero {
  padding: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
}

.hero-bg-blur {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../assets/images/hero-bg-faces.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.6); /* Vibrant, no blur */
  z-index: 0;
}

.hero-bg-contain {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../assets/images/hero-bg-faces.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(5, 7, 10, 0.1); /* Very light overlay to maximize image visibility */
  z-index: 2;
}

.background-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.heartbeat-layer {
  position: absolute;
  bottom: 10%;
  width: 100%;
  height: 150px;
  opacity: 0.3;
}

.heartbeat-svg {
  width: 100%;
  height: 100%;
}

.ekg-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawEkg 4s infinite linear;
  filter: drop-shadow(0 0 8px var(--neon-cyan));
}

@keyframes drawEkg {
  0% { stroke-dashoffset: 1000; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}

.hero-text-box {
  background: transparent;
  padding: 3rem 4rem;
  border: none;
  box-shadow: none;
  margin-top: 30vh; /* Pushed lower for visual balance */
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cinematic-title {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 20px rgba(0, 255, 255, 0.6);
}

.subtitle {
  font-size: 1.5rem;
  color: var(--med-green);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8), 0 0 15px rgba(152, 255, 152, 0.5);
}

/* Buttons */
.glow-btn, .glow-btn-rose, .outline-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.glow-btn {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.glow-btn:hover {
  background: var(--neon-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.glow-btn-rose {
  background: var(--rose);
  color: white;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
  font-size: 1.3rem;
  padding: 1.2rem 3rem;
}

.glow-btn-rose:hover {
  background: #ff1a8c;
  box-shadow: 0 0 40px rgba(255, 0, 127, 0.8);
  transform: scale(1.05);
}

.outline-btn {
  background: transparent;
  color: #888;
  border: 1px solid #444;
  font-size: 0.9rem;
  padding: 0.8rem 2rem;
}

.outline-btn:hover {
  color: white;
  border-color: #888;
}

/* Animations */
.fade-in { opacity: 0; animation: fadeUp 1.5s forwards 0.3s; }
.fade-in-delayed { opacity: 0; animation: fadeUp 1.5s forwards 1s; }
.fade-in-delayed-more { opacity: 0; animation: fadeUp 1.5s forwards 1.8s; }

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

/* Pulsing Heart */
.pulse-heart {
  font-size: 2.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 15px var(--rose));
  animation: heartPulse 1.5s infinite ease-in-out;
}

@keyframes heartPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 25px var(--rose)); }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Story Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--med-blue), var(--med-green), var(--rose));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  width: 100%;
}

.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--bg-dark);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-cyan);
  z-index: 2;
}

.timeline-content {
  width: 80%;
  padding: 2rem;
  border-radius: 16px;
  margin: 0 2rem;
}

.timeline-content h3 {
  color: var(--med-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Glassmorphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.4);
}

.image-placeholder img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  margin-top: 1.5rem;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 20px rgba(137, 207, 240, 0.2);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
  border: 1px solid var(--glass-border);
}

.gallery-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.trip-card {
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border-rose);
  background: rgba(255, 0, 127, 0.05);
}

/* Proposal Section */
.intense-glow {
  background: radial-gradient(circle at center, rgba(255, 0, 127, 0.15) 0%, var(--bg-dark) 70%);
}

.proposal-title {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
}

.proposal-subtitle {
  font-size: 1.5rem;
  color: var(--med-blue);
  margin-bottom: 3rem;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#hearts-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-heart {
  position: absolute;
  bottom: -50px;
  width: 20px;
  height: 20px;
  background-color: var(--rose);
  transform: rotate(-45deg);
  animation: floatUp linear forwards;
  opacity: 0.6;
}

.floating-heart::before,
.floating-heart::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--rose);
  border-radius: 50%;
}

.floating-heart::before {
  top: -10px;
  left: 0;
}

.floating-heart::after {
  top: 0;
  left: 10px;
}

@keyframes floatUp {
  0% { transform: rotate(-45deg) translateY(0) scale(1); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: rotate(-45deg) translateY(-1000px) scale(1.5); opacity: 0; }
}

.music-toggle.hidden {
  display: none !important;
}

/* Success Page */
#success-page {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 2000;
  background-image: url('../assets/images/success-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.success-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(10,14,23,0.3) 0%, rgba(5,7,10,0.8) 100%);
  z-index: 1;
}

.success-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  text-align: center;
}

.success-title {
  font-size: 4rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
  margin-bottom: 2rem;
  animation: fadeUp 2s forwards;
}

.hidden {
  display: none !important;
}

.celebration-container {
  animation: fadeIn 1s forwards;
}

.celebration-title {
  color: var(--med-green);
  font-size: 2.5rem;
  text-shadow: 0 0 15px rgba(152, 255, 152, 0.5);
}

.rounded-image {
  border-radius: 20px;
  border: 3px solid var(--rose);
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Music Toggle Button */
.music-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
  background: var(--neon-cyan);
  color: var(--bg-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cinematic-title { font-size: 2rem; }
  .section-title { font-size: 2.5rem; }
  .hero-illustration { max-height: 40vh; }
  .nav-links { gap: 1rem; flex-wrap: wrap; padding: 0 1rem; }
  .nav-links a { font-size: 0.75rem; }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item.right { padding: 0 0 0 50px; justify-content: flex-start; }
  .timeline-node { left: 20px; }
  .timeline-content { width: 100%; margin: 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

/* Lightbox Styles */
#lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5, 7, 10, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  z-index: 3010;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
  animation: fadeIn 0.4s ease;
}

#lightbox-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: transparent;
  color: white;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transition: transform 0.2s;
}

#lightbox-close:hover {
  transform: scale(1.2);
  color: var(--rose);
}
