/* Wedding Website Custom Styles */

:root {
  /* Colors inspired by the save the date */
  --primary-blush: #f4d2d7;
  --secondary-sage: #a8b5a0;
  --accent-cream: #f8f6f0;
  --soft-pink: #f7e7ea;
  --deep-sage: #7d8471;
  --warm-beige: #f0ede6;
  --text-dark: #4a4a4a;
  --text-light: #6a6a6a;
  
  /* Fonts */
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Lora', serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: #FEFCF4;
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 80px;
  margin: 0;
  position: relative;
}


/* Content Wrapper with Left and Right Borders */
.content-wrapper {
  position: relative;
  z-index: 1;
  padding-right: 100px;
  padding-left: 100px;
  background-color: #FEFCF4;
}

/* Right Border */
.content-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background-image: url('/static/images/border_right.png');
  background-repeat: repeat-y;
  background-position: right center;
  background-size: contain;
  background-color: #FEFCF4;
  pointer-events: none;
  opacity: 0.6;
}

/* Left Border */
.content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100%;
  background-image: url('/static/images/border_right.png');
  background-repeat: repeat-y;
  background-position: left center;
  background-size: contain;
  background-color: #FEFCF4;
  pointer-events: none;
  opacity: 0.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-script);
  color: var(--deep-sage);
  font-weight: 600;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }

.display-script {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--deep-sage);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Navigation */
.custom-navbar {
  background: rgba(248, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.brand-names {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--deep-sage);
  font-weight: 600;
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  color: var(--text-dark) !important;
  font-weight: 400;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--deep-sage) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #FEFCF4;
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero-names {
  font-family: var(--font-script);
  font-size: 4.5rem;
  color: var(--deep-sage);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-date {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.hero-location {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-tagline {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--deep-sage);
  font-style: italic;
  margin-bottom: 3rem;
}

/* Decorative Elements */
.hero-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.decoration-lantern {
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
  /* Polar rose SVG as background */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.decoration-lantern:nth-child(1) { 
  top: 10%; 
  left: 15%; 
  animation-delay: 0s;
  background-image: url('/static/images/polar_rose.svg');
}

.decoration-lantern:nth-child(2) { 
  top: 20%; 
  right: 20%; 
  animation-delay: 2s;
  background-image: url('/static/images/polar_rose.svg');
}

.decoration-lantern:nth-child(3) { 
  top: 60%; 
  left: 10%; 
  animation-delay: 4s;
  background-image: url('/static/images/polar_rose.svg');
}

.decoration-lantern:nth-child(4) { 
  top: 70%; 
  right: 15%; 
  animation-delay: 1s;
  background-image: url('/static/images/polar_rose.svg');
}


@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Cards and Sections */
.content-section {
  padding: 5rem 0;
  background: #FEFCF4;
}

.content-section:nth-child(even) {
  background: #FEFCF4;
}

.custom-card {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.card-header-custom {
  background: none;
  border: none;
  padding: 0 0 1.5rem 0;
}

.card-title-custom {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--deep-sage);
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Buttons */
.btn-custom {
  background: var(--secondary-sage);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-custom:hover {
  background: var(--deep-sage);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  color: white;
}

.btn-outline-custom {
  border: 2px solid var(--secondary-sage);
  color: var(--secondary-sage);
  background: transparent;
  padding: 10px 28px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--secondary-sage);
  color: white;
}

/* ================================
   WEDDING DAY TIMELINE
   ================================ */

.timeline {
  position: relative;
  margin: 3rem auto;
  max-width: 700px;
  padding: 0 1rem;
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-blush);
  border: 3px solid var(--secondary-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-sage);
  font-size: 1.3rem;
  margin-right: 1rem;
  position: relative;
  z-index: 2;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 45px;
  width: 2px;
  height: calc(100% - 45px);
  background: var(--secondary-sage);
  z-index: 1;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-content {
  flex-grow: 1;
}

.timeline-time {
  font-weight: bold;
  color: var(--deep-sage);
  font-size: 1.1rem;
}

.timeline-event {
  font-family: var(--accent-font);
  color: var(--accent-burgundy);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.timeline-description {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.4;
}

/* Info Boxes */
.info-box {
  border: 2px dashed var(--primary-blush);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-box h4 {
  color: var(--deep-sage);
  margin-bottom: 1rem;
}

/* Footer */
.custom-footer {
  background: var(--deep-sage);
  color: white;
  margin-top: 3rem;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 600;
}

.footer-date {
  font-family: var(--font-body);
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-decoration {
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-names { font-size: 3rem; }
  .display-script { font-size: 2.8rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.8rem; }
  
  .custom-card { padding: 1.5rem; }
  .content-section { padding: 3rem 0; }
  
  body { padding-top: 70px; }
  
  .content-wrapper {
    padding-right: 0;
    padding-left: 0;
  }
  
  /* Hide side borders on mobile */
  .content-wrapper::before,
  .content-wrapper::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-names { font-size: 2.5rem; }
  .hero-date, .hero-location { font-size: 1.1rem; }
  .hero-tagline { font-size: 1.4rem; }
  
  .custom-card { 
    padding: 1.2rem; 
    margin-bottom: 1.5rem; 
  }
  
  .timeline-item { padding-left: 2.5rem; }
}

/* Section Divider Border */
.section-divider-border {
  width: 90%;
  margin: 0 auto;
  height: 150px;
  background-image: url('/static/images/border_top.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 150px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .section-divider-border {
    width: 90%;
    height: 75px;
    background-size: auto 75px;
  }
}

/* Section Divider Border */
.section-divider-border2 {
  width: 90%;
  margin: 0 auto;
  height: 150px;
  background-image: url('/static/images/border_bottom.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 150px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .section-divider-border2 {
    width: 90%;
    height: 90px;
    background-size: auto 90px;
  }
}