/* ========================================
   Valentine's Day Website for Jade
   Complete CSS Styling
   ======================================== */

/* ----- CSS Variables ----- */
:root {
  --pink-lightest: #fff0f3;
  --pink-light: #ffccd5;
  --pink: #ff85a1;
  --pink-dark: #ff4d6d;
  --rose: #c9184a;
  --white: #ffffff;
  --text: #2b2b2b;
  --text-light: #555;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--pink-lightest);
  color: var(--text);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* ----- Typography ----- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: var(--rose);
}

/* ----- Utility Classes ----- */
.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   PASSWORD GATE
   ======================================== */
#password-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--pink-lightest) 0%, var(--pink-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

#password-gate.unlocked {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.gate-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
}

.gate-content h1 {
  color: var(--rose);
  margin: 0 0 1.5rem 0;
  animation: fadeInUp 1s ease forwards;
}

.gate-question {
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 2rem 0;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.gate-input-wrap {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

#gate-input {
  padding: 0.9rem 1.5rem;
  border: 2px solid var(--pink);
  border-radius: 50px;
  font-size: 1.1rem;
  font-family: 'Lato', sans-serif;
  outline: none;
  background: var(--white);
  color: var(--text);
  width: 250px;
  transition: border-color 0.3s ease;
}

#gate-input:focus {
  border-color: var(--rose);
}

#gate-submit {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease;
}

#gate-submit:hover {
  background: var(--pink-dark);
  transform: scale(1.05);
}

#gate-error {
  color: var(--rose);
  margin-top: 1rem;
  font-size: 1rem;
  font-style: italic;
}

/* Lock scrolling while gate is visible */
body.gate-locked {
  overflow: hidden;
}

/* ========================================
   SECTION 1: HERO
   ======================================== */

/* --- Keyframes --- */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 1;
  }
  25% {
    transform: translateY(75vh) translateX(15px);
  }
  50% {
    transform: translateY(50vh) translateX(-10px);
    opacity: 0.8;
  }
  75% {
    transform: translateY(25vh) translateX(20px);
  }
  100% {
    transform: translateY(-100px) translateX(-5px);
    opacity: 0;
  }
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--pink-lightest) 0%, var(--pink-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
}

.hero-content h1 {
  color: var(--rose);
  margin: 0 0 1rem 0;
  animation: fadeInUp 1.5s ease forwards;
  letter-spacing: 0.02em;
}

.tagline {
  font-size: 1.3rem;
  color: var(--text-light);
  font-weight: 300;
  margin: 0 0 3rem 0;
  opacity: 0;
  animation: fadeInUp 1.5s ease 0.5s forwards;
}

.scroll-prompt {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--pink);
  font-size: 0.95rem;
  animation: pulse 2.5s ease-in-out infinite;
}

.scroll-arrow {
  font-size: 1.5rem;
  margin-top: 0.3rem;
  animation: bounce 1.5s ease-in-out infinite;
}

/* --- Floating Hearts Container --- */
.floating-hearts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* ========================================
   SECTION 2: GALLERY
   ======================================== */
#gallery {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  columns: 3;
  column-gap: 1.2rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(201, 24, 74, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(201, 24, 74, 0.15);
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ========================================
   SECTION 3: TIMELINE
   ======================================== */
#timeline {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 1rem 0;
}

/* Vertical center line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--pink-light);
  transform: translateX(-50%);
}

/* Clearfix */
.timeline::after {
  content: '';
  display: table;
  clear: both;
}

.timeline-item {
  position: relative;
  width: 45%;
  margin-bottom: 2.5rem;
}

.timeline-item.left {
  float: left;
  text-align: right;
  clear: both;
}

.timeline-item.right {
  float: right;
  text-align: left;
  clear: both;
}

.timeline-marker {
  position: absolute;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--pink-light);
  z-index: 2;
}

.timeline-item.left .timeline-marker {
  right: -8%;
  transform: translateX(50%);
}

.timeline-item.right .timeline-marker {
  left: -8%;
  transform: translateX(-50%);
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(201, 24, 74, 0.08);
  transition: box-shadow 0.3s ease;
}

.timeline-content:hover {
  box-shadow: 0 6px 20px rgba(201, 24, 74, 0.14);
}

.timeline-content h3 {
  color: var(--rose);
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.timeline-content p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-content img {
  width: 100%;
  border-radius: 8px;
  margin-top: 0.75rem;
}

/* ========================================
   SECTION 4: REASONS
   ======================================== */
#reasons {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.reason-card {
  background: var(--white);
  padding: 2rem 2rem 2rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(201, 24, 74, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(201, 24, 74, 0.15);
}

.reason-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pink-light);
  font-family: 'Playfair Display', serif;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.reason-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.reasons-ending {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  margin-top: 3rem;
  font-size: 1.2rem;
}

/* ========================================
   SECTION 5: FAKEOUTS
   ======================================== */
#fakeouts {
  background: var(--pink-lightest);
}

.fakeout-screen {
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.fakeout-screen.active {
  display: flex;
}

.fakeout-screen h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--rose);
  margin: 0 0 0.5rem 0;
}

.fakeout-text {
  font-size: 1.8rem;
  color: var(--text);
  margin: 1rem 0 2rem 0;
  font-weight: 300;
}

.fakeout-btn {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease;
  letter-spacing: 0.02em;
}

.fakeout-btn:hover {
  background: var(--pink-dark);
  transform: scale(1.05);
}

.fakeout-btn:active {
  transform: scale(0.98);
}

.fakeout-jk {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-top: 1.5rem;
  font-style: italic;
}

/* When .fakeout-jk becomes visible (hidden class removed), animate it in */
.fakeout-jk:not(.hidden) {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   SECTION 6: QUESTION
   ======================================== */
#question {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--pink-lightest) 0%, var(--pink-light) 100%);
  position: relative;
  overflow: hidden;
}

.question-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
}

.question-content h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--rose);
  margin: 0 0 2rem 0;
}

.buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

#yes-btn {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(201, 24, 74, 0.25);
}

#yes-btn:hover {
  background: var(--rose);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(201, 24, 74, 0.35);
}

#yes-btn:active {
  transform: scale(0.98);
}

#no-btn {
  background: var(--pink-light);
  color: var(--text);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 65%;
  transition: all 0.2s ease;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  z-index: 10;
}

#no-btn:hover {
  background: var(--pink);
  color: var(--white);
}

/* ========================================
   SECTION 7: CELEBRATION
   ======================================== */
#celebration {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-lightest);
  position: relative;
  overflow: hidden;
}

.celebration-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
}

.celebration-text {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--rose);
  text-align: center;
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.celebration-subtext {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-top: 1rem;
  text-align: center;
}

.nori-reveal {
  font-size: 2rem;
  color: var(--rose);
  margin-top: 2rem;
  text-align: center;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

/* ========================================
   RESPONSIVE: Tablet (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  .gallery-grid {
    columns: 2;
  }

  /* Timeline collapses to single column */
  .timeline::before {
    left: 20px;
    transform: none;
  }

  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    float: none;
    text-align: left;
    padding-left: 50px;
    margin-bottom: 2rem;
  }

  .timeline-item.left .timeline-marker,
  .timeline-item.right .timeline-marker {
    left: 12px;
    right: auto;
    transform: none;
  }

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

  .buttons {
    flex-direction: column;
  }

  .section-title {
    font-size: 2rem;
  }

  .fakeout-text {
    font-size: 1.4rem;
  }

  .question-content h2 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .celebration-text {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .celebration-subtext {
    font-size: 1.2rem;
  }

  .nori-reveal {
    font-size: 1.6rem;
  }

  .gate-input-wrap {
    flex-direction: column;
  }

  #gate-input {
    width: 100%;
    max-width: 280px;
  }

  .gate-question {
    font-size: 1.2rem;
  }
}

/* ========================================
   RESPONSIVE: Mobile (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .fakeout-text {
    font-size: 1.2rem;
  }

  .fakeout-btn {
    padding: 0.85rem 2.2rem;
    font-size: 1.05rem;
  }

  #yes-btn {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
  }

  .reason-card {
    padding: 1.5rem;
  }

  .reason-number {
    font-size: 2rem;
  }

  .celebration-subtext {
    font-size: 1.1rem;
  }

  .nori-reveal {
    font-size: 1.4rem;
  }
}
