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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background: linear-gradient(135deg, #f5f0e6 0%, #d4c4a0 25%, #f7f3ed 50%, #b8a580 75%, #ebe5d6 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}



/* Color Spotlights */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 25%, rgba(201, 176, 55, 0.28) 0%, rgba(201, 176, 55, 0.08) 30%, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(212, 196, 160, 0.25) 0%, rgba(212, 196, 160, 0.06) 35%, transparent 60%),
    radial-gradient(circle at 35% 75%, rgba(172, 149, 81, 0.22) 0%, rgba(172, 149, 81, 0.05) 25%, transparent 50%),
    radial-gradient(circle at 75% 85%, rgba(139, 115, 85, 0.24) 0%, rgba(139, 115, 85, 0.07) 30%, transparent 55%),
    radial-gradient(circle at 50% 30%, rgba(180, 162, 105, 0.18) 0%, rgba(180, 162, 105, 0.04) 40%, transparent 70%),
    radial-gradient(circle at 10% 85%, rgba(199, 178, 153, 0.26) 0%, rgba(199, 178, 153, 0.08) 28%, transparent 45%),
    radial-gradient(circle at 90% 40%, rgba(166, 139, 91, 0.2) 0%, rgba(166, 139, 91, 0.05) 32%, transparent 50%),
    radial-gradient(circle at 65% 25%, rgba(180, 162, 105, 0.16) 0%, rgba(180, 162, 105, 0.04) 38%, transparent 60%),
    radial-gradient(circle at 25% 60%, rgba(199, 178, 153, 0.15) 0%, rgba(199, 178, 153, 0.03) 35%, transparent 55%);
  z-index: -1;
}


/* Liquid Glass Effect */
.glass-effect {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  height: calc(var(--height, 60) * 1px);
  width: calc(var(--width, 280) * 1px);
  border-radius: calc(var(--radius, 30) * 1px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px) saturate(1.8);
  -webkit-backdrop-filter: blur(10px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 -8px 16px -8px rgba(0, 0, 0, 0.1);
  transition: backdrop-filter 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Liquid state when scrolling */
.glass-effect.liquid {
  background: rgba(255, 255, 255, calc(var(--frost, 0.05)));
  backdrop-filter: url(#filter) saturate(var(--saturation, 1.8));
  -webkit-backdrop-filter: url(#filter) saturate(var(--saturation, 1.8));
  box-shadow: 
    0 0 2px 1px rgba(139, 115, 85, 0.15) inset,
    0 0 10px 4px rgba(139, 115, 85, 0.1) inset,
    0px 4px 16px rgba(17, 17, 26, 0.05), 
    0px 8px 24px rgba(17, 17, 26, 0.05),
    0px 16px 56px rgba(17, 17, 26, 0.05);
}

.nav-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.glass-effect nav {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  gap: 20px;
  overflow: hidden;
  border-radius: inherit;
}

.menu-item {
  text-decoration: none;
  color: #6B5D54;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.menu-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8B7355, #A68B5B);
  transition: width 0.3s ease;
}

.menu-item:hover::after,
.menu-item.active::after {
  width: 100%;
}

.menu-icon {
  font-size: 18px;
  color: currentColor;
}

.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.menu-item:hover,
.menu-item.active {
  color: #8B7355;
}

.filter {
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.displacement-debug {
  pointer-events: none;
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: -1;
}

.displacement-debug .displacement-image {
  height: 100%;
  width: 100%;
  pointer-events: none;
  border-radius: calc(var(--radius, 30) * 1px);
}

.container {
  width: auto;
  height: 100vh;
  max-height: 100vh;
  background-image: url("images/web-frame-4.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 2/3;
  z-index: 10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  max-width: 100vw;
  overflow: hidden;
}

/* Portrait orientation - add top margin for better balance */
@media (orientation: portrait) {
  .container {
    margin-top: 80px;
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
  }
}

/* Mobile portrait specific adjustments */
@media (max-width: 768px) and (orientation: portrait) {
  .container {
    margin-top: 80px;
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    width: 100%;
    max-width: 100vw;
    padding: 0 10px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .container {
    margin-top: 50px !important;
    height: calc(100vh - 50px) !important;
    max-height: calc(100vh - 50px);
    width: 100%;
    max-width: 100vw;
    padding: 0 15px;
    box-sizing: border-box;
  }
}

.contents {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8% 10%;
  box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Keep full viewport height on mobile */
  .container {
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    max-width: 100vw;
  }
  
  .contents {
    padding: 6% 8%;
  }
  .budget-title {
    font-size: 2.3rem;
    letter-spacing: 2.5px;
  }
  
  .names {
    font-size: 2.5rem;
    letter-spacing: 0.8px;
  }
  
  .photo {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Keep full viewport height on small mobile */
  .container {
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    max-width: 100vw;
  }
  
  .contents {
    padding: 4% 6%;
  }
  .budget-title {
    font-size: 2rem !important;
    letter-spacing: 2px;
  }
  
  .budget-for {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  .ceremony-text {
    font-size: 1rem !important;
  }
  
  .names {
    font-size: 2.2rem !important;
    letter-spacing: 0.5px;
  }
  
  .date-text {
    font-size: 1rem !important;
  }
  
  .photo {
    width: 120px;
    height: 120px;
  }
  
  .svg-divider svg {
    height: 20px;
  }
  
  .budget-section {
    margin-bottom: 20px;
  }
  
  .couple-photo {
    margin: 15px 0;
  }
  
  .ceremony-intro {
    margin-bottom: 6px;
  }
  
  .couple-names {
    margin-bottom: 15px;
  }
  
  .svg-divider {
    margin: 15px 0;
  }
  
  .wedding-date {
    margin-top: 15px;
  }
  .section-title {
    font-size: 2rem !important;
  }
  .section-text {
    font-size: 1rem !important;
  }
}

/* Typography Hierarchy */
.invitation-text {
  text-align: center;
  width: 100%;
  max-width: 400px;
  color: #8B4513;
}

/* Budget Section */
.budget-section {
  margin-bottom: 30px;
}

.budget-title {
  font-family: 'Crimson Text', serif;
  font-size: 2.5rem;
  font-weight: 400;
  background: linear-gradient(135deg, #8B7355, #A68B5B, #6B5D54);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 5px 0;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.budget-for {
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  font-weight: 400;
  background: linear-gradient(135deg, #8B7355, #A68B5B, #6B5D54);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 25px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Couple Photo */
.couple-photo {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  background: linear-gradient(45deg, #C9B037, #B4A269, #C9B037);
  padding: 2px;
}

.photo::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: white;
  z-index: -1;
}


/* Ceremony Introduction */
.ceremony-intro {
  margin-bottom: 8px;
}

.ceremony-text {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  background: linear-gradient(135deg, #8B7355, #A68B5B, #6B5D54);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Couple Names */
.couple-names {
  margin-bottom: 20px;
}

.names {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 400;
  background: linear-gradient(135deg, #8B7355, #A68B5B, #6B5D54);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: 1px;
}

/* SVG Divider */
.svg-divider {
  margin: 25px 0;
}

.svg-divider svg {
  width: 100%;
  height: 25px;
  opacity: 0.8;
}

.svg-divider svg path {
  fill: url(#dividerGradient);
}

/* Wedding Date */
.wedding-date {
  margin-top: 20px;
}

.date-text {
  font-family: 'Crimson Text', serif;
  font-size: 1.1rem;
  font-weight: 400;
  background: linear-gradient(135deg, #8B7355, #A68B5B, #6B5D54);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Sections */
.section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.section-content {
  max-width: 600px;
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: url(#filter) blur(10px) saturate(1.5);
  -webkit-backdrop-filter: url(#filter) blur(10px) saturate(1.5);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 400;
  background: linear-gradient(135deg, #8B7355, #A68B5B, #6B5D54);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
}

.section-text {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #6B5D54;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.5px;
}

.budget-couple-names {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  background: linear-gradient(135deg, #8B7355, #A68B5B, #6B5D54);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
}

/* Budget Grid Styles */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  margin: 25px 0;
}

.budget-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}

.budget-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.budget-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.budget-icon svg {
  color: #A68B5B;
  width: 18px;
  height: 18px;
}

.budget-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.budget-title-item {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #6B5D54;
  margin: 0;
}

.budget-amount {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #8B7355, #A68B5B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  white-space: nowrap;
}

/* Budget Total */
.budget-total {
  margin-top: 30px;
  padding-top: 20px;
  position: relative;
  z-index: 20;
}

.budget-total-line {
  height: 2px;
  background: linear-gradient(135deg, #C9B037, #A68B5B);
  margin-bottom: 15px;
  border-radius: 1px;
}

.budget-total-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(201, 176, 55, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(201, 176, 55, 0.3);
}

.budget-total-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #6B5D54;
  margin: 0;
}

.budget-total-amount {
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #5A4C42;
  margin: 0;
  position: relative;
  z-index: 21;
}

/* Budget Tracker */
.budget-tracker {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(139, 115, 85, 0.15);
  position: relative;
  z-index: 20;
}

.tracker-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
  position: relative;
}

.info-icon {
  width: 16px;
  height: 16px;
  color: #A68B5B;
  cursor: help;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.info-icon:hover {
  opacity: 1;
}

.tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(44, 36, 22, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: 'Raleway', sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(44, 36, 22, 0.95);
}

.tracker-info:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-5px);
}

.tracker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.tracker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.tracker-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #8B7355;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tracker-value {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5A4C42;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(139, 115, 85, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C9B037, #A68B5B);
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

/* Covered Budget Items */
.budget-amount.covered {
  background: linear-gradient(135deg, #8B7355, #A68B5B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Countdown Section */
.countdown-section {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(139, 115, 85, 0.15);
  position: relative;
  z-index: 20;
}

.countdown-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
}

.countdown-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(139, 115, 85, 0.4) 3px,
    rgba(139, 115, 85, 0.4) 6px
  );
}

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #8B7355, #A68B5B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.countdown-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #6B5D54;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mobile Budget Styles */
@media (max-width: 768px) {
  .budget-grid {
    gap: 6px 15px;
    margin: 20px 0;
  }
  
  .budget-item {
    padding: 6px 0;
    gap: 8px;
  }
  
  .budget-icon {
    width: 18px;
    height: 18px;
  }
  
  .budget-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .budget-title-item {
    font-size: 0.85rem;
  }
  
  .budget-amount {
    font-size: 0.9rem;
  }
  
  .countdown-display {
    gap: 15px;
  }
  
  .countdown-number {
    font-size: 2rem;
  }
  
  .countdown-label {
    font-size: 0.8rem;
  }
  
  .countdown-item:not(:last-child)::after {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .budget-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .budget-item {
    padding: 5px 0;
    gap: 8px;
  }
  
  .budget-icon {
    width: 16px;
    height: 16px;
  }
  
  .budget-icon svg {
    width: 14px;
    height: 14px;
  }
  
  .budget-title-item {
    font-size: 0.8rem;
  }
  
  .budget-amount {
    font-size: 0.85rem;
  }
  
  .countdown-display {
    gap: 10px;
  }
  
  .countdown-number {
    font-size: 1.6rem;
  }
  
  .countdown-label {
    font-size: 0.7rem;
  }
  
  .countdown-item:not(:last-child)::after {
    height: 40px;
  }
}

