/* ============================================
   Julia & Christian — Our Journey Year One
   Shared styles
   ============================================ */
:root {
  --bg-deep: #0b0620;
  --bg-mid: #1a1040;
  --bg-light: #2a1a5e;
  --violet: #a78bfa;
  --blue: #60a5fa;
  --pink: #f472b6;
  --gold: #fbbf24;
  --text: #f3f0ff;
  --text-dim: #c4b8e8;
  --glass: rgba(167, 139, 250, 0.08);
  --glass-border: rgba(167, 139, 250, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 45%, var(--bg-light) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.script { font-family: 'Great Vibes', cursive; font-weight: 400; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
  background: rgba(11, 6, 32, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.15);
}
.nav-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 1.7rem;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 999px;
  transition: all 0.3s ease;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-links a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(167,139,250,0.35), rgba(244,114,182,0.35));
}

/* ---------- Page structure ---------- */
.page { padding: 110px 24px 80px; max-width: 1100px; margin: 0 auto; }

.page-title {
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.15;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.page-sub {
  text-align: center; color: var(--text-dim);
  font-size: 1.05rem; font-weight: 300;
  max-width: 640px; margin: 0 auto 56px;
}

/* ---------- Glass cards ---------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 32px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.gallery figure {
  position: relative; overflow: hidden; border-radius: 18px;
  cursor: pointer;
  border: 1px solid rgba(167,139,250,0.2);
  aspect-ratio: 4 / 3;
  opacity: 0; transform: translateY(40px); /* revealed by GSAP */
}
.gallery figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 30px 16px 12px;
  font-size: 0.82rem; color: #fff;
  background: linear-gradient(transparent, rgba(11,6,32,0.85));
  opacity: 0; transition: opacity 0.4s ease;
}
.gallery figure:hover figcaption { opacity: 1; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(var(--blue), var(--violet), var(--pink));
  opacity: 0.5;
}
.tl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  margin-bottom: 70px; position: relative;
  opacity: 0; /* revealed by GSAP */
}
.tl-item:nth-child(odd) { flex-direction: row; }
.tl-item:nth-child(even) { flex-direction: row-reverse; }
.tl-item::after {
  content: '♥'; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--pink); font-size: 1.1rem;
  background: var(--bg-mid);
  border: 2px solid var(--violet);
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(244,114,182,0.55);
}
.tl-photo, .tl-text { width: calc(50% - 60px); }
.tl-photo img {
  width: 100%; border-radius: 18px; display: block;
  border: 1px solid rgba(167,139,250,0.25);
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.tl-text h3 {
  font-size: 1.25rem; font-weight: 600; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tl-text .tl-date {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; display: block;
}
.tl-text p { color: var(--text-dim); font-size: 0.95rem; font-weight: 300; line-height: 1.7; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11, 6, 32, 0.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw; max-height: 86vh; border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 20px; right: 26px;
  font-size: 2.2rem; color: var(--text-dim); cursor: pointer;
  background: none; border: none; line-height: 1;
}
.lightbox-close:hover { color: #fff; }

/* ---------- Floating hearts ---------- */
.float-heart {
  position: fixed; bottom: -40px; z-index: 1;
  color: var(--pink); pointer-events: none;
  opacity: 0.5; filter: blur(0.4px);
  animation: floatUp linear forwards;
}
@keyframes floatUp {
  to { transform: translateY(-115vh) rotate(38deg); opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.05em; text-decoration: none; cursor: pointer;
  color: #fff; border: none;
  background: linear-gradient(90deg, #7c3aed, #db2777);
  box-shadow: 0 8px 28px rgba(219, 39, 119, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 38px rgba(219, 39, 119, 0.5); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  box-shadow: none;
}
.btn.ghost:hover { color: #fff; border-color: var(--violet); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; padding: 40px 20px 30px;
  color: rgba(196, 184, 232, 0.55); font-size: 0.8rem; font-weight: 300;
}
.site-footer .script { font-size: 1.4rem; color: var(--text-dim); display: block; margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav { padding: 12px 16px; }
  .nav-links a { padding: 7px 9px; font-size: 0.78rem; }
  .nav-logo { font-size: 1.4rem; }
  .timeline::before { left: 21px; }
  .tl-item, .tl-item:nth-child(even) { flex-direction: column; gap: 16px; margin-left: 52px; }
  .tl-item::after { left: -31px; top: 24px; width: 36px; height: 36px; }
  .tl-photo, .tl-text { width: 100%; }
}
