/* ============================================
   WAN TING & JONATHAN WEDDING WEBSITE
   ============================================ */

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

:root {
  --off-white: rgb(250,250,250);
  --warm-white: #f5f4ef;
  --charcoal: #2C2C2C;
  --soft-black: #2f2e2e;
  --softer-black: #5a5858;
  --taupe: #8B8178;
  --gold: #C9A961;
  --light-gold:f2ead9;
  --blush: #E8DDD4;
  --sage: #9CAF96;
  --major-border-color: var(--off-white);
}

@font-face {
  font-family: "Brand"; /* Name the font */
  src: url("/fonts/brand.woff2") format("woff2"); /* Point to the file */
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Optional: control font loading behavior */

}

@font-face {
  font-family: "Didot Italic"; /* Name the font */
  src: url("/fonts/didot-w01-italic.woff2") format("woff2"); /* Point to the file */
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Optional: control font loading behavior */
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--off-white);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

a:-webkit-any-link {
    color: var(--soft-black);
    cursor: pointer;
    text-decoration: none;
}

a:-webkit-any-link:hover {
    color: var(--gold);
    font-weight: bold;
}

/* Elegant Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--off-white);
}
::-webkit-scrollbar-thumb {
  background: var(--taupe);
  border-radius: 4px;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5vw 3vw;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3vw;
  background: var(--light-gold);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

nav.scrolled {
  padding: 1vw 3vw;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

nav a {
  font-family: 'Didot Italic';
  font-size: calc(1vh + 0.5vw);
  font-weight: 400;
  letter-spacing: 0.2vw;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.5vw 0;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--gold);
}

nav.light-text {
  color: var(--off-white);
}

nav.light-text a {
  color: var(--off-white);
}

nav.light-text a:hover {
  color: var(--gold);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-left: 0vw;
  padding-right: 0vw ;
  position: relative;
  border-left: 2px solid;
  border-right: 2px solid;
  border-image: linear-gradient(to bottom, var(--major-border-color), var(--off-white)) 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(201, 169, 97, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(156, 175, 150, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================================
   HOME SECTION
   ============================================ */
#home {
  min-height: 100vh;
  padding-top: calc(8vw - 2vh);
}


.tag-line {
  font-size: calc(.5vw + 1.25vh);
  font-family: 'Didot Italic';
  color: var(--taupe);
  letter-spacing: .5em;
  opacity: 0;
  animation: fadeInUp 1s ease 2s forwards;
  margin: .25vw;
}

.couple-names {
  font-family: 'Brand', cursive;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--soft-black);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}



#couple-names-header {
  margin-top:4vw;
  font-size: calc(12vw + 2vh);
  line-height: .8em;
  letter-spacing: -0.05em;
  white-space: nowrap;
}



.couple-names .ampersand {
  
  font-weight: 300;
  color: var(--gold);
  margin: 0 0em;
}

.wedding-date {
  font-family: 'Montserrat', sans-serif;
  font-size: calc(.5vw + 1vh);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}

.wedding-location {
  font-family: 'Brand', cursive;
  font-size: calc(.5vw + 1vh);
  font-style: italic;
  color: var(--charcoal);
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown {
  display: flex;
  gap: 2.5vw;
  margin-bottom: 0rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-family: 'Brand', serif;
  font-size: calc(1vw + 2vh);
  font-weight: 300;
  color: var(--soft-black);
  line-height: 1;
}

.countdown-label {
  font-family: 'Montserrat', sans-serif;
  font-size: calc(.3vw + .7vh);
  letter-spacing: 0.2vw;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 0.5rem;
}

/* Decorative Line */
.decorative-line {
  height: 1px;
  width: 10em;
  background: var(--gold);
  margin: calc(2vh + 1vw);
  opacity: 0;
  animation: expandLine 1s ease 1.7s forwards;
}

/* ============================================
   COMING SOON
   ============================================ */
#coming-soon {
  background-color:var(--soft-black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#coming-soon-text {
  font-family: 'Brand', cursive;
  font-size: 8vw;
  font-weight: 300;
  color: var(--off-white);
  margin-bottom: 1.5rem;
  opacity: 0;
  margin-top:4vw;
  line-height: .8em;
  letter-spacing: -0.05em;
  white-space: nowrap;
  animation: fadeInUp 1s ease 0.5s forwards;
}

#coming-soon-details {
  font-family: 'Montserrat', sans-serif;
  font-size: calc(.5vw + 1vh);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation-fill-mode: forwards;

  animation: fadeInUp 1s ease 0.7s forwards;
}

/* ============================================
   HERO PHOTO
   ============================================ */
.hero-photo {
  width: 90 %;
  max-width: 1000px;
  margin: 10vw;
  position: relative;
  opacity: 0;
  animation: fadeInUp 1.2s ease 1s forwards;
}

.hero-photo img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.hero-photo:hover img {
  filter: grayscale(50%);
}

.photo-frame {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 1px solid var(--gold);

  pointer-events: none;
  opacity: 0.5;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 6vw 20vw;
  margin: 0 auto;
  
}

.section-title {
  font-family: 'Brand', cursive;
  font-size: 2.5rem;
  font-weight: 300;
  text-align: center;
  color: var(--soft-black);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--taupe);
  margin-bottom: 3rem;
}

/* ============================================
   OUR STORY
   ============================================ */
.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text {
  font-family: 'Brand', cursive;
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--charcoal);
}

.story-text p {
  margin-bottom: 1.5rem;
}

.story-image {
  position: relative;
}

.story-image img {
  width: 100%;
  filter: grayscale(100%);
}

.story-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 1px solid var(--blush);
  z-index: -1;
}

/* ============================================
   WEDDING DETAILS
   ============================================ */

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  text-align: center;
}

.detail-card {
  padding: 3rem 2rem;
  background: var(--warm-white);
  border: 1px solid var(--major-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 30vw;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.detail-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.detail-title {
  font-family: 'Brand', cursive;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--soft-black);
}

.detail-info {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--taupe);
  line-height: 1.8;
}

.detail-info strong {
  display: block;
  color: var(--charcoal);
  margin-top: 1rem;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--blush);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.timeline-time {
  flex: 1;
  text-align: right;
  padding-right: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  padding-left: 2rem;
}

.timeline-title {
  font-family: 'Brand', cursive;
  font-size: 1.3rem;
  color: var(--soft-black);
}

.timeline-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: var(--taupe);
}

/* ============================================
   RSVP SECTION
   ============================================ */
.rsvp-section {
  background: var(--soft-black);
  color: var(--off-white);
  padding: 6rem 2rem;
  text-align: center;
  max-width: none;
  min-height: 90vh;
}

.rsvp-section .section-title {
  color: var(--off-white);
}

.rsvp-section .section-subtitle {
  color: var(--taupe);
}

.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid rgba(253, 251, 247, 0.2);
  color: var(--off-white);
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--taupe);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--soft-black);
}

.submit-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  background: var(--gold);
  color: var(--soft-black);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--off-white);
  color: var(--soft-black);
}

/* ============================================
   REGISTRY
   ============================================ */
.registry-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.registry-card {
  padding: 2rem 3rem;
  border: 1px solid var(--blush);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.registry-card:hover {
  background: var(--warm-white);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.registry-name {
  font-family: 'Brand', cursive;
  font-size: 1.3rem;
  color: var(--soft-black);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--off-white);
  border-top: 1px solid var(--major-border-color);
}

.footer-monogram {
  ffont-family: 'Lavishly Yours', cursive;
  font-size: 3rem;
  font-style: italic;
  color: var(--taupe);
  margin-bottom: 1rem;
}

.footer-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

.footer-hashtag {
  font-family: 'Brand', cursive;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

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

@keyframes expandLine {
  from {
    opacity: 0;
    width: 0;
  }
  to {
    opacity: 1;
    width: 10vw;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {

  .monogram {
    font-size: 3.5rem;
  }

  .story-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .timeline-item {
    flex-direction: column;
    text-align: center;
  }

  .timeline::before {
    display: none;
  }

  .timeline-time {
    text-align: center;
    padding: 0;
    margin-bottom: 0.5rem;
  }

  .timeline-content {
    padding: 0;
  }
}
